/verification-foundation:legal-request-router-enfrom verification-foundation
Triage for a legal request. Looks at the question (and optionally the finished deliverable) and decides which verification path to run: plain answer, citation checking, adversarial review, or the full route. Scores complexity and risk and returns a routing decision with its reasoning and an ordered list of skills to run. A layer above the verification layer: it stops routine work from burning tokens on ceremony, and stops high-stakes work from shipping unchecked. Jurisdiction-neutral. Use when: "what should I do with this", "does this need a full review", "which path", "classify this request", "is this high-stakes", "triage", "routing" - at the start of a new legal request, before picking tools.
Ships in verification-foundation. 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.
Not every request deserves the same path. Summarising a judgment does not need an adversarial review. An opinion going to a client should not leave without its citations checked. The router makes one decision at the start and picks a proportionate path: it saves effort on routine work and forces control where the stakes are real.
This skill does no legal work and no verification. It classifies, and it names which companion skills to run and in what order.
{
"task_type": "direct_answer | citation_check | adversarial_control | full_route",
"complexity": "low | medium | high",
"risk": "low | medium | high",
"has_source_citations": true,
"audience": "internal | client | court | regulator",
"needs_citation_check": true,
"needs_adversarial": false,
"needs_privilege_preflight": true,
"path": ["privilege-preflight-en", "citation-extraction-en"],
"reasoning": "short: why this path"
}
task_type first, in rising order of control, mapped one-to-one onto a path:
| Input signal | task_type | Control path |
|---|---|---|
| No citations, internal reader, low risk | direct_answer | no verification |
| Cites sources (judgment, statute, contract), internal reader | citation_check | citation-extraction-en |
| Reader is client, court or regulator; risk medium or higher | adversarial_control | citation-extraction-en then adversarial-legal-review-en |
| Deliverable leaves the firm, risk high | full_route | citation check, then adversarial review, then output-scoring-en as the final gate |
Then two flags, independent of task_type:
| Signal | Flag | Skill |
|---|---|---|
| Input carries client-identifying facts or material under professional secrecy | needs_privilege_preflight = true | privilege-preflight-en BEFORE anything else |
| Deliverable leaves the firm, or risk is high | final quality gate | output-scoring-en last |
Optional substitutions, when the question is narrower than the whole deliverable:
| Question being asked | Reach for |
|---|---|
| How does this land on a sceptical judge reading it cold? | judicial-first-impression-en |
| What will the other side hit first? | opposing-counsel-attack-en |
| Does the reasoning actually hold as a syllogism? | legal-syllogism-en |
| Are the clauses complete against a checklist? | clause-checklist-en |
| Which authority outranks which, across EU sources? | authority-triage-en |
reasoning.privilege-preflight-en returns a verdict and can prepare a redacted draft, but it
does not perform the final redaction and it sends nothing. A SAFE verdict is an
assessment, not a guarantee, and this hub ships no pseudonymisation engine of its own.
Where the path calls for redaction, a human does it or supplies their own tool. The
router names the step; it must never report it as done.
## Routing - <request name>
Type: full_route | Complexity: high | Risk: high | Audience: client
Path, in order:
1. privilege-preflight-en (client facts are present - check before any cloud model)
2. <the legal work itself> (outside this skill)
3. citation-extraction-en (3 case-law citations to verify)
4. adversarial-legal-review-en (high stakes: opinion going to a client)
5. output-scoring-en (final gate before it leaves the firm)
Reasoning: an opinion citing case law, going to a client, high risk, so the full route.
The router works on metadata about the request - type, risk, audience - and does not need
to see the full privileged text. When a fragment containing client data is genuinely needed
to classify, run privilege-preflight-en on it first.
Picking a proportionate control path operationalises the risk-based approach. The explicit
risk value together with reasoning records why a given level of control was chosen, which
is the kind of trace that makes oversight by a person possible rather than nominal.
Scope note: Article 14 of Regulation (EU) 2024/1689 requires human oversight of high-risk AI systems. Whether your use falls in that class depends on the deployment, not on this skill, and this skill does not decide it. The pattern here is useful either way; it is not a claim that running the router discharges an Article 14 obligation.
Routing pattern inspired by AnttiHero/lavern
(Apache-2.0, RouterClassification). Schema, decision table and rules written from scratch
against this hub's inventory. English counterpart of legal-request-router-pl, rebuilt
rather than translated: the Polish version routes to Polish-law skills that do not exist
here, and this one routes only to skills this repository actually ships.
These rules apply to every skill in this plugin, including where the skill itself is silent. They are copied into each skill, so they hold whether you install the whole plugin or a single skill.
If an error would pass without being stopped by layers 1-5, the fault is in the skill. Fix the tool, do not add a note. "This is not legal advice" stops no error and transfers no responsibility.
(GDPR Art. 6), (Case C-311/18, CJEU).[check on EUR-Lex].The tag sits next to the line it concerns. A case number that exists is not enough - check the content.
Nothing is sent, filed, signed or published before a qualified person checks and approves it. A skill output is a draft, not a finished document.
The verification foundation is jurisdiction-neutral - the method, not the substance of any one legal system. It connects to no external source (no MCP connectors) and makes no outbound calls of its own; what you type still goes to your configured model (see https://github.com/matematicsolutions/awesome-matematic-skills-en/blob/main/TRUST.md). Substance comes from separate plugins (eu-law-sources). Deep national law (e.g. Polish case law) lives in the Polish marketplace, by design.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub matematicsolutions/awesome-matematic-skills-en --plugin verification-foundation10 skills in this plugin
/adversarial-legal-review-enA red team for a high-stakes deliverable - takes a finished, high-stakes document (a legal opinion, a DD/M&A memo, a court/board submission, a recommendation) and runs an adversarial debate: a builder constructs the strongest version of the thesis, an attacker tears it apart with counter-arguments and contrary authority, a synthesizer reconciles, a verifier does a final check. Goal: find the weakness BEFORE your opponent, the court, or the client does. Cost-gated - for high-stakes work only, not every query (token-expensive). Use when: "attack this opinion", "red team", "devil's advocate for this document", "find the weaknesses", "stress-test the argument", "what will the other side say", "pre-mortem", "defend this thesis", "adversarial review", verifying a high-stakes deliverable before it goes out. English counterpart of adversarial-legal-review-pl (this version drops the Polish case-law layer and is jurisdiction-agnostic).
/citation-extraction-enExtracts the legal citations from an English-language text by pattern and rule, with no LLM in the extraction step, so the same text yields the same list every run - ECLI (CJEU and national), EU act identifiers (CELEX, Official Journal references, Regulation and Directive numbers), case names, and cited provisions (Article/section). It then normalises, deduplicates and resolves short references (ibid., id., supra, op. cit., the above-cited judgment) to their antecedent. The front end to verification: collect what is cited, then check it. Unusual or malformed citation formats can still be missed, so treat the output as a working list rather than a guarantee. Jurisdiction-neutral, EU-aware. Use when: "list every citation in this text", "what authorities are cited", "extract the provisions", "pull the case references", "what is cited here" - before verification or before sending.
/clause-checklist-enA clause checklist for a single contract - walks the contract against 41 clause categories (the CUAD taxonomy), assesses which of them this deal needs, and marks each applicable one present / absent / risky, so the clause that should be there but is missing does not slip through. Extractive (quotes the contract, does not paraphrase). Common-law native, jurisdiction-neutral framing. Different from a bulk audit - this goes deep on one contract and asks "what is missing and what bites here". Pairs with adversarial-legal-review-en and reviewer-en. Use when: "check the clauses in this contract", "what is missing from this agreement", "clause spotting", "contract checklist", "review a single contract", "which clauses are risky" - before signing, in negotiation, or in DD of one contract.
/deliverable-fidelity-enChecks whether the final document still carries what the analysis actually found. Takes the list of findings with their severities and the finished deliverable, runs a mechanical coverage check with a bundled zero-dependency script, then an LLM spot-check on the RED findings for tone-downgrading, and returns a deterministic verdict PASS / CONDITIONAL_PASS / FAIL from published weights and thresholds. An omitted RED finding blocks. The third axis of verification, next to citation checking (are the sources real) and adversarial review (does the thesis hold): this one asks whether the summary is faithful to the analysis. Jurisdiction-neutral. Use when: "does the summary cover everything", "did anything drop out of the executive summary", "fidelity check", "is the deliverable faithful", "check the memo against the findings" - before sending any document that summarises a longer analysis.
/intake-sufficiency-enScores whether an instruction or brief is complete enough to start work on. Before any legal analysis begins, checks that the purpose, scope, parties, facts, constraints and success criteria are actually present; lists the gaps and ambiguities; turns each gap into a question ready to send to the client; and drafts the skeleton of a matter card. Separates the client's legal assertions from facts and marks them for verification. The mirror of legal-request-router-en: the router decides what control the OUTPUT needs, this decides whether the INPUT is enough to begin. Jurisdiction-neutral. Use when: "do I have enough to start", "score this brief", "what is missing from this instruction", "what should I ask the client", "is this instruction complete", "gaps in the brief", "intake" - at the start of a matter, after first contact, after an intake call.
/judicial-first-impression-enAssesses a legal submission or structured argument from the perspective of a judge reading it COLD, under time pressure, with a docket of several hundred cases. Returns a structured seven-part assessment: what the case appears to be about, immediate points of confusion, what feels strong, what feels weak, what is assumed but unproved, a provisional confidence level (low/medium/high), and what would be needed to persuade. The skill does NOT rewrite, does NOT improve and does NOT attack the submission - it tells you how it actually LANDS on an experienced, sceptical reader with no prior context. Works on statements of claim, appeals, skeleton arguments, motions, position statements, pre-action letters and any structured reasoning. Use when: "how will the court read this", "first impression", "is this clear to the judge", "cold reader test", "how does this land", before filing a court submission.