legal-file-assistant
Combined Canadian court document downloader AND Windows local file search.
Skill by dmang69
Chalk Labs
Need help deploying legal-file-assistant?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/dmang69-legal-file-assistant
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: documents, cloud, writing, research
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/legal-file-assistant
What's inside
- Skill name
legal-file-assistant- Description
- Combined Canadian court document downloader AND Windows local file search. Aliases: court-downloader, file-search, legal-file-assistant, boa-downloader. TRIGGER court download: "download this case", "get me the PDF of", "pull this judgment", "build my BOA", "retrieve this authority", or any Canadian citation (SCC/SCR/BCCA/BCSC/FCA/CanLII). TRIGGER local search: "find my file", "search for", "where is my", "locate the PDF of", "find all my court documents", "find anything modified last week", "search inside my documents", "find duplicates", "export my file list", or any request to locate files/folders on Windows. BOTH modes when needed e.g. "download Vavilov and find where I saved the old copy". Lawful public sources only; no Cloudflare bypass; no sealed records; no System32 search.
- License
- MIT
- Instructions
- 116 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Agent Skills spec issues
- body: contains an absolute path from the author's machine
Files (8)
- SKILL.md
- scc-item-ids.md · references/
- __init__.py · scripts/
- boa_assembler.py · scripts/
- cli.py · scripts/
- court_engine.py · scripts/
- court_engine_v2.py · scripts/
- file_engine.py · scripts/
SKILL.md (first lines)
# Legal Assistant — Court Document Downloader + Windows File Search
One skill, two engines. **Lawful access only.**
**Not legal advice.** Official PDFs and currency must be verified by counsel before filing. BOA merges are working drafts.
## Scripts (run from monorepo)
```text
skills/legal-file-assistant/scripts/
court_engine.py # SCC download + reference PDF fallback
file_engine.py # Windows file search + duplicates
boa_assembler.py # optional PDF merge
cli.py # unified CLI
references/scc-item-ids.md
outputs/ # default write location for downloads/reports
```
```powershell
cd C:\Users\Dizzle\projects\bc-legal-ai\skills\legal-file-assistant\scripts
python cli.py download --citation "2019 SCC 65" --out ..\outputs
python cli.py search --query "vavilov" --ext .pdf
python cli.py both --citation "2019 SCC 65" --query vavilov
```
## Mode detection
| User says | Mode |
|-----------|------|
| citation, download, get me the case, BOA, judgment | `COURT_DOWNLOAD` |
| find my file, search for, where is, locate | `LOCAL_SEARCH` |
| find the case AND check if I have it saved | `BOTH` |
| I downloaded Vavilov — find it for me | `LOCAL_SEARCH` (legal context) |
| download all N cases | `COURT_DOWNLOAD` batch |
| find duplicate PDFs in my BOA folder | `LOCAL_SEARCH` + duplicates |
If ambiguous: run **LOCAL_SEARCH first**, report hits, then offer official download.
## Compliance
### Court downloads
- Public documents only; no auth bypass; no CAPTCHA defeat; no sealed records
- No mass-download abuse; CanLII automated access → **REFERENCE_PDF** + URL (do not hammer Cloudflare)
- SCC: use verified item IDs in `references/scc-item-ids.md`
- Prefer `decisions.scc-csc.ca` PDFs when available
### Local search
- Only paths the user can read; never bypass ACLs
- **Never** search `System32`, `SysWOW64`, WinSxS, credential stores
- Do not exfiltrate contents off-machine
- Permission errors: skip and report count
## Engine A — Court download workflow
1. Identify court from citation (`SCC` / `BCCA` / `BCSC` / `FCA` / …)
2. Lookup SCC item ID database
3. If output already has valid PDF → `ALREADY_EXISTS`
4. Download via adapter; on block → reference PDF + manual URL
5. Write `manifest.json`, `table_of_authorities.csv`, `download_summary.txt`, `missing_authorities.txt`, `access_denied.txt`
6. Append `audit.log`
**Naming:** `Tab_{NN}_{ShortName}_{CitationSlug}.pdf`
**Status codes:** `ALREADY_EXISTS` | `SUCCESS` | `REFERENCE_PDF` | `BLOCKED_CLOUDFLARE` | `HTTP_400/403/404`
## Engine B — Local search workflow
1. Parse NL → `SearchParams` (`file_engine.parse_nl`)
2. Roots default: Documents, Downloads, Desktop, OneDrive (if present)
3. Score relevance (filename + recency + legal ext)
4. Optional content keywords (txt/docx; PDF if pypdf installed)
5. Optional SHA-256 duplicates
6. Optional export csv/json/txt
## Combined workflows
### Download + confirm local
1. `COURT_DOWNLOAD`
2. `LOCAL_SEARCH` for same short name
3. Report path + status
### Find if already have case
1. Local search for case name / citation slug
2. If found → report; offer fresh official download
3. If not → download
### Build BOA (batch)
1. For each tab: local search → else download
2. Assemble working draft if enough SUCCESS PDFs (`boa_assembler.py`)
3. Always generate manifest + CSV + summary
4. **Form note:** BOA is a book of authorities package, not a petition (petition = Form 66)
## Agent instructions
When this skill triggers:
1. Detect mode(s).
2. Prefer running `cli.py` / engines via shell over inventing paths.
3. Default output: `skills/legal-file-assistant/outputs/` (or user-specified folder).
4. Never claim a REFERENCE_PDF is the official judgment.
5. For BC statutes: use **bc-legislation-admin** / BC Laws — this skill is **cases**, not statutes.
6. Log actions to `outputs/audit.log`.
7. Present results as a table + file paths.
## See also
- `references/scc-item-ids.md`
- BC Legal AI monorepo knowledgebase / grounding for court-ready cites
- Do **not** put confidential client files into public Hugging Face SpacesFrom dmang69/bc-legal-ai, MIT.
More from dmang69/bc-legal-ai
- 0.565score
critical-reading
dmang69
Skill for decomposing complex source documents — court decisions, academic papers, opposing affidavits, technical specifications, statutes, expert reports…
SkillBFreshness: B★ 3Claude Code +9 - 0.565score
counsel-research-draft-pipeline
dmang69
Use when researching and drafting BC legal documents.
SkillBFreshness: B★ 3Claude Code +9 - 0.519score
bc-tenancy-advocacy
dmang69
BC tenancy advocacy advanced modules: judicial review escalation, human rights overlaps (BCHRT), strata/condo rentals, MHPTA manufactured home parks…
SkillCFreshness: C★ 3Claude Code +9 - 0.519score
bc-tenancy-procedure
dmang69
BC RTB procedure runtime: evidence packaging, witness prep, applications, negotiation, hearing strategy, document drafting, enforcement/collections.
SkillCFreshness: C★ 3Claude Code +9 - 0.519score
argument-architecture
dmang69
Structured argumentation skill — building rigorous arguments for legal submissions, thesis chapters, technical proposals, and anything requiring a defensible…
SkillCFreshness: C★ 3Claude Code +9 - 0.519score
bc-tenancy-substantive
dmang69
Deep BC Residential Tenancy Act knowledge: critical sections, bad-faith detection (renoviction, demoviction, caretaker loophole), eviction defence timelines…
SkillCFreshness: C★ 3Claude Code +9 - 0.515score
learning-mode
dmang69
Tutoring mode: diagnose first; one question + one scaffold per turn; hold the line under answer-seeking; integrity for graded work.
SkillCFreshness: C★ 3Claude Code +9 - 0.515score
canadian-court-downloader
dmang69
Canadian court document retrieval, BOA builder, batch downloader, duplicate detector, and OCR extractor.
SkillCFreshness: C★ 3Claude Code +9 - 0.514score
bc-legislation-admin
dmang69
BC Legislation Administrator and Legal Statutory Analyst.
SkillCFreshness: C★ 3Claude Code +9 - 0.513score
bc-judicial-review-guide
dmang69
Use when BC RTB/tribunal JR, Form 66, stay, or ATA s.57/s.58 work is needed.
SkillCFreshness: C★ 3Claude Code +9 - 0.512score
critical-reading
dmang69
Decompose dense documents: court/RTB decisions, affidavits, papers, specs, contracts.
SkillCFreshness: C★ 3Claude Code +9 - 0.512score
cognitive-awareness
dmang69
Proactive metacognition companion to self-improvement: situational awareness, epistemic calibration, reasoning checks, assumption audits, curiosity, synthesis.
SkillCFreshness: C★ 3Claude Code +9
Signals
- Stars
- 3
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Jul 23, 2026 (3 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/dmang69/bc-legal-ai
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from dmang69
- 0.565score
counsel-research-draft-pipeline
dmang69
Use when researching and drafting BC legal documents.
SkillBFreshness: B★ 3Claude Code +9 - 0.565score
critical-reading
dmang69
Skill for decomposing complex source documents — court decisions, academic papers, opposing affidavits, technical specifications, statutes, expert reports…
SkillBFreshness: B★ 3Claude Code +9 - 0.519score
bc-tenancy-advocacy
dmang69
BC tenancy advocacy advanced modules: judicial review escalation, human rights overlaps (BCHRT), strata/condo rentals, MHPTA manufactured home parks…
SkillCFreshness: C★ 3Claude Code +9 - 0.519score
bc-tenancy-procedure
dmang69
BC RTB procedure runtime: evidence packaging, witness prep, applications, negotiation, hearing strategy, document drafting, enforcement/collections.
SkillCFreshness: C★ 3Claude Code +9 - 0.519score
argument-architecture
dmang69
Structured argumentation skill — building rigorous arguments for legal submissions, thesis chapters, technical proposals, and anything requiring a defensible…
SkillCFreshness: C★ 3Claude Code +9 - 0.519score
bc-tenancy-substantive
dmang69
Deep BC Residential Tenancy Act knowledge: critical sections, bad-faith detection (renoviction, demoviction, caretaker loophole), eviction defence timelines…
SkillCFreshness: C★ 3Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get legal-file-assistant running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
legal-file-assistant skill. Agent Mart. https://agentmart.dev/skills/dmang69-legal-file-assistant (last updated 2026-10-24)