/legal-research:case-prepfrom Legal Research Skills
Downloads SCOTUS case documents (briefs, opinions, transcripts) and uploads them to a reMarkable tablet in a per-case folder. Useful for podcast prep, class research, or legal writing.
Ships in Legal Research Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Given a case name (and optionally a docket number), collect the canonical
reading set and upload it to the tablet under <Project>/<Case>/.
%PDF before uploading. Never hand-construct a
document URL and assume it worked — fetch it and check.NN-NNN, e.g. 24-316). Good confirming sources:
supremecourt.gov, SCOTUSblog's case page, Oyez.Docket page (index of every filing, with PDF links):
https://www.supremecourt.gov/search.aspx?filename=/docket/docketfiles/html/public/<DOCKET>.html
Fetch it and extract the DocketPDF links. Entry text identifies each
filing ("Petition for a writ of certiorari filed", "Brief of petitioner",
"Brief amicus curiae of United States", etc.).
Default document set (in reading order — skip whatever doesn't exist yet; note it in the manifest):
| # | Document | Source |
|---|---|---|
| 00 | Questions presented | https://www.supremecourt.gov/qp/<TERM>-<5-digit-zero-padded-number>qp.pdf (e.g. docket 24-316 → 24-00316qp.pdf) |
| 01 | Lower-court opinion | CourtListener (below) |
| 02 | Cert petition | docket page |
| 03 | Brief in opposition | docket page |
| 04 | Cert-stage reply | docket page |
| 05 | Petitioner's merits brief | docket page |
| 06 | Respondent's merits brief | docket page |
| 07 | Merits reply brief | docket page |
| 08 | U.S. / SG amicus brief (if any, either stage) | docket page |
| 09 | Oral-argument transcript (if argued) | https://www.supremecourt.gov/oral_arguments/argument_transcripts/ — links follow .../argument_transcripts/<TERM>/<docket>_<suffix>.pdf; find the real link on the term's transcript index page |
Other amicus briefs: don't download them all by default (there can be dozens). Tell the user how many were filed and offer to add specific ones.
Lower-court opinion via CourtListener: search
https://www.courtlistener.com/api/rest/v4/search/?q=<case name>&court=<lower court id>
or the website search, matching the docket number / caption from the cert
petition (the petition's first pages identify the opinion below precisely).
Then resolve and download the PDF deterministically with the legal-research
skill's helper (prefers CourtListener's stored copy, falls back to the
court's own file, verifies %PDF magic before saving):
python3 ${CLAUDE_PLUGIN_ROOT}/skills/legal-research/cl_case_tools.py pdf cluster:<cluster_id> --out "01 Lower-court opinion.pdf"
(cluster_id comes from the search result; a reporter cite works too once
one exists). If no PDF is on CourtListener or the court's site, the cert
petition's appendix contains the opinion below — flag that as the fallback
rather than uploading something unverified.
Use a browser-plausible User-Agent for supremecourt.gov (it 403s bare
curl): curl -sL -A "Mozilla/5.0" -o <file> <url>.
Tools: the remarkable_* MCP tools (if not loaded:
ToolSearch "select:mcp__remarkable__remarkable_upload,mcp__remarkable__remarkable_mkdir,mcp__remarkable__remarkable_browse"
— adjust prefix to whatever the connected server exposes).
crop_pdf.py on every PDF so
documents open margin-free on the tablet (the user shouldn't have to adjust
borders by hand):
uv run <this skill's directory>/crop_pdf.py <file.pdf>
A nonzero exit means no plausible content box was found — upload that
file uncropped rather than failing.remarkable_mkdir → <Project>/<Short Caption> (e.g.
SCOTUS Prep/Smith v. Arizona).NN Title.pdf per the table (keep the numbers so
they sort in reading order), e.g. 02 Cert Petition.pdf,
06 Respondent Merits Brief.pdf.remarkable_browse the folder afterward to confirm everything landed.Give the user a manifest: caption, docket number, argument date/status, each document uploaded (with filing date where the docket shows it), each document not available and why, companion cases, and the amicus count with an offer to pull specific ones.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
7 skills in this plugin
/build-libraryBuild or extend a Zotero collection of verified sources for a project — find the sources (web, catalogs, HeinOnline via an institutional library proxy), add them with full metadata via the Zotero Web API, then run a deterministic anti-hallucination check that every added item must pass. Trigger when the user wants sources gathered into Zotero ("build a library for X", "add the books/articles on X to my Zotero", "populate <collection> with …")./cite-checkVerify every citation and quotation in an article draft against the real sources — cases via CourtListener + official reporters, scholarship via the user's Zotero library then the open web — and return a graded, footnote-by-footnote report with a "needs your attention" section first, an advisory subsequent-history and treatment section (Bluebook R. 10.7 history the draft omits; cases a later decision overruled or limited), a "since the last report" diff on re-runs, plus a citation-form section (short cites per Bluebook R. 10.9/4.2 and italics/small caps per R. 2.1(a)) decided from the draft alone, and an OPT-IN proposition-support pass that reads each unquoted cite at its pincite and says whether it supports the sentence it hangs on (overstatement is reported as a confirm item, never an error). Trigger when the user wants a draft cite-checked ("cite-check this", "check the citations/quotes in this draft", "run cite-check on <file>"). Input: a .docx with real Word footnotes (markdown/plain-text fallback). Not a full Bluebook linter — signal order, citation order and cite composition stay out./find-citeQuick, verified citation-finding for a specific proposition — a footnote-filler, not a research memo. Returns a few Supreme Court cites and/or a few scholarly cites (top scholars in flagship journals preferred; student notes only as a last resort), each verified with a pincite and a parenthetical or quote. Trigger when the user asks "find me a cite for X", "what should I cite for this footnote", "I need authority for the proposition that…", or pastes a sentence with an empty footnote./legal-researchDeep legal research that fans out multiple agents across free legal sources, verifies every authority, and returns a polished, well-cited memo. Use for case-law research, legal-scholarship / literature reviews, or both. Modes — caselaw | scholarship | both. Trigger when the user wants a thorough doctrinal memo, a survey of the academic debate, an answer grounded in cases/statutes, or a research deep-dive on a legal question./proofreadProofread an article draft's prose — typos, grammar, missing/doubled words, editing residue, and internal consistency (hyphenation, capitalization, defined terms, Part/TOC/note cross-references) — returning a location-ordered report with verbatim Cmd+F find-strings. Trigger when the user wants a draft proofread ("proofread this", "proofing pass on <file>", "check the draft for typos/consistency"). Input: .docx (canonical) or markdown. NOT a cite-checker (that's /cite-check), NOT a Bluebook linter, NOT a substantive editor./setupOne-time, conversational setup for the legal-research plugin — checks Python, saves and tests the user's CourtListener token, pre-allows web tools, offers automatic plugin updates, and (optionally) registers a Zotero library, all from inside Claude Code so the user never edits a configuration file. Trigger on /legal-research:setup, on a request to set up the legal research tools, to find out where a CourtListener token goes, to turn automatic updates of this plugin on or off, or to connect a Zotero library, or when another skill in this plugin finds the CourtListener token missing.npx claudepluginhub danepps/legal-research-skills --plugin legal-researchOther plugins' skills for the same job