legal-quality-gate
Skill0 starsChanged 4 months agoApache-2.0View on GitHub
Perform an independent final audit of legal work product for matter isolation, confidentiality, privilege labeling, source completeness, facts, current authority, citations, quotations, arithmetic, dates, defined terms, internal consistency, adverse material, approvals, and prohibited external actions. Use before a legal draft is relied on, negotiated, signed, published, sent, filed, served, submitted, or presented for decision.
In this repository16 other files it gives its agents.
- ai-product-marketing-reviewSkill
- compliance-privacy-assessmentSkill
- contract-draftingSkill
- contract-obligationsSkill
- contract-redlining-and-negotiationSkill
- contract-reviewSkill
- legal-citation-auditSkill
- legal-due-diligenceSkill
- legal-intake-and-routingSkill
- legal-meeting-briefingSkill
- legal-research-memoSkill
- legal-response-draftingSkill
- legal-risk-assessmentSkill
- litigation-draftingSkill
- litigation-preservation-and-discoverySkill
- nda-triageSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 37
Never convert a quality PASS into legal advice, filing acceptance, enforceability, compliance certification, or authorization to act.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Legal Quality Gate
Audit the work product independently from the drafter's theory. For a genuine independent gate, use a fresh context or separate session supplied only with the frozen artifact, cited sources, matter boundary, and intended use—not the drafter's chain of thought or advocacy framing—and identify a different qualified human reviewer. If that isolation is unavailable, label the result STRUCTURED SELF-REVIEW, never INDEPENDENT, and do not treat it as satisfying a required independent review. A polished document fails if its sources, authority, facts, logic, approvals, or action status are unreliable.
Before processing sensitive matter content, verify the configured model service and any required client or engagement AI-use permission. If the first message already contained sensitive content, disclose that the check could not prevent the initial transmission, avoid repeating the content, and stop or re-scope to an authorized redacted or synthetic record while any condition remains unresolved.
Apply the common standard
Read and follow:
- ../../references/legal-work-product-standard.md
- ../../references/authority-and-citation-standard.md
- references/quality-gate.md
Workflow
- Freeze the exact artifact version and identify matter, audience, purpose, jurisdiction, forum, as-of date, source set, drafter, decision owner, attorney reviewer, and intended next action.
- Audit matter isolation and information handling: no cross-matter leakage, unnecessary sensitive data, unsupported privilege promise, or internal material in an external draft. Confirm the configured model service/product and relevant data-handling controls were verified, and any required engagement/client AI-use disclosure, authorization, or consent is documented.
- Audit source completeness: correct versions, full documents, exhibits, amendments, attachments, signatures, record cutoff, and disclosed access limitations.
- Audit every consequential fact, number, date, quotation, defined term, cross-reference, calculation, exhibit, party name, and source location. Recompute arithmetic with scripts/decimal_check.py or another documented deterministic method, preserve the inputs/output, and require human verification when consequential.
- Audit law and citations with
$legal-citation-audit: jurisdiction, hierarchy, current text, treatment, adverse authority, proposition, pinpoint, quotation, and record support. - Audit reasoning: correct issue, rule, application, counterargument, burden, posture, assumptions, confidence, and conclusion scope. Challenge the strongest conclusion and search for omitted contrary facts or authority.
- Audit contract or document integrity as relevant: obligations, remedies, liability interactions, deadlines, precedence, lifecycle, signatures, filing rules, and operational feasibility.
- Audit decisions and approvals: distinguish recommendation, business choice, legal conclusion, authorized concession, and final approval. Confirm named humans own each consequential decision.
- Audit external-action state. Verify the artifact has not been sent, filed, served, signed, executed, published, submitted, calendared, approved, rejected, or used to change a record unless separately authorized and evidenced.
- Assign
PASS,PASS WITH CONDITIONS, orFAIL. A blocker cannot be waived by the auditor; identify the qualified owner who may resolve it.
Output
Provide the frozen version identifier, gate result, blocker list, correction log, verification coverage, residual uncertainty, required approvers, intended-action status, and candid handoff.
Never convert a quality PASS into legal advice, filing acceptance, enforceability, compliance certification, or authorization to act.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

