kvngnsn

Legal Guards — Testing skill for Claude Code

Testing community

Claude skill that catches the errors that make AI legal analysis read well but come out wrong: 19-class error taxonomy, guard table, review-sheet script, and a pre-registered test on Harvey's LAB benc.

How to install Legal Guards

This entry records only its repository, not the path inside it, so there is no exact command to give. Open kvngnsn/legal-guards and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Legal Guards does

Claude skill that catches the errors that make AI legal analysis read well but come out wrong: 19-class error taxonomy, guard table, review-sheet script, and a pre-registered test on Harvey's LAB benchmark.

Alternatives in Testing

  • Skill Debug — Debug issues methodically — use when stuck on errors, test failures, or unexpected behavior 2.8k ★
  • Superpowers Evals — Behavioral eval lab (Quorum) for the superpowers project that drives real coding-agent CLIs (Claude, Codex, Ge 107 ★
  • UX Component — Generate a single component (button, modal, navbar, sidebar, card, table, form, chart) from a spec 66 ★

README

legal-guards

A Claude skill that catches the errors that make AI legal analysis read well but come out wrong: party swaps, misapplied holdings, rules used against parties they don't bind, skipped elements, missed facts, quotes the source never says, and bad date math.

What it does

  • Guard table before drafting. One row per issue: who acts, whom the point helps, which regime governs, whom the rule binds, every element with its fact, the source words that carry it, the counterargument, and the result under each reading.
  • Review sheet after drafting. scripts/review_sheet.py lists every sentence likely to hide a structural error, so a reviewer checks each one instead of sampling:
    • instructions the draft barely touches;
    • authorities not found in the record;
    • quotes that aren't verbatim;
    • "X argues" sentences, each with a test of whom the point helps;
    • absolute claims;
    • intervals, and dates and figures that appear in no source;
    • repeats, and word counts per heading.
  • A 19-class error taxonomy (authority, structure, coverage, facts and numbers, process). Each class has a prevention step and a review test: `references/error-taxonomy.md`.
  • Blind-review protocol for teams or subagents: re-derive before reading, verdicts need sources, fix packets, blind selection among drafts (`references/blind-review.md`).

Quick start

As a Claude Code skill:

git clone https://github.com/kvngnsn/legal-guards ~/.claude/skills/legal-guards

Then ask, for example: "Use legal-guards to review this memo against the documents in ./record."

The review sheet on its own (Python 3.9+, standard library only; `.pdf` sources need `pdfplumber` or `pdftotext`):

python3 scripts/review_sheet.py draft.docx --sources ./record --asks assignment.md

To see it work, run it on the worked example, a fictional lease dispute with seven planted errors (answer key in `examples/memo-r