🛡️
QualityPython

Document Formatting

by Youchu-lawhub

Document Formatting is a Quality skill for Claude Code, published by Youchu-lawhub in cn-litigation-toolkit.

19 stars2 forkson Youchu-lawhub/cn-litigation-toolkitAdded 2026/08/11+12% in starsRepository updated 2026/07/11
agent-skillschinese-lawcivil-proceduredocxelement-analysislegallegal-techlitigationmcprequest-right-basis
Install in seconds
Install Document Formatting
Copy Document Formatting into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/Youchu-lawhub/cn-litigation-toolkit/tree/main/skills/document-formatting ~/.claude/skills/document-formatting

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/Youchu-lawhub/cn-litigation-toolkit.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
skills/document-formatting/SKILL.md in Youchu-lawhub/cn-litigation-toolkit
Installs to
~/.claude/skills/document-formatting
Collection
One of 23 skills cataloged from this repository
Category
Quality1354 skills

What Document Formatting does

Validates Chinese litigation documents against 10 content rules, 10 text cleaning rules, 6 structural norms, and 12 post-conversion checks before Word output. Ensures court-ready formatting compliance.

Document Formatting is cataloged under Quality on DirSkills. Document Formatting comes from a repository tagged agent-skills, chinese-law, civil-procedure, docx and element-analysis.

Documentation

README

文书排版(document-formatting)· 输出侧格式合规闸门

本技能是本套件正式 Word 文件输出前的格式合规围栏。法院提交的 5 个诉讼文书技能——主诉诉状、被诉答辩状、质证意见、代理词、程序性文书系列——在将 Markdown 草稿转换为 Word(.docx)之前,必须先经本技能核验内容规范、执行文本清洗与结构规范化,转换后再执行 Word 后验校验。全部通过方可交付;不通过则退回修正或自动修复。

与法律核验对称:法律核验守"引用真实性"(输出侧闸门·内容合规),本技能守"格式合规性"(输出侧闸门·格式合规)。两道闸门并列,均为强制不可跳过。


0 | 定位与适用范围

适用

本技能仅适用于法院提交的诉讼文书,即以下 5 个技能的 Word 输出:

序号 文书技能 典型文书
1 主诉诉状 起诉状、上诉状、再审申请书、仲裁申请书、仲裁反申请书
2 被诉答辩状 答辩状、上诉答辩状、再审答辩状、仲裁答辩状、仲裁反请求答辩状
3 质证意见 质证意见书
4 代理词 代理意见、补充代理意见
5 程序性文书系列 保全申请书、调查取证申请书、管辖权异议申请书等四十余种

不适用

以下技能/场景不经过本闸门:

  • 新法解读(纯研究报告,不提交法院)
  • 法律研究报告(内部参考)
  • 庭审提纲(庭前准备材料,非正式提交件)
  • 证据目录(逻辑层编排,非排版对象)
  • 证据装册(物理装订顺序,不走排版流程)
  • 要件攻防分析(内部分析文件)
  • 财产线索调查(内部尽调报告)
  • 案件事实梳理(内部工作底稿)

This is the opening of the README. Read the full README on GitHub.

Frequently asked about Document Formatting

  • What else does Youchu-lawhub publish alongside Document Formatting?

    Document Formatting is one of 23 skills that DirSkills catalogs from Youchu-lawhub/cn-litigation-toolkit, the repository it ships in. Its siblings there include Agency Opinion, Asset Discovery and Case Facts. Each one is a separate skill with its own page in this directory, installs the same way Document Formatting does, and is maintained by Youchu-lawhub in that same repository. The rest of the collection is listed on the Youchu-lawhub/cn-litigation-toolkit page.

  • How does Document Formatting compare to other Quality skills?

    Document Formatting ranks #1329 by stars among the 1354 Quality skills in this catalog. The most-starred ones next to it are Benchmark, Benchmark Optimization Loop and API Design Patterns. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Document Formatting against them. Open each page to compare what they document and how they install.

More from Youchu-lawhub/cn-litigation-toolkit

Document Formatting is one of 23 skills cataloged on DirSkills from Youchu-lawhub/cn-litigation-toolkit.

See all 23 skills