/legal-research:setupfrom Legal Research Skills
Guides users through one-time setup of the legal-research plugin: checks Python, saves and tests a CourtListener token, configures web access, automatic updates, and optional Zotero connection — all from within Claude Code.
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.
The user is probably a law professor, not a programmer. They installed this plugin by pasting
one line and want everything else to happen in this conversation. Do the work for them, explain
each step in one plain sentence, and never ask them to open a file, the Terminal, or a text
editor. Everything below is done with ${CLAUDE_PLUGIN_ROOT}/skills/setup/setup.py, which
backs up any file it rewrites and never removes a setting it did not add.
Run the steps in order. Skip anything the status report shows is already done, and say so in a few words, such as CourtListener, already working. Keep the whole exchange short.
python3 "${CLAUDE_PLUGIN_ROOT}/skills/setup/setup.py" status
python3 is missing or the command fails to start: on a Mac the first use of python3
opens a dialog offering to install the command line developer tools. Tell the user to click
Install, wait for it to finish (a few minutes), then type /legal-research:setup again. On
Windows, tell them to install Python from python.org (tick the option that adds python to PATH), restart the
app, and run setup again.python.ok is false (older than 3.11): same advice, with the current python.org installer.If courtlistener.works is true, say so and move on.
Otherwise explain, in two sentences, that CourtListener is the free, nonprofit case-law database the skills use to confirm that a cited case exists and says what the draft claims, and that it needs a free account. Then give the user these exact steps and wait for their reply:
When they paste it, run:
python3 "${CLAUDE_PLUGIN_ROOT}/skills/setup/setup.py" courtlistener "<token>"
The script tests the token with a live lookup of Brown v. Board of Education before saving
it to ~/.config/courtlistener/token, readable only by the user. Exit 0 means it works, and
it works immediately, with no restart. On HTTP 401 the token was mistyped or truncated: ask
them to copy it again. On a network error, say CourtListener could not be reached and offer
to retry.
Tell the user, once, that the token now lives on their own computer, that the pasted copy also sits in this conversation's history, and that if that ever worries them they can generate a new token on the same CourtListener page and run setup again.
If either web_permissions entry is false:
python3 "${CLAUDE_PLUGIN_ROOT}/skills/setup/setup.py" allow-web
One sentence to the user: the research skills look things up on the open web, and this lets them do so during a long run without stopping to ask each time.
cite-check, proofread, and legal-research run as multi-agent dynamic workflows. Claude turns
these on by default for Max, Team, and Enterprise plans but not for Pro. The switch is a
setting, so just set it; it is harmless on a plan that already has it on. If
enableWorkflows in the status report is not true:
python3 "${CLAUDE_PLUGIN_ROOT}/skills/setup/setup.py" enable-workflows
One sentence to the user: this lets the bigger skills split the work among several agents, and
it takes effect the next time they start a session. (It is the same switch as the Dynamic
workflows row in /config; docs: https://code.claude.com/docs/en/workflows.)
Say first that this step is optional and that every skill except build-library works without Zotero, checking articles against the open web instead. Then ask whether they keep their sources in Zotero, and say that if so you can connect the library so cite-check and find-cite search it before the web, and that they can answer skip now and run setup again later. Treat anything but a clear yes as skip, and never present a missing Zotero as a problem in the final checklist; show it as not connected (optional).
If yes and zotero.servers already lists a server, say so and move on.
Otherwise:
If zotero.uvx_installed is false, the Zotero connector needs a small helper program
called uv. Tell the user you are installing it, then run
curl -LsSf https://astral.sh/uv/install.sh | sh (Mac) or
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex" (Windows).
If the install fails, say so plainly, skip Zotero, and note that the rest still works.
Give the user these steps and wait:
Run:
python3 "${CLAUDE_PLUGIN_ROOT}/skills/setup/setup.py" zotero --key "<key>" --library-id <userID>
For a shared group library, add --type group --name zotero-<short-name> with the group's
number (the digits in its zotero.org/groups/NNNN URL) as the library id.
Tell the user the Zotero connection takes effect the next time they start Claude Code (in the desktop app: close the session and open a new one).
Claude Code updates a plugin on its own only when the marketplace it came from has
auto-update on, and for this marketplace (danepps) that is off unless the user turns it on.
The switch is a setting, the same autoUpdate field that the Enable auto-update choice under
/plugin > Marketplaces writes, so the script sets it; no terminal command or file editing.
Read auto_update in the status report first:
effective is on: say automatic updates are already on and move on. Never turn them off
unless asked.
effective is not registered: the plugin was not installed from the danepps
marketplace (for example, it was loaded from a folder), so there is nothing to update
automatically. Say so in one sentence, show automatic updates as not available in the
checklist, and move on; this does not affect anything else.
Otherwise ask once, and wait for the answer:
Would you like this plugin to receive future updates automatically? Claude checks when you start a session, and new sessions use the updated skills. You can turn this off later by asking me to.
Treat anything but a clear yes as skip. Skipping changes nothing and must not hold up the rest of setup. If the user already asked for automatic updates in their own words, skip the question and run the command.
For a yes:
python3 "${CLAUDE_PLUGIN_ROOT}/skills/setup/setup.py" auto-update on
Report what the script read back, not what the user said: the JSON's auto_update.effective
is the state. If it is on, the checklist line is automatic updates: on (verified in
settings). If the output carries a warning naming a variable such as DISABLE_AUTOUPDATER,
the setting is saved but Claude Code's whole update pass is switched off by that variable;
tell the user which variable, that it was set outside this plugin (usually in a shell profile
or the env block of ~/.claude/settings.json), and that updates will run once it is
removed; the checklist line is then automatic updates: not confirmed, blocked by
<variable>. If the command exits 1, read its next_step to the user and show automatic
updates: not confirmed.
Three things to know: the setting takes effect in the next session; it governs every plugin
installed from danepps, not this plugin alone; and an update changes files on disk only,
so a running session keeps what it loaded until a new one starts.
To turn updates off later (the user asks, in any words), run the same command with off,
and read effective back the same way.
Re-run status and show the final checklist. Then, in two sentences: they are ready; to try
it, open a folder that holds a short draft (in the desktop app, the folder picker at the top;
in the Terminal, cd to it first) and type cite-check this draft. If this run turned on
workflows, automatic updates, or Zotero, say that those take effect in a new session, so they
should start one first. Mention that the first cite-check asks for approval before it launches its
workflow, and that choosing Always avoids the question next time.
Do not install anything else, do not touch files other than the three the script writes, and do not read or echo the token or key back after saving them.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub danepps/legal-research-skills --plugin legal-research7 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 …")./case-prepGather the full document set for a SCOTUS case being prepped for a podcast episode, class, or article — cert-stage filings, merits briefs, lower-court opinion, questions presented, and oral-argument transcript — and load them onto the user's reMarkable in a per-case folder. Manual trigger — use when the user says "prep <case>", "grab the briefs for <case>", "load up <case>", or similar./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.Other plugins' skills for the same job