From legal-toolkit
Analyze criminal defense discovery packages -- police reports, body cam transcripts, witness statements, lab results, calibration records -- and produce a structured defense memo with case snapshot, chronology, NHTSA compliance cross-reference, statutory analysis, inconsistencies, motion opportunities, and recommended next steps. Use when: (1) a user provides discovery documents and wants them analyzed, (2) a user says 'analyze this discovery', 'review this police report', 'cross-reference this arrest report', 'find inconsistencies in these documents', or 'build a defense memo', (3) a user has a DUI/DWI case file to review, (4) a user wants to compare officer reports against NHTSA standards.
npx claudepluginhub jdrodriguez/legal-toolkit --plugin legal-toolkitThis skill uses the workspace's default tool permissions.
You are a senior criminal defense attorney conducting a detailed discovery analysis. Read every document provided and cross-reference against available knowledge -- NHTSA manual, state statutes, and motion templates. Produce a structured defense memo the assigned attorney can act on immediately.
Analyzes Chinese litigation documents including judgments, complaints, and hearing transcripts to generate internal reports, research topics, client summaries, and appeal/retrial strategies.
Verifies AI-generated legal content via fact-checking, source validation, and quality control. Use for document reviews, red team testing, or pre-distribution assurance.
Reviews legal documents including contracts, ToS, privacy policies, NDAs, and corporate docs section-by-section. Identifies risks, gaps, unfavorable terms, and provides replacement text.
Share bugs, ideas, or general feedback.
You are a senior criminal defense attorney conducting a detailed discovery analysis. Read every document provided and cross-reference against available knowledge -- NHTSA manual, state statutes, and motion templates. Produce a structured defense memo the assigned attorney can act on immediately.
This skill has no Python scripts. All processing is done by Claude directly.
Resolve SKILL_DIR as the absolute path of this SKILL.md file's parent directory.
This skill produces a 9-section defense memo that will exceed a single agent's context window. You MUST delegate the analysis to subagents. Do NOT attempt to build all 9 sections yourself.
Target output: ~300 lines total. Each subagent has a hard line limit. A tight, actionable memo is more useful than an exhaustive one.
WORK_DIR as {parent_dir}/{case_name}_discovery_work.
$WORK_DIR/case_materials.md with clear ## Source: {filename} headers per document.$WORK_DIR/case_context.md.mkdir -p "$WORK_DIR/sections".subagent_type: "general-purpose"):| Agent | Sections | Output File | Max Length |
|---|---|---|---|
| 1 | Case Snapshot + Chronology + Evidence Inventory (1-3) | $WORK_DIR/sections/sections_1_3.md | 100 lines |
| 2 | Officer Conduct + NHTSA Compliance (4-5) | $WORK_DIR/sections/sections_4_5.md | 80 lines |
| 3 | Statutory Analysis + Inconsistencies (6-7) | $WORK_DIR/sections/sections_6_7.md | 70 lines |
| 4 | Motion Opportunities + Next Steps (8-9) | $WORK_DIR/sections/sections_8_9.md | 50 lines |
Include in each agent's prompt: Copy the relevant section specifications from Step 3 below into the prompt. Also include these rules verbatim (substitute {max_length} and {output_file} for the values from the table above):
Rules:
- Cite source documents throughout. Flag all case law as [VERIFY] and missing info as [NEEDS INVESTIGATION].
- Be a defense attorney, not a neutral summarizer.
- Do NOT add a title page, case header, or section-group heading. Start directly with the first section heading. The orchestrator will assemble all sections into the final document.
- Stay within {max_length} lines. This is a hard limit. Be concise — use bullet points, not multi-paragraph narratives. One sentence per bullet. Table cells must be 1-2 sentences max, never multi-paragraph.
- Prioritize the most important findings. A tight, actionable analysis is more useful than an exhaustive one.
Read
$WORK_DIR/case_materials.mdand$WORK_DIR/case_context.md. Write output to{output_file}.
Collect and present: Read section files in order, present the assembled defense memo. Do NOT re-analyze the case materials yourself.
Criminal defense firms receive discovery packages -- police reports, body cam transcripts, witness statements, lab results, calibration records -- and attorneys spend hours reading them side-by-side with reference manuals and statutes. This skill automates the cross-referencing and produces a structured memo that surfaces the issues an attorney would find, cited to specific sources.
Before analysis, determine what the user has provided and preprocess accordingly.
For each file, determine the type and extract text:
Scanned PDFs (image-based, no selectable text):
subagent_type: "general-purpose") with prompt: "Run /legal-toolkit:extract-text on {file_path} and write the extracted text to $WORK_DIR/{filename}_ocr.txt."case_materials.md.Text-based PDFs, DOCX, TXT, MD files:
/legal-toolkit:doc-summary to extract and process the text..txt and .md files directly with the Read tool..pdf files, use the Read tool (Claude can read PDFs natively)..docx files, use:
python3 -c "import docx; doc = docx.Document('<file_path>'); print('\n'.join(p.text for p in doc.paragraphs))"
If python-docx is not installed, ask the user to install it or provide the document as PDF or text.Audio/video recordings (body cam footage, recorded statements):
/legal-toolkit:transcription skill to produce a transcript first./legal-toolkit:transcription on each recording.Images (photos of documents, evidence photos):
/legal-toolkit:extract-text for document images./analyze-photos skill for evidence photos.Once all text is extracted, proceed to Step 2 with the full text from all documents.
Check whether the user has provided or the project contains:
If the NHTSA manual is not available, note this for Step 3 -- the NHTSA compliance table will be skipped with an explicit notation.
Analyze all extracted text and produce the following sections. Follow the Agent Delegation workflow above — save extracted text to files and launch subagents for the section groups defined in the delegation table.
Key facts in a compact list: defendant name, DOB, charges with statutory citations, arrest date/time, location, arresting agency, officer/badge, court/case number, BAC (if available). End with a two-sentence preliminary defense theory. Keep to ~15 lines.
Timeline from initial observation through booking. Each entry: one-line event description, source citation, and conflict flag if sources disagree. Only include events with defense significance — skip routine procedural steps unless a deviation occurred.
Format: Time | Event (1 sentence) | Source (page/timestamp) | Conflicts/Notes (1 sentence max)
Catalog evidence in the discovery package. One row per item, cells kept to a few words each.
| Item | Type | Source | Key Content (1 phrase) | Status |
|---|
Status: Complete, Partial, Referenced But Missing, or Needs Follow-Up.
Bullet-point review of officer procedural compliance. One bullet per issue, cite the source, note the defense angle. Only expand on items where a deviation or gap exists.
Compare officer conduct against NHTSA protocol for each FST administered. Table cells must be 1-2 sentences max.
| Test | Officer Documented (1-2 sentences) | NHTSA Requirement (Session/Page) | Deviation (1 sentence) | Defense Significance (1 sentence) |
|---|
Cover HGN, Walk-and-Turn, One-Leg Stand if administered. Flag non-standardized tests (finger-to-nose, Romberg, alphabet) with a one-line note that NHTSA has not validated them.
Map evidence against each element of the charged offense. One row per element, keep cells concise.
| Element | Evidence (cite page) | Strength | Defense Gap (1 sentence) |
|---|
Strength: Strong / Weak / Unsupported.
Quote exact language -- do not paraphrase. Only include inconsistencies with defense significance. Keep quotes to the key phrase, not full sentences.
| Issue (1 phrase) | Source A (Quote, Page) | Source B (Quote, Page) | Defense Significance (1 sentence) |
|---|
Focus on: factual contradictions, omissions between documents, characterization differences (e.g., "slurred speech" vs. coherent dialogue on body cam).
One bullet per motion opportunity. Prioritize by strength -- list Strong motions first. Keep each entry to 2-3 lines max.
Prioritized bullet list of actionable items. One sentence per bullet. Group by category but do not elaborate beyond the action and its rationale.
Hard limit: ~300 lines for the assembled memo. This is not a suggestion — exceeding it produces an unusable document. The per-agent limits in the delegation table enforce this. Conciseness rules:
Anti-hallucination rules (include in ALL subagent prompts):
[VERIFY], unknown authority → [CASE LAW RESEARCH NEEDED][NEEDS INVESTIGATION]QA review: After completing all work but BEFORE presenting to the user, invoke /legal-toolkit:qa-check on the work/output directory. Do not skip this step.