DOCX Processing Toolkit
telagod/code-abyss
Routes Word document tasks to the right tool: pandoc for text, raw OOXML for structure and comments, docx-js for new files, and a mandatory redlining flow for edits to others' documents.
Converts a lawyer's ordinary complaint or a described case into the Supreme People's Court's elements-style Word template, with layout checks on the result.
SKILL.md written in Chinese; this summary is our English description.
$ npx skills add cat-xierluo/legal-skills --skill elements-complaint-generator -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install cat-xierluo/legal-skills elements-complaint-generator --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/cat-xierluo/legal-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/elements-complaint-generator .claude/skills/elements-complaint-generator && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "elements-complaint-generator" agent skill from https://github.com/cat-xierluo/legal-skills/tree/main/skills/elements-complaint-generator into .claude/skills/elements-complaint-generator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "elements-complaint-generator", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/cat-xierluo/legal-skills/tree/main/skills/elements-complaint-generatorType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add cat-xierluo/legal-skills --skill elements-complaint-generator -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install cat-xierluo/legal-skills elements-complaint-generator --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cat-xierluo/legal-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/elements-complaint-generator .agents/skills/elements-complaint-generator && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "elements-complaint-generator" agent skill from https://github.com/cat-xierluo/legal-skills/tree/main/skills/elements-complaint-generator into .agents/skills/elements-complaint-generator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "elements-complaint-generator", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add cat-xierluo/legal-skills --skill elements-complaint-generator -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install cat-xierluo/legal-skills elements-complaint-generator --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cat-xierluo/legal-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/elements-complaint-generator .cursor/skills/elements-complaint-generator && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "elements-complaint-generator" agent skill from https://github.com/cat-xierluo/legal-skills/tree/main/skills/elements-complaint-generator into .cursor/skills/elements-complaint-generator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "elements-complaint-generator", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/cat-xierluo/legal-skills.git --path skills/elements-complaint-generator--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add cat-xierluo/legal-skills --skill elements-complaint-generator -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install cat-xierluo/legal-skills elements-complaint-generator --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cat-xierluo/legal-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/elements-complaint-generator .gemini/skills/elements-complaint-generator && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "elements-complaint-generator" agent skill from https://github.com/cat-xierluo/legal-skills/tree/main/skills/elements-complaint-generator into .gemini/skills/elements-complaint-generator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "elements-complaint-generator", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install cat-xierluo/legal-skills elements-complaint-generatorInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add cat-xierluo/legal-skills --skill elements-complaint-generator -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/cat-xierluo/legal-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/elements-complaint-generator .github/skills/elements-complaint-generator && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "elements-complaint-generator" agent skill from https://github.com/cat-xierluo/legal-skills/tree/main/skills/elements-complaint-generator into .github/skills/elements-complaint-generator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "elements-complaint-generator", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add cat-xierluo/legal-skills --skill elements-complaint-generator -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install cat-xierluo/legal-skills elements-complaint-generator --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cat-xierluo/legal-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/elements-complaint-generator .opencode/skills/elements-complaint-generator && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "elements-complaint-generator" agent skill from https://github.com/cat-xierluo/legal-skills/tree/main/skills/elements-complaint-generator into .opencode/skills/elements-complaint-generator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "elements-complaint-generator", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
elements-complaint-generatorConverts a lawyer's ordinary complaint or a described case into the Supreme People's Court's elements-style Word template, with layout checks on the result.
This Chinese-language skill takes a complaint a lawyer already wrote (Markdown or docx), a conversation, or a structured list of elements, and produces a Word candidate document in the official elements-style format of the Supreme People's Court, which covers 67 types of case. It handles complaints, defenses and related applications in civil, commercial, administrative and intellectual property matters.
Work is split between the agent and code. The agent matches the cause of action using a routing reference and extracts the elements into an elements.json file following a case-specific schema, which you must review. A Python script then fills the template by editing the document XML with lxml, with a residual check to stop details from an old case leaking into the new one.
By default the candidate file is rendered to PDF through LibreOffice and checked for A4 size, table alignment, page continuity, Chinese glyphs, page numbers and blank pages; any failure leaves an existing target file untouched. The output is a draft, and a lawyer still has to review the legal content and the court's filing requirements. Scanned PDFs need OCR first, free-form complaints are out of scope, and bulk runs are not supported.
5 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit db2c58c. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 1 file in scripts/, which the agent can run.
Shell commands in SKILL.md call:
pythonpip3bashbrewapt-getgitFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use pip3 and git, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Elements-Style Complaint Generator loads about 2.5k tokens when it runs, and up to ~244k if it reads all its reference files. Until then it costs about 52 tokens; SKILL.md has 525 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check noted patterns worth knowing about, such as sudo or a known installer.
w install --cask libreoffice`<br>Linux: `sudo apt-get install libreoffice` | 默认交付路径的 DOCX→PDF 真实渲染;开发版/alpha 构建不能作为中文视觉验Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from cat-xierluo/legal-skills at commit db2c58c, republished under its MIT licence (© cat-xierluo). 525 words, ~2,462 tokens.
.claude/skills/elements-complaint-generator/SKILL.md (or your agent's skills folder). This skill also uses 2769 other files; get the full folder from GitHub.在最高法 67 类官方要素式起诉状/答辩状模板(法〔2025〕82 号,2025-07-14 全国推广)上做锚点替换,从律师提供的「常规起诉状(Markdown 或 docx)/自然对话/结构化要素清单」中抽取信息,输出通过 DOCX 结构检查与真实 PDF 渲染门禁的要素式 Word 候选文书。法律内容和个案立案要求仍由律师复核。
普通起诉状/对话 --[Agent(LLM) 抽取]--> elements.json --[纯代码(lxml) 替换]--> 要素式 docx
语义理解 确定性模板填充extract_from_markdown.py)。fill_template.py 在模板 XML 上做 <w:t> 跨 run 精确替换,再由独立检查器验证结构和真实 PDF 几何;LLM 不直接修改 OOXML。| 维度 | 范围 |
|---|---|
| 模板 | 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 推广版(多渠道交叉比对一致) |
legal-proposal-generator 或人工起草legal-ocr 转 md,再走本 skill┌────────────────────────────────────────────────┐
│ 输入:常规起诉状(md/docx) / 对话 / 要素文件 │
└───────────────────────┬────────────────────────┘
▼
┌───────────────────────────┐
│ Agent 按 Schema 抽要素 │ ← 语义理解(LLM)
│ (regex 脚本兜底) │
└─────────────┬─────────────┘
▼
┌───────────────────────────┐
│ elements.json(人可复核) │
└─────────────┬─────────────┘
▼
┌────────────────────────────────────────────────┐
│ fill_template.py(纯代码,确定性) │
│ 复制 templates/<案由>/ → lxml 编辑 <w:t> │
│ <w:t> 跨 run 精确替换 → pack_docx 打包 │
│ → 残留校验 → DOCX 静态门禁 → PDF 真实渲染门禁 │
└───────────────────────┬────────────────────────┘
▼
┌───────────────────────────┐
│ 要素式起诉状.docx │ ← 候选交付件,律师复核
└───────────────────────────┘读用户材料(起诉状 md/docx / 口述)→ 对照 references/case-routing.md
→ 确定案由编号 + case-type key + 模板树 + reference 文档
→ 拿不准时列 2-3 个候选案由请用户选按 references/extraction-prompt-template.md 执行:
extract_from_markdown.py(09/05 已实现 regex 兜底)# 精调 key 示例:09-private-lending / 22-copyright / 60-enforcement / 65-objection;两位编号(如 06)走通用级
python scripts/fill_template.py \
--case-type 09-private-lending \
--elements <案件>/elements.json \
--output <案件>/要素式起诉状.docx \
--verify-residual "旧当事人名,旧电话"<w:t>(跨 run 精确替换,多 part 覆盖)→ 打包--verify-residual 残留校验防旧案信息泄漏--layout-check rendered:先在临时候选件上执行 DOCX 不变量检查,再用 LibreOffice 转 PDF 检查真实页面;任一步失败均非零退出,且不覆盖已有目标文件。--layout-check docx 只供开发期批量回归,不能据此交付;--layout-check off 仅用于定位门禁自身问题,不能据此声称版式通过。config/layout-policy.json。当前仅 22 著作权法院基准件明确不带页码,禁止由全局规则自行补页码。bash tests/run_e2e.sh — 内容断言与 68 编号冒烟 + 长文本矩阵快速合同 + 113 棵树 DOCX 版式静态门禁 + 21 类文书真实 PDF 渲染 + 版式违规正反例。
68 棵主文书的发布级长文本矩阵独立运行,不塞进日常 E2E:
python tests/smoke_render_longtext.py \
--rounds 3 --require-full \
--json-output tests/output/longtext-report.json \
--evidence-dir tests/output/longtext-evidence该入口为每棵主文书生成确定性的长当事人、长诉请和长事实输入,逐类先预热一次,再连续计量三轮;每轮复用正式 DOCX/PDF 门禁,并记录页数、连续页码、空白页、字形存活、候选内容哈希和稳定指纹。证据目录必须为空,拒绝复用旧产物;定位波动时可加 --evidence-all-rounds 保留每轮 DOCX、PDF 与关键页截图。
| 工具 | macOS 安装 | 用途 |
|---|---|---|
| Python 3.11+ | 系统自带 | 运行 scripts |
| lxml | pip3 install lxml | XML 编辑与 DOCX 版式检查(硬依赖) |
| PyMuPDF | pip3 install pymupdf | 读取真实渲染 PDF 的页面几何与页码(默认交付路径需要) |
| LibreOffice 正式版 | brew install --cask libreoffice<br>Linux: sudo apt-get install libreoffice | 默认交付路径的 DOCX→PDF 真实渲染;开发版/alpha 构建不能作为中文视觉验收依据 |
首次运行默认渲染路径前安装 Python 依赖:pip3 install lxml pymupdf。缺少 LibreOffice 或 PyMuPDF 时,脚本会明确报错并拒绝发布目标文件,不会静默降级为“已验证”。
templates/ # ★ 模板唯一权威源(113 棵 OOXML 源码树,git 可 diff)
01-侮辱案刑事附带民事-刑事附带民事自诉状/ # 上册 01-21:刑事自诉4+民事9+商事8
05-离婚纠纷-民事起诉状/ # (起诉状+答辩状成对)
09-民间借贷纠纷-民事起诉状/ # ← 规则已实现
30-垄断纠纷-民事起诉状/ # 中册 22-36:知产民事9+知产行政6+垄断行政
44-行政处罚-行政起诉状/ # 下册 37-68:海事4+环资3+行政11+行政答辩+国赔4+执行9
55-行政答辩状/ 60-强制执行申请书/ # 单文书目录(树名=编号-案由)
templates/templates-manifest.json # v2 清单:树↔源文件↔SHA-256 溯源 + 命名规范化记录为什么用解包树而非 docx:docx 是 zip 二进制(git diff 乱码);解包后是纯文本 XML,模板迭代、官方版本更新、每次填充差异全部可 diff/可 review/可回滚。每案由存完整树(自包含、互不污染,不抽公共 base 防止格式铁律破防)。
# 完整版为原生 OOXML docx,直接批量解包入库(上中下顺序,编号 01-68):
python scripts/ingest_full_templates.py \
--source "~/Desktop/要素式起诉状模板/67类完整版(起诉状+答辩状+第三人意见陈述书)" \
--templates templates --overwrite
# 若源是 OLE2 老格式(如 67类/ 平铺目录),先转再入:
python scripts/ole2_to_docx.py --input ~/Desktop/要素式起诉状模板/67类 --output /tmp/ecg-docx \
--manifest templates/templates-manifest.json --include 'NN-*'
python scripts/unpack_docx.py --input /tmp/ecg-docx --output templates --overwrite
# ③ 反向打包(校验/出件用)
python scripts/pack_docx.py --tree templates/06-买卖合同纠纷-民事起诉状 --output 检查.docx| 层 | 文档 | 覆盖 |
|---|---|---|
| 通用层 | references/common-elements.md | 当事人/代理人/调解意愿/落款等跨案由要素(证据:113 棵树扫描,28 签名组) |
| 路由层 | references/case-routing.md(脚本生成,勿手改) | 113 棵树索引:案由/册/文书/树/key/支持状态/关键词 |
| 案由层 | references/case-types/NN-*.md | 案由特定要素;骨架由 dump_template_fields.py 从模板树反推生成,人/Agent 补要素路径与抽取提示 |
68/68 全部定稿:case-types/ 目录覆盖全部编号(14 份手写详版 + 54 份程序化生成精简版);骨架 skeletons/ 66 份全字段清单。
当事人 / 诉讼请求 / 约定管辖和诉前保全 / 事实与理由 / 对纠纷解决方式的意愿 / 具状人_签字_盖章 / 具状日期原告/被告/第三人/委托诉讼代理人(当前实现第一个原告/被告/委托代理人)git diff templates/ 直接看到官方改了什么 → 检查规则是否需调整 → 跑回归以 06 买卖合同纠纷为例:
python scripts/dump_template_fields.py --tree templates/06-买卖合同纠纷-民事起诉状 --output references/case-types/06-sale-skeleton.md 生成骨架 → 补要素路径/occurrence 映射/抽取提示(通用块直接引用 common-elements.md,不重复定义)fill_template.py 加 build_rules_06_sale() + CASE_TYPE_TO_TREE 映射extract_from_markdown.py 的 CASE_TYPE_TO_EXTRACTOR 加tests/fixtures/ 加样例;跑 tests/run_e2e.sh 回归NN-answer 路由接入;其角色与调解块差异仍须按对应骨架抽取,不得套用起诉状字段含义。DOMAIN_VERIFIED。fc-match 证明覆盖中文的候选字体,并以字符存活率门禁失败关闭;DOMAIN_VERIFIED 仍只证明当前正式版 LibreOffice 环境,不代表所有机器或 Word/WPS 的字体观感完全一致。正式提交前仍应核对内容、签章位置和当地法院要求。tempfile.mkdtemp() 临时目录内复制模板树并渲染,渲染后自动 shutil.rmtree() 清理临时目录(不触碰用户数据)。ingest_full_templates.py --overwrite 可覆盖 templates/ 下指定模板树(显式参数,非默认行为)。--verify-residual 只做本地扫描。0.16.0(2026-09-22)DOMAIN_VERIFIEDdocs/plans/2026-08-17-elements-complaint-generator-design.md(不入仓)任何渲染输出在交付前必须先通过自动版式门禁,再完整执行 渲染后 QA 清单(源自 250612 武景怡案五轮返工实战复盘)。人工视觉复核只补充机器难以判断的法律内容、签章位置和局部观感,不能替代自动门禁。要点:
引擎层待修清单见 qa-checklist.md 第四节(知产权项规则链、代理勾选规则、occurrence 串填、标签保留、内置几何后处理、skipped 明细打印)。
© cat-xierluo, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 2,769 other files (scripts, references) in skills/elements-complaint-generator of cat-xierluo/legal-skills.
Open the folder on GitHubat commit db2c58c
Elements-Style Complaint Generator next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Elements-Style Complaint Generator this skillcat-xierluo/legal-skills | 720 | — | ~2.5k | Automated safety check: Notes | MIT | |
| DOCX Processing Toolkittelagod/code-abyss | 244 | — | ~668 | Automated safety check: Notes | MIT | |
| Office DOCXsingula-ai/alego | 109 | 1 repos | ~1.5k | Automated safety check: Pass | MIT | |
| Writeraiskillstore/marketplace | 433 | 3 repos | ~1.3k | Automated safety check: Pass | None | |
| Tdoc DOCXLeoYeAI/openclaw-master-skills | 2.2k | — | ~3.6k | Automated safety check: Notes | MIT | |
| Adeu Redliningdealfluence/adeu | 167 | — | ~2.4k | Automated safety check: Pass | MIT |
telagod/code-abyss
Routes Word document tasks to the right tool: pandoc for text, raw OOXML for structure and comments, docx-js for new files, and a mandatory redlining flow for edits to others' documents.
singula-ai/alego
Create, read, edit, and check Word documents (.docx), including reports, letters, and formatted tables.
aiskillstore/marketplace
Document creation, format conversion (ODT/DOCX/PDF), mail merge, and automation with LibreOffice Writer.
LeoYeAI/openclaw-master-skills
Word 文档全能处理技能 | Complete Word Document Processing Skill. An agent skill from LeoYeAI/openclaw-master-skills.
dealfluence/adeu
A skill your agent uses when reviewing, editing, redlining, or negotiating an existing Microsoft Word document (.docx) — including proposing edits as tracked changes, accepting or rejecting existing…
kklimuk/docx-cli
Run the weak-agent adversarial test harness against docx-cli.
cat-xierluo/legal-skills
Analyzes raw lecture transcripts for verbal tics, pacing, time use and promise follow-through, with optional slide-by-slide comparison and cross-session tracking.
cat-xierluo/legal-skills
Detects and rewrites machine-sounding patterns in the body text of Chinese articles while keeping the author's facts, headings and legal terms intact.
cat-xierluo/legal-skills
Finds GitHub projects mentioned in articles or screenshots and stars them, tracks updates to your starred repos, and builds an HTML dashboard to browse them.
cat-xierluo/legal-skills
Sets up or incrementally updates AGENTS.md and CLAUDE.md for legal professionals, with a minimal safety baseline and a check that a new session loads and follows the rules.
cat-xierluo/legal-skills
Chinese-language skill that organizes a case file into a multi-role mock trial with judge, parties and clerk, producing a transcript, issue review and a to-strengthen list.
cat-xierluo/legal-skills
Creates SVG illustrations for a Markdown article as animated SVG, static SVG or PNG files, and places them in the text at planned positions.
Works with
Categories
Converts a lawyer's ordinary complaint or a described case into the Supreme People's Court's elements-style Word template, with layout checks on the result. This Chinese-language skill takes a complaint a lawyer already wrote (Markdown or docx), a conversation, or a structured list of elements, and produces a Word candidate document in the official elements-style format of the Supreme People's Court, which covers 67 types of case. It handles complaints, defenses and related applications in civil, commercial, administrative and intellectual property matters.
Elements-Style Complaint Generator fits situations like: converting a finished complaint into the court's elements-style format; drafting a defense or application in the official elements template; turning case facts described in conversation into a structured elements file; preparing a civil or commercial filing draft for lawyer review.
Run `npx skills add cat-xierluo/legal-skills --skill elements-complaint-generator -a claude-code`. Or copy the skill folder (skills/elements-complaint-generator in cat-xierluo/legal-skills) into .claude/skills/elements-complaint-generator in your project. Claude Code loads it when a task matches its description.
Run `npx skills add cat-xierluo/legal-skills --skill elements-complaint-generator -a codex`. Or copy the skill folder (skills/elements-complaint-generator in cat-xierluo/legal-skills) into .agents/skills/elements-complaint-generator in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add cat-xierluo/legal-skills --skill elements-complaint-generator -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/elements-complaint-generator, .gemini/skills/elements-complaint-generator, .github/skills/elements-complaint-generator and .opencode/skills/elements-complaint-generator in your project.
Going by SKILL.md and its folder, Elements-Style Complaint Generator needs the command-line tools its instructions call (python, pip3, bash, brew, apt-get and git). Our summary lists: Python with lxml; LibreOffice for the rendered layout check.
SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found notes only (runs commands with sudo), nothing it rates as a warning. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Elements-Style Complaint Generator is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.5k tokens (SKILL.md is roughly 9.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 242k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Elements-Style Complaint Generator: DOCX Processing Toolkit (telagod/code-abyss, 244 stars), Office DOCX (singula-ai/alego, 109 stars), Writer (aiskillstore/marketplace, 433 stars) and Tdoc DOCX (LeoYeAI/openclaw-master-skills, 2.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
cat-xierluo (a GitHub user) maintains it in cat-xierluo/legal-skills, which has 720 GitHub stars. The repository holds 62 skills in this directory. The repository was last updated on October 10, 2026.
Source: cat-xierluo/legal-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.