elements-complaint-generator SKILL.md skillA
elements-complaint-generator from cat-xierluo/legal-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add cat-xierluo/legal-skills/elements-complaint-generator@v0.16.1Pins v0.16.1 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- cat-xierluo/legal-skills
- Path
skills/elements-complaint-generator/SKILL.md- Versions recorded
- 5
- Latest version
- v0.16.1, committed Oct 10, 2026
- First version recorded
- Aug 30, 2026
- Size
- 19,334 bytes
- Repository stars
- 775
- License
- none declared
Use when converting 律师已写好的常规起诉状(md/docx)或对话描述为最高法 67 类官方要素式示范文本形态的 Word 候选文书(法〔2025〕82 号,2025-07-14 全国推广),覆盖民事/商事/行政/知产案由的起诉状、答辩状和相关申请书。不要用于:扫描件直接识别、自由格式文书起草,或代替律师完成法律内容与法院提交要求复核。.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# 要素式起诉状生成 Skill(elements-complaint-generator)
## 一、定位
在最高法 67 类官方要素式起诉状/答辩状模板(法〔2025〕82 号,2025-07-14 全国推广)上做锚点替换,从律师提供的「常规起诉状(Markdown 或 docx)/自然对话/结构化要素清单」中抽取信息,输出通过 DOCX 结构检查与真实 PDF 渲染门禁的要素式 Word 候选文书。法律内容和个案立案要求仍由律师复核。
### 1.1 分工铁律(Agent 与代码各司其职)
```
普通起诉状/对话 --[Agent(LLM) 抽取]--> elements.json --[纯代码(lxml) 替换]--> 要素式 docx
语义理解 确定性模板填充
```
- **Agent 负责"抽取"**:读常规起诉状 → 按案由 Schema 产出 elements.json(人可复核)。语义理解是 LLM 强项,regex 只做兜底(`extract_from_markdown.py`)。
- **代码负责"填充与客观版式门禁"**:`fill_template.py` 在模板 XML 上做 `<w:t>` 跨 run 精确替换,再由独立检查器验证结构和真实 PDF 几何;LLM 不直接修改 OOXML。
### 1.2 当前范围(v0.16.1)
| 维度 | 范围 |
|---|---|
| 模板 | **113 棵树全量入库**(法〔2025〕82 号完整版:上册42+中册28+下册43,编号01-68按上中下顺序) |
| 抽取 | **Agent 会话内抽取为主**;`extract_from_markdown.py` regex 为兜底 |
| 模板形态 | **解包 OOXML 源码树**(git 可 diff),渲染时复制→编辑→打包;**22 案由已替换为法院实际发放件基准**(2 表结构,DEC-011) |
| 替换引擎 | lxml 直接编辑 `<w:t>`(跨 run 精确替换,多 part 覆盖,`--verify-residual` 残留校验) |
| 版式门禁 | 默认把候选 DOCX 交给正式版 LibreOffice 真实渲染,再检查 A4、逐表居中/列位、跨页续接、语义表头、中文字形存活、连续页码、出版物残码和空白页;失败不覆盖目标文件 |
| 模板版本 | 法〔2025〕82 号 2025-07-14 推广版(多渠道交叉比对一致) |
### 1.3 不适用场景
…Read the whole file at its exact version.
How to install
mdr add cat-xierluo/legal-skills/elements-complaint-generator@sha256:9490b870856e48bdThe line at the top of this page pins the label v0.16.1, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_hce2jv7vijrnqcrx)
1 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 5 versions of this file, between Aug 30, 2026 and Oct 10, 2026, about one every 10 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| v0.16.1 latest | 2026-10-10 | b075d6a | 19,334 B | A | view · diff |
| v0.16.0 | 2026-09-23 | 6fe381c | 18,351 B | A | view · diff |
| v0.15.2 | 2026-09-21 | 8f88a1c | 17,086 B | A | view · diff |
| v0.15.1 | 2026-09-19 | 9ab61ae | 16,846 B | A | view · diff |
| v0.15.0 | 2026-08-30 | 8953f28 | 16,489 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (19334 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
cat-xierluo/legal-skills · 775 stars · license none declared · pushed 2026-11-01 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_hce2jv7vijrnqcrx GET https://markdownregistry.com/api/v1/resolve?ref=cat-xierluo/legal-skills/elements-complaint-generator GET https://markdownregistry.com/api/v1/blob/9490b870856e48bd9f75bdc577deddcba967d12dc9b2e362ceb25b585d2214ea
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.