Agent skill

Contract Copilot

by cat-xierluo in cat-xierluo/legal-skills

合同起草与审查助手。基于分层分析与四步流程,输出可执行的风险清单、起草骨架、修改建议、推荐措辞和审查意见书,支持批注与修订两种文档处理方式。用户通过飞书或其他 IM 对话发送合同文件并要求审查或起草时,也应使用本 skill,并优先沿原会话回传修订版和审查报告。

CC-BY-NC-4.0Auto-check passedDocuments & Office

Install Contract Copilot

skills CLI
$ npx skills add cat-xierluo/legal-skills --skill contract-copilot -a claude-code

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

GitHub CLI
$ gh skill install cat-xierluo/legal-skills contract-copilot --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/cat-xierluo/legal-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/contract-copilot .claude/skills/contract-copilot && 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
contract-copilot
GitHub stars
717
Token cost
~3.3k tokens
SKILL.md length
660 words
Files
151 (incl. scripts, references)
Skills in repo
62
Repo updated
First seen
Licence
CC-BY-NC-4.0

At a glance

合同起草与审查助手。基于分层分析与四步流程,输出可执行的风险清单、起草骨架、修改建议、推荐措辞和审查意见书,支持批注与修订两种文档处理方式。用户通过飞书或其他 IM 对话发送合同文件并要求审查或起草时,也应使用本 skill,并优先沿原会话回传修订版和审查报告。

  • Works in 5 steps: 先完成必要澄清与分层审查。 → 将审查结论整理为 review-plan.json(运行时产物,由… → 运行 scripts/review/apply_review_plan.py 或… → …
  • Documents & Office work in your project
  • SKILL.md covers 一、定位, 二、核心理念, 三、分层四步审查框架 and 四、标准输出规范, plus 6 more sections
  • Calls python

What it does

Contract Copilot is an agent skill from cat-xierluo/legal-skills. 合同起草与审查助手。基于分层分析与四步流程,输出可执行的风险清单、起草骨架、修改建议、推荐措辞和审查意见书,支持批注与修订两种文档处理方式。用户通过飞书或其他 IM 对话发送合同文件并要求审查或起草时,也应使用本 skill,并优先沿原会话回传修订版和审查报告。

Its SKILL.md is about 3.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 156 other files, including scripts and reference files (for example `CHANGELOG.md`, `DEVELOPMENT-RETROSPECTIVE.md` and `README.md`).

It sits in Documents & Office. It works with Microsoft Word.

When your agent uses it

  • Documents & Office work in your project

Example prompts

  • “/contract-copilot”

Workflow steps

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

  1. 先完成必要澄清与分层审查。
  2. 将审查结论整理为 review-plan.json(运行时产物,由 contract-copilot 在审查过程中生成;不是 skill 包内随附文件,每次审查都会重新生成)。
  3. 运行 scripts/review/apply_review_plan.py 或 scripts/run_apply_review_plan.ps1,传入上一步生成的 review-plan.json。
  4. apply_review_plan.py 会在 archive/<时间戳_合同名>/ 内自动生成 review-plan_enriched.json(运行时产物,含法律依据补全等扩展信息,不是 skill 包内随附文件)。
  5. 对外交付审核修订版 DOCX 与 Word 审查意见书 DOCX。

What it can do on your machine

Read from SKILL.md and the folder at commit c077fcc. 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

    Ships 1 file in scripts/, which the agent can run.

    Shell commands in SKILL.md call:

    • python

    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

Contract Copilot loads about 3.3k tokens when it runs, and up to ~124k if it reads all its reference files. Until then it costs about 37 tokens; SKILL.md has 660 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~37
When it runs · the whole SKILL.md, loaded when a task matches
~3.3k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~124k

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); the scripts in this folder are not scanned.

SKILL.md

Its licence (CC-BY-NC-4.0) doesn't allow us to republish the file, so here is its outline and opening line. It has 660 words (~3,254 tokens).

name
contract-copilot
version
1.6.3
license
CC-BY-NC
homepage
https://github.com/cat-xierluo/legal-skills
author
杨卫薪律师(微信ywxlaw)

Read the full SKILL.md on GitHub

Files

SKILL.md and 150 other files (scripts, references) in skills/contract-copilot of cat-xierluo/legal-skills.

  • SKILL.md
  • CHANGELOG.md
  • DEVELOPMENT-RETROSPECTIVE.md
  • LICENSE.txt
  • README.md
  • archive/.gitkeep
  • config/.gitkeep
  • config/review_memory.example.json
  • config/reviewer_profile.example.json
  • references/contract-routing.md
  • references/contract-types/01-sale/commercial-housing.md
  • references/contract-types/01-sale/distribution-sale.md
  • references/contract-types/01-sale/movables-sale.md
  • references/contract-types/01-sale/secondhand-housing.md
  • references/contract-types/02-lease/equipment-lease.md
  • … and 136 more

Open the folder on GitHubat commit c077fcc

Compare with similar skills

Contract Copilot 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.

Contract Copilot compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Contract Copilot this skillcat-xierluo/legal-skills717—~3.3kAutomated safety check: PassCC-BY-NC-4.0
MarkitdownImCa0/just-laws78214 repos~3.2kAutomated safety check: NotesMIT
DOCXrvdbreemen/OTGW-firmware20733 repos~4.3kAutomated safety check: PassProprietary
Gzh Designisjiamu/gzh-design-skill3.9k1 repos~2.2kAutomated safety check: PassAGPL-3.0
Word Document Reader and WriterHKUDS/DeepTutor41k—~2.5kAutomated safety check: PassApache-2.0
GenOffice Document CLIgenspark-ai/genoffice9k—~19kAutomated safety check: PassApache-2.0

Similar skills

  • Markitdown

    ImCa0/just-laws

    Convert files and office documents to Markdown. An agent skill from ImCa0/just-laws.

    782 GitHub starsUsed in 14 repos~3.2k tokens
    Documents & OfficeAuto-check: notes
  • DOCX

    rvdbreemen/OTGW-firmware

    A skill your agent uses whenever the user wants to create, read, edit, or manipulate Word documents (.docx files).

    207 GitHub starsUsed in 33 repos~4.3k tokens
    Documents & OfficeAuto-check passed
  • Gzh Design

    isjiamu/gzh-design-skill

    微信公众号文章排版引擎,将 Markdown 转换为可直接粘贴到公众号编辑器的 HTML。主题风格从 references/theme-index.md 注册的自定义主题库中选取,自动章节编号、关键词下划线标记、引言卡片、目录导航、代码块、图片/GIF、作者签名。支持 Markdown / Word(.docx) / PDF / 纯文本输入(非 Markdown…

    3.9k GitHub starsUsed in 1 repo~2.2k tokens
    Documents & OfficeAuto-check passed
  • Reads, creates and edits Word .docx files with python-docx, and drops to raw OOXML for tracked changes, comments and byte-exact edits.

    41k GitHub stars~2.5k tokensUpdated yesterday
    Documents & OfficeAuto-check passed
  • GenOffice Document CLI

    genspark-ai/genoffice

    Creates, converts, reads and edits real pptx, xlsx, docx and PDF files locally through the genoffice command line.

    9k GitHub stars~19k tokensUpdated today
    Documents & OfficeAuto-check passed
  • BiSheng DOCX Builder

    dataelement/bisheng

    Builds or edits Word .docx documents inside BiSheng's code executor with python-docx, handling Chinese fonts, tables of contents, page numbers and official-document layout.

    12k GitHub stars~2.6k tokensUpdated today
    Documents & OfficeAuto-check passed

More from cat-xierluo/legal-skills

All 62 skills in this repo
  • Elements-Style Complaint Generator

    cat-xierluo/legal-skills

    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.

    717 GitHub stars~2.5k tokensUpdated yesterday
    Auto-check: notes
  • Lecture Performance Review

    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.

    717 GitHub stars~2.2k tokensUpdated yesterday
    Auto-check passed
  • De-AI Polish for Chinese Articles

    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.

    717 GitHub stars~2.9k tokensUpdated yesterday
    Auto-check passed
  • GitHub Star Manager

    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.

    717 GitHub stars~2k tokensUpdated yesterday
    Auto-check: notes
  • Legal Harness Initializer

    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.

    717 GitHub stars~2.3k tokensUpdated yesterday
    Auto-check passed
  • Moot Court Simulation Builder

    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.

    717 GitHub stars~1.4k tokensUpdated yesterday
    Auto-check passed

Works with

Questions about Contract Copilot

What does Contract Copilot do?

合同起草与审查助手。基于分层分析与四步流程,输出可执行的风险清单、起草骨架、修改建议、推荐措辞和审查意见书,支持批注与修订两种文档处理方式。用户通过飞书或其他 IM 对话发送合同文件并要求审查或起草时,也应使用本 skill,并优先沿原会话回传修订版和审查报告。. Contract Copilot is an agent skill from cat-xierluo/legal-skills.

When should I use Contract Copilot?

Contract Copilot fits situations like: documents & Office work in your project.

How do I install Contract Copilot in Claude Code?

Run `npx skills add cat-xierluo/legal-skills --skill contract-copilot -a claude-code`. Or copy the skill folder (skills/contract-copilot in cat-xierluo/legal-skills) into .claude/skills/contract-copilot in your project. Claude Code loads it when a task matches its description.

How do I install Contract Copilot in Codex?

Run `npx skills add cat-xierluo/legal-skills --skill contract-copilot -a codex`. Or copy the skill folder (skills/contract-copilot in cat-xierluo/legal-skills) into .agents/skills/contract-copilot in your project. Codex loads it when a task matches its description.

Can I use Contract Copilot 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 cat-xierluo/legal-skills --skill contract-copilot -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/contract-copilot, .gemini/skills/contract-copilot, .github/skills/contract-copilot and .opencode/skills/contract-copilot in your project.

What does Contract Copilot need to run?

Going by SKILL.md and its folder, Contract Copilot needs the command-line tools its instructions call (python).

Does Contract Copilot 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 Contract Copilot 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. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Contract Copilot use?

Contract Copilot is published under the CC-BY-NC-4.0 licence (declared in SKILL.md).

How many tokens does Contract Copilot use?

About 3.3k tokens (SKILL.md is roughly 13k 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 121k tokens, read only when the agent opens those files.

What are the alternatives to Contract Copilot?

Skills that share tags, products or a category with Contract Copilot: Markitdown (ImCa0/just-laws, 782 stars), DOCX (rvdbreemen/OTGW-firmware, 207 stars), Gzh Design (isjiamu/gzh-design-skill, 3.9k stars) and Word Document Reader and Writer (HKUDS/DeepTutor, 41k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Contract Copilot?

cat-xierluo (a GitHub user) maintains it in cat-xierluo/legal-skills, which has 717 GitHub stars. The repository holds 62 skills in this directory. The repository was last updated on October 8, 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.