legal-skills
AGENTS.md86 starsChanged 6 months agoMITView on GitHub
When a legal task involves a document, report, memo, case compilation, pleading, evidence list, legal opinion, client-facing material, court-facing material, or any .docx output, classify the deliverable before writing substantive content: For every legal .docx or formal legal deliverable, stop and verify these gate items before export: Never treat “content completed” as “legal work completed.” A formal legal deliverable is complete only when the required matter routing, template confirmation, reverse structure check, source evidence files, preflight review, export chain, and…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,040 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repositoryOne other file it gives its agents.
- china-legal-skillsSkill
The file
We split this AGENTS.md into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 are 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.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 5
When a legal task involves a document, report, memo, case compilation, pleading, evidence list, legal opinion, client-facing material, …
- Very specific: line 17
All cited case/material files have a 读取复查摘要.
- Very specific: line 18
All cited statutes, regulations, judicial interpretations, or current legal rules have a 法规校验摘要.
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md 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
Repository Instructions
Legal Formal Deliverable Hard Gate
When a legal task involves a document, report, memo, case compilation, pleading, evidence list, legal opinion, client-facing material, court-facing material, or any .docx output, classify the deliverable before writing substantive content:
工作草稿: internal draft only; may be Markdown; must be named with草稿or未出稿审查if not reviewed.律师内部报告: internal strategy analysis; may include risk assessment and litigation suggestions; must still include source boundary, reading review, and legal verification when it cites materials, cases, or law.提交法院/客户的正式材料: court-facing or client-facing; must follow the applicable legal Skill template, stay clean and professional, and include required source boundary records.Word正式交付物: any formal.docx; must pass the full legal export chain before being called final or formal.
For every legal .docx or formal legal deliverable, stop and verify these gate items before export:
- Current matter matches
【自定义工作目录】/_系统记录/当前事项.md; if it does not, switch/build the matter first or ask before continuing. - The correct legal Skill has been selected, including whether the output is a 法官版、律师版、诉讼文书、证据目录、法律意见 or other type.
- Before writing substantive content, the corresponding legal template/reference file has been identified and recorded, with its key format requirements stated. After generation, run a reverse structure check against that template. For
证据目录, the controlling template is诉讼文书起草/templates/证据目录格式.md; it must use grouped textual paragraphs with第一组证据and证明目的, and must not be output as a table unless the user expressly overrides this template. - All cited case/material files have a
读取复查摘要. - All cited statutes, regulations, judicial interpretations, or current legal rules have a
法规校验摘要. - A
来源边界记录exists and states verified, unverified, and output boundaries. - Any user choice that changes scope, version, strategy, amount, claim, authorization, or whether to include/exclude negative cases is recorded in
用户确认记录. - Formal Word output has
draft.html,preflight-meta.json,draft_checked.html,出稿前审查报告.md, and the report status isPASSorFIXED_PASS. - Formal Word output is generated only through
法律文书模板与导出(html_to_docx.py) and passeshealth_check.py.
Never treat “content completed” as “legal work completed.” A formal legal deliverable is complete only when the required matter routing, template confirmation, reverse structure check, source evidence files, preflight review, export chain, and health check are complete. Direct pandoc md -> docx export is allowed only for clearly labeled experiments or drafts, never for a formal legal deliverable.
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.

