Agent skill

Legal Document Formatting

by THUYRan in THUYRan/Legal-Skills-Chinese

基于中国人民法院裁判文书制作规范,起草完整的民事判决书或刑事判决书。当用户要求"起草判决书"、"生成裁判文书"、"写民事判决书"、"写刑事判决书"、"根据案卷写文书"或提供案卷材料要求输出裁判文书时使用本技能,在起草各段落时自主调用原子技能(如争议焦点识别、法条检索、演绎推理、证据效力评估等)。

No licenceAuto-check passedLegal & Compliance

Install Legal Document Formatting

skills CLI
$ npx skills add THUYRan/Legal-Skills-Chinese --skill legal-document-formatting -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install THUYRan/Legal-Skills-Chinese legal-document-formatting --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/THUYRan/Legal-Skills-Chinese.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/legal-document-formatting .claude/skills/legal-document-formatting && rm -rf skills-src

Use ~/.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/

Facts

Skill name
legal-document-formatting
GitHub stars
874
Token cost
~4.2k tokens
SKILL.md length
577 words
Files
1
Skills in repo
71
Repo updated
First seen
Licence
None found

At a glance

基于中国人民法院裁判文书制作规范,起草完整的民事判决书或刑事判决书。当用户要求"起草判决书"、"生成裁判文书"、"写民事判决书"、"写刑事判决书"、"根据案卷写文书"或提供案卷材料要求输出裁判文书时使用本技能,在起草各段落时自主调用原子技能(如争议焦点识别、法条检索、演绎推理、证据效力评估等)。

  • Works in 2 steps: 判断民事还是刑事,依据以下信号 → 调用 法律核心要素提取(Skill…
  • Tasks that involve Policy and terms drafting
  • SKILL.md covers 描述, 指令步骤, 示例一:民事判决书 and 示例二:刑事判决书, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Legal Document Formatting is an agent skill from THUYRan/Legal-Skills-Chinese. 基于中国人民法院裁判文书制作规范,起草完整的民事判决书或刑事判决书。当用户要求"起草判决书"、"生成裁判文书"、"写民事判决书"、"写刑事判决书"、"根据案卷写文书"或提供案卷材料要求输出裁判文书时使用本技能,在起草各段落时自主调用原子技能(如争议焦点识别、法条检索、演绎推理、证据效力评估等)。

Its SKILL.md is about 4.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Legal & Compliance, covering Policy and terms drafting.

When your agent uses it

  • Tasks that involve Policy and terms drafting

Example prompts

  • “生成裁判文书”
  • “写民事判决书”
  • “写刑事判决书”
  • “/legal-document-formatting”

Workflow steps

2 steps, taken from the first numbered list in SKILL.md.

  1. 判断民事还是刑事,依据以下信号
  2. 调用 法律核心要素提取(Skill #4),从案卷中提取并登记:当事人信息、法律关系(初步)、诉讼请求或指控、关键事实时间线、证据清单、程序信息。对每项标注"完整"或"缺失"。

What it can do on your machine

Read from SKILL.md and the folder at commit c31ef1f. It shows what the files ask for, not the result of running them.

  • Tool permissions

    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.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Legal Document Formatting loads about 4.2k tokens when it runs. Until then it costs about 44 tokens; SKILL.md has 577 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~44
When it runs · the whole SKILL.md, loaded when a task matches
~4.2k

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.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

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); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 577 words (~4,174 tokens).

name
legal-document-formatting

Read the full SKILL.md on GitHub

Files

Just SKILL.md in skills/legal-document-formatting of THUYRan/Legal-Skills-Chinese.

Open the folder on GitHubat commit c31ef1f

Compare with similar skills

Legal Document Formatting 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.

Legal Document Formatting compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Legal Document Formatting this skillTHUYRan/Legal-Skills-Chinese874—~4.2kAutomated safety check: PassNone
Master Agreement Generatoraffaan-m/ECC277k—~2.9kAutomated safety check: PassMIT
Pii Contract Analyzegregmos/PII-Shield150—~8.9kAutomated safety check: NotesMIT
Privacy Eukimlawtech/korean-privacy-terms587—~968Automated safety check: PassApache-2.0
Agents In The Teamborghei/Claude-Skills891—~4.2kAutomated safety check: PassMIT
Terms Of Service Generatorzubair-trabzada/ai-legal-claude1.8k—~2.9kAutomated safety check: PassNone

Similar skills

  • Builds DRAFT counterparty agreements from one markdown template and a small JSON spec per party, with clauses picked by the party's role.

    277k GitHub stars~2.9k tokensUpdated today
    Legal & ComplianceAuto-check passed
  • Pii Contract Analyze

    gregmos/PII-Shield

    Universal legal document processor with PII anonymization. An agent skill from gregmos/PII-Shield.

    150 GitHub stars~8.9k tokensUpdated 3 mo ago
    Legal & ComplianceAuto-check: notes
  • Privacy Eu

    kimlawtech/korean-privacy-terms

    EU 사용자 대상 서비스용 Privacy Notice·Terms of Service·Consent Modal·Cookie Banner 자동 생성.

    587 GitHub stars~968 tokensUpdated 1 mo ago
    Legal & ComplianceAuto-check passed
  • Agents In The Team

    borghei/Claude-Skills

    Run delivery when AI coding and ops agents take tickets. An agent skill from borghei/Claude-Skills.

    891 GitHub stars~4.2k tokensUpdated 4 days ago
    Legal & ComplianceAuto-check passed
  • Terms Of Service Generator

    zubair-trabzada/ai-legal-claude

    Generates complete, GDPR/CCPA-compliant Terms of Service for a website or SaaS product, with plain English summaries for each section

    1.8k GitHub stars~2.9k tokensUpdated 6 mo ago
    Legal & ComplianceAuto-check passed
  • Tos Clause Scanner

    zebbern/claude-code-guide

    Audit Terms of Service, user agreements, and privacy policies for consumer risks, producing a structured report that flags unfair clauses, data traps, and liability issues.

    4.7k GitHub starsUsed in 1 repo~3.3k tokens
    Legal & ComplianceAuto-check passed

More from THUYRan/Legal-Skills-Chinese

All 71 skills in this repo
  • Billing And Litigation Budget

    THUYRan/Legal-Skills-Chinese

    A skill your agent uses when the user needs to track or manage attorney hours, expert fees, and investigation costs; control litigation spend; or prepare timesheets or expense statements for clients.

    874 GitHub stars~5k tokensUpdated 1 mo ago
    Auto-check passed
  • Case Lifecycle Planning

    THUYRan/Legal-Skills-Chinese

    Case full-lifecycle planning skill. An agent skill from THUYRan/Legal-Skills-Chinese.

    874 GitHub stars~1k tokensUpdated 1 mo ago
    Auto-check passed
  • Legal Abductive Reasoning

    THUYRan/Legal-Skills-Chinese

    Legal abductive reasoning skill for generating and evaluating the most reasonable explanatory hypotheses when evidence is incomplete or facts are ambiguous.

    874 GitHub stars~4k tokensUpdated 1 mo ago
    Auto-check passed
  • Teleological Interpretation

    THUYRan/Legal-Skills-Chinese

    Teleological interpretation skill (目的解释). An agent skill from THUYRan/Legal-Skills-Chinese.

    874 GitHub stars~4.5k tokensUpdated 1 mo ago
    Auto-check passed
  • Trial Scheduling And Deadline Monitoring

    THUYRan/Legal-Skills-Chinese

    A skill your agent uses when the user needs to track or be reminded of hearing schedules, enforcement schedules, evidence-submission deadlines, appeal deadlines, service deadlines, preservation…

    874 GitHub stars~2k tokensUpdated 1 mo ago
    Auto-check passed
  • Analogical Reasoning

    THUYRan/Legal-Skills-Chinese

    Trigger this skill when the AI agent must handle any of the following situations: 1.

    874 GitHub stars~14k tokensUpdated 1 mo ago
    Auto-check passed

Questions about Legal Document Formatting

What does Legal Document Formatting do?

基于中国人民法院裁判文书制作规范,起草完整的民事判决书或刑事判决书。当用户要求"起草判决书"、"生成裁判文书"、"写民事判决书"、"写刑事判决书"、"根据案卷写文书"或提供案卷材料要求输出裁判文书时使用本技能,在起草各段落时自主调用原子技能(如争议焦点识别、法条检索、演绎推理、证据效力评估等)。. Legal Document Formatting is an agent skill from THUYRan/Legal-Skills-Chinese.

When should I use Legal Document Formatting?

Legal Document Formatting fits situations like: tasks that involve Policy and terms drafting.

How do I install Legal Document Formatting in Claude Code?

Run `npx skills add THUYRan/Legal-Skills-Chinese --skill legal-document-formatting -a claude-code`. Or copy the skill folder (skills/legal-document-formatting in THUYRan/Legal-Skills-Chinese) into .claude/skills/legal-document-formatting in your project. Claude Code loads it when a task matches its description.

How do I install Legal Document Formatting in Codex?

Run `npx skills add THUYRan/Legal-Skills-Chinese --skill legal-document-formatting -a codex`. Or copy the skill folder (skills/legal-document-formatting in THUYRan/Legal-Skills-Chinese) into .agents/skills/legal-document-formatting in your project. Codex loads it when a task matches its description.

Can I use Legal Document Formatting in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add THUYRan/Legal-Skills-Chinese --skill legal-document-formatting -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/legal-document-formatting, .gemini/skills/legal-document-formatting, .github/skills/legal-document-formatting and .opencode/skills/legal-document-formatting in your project.

What does Legal Document Formatting need to run?

SKILL.md names no scripts, command-line tools or credentials: Legal Document Formatting is instructions for the agent only.

Does Legal Document Formatting access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Legal Document Formatting safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Legal Document Formatting use?

No licence was found for Legal Document Formatting or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Legal Document Formatting use?

About 4.2k tokens (SKILL.md is roughly 17k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Legal Document Formatting?

Skills that share tags, products or a category with Legal Document Formatting: Master Agreement Generator (affaan-m/ECC, 277k stars), Pii Contract Analyze (gregmos/PII-Shield, 150 stars), Privacy Eu (kimlawtech/korean-privacy-terms, 587 stars) and Agents In The Team (borghei/Claude-Skills, 891 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Legal Document Formatting?

THUYRan (a GitHub user) maintains it in THUYRan/Legal-Skills-Chinese, which has 874 GitHub stars. The repository holds 71 skills in this directory. The repository was last updated on August 22, 2026.

Source: THUYRan/Legal-Skills-Chinese on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.