Legal Guards — Testing skill for Claude Code
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.pylists 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
Related Skills
Blueprint Maker
Turns a 3D model or a 2D image into a technical blueprint sheet. Hidden-line views, dimension lines, numbered
Red First Review Skill
Review a PR by measuring which of its own guards its own test suite actually catches. Neutralise each guard, r
Agent Shopping Arena
GPT-6 Sol vs Claude Opus 5.5: same Playwright harness, same 10 shopping tasks on real DTC stores, plus a live
Flow QA
QAフローを強制実行(Content QA → Legal Compliance → Fact Check → Final Review)
OpenFounders
Stress test relacji wspolnikow sp. z o.o. - otwarty skill AI (Claude Code / Cowork / Codex) od kancelarii Crea
Zeta
A retro-style TUI File explorer, remember Norton Commander and the like? well, this is my take in Rust while t
Related Agents
Kernel Testing Critic
Specialist critic for linux-kernel-dev answers · scores ONLY testing — does the answer come with correct, well
Green TDD
Green TDD hardener. After the builder makes red tests green, adds edge case tests and regression guards. Cheap
Cr Boundary Guard
Guards the project's declared critical dimension — data isolation between tenants/accounts/users, authenticati