/legal-research:proofreadfrom Legal Research Skills
Proofreads article drafts for typos, grammar, missing/doubled words, editing residue, and internal consistency (hyphenation, capitalization, defined terms, cross-references). Returns a location-ordered report with verbatim find-strings. Input: .docx or markdown.
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; scripts run unread.
An internal proofreading pass over an article draft — the prose itself, not the citations. Deterministic scripts do extraction, chunking, and the mechanical lint (doubled words, footnote-call-before-punctuation, unbalanced quotes/parens, supra/infra note-number direction breaks, Part-label existence, heading-outline rules) for near-zero tokens; model agents read every sentence chunk-by-chunk, two whole-document agents adjudicate consistency (hyphenation, spelling, capitalization, terminology drift, TOC staleness, roadmap-vs- structure), and a mandatory skeptical re-verification of every candidate finding keeps false positives out of the report (the cite-check lesson: no finding ships unvetted).
Scope of the citation side (recalibrated 2026-07-14 after the Codex-memo comparisons):
the deterministic layer DOES check mechanical citation typography and internal citation
consistency — unfilled _/__ placeholders, Id.., §-spacing, U. S., signal commas,
mixed signals ("see also generally"), mid-cite (citing Id.) capitalization, missing
terminal punctuation, page-range dash style, pincites below a cite's own first page,
year-shaped pincites ("596 U.S. 845, 2017 (2022)"), full case cites missing their decision
year, U.S.-Reports volume↔year sanity (585 U.S. can't be 2013), the same case cited with
different volumes across footnotes (signal words stripped before keying — the Jardines
lesson), Name, supra note N targets that don't contain that name, and a ≥12-word passage
repeated nearly verbatim in a nearby paragraph (duplicated-quotation residue). None of that
needs an external source.
SHORT FORMS (added 2026-08-10 on reader feedback): a full citation repeated within
Bluebook R. 10.9's five-footnote window where the short form belongs; a case short form
stranded past that window, or with no full cite before it anywhere; a secondary source
cited in full twice when R. 4.2 calls for Author, supra note N. All decidable from the
draft alone — see ${CLAUDE_PLUGIN_ROOT}/skills/legal-research/bluebook-typeface-and-short-forms.md
for the rules as applied.
TYPEFACE (added 2026-08-10, .docx only): the extractor now resolves run properties
(w:i, w:smallCaps, w:caps) through character and paragraph styles, so italics and
small caps ARE checked — signals/Id./supra left roman, the note N after an italicized
supra wrongly italicized, italics spilling onto the comma before a citation, small caps
broken mid-word, and case-name italicization against R. 2.1(a) (roman in a full cite
standing in a citation clause, italic in a textual sentence or short form). This also
fixes the reverse problem: an ALL-CAPS Part header is stored as ordinary text with the caps
coming from the style, so proofers used to argue about the capitalization of words the
reader never sees that way. Those paragraphs now carry a display flag and are off-limits
for capitalization findings.
What it is NOT: citation/quotation verification against real sources (that's
/cite-check — the two compose: proofread the prose, cite-check the authorities), a full
Bluebook linter (signal order, citation order, and full-cite composition stay out of
scope), or a substantive editor. Suspicious text INSIDE quotations is never asserted as a
draft error — it ships as an author query ("verify this quote against its source").
Indentation and block-quote layout remain invisible; on the markdown fallback path the
whole typeface layer is switched off rather than guessed at.
.docx is canonical; .md/.txt with pandoc
footnotes works.chunkFiles; fuzzy dedup + verify absorb the overlap.
Calibration (2026-07-14, NOTES.md) showed single-pass proofreading is stochastic —
~75–80% overlap between two same-model passes, each catching real errors the other
missed — so a second offset pass buys far more recall than smaller chunks alone. Also
smaller verify batches and a higher soft cap. Turn on for a near-final draft.Model map: proofers Opus (Fable with the flag); consistency, verify, and report always inherit the session model — verify is the false-positive gate and the report is the deliverable, so those never run on a smaller model.
../DESIGN-upfront-dialog.md)Unless the request already settles both, ASK before doing anything else — one
AskUserQuestion carrying up to two questions, up front, so the choices are made before the
snapshot rather than surfaced as an offer after a standard run has already finished. Depth changes the
extraction (step 3 runs the extractor once or twice), so it cannot be changed later
without re-running.
Skip a question the request already settles, by dropping it from the call — never ask it with a preselected default. "Deep", "thorough", "near-final", "pre-submission", "call in fable", "use the big model", "quick pass", "standard" settle Depth; "style", "flag confusing sentences", "editing too" settle Style on, and "just proofread" or "typos only" settle it off. Don't re-ask what they just told you. Also skip on an explicit re-run of a configuration already chosen this session. When both are settled, make no call.
Question 1 — Depth (header Depth), three options in escalating order:
| Option | Args | What to say |
|---|---|---|
| Standard — one pass | deep:false, fable:false | One 1800-word-chunk pass, Opus proofers. Good for a working draft or a quick check. |
| Deep — two offset passes | deep:true, fable:false | Two independent passes (1800 + 1200 chunk boundaries). In one calibration run this surfaced roughly a quarter more confirmed findings at no wall-clock cost (the wider fan-out parallelizes) — one draft's numbers, not a guarantee. For a near-final draft. |
| Deep + Fable | deep:true, fable:true | Deep, plus the per-chunk proofers on Fable. The final pre-submission read. |
Give the real reason in the option descriptions, not just labels: single-pass proofreading is stochastic (~75–80% overlap between two same-model passes — each misses real errors the other catches), so depth buys recall that a better per-pass model does not. Don't tag a default "(Recommended)" — the right tier depends on how near-final the draft is, which the user knows and you don't. If they say, note it and move on.
Question 2 — Style (header Style), in the same call:
| Option | Args | Description shown |
|---|---|---|
| Off (default) | style:false | Proofreading only: typos, grammar, missing or doubled words, consistency. |
| On | style:true | Also flags confusing sentences and unintended repetition, in a clearly separated section. This is editing, not proofreading, and it is opinion; turn it on when you want a second reader's reactions. |
An earlier version of this step kept style out of the dialog because a second decision
"taxes every run." That reasoning predated multi-question dialogs: one AskUserQuestion call
now holds up to four questions in a single interaction, so the tax is one more row in a dialog
that already appears, not a second interruption — and a user who does not know the option
exists never finds it otherwise. Fable stays inside the Depth ladder, not a question of its own.
When AskUserQuestion is unavailable (a headless or scheduled run), use the defaults —
Standard, style off — and state them in the deliver message and the report footer.
Live OneDrive/Word co-authoring changes the file between reads — the smoke-test draft gained/lost footnotes across three reads in one morning. Copy the draft to the session scratchpad first and run everything off the snapshot; record the snapshot time for the report header.
cp "<draftPath>" "<scratch>/snapshot.docx" && chmod a-w "<scratch>/snapshot.docx"
Record the snapshot time; the extractor computes the snapshot's SHA-256 (in proof.json)
— both go into the workflow args and appear in the report header as provenance.
The draft is read-only to this skill — structurally, not just by convention. The
original draft's path goes into the cp above and NOWHERE else: never into Workflow args,
never into an agent prompt. Everything downstream reads only the write-protected snapshot's
extraction artifacts, and every workflow agent runs as the Explore type (no Edit/Write
tools). Explore agents do keep a shell, which the workflow uses to grep the snapshot, so
the guarantee rests on the path never reaching an agent and on the snapshot being
write-protected, not on the agent type alone. The ONLY file this skill ever creates outside the scratchpad is the
report (step 5) — a new .md next to the draft, written by you, never the .docx itself.
python3 ${CLAUDE_PLUGIN_ROOT}/skills/proofread/scripts/extract_proof.py "<scratch>/snapshot.docx" "<scratch>/proof"
Default chunking is 1800 words — sized so each proofer reads carefully rather than skims.
For deep, run the extractor a SECOND time into a separate outdir with
--chunk-words 1200 and concatenate both runs' chunk_files into the workflow's
chunkFiles (use the 1800 run's proof.json/fulltext.txt as outDir; the snapshot is
identical so paragraph ids line up). Prints a summary (paragraph/footnote/
word counts, chunk_count, lint_finding_count…). It writes <scratch>/proof/proof.json,
fulltext.txt, and chunks/chunk-NN.json.
tracked_insertions/tracked_deletions true: the extractor reads
the accepted text and skips tracked deletions — tell the user and ask whether to
accept-all first if the draft is heavily marked.formatting_available, typeface_findings,
short_form_findings and all_caps_headings. formatting_available: false means a
markdown/plain-text draft — say so at deliver time, since the typeface section will be
absent.proof.json (compact, no indent):
python3 -c "import json;d=json.load(open('<scratch>/proof/proof.json'));print(json.dumps({'chunkFiles':d['chunk_files'],'lintFindings':d['lint_findings'],'headings':d['headings'],'noteParas':d['note_para'],'sha256':d['sha256'],'formatting':d['formatting'],'counts':{'paragraphs':d['paragraph_count'],'footnotes':d['footnote_count'],'words':d['word_count']}}))"Workflow({
scriptPath: "${CLAUDE_PLUGIN_ROOT}/skills/proofread/proofread.workflow.js",
args: {
skillsDir: "${CLAUDE_PLUGIN_ROOT}/skills", // where the bundled helper scripts live
outDir: "<scratch>/proof", // agents read fulltext.txt + proof.json here
draftName: "<draft filename without extension>",
chunkFiles: <proof.json chunk_files>,
lintFindings:<proof.json lint_findings>,
counts: { paragraphs, footnotes, words },
headings: <proof.json headings>, // [{para,label,text}] — report location paths
noteParas: <proof.json note_para>, // note -> referencing ¶ (for paths on n.N)
sha256: <proof.json sha256>,
formatting: <proof.json formatting>, // typeface layer; available:false on .md drafts
snapshotTime:"<when the snapshot was taken>",
deep: false,
style: false,
fable: false // true => proofers on Fable instead of Opus
}
})
Pipeline: the whole-document consistency agents launch first and run alongside the
per-chunk proof fan-out — usage, structure, and (on .docx) typeface, the one stage that
reads fulltext_fmt.txt and is allowed to reason about italics; every candidate finding
(proof + consistency + typeface + deterministic lint)
is deduped and then re-derived by a skeptical verify agent that Greps the flagged passage
out of fulltext.txt and re-reads it in context; only confirmed findings reach the report,
sorted into draft order. Spend-guarded (soft cap ~250k lean / ~400k deep); runs in the
background and notifies on completion. No web access needed — the whole run is local.
The workflow returns { report, counts, exitState, degradation, rejectedFindings }.
report to <draft's directory>/<draftName> — Proofread.md (next to the draft).Topic: / Date: / By:); the
Production details: block goes at the very end of the file (after everything
else, set off by a --- rule) — never up top. Date is local time
(date "+%Y-%m-%d %H:%M %Z" when writing the file); By is Claude-<orchestrating session model> (exact id); Production details names the skill, the workflow-agent
model(s) actually used (read them off the run's per-agent progress entries — don't
assume the model map), the wall-clock duration, and the token count — from the workflow
completion notification's <usage> block (duration_ms, subagent_tokens,
agent_count), labeled subagent output tokens (orchestrator overhead not included).
Example header:
Topic: Proofread of <draft name>
Date: 2026-07-14 15:05 PDT
By: Claude-fable-5
Example footer (last lines of the file):
---
Production details: Claude Code /proofread; 8m 25s; 664,041 subagent output
tokens across 24 agents (workflow agents Claude Opus 4.8)
exitState and any degradation (e.g. likely-severity findings shipped
unvetted under budget pressure) and offer a targeted re-run.python3 ${CLAUDE_PLUGIN_ROOT}/skills/legal-research/md2docx.py "<report>.md" "<report>.docx" "<Title>"..docx, italics/small caps WERE checked
against the document's real run formatting (block-quote layout and indentation were not);
on a markdown draft, no formatting was visible at all. Citation substance is never
checked here — /cite-check covers the authorities.cp) and never reaches the workflow; the snapshot is chmod a-w; all
agents run as the Explore type, which has no file-editing tools (it does have a shell,
so the first two protections are the ones that matter). This skill reports findings — it
never applies them. If the user wants fixes applied, that is a separate, explicit request
outside this skill, made against the live draft with their eyes on it.fulltext_fmt.txt. Every other stage sees plain text and must not
guess. Indentation and block-quote layout are invisible to all of them. If
formatting.available is false (markdown draft), no typeface claim may ship at all.locLabel()
renders these — keep any future report changes on that convention.style was
requested, and then clearly separated as optional.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
proofreading, editing, draft-review, consistency-check, legal-writing
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./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.Other plugins' skills for the same job