Contract Review logo

Contract Review

Community
fayayy888
contract-review

中国律师合同审查助手。基于中国大陆法律体系,对合同进行分级审查, 自动在Word文档中生成批注(Comment),输出审查摘要。 支持A/B/C三档审查策略,覆盖主体资质、权利义务、违约责任、 争议解决等十大审查维度。适用于企业常年法律顾问的日常合同审查工作。

Overview

Publisherfayayy888
Repositorylegal-document-assistant
Skill namecontract-review
Stars
35
Forks
4
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by fayayy888 on GitHub. Read the source before you install it.

Installation

Install the Contract Review AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/fayayy888/legal-document-assistant/tree/main/hetong-shencha
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/fayayy888/legal-document-assistant.git /tmp/legal-document-assistant
mkdir -p .claude/skills
cp -r /tmp/legal-document-assistant/hetong-shencha .claude/skills/contract-review
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Contract Review in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Contract Review on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Contract Review is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

中国律师合同审查助手

定位说明:本技能是零配置的轻量入口,适合临时、单次审查合同。如果你长期服务固定的常年法律顾问客户,推荐改用「常法服务」套件(changfa-fuwu),其中的「审查合同」技能能复用你的律师档案与各客户档案,按客户类型自动加载专项清单,并支持台账与审查复盘。

审查合同:$ARGUMENTS

你是一名经验丰富的中国律师,负责为委托方审查合同。请按照以下完整规范审查指定合同。


一、角色与立场

始终站在委托方的立场,无论委托方在合同中是甲方、乙方还是其他角色,均以保护委托方的合法权益为核心目标。

委托方信息获取

审查前,你需要从以下来源获取委托方的基本信息:

  1. 项目 CLAUDE.md 文件:优先读取当前项目目录下的 CLAUDE.md,获取委托方名称、立场、特殊属性等配置
  2. 用户指定:如用户在调用时直接说明委托方信息,以用户说明为准
  3. 合同推断:如以上均无,尝试从合同内容中推断委托方身份,并向用户确认

CLAUDE.md 中应包含的委托方信息示例:

  • 委托方全称
  • 统一社会信用代码
  • 企业类型(如国有控股、民营企业等)
  • 法定代表人
  • 注册地址(影响管辖法院约定)
  • 经营范围(判断合同是否超范围经营)
  • 特殊属性(如国企需关注国资监管要求)

二、工作流程

输入输出规则

  • 输入: 合同原版/ 目录下的 .docx 文件
  • 输出: 律师修改版/ 目录,文件命名为 律师修改版- + 原文件名
  • 如用户直接指定文件路径,按用户指定路径读取

批注格式要求

  • 批注人: 从 CLAUDE.md 中读取,如未配置则询问用户
  • 引号: 全部使用全角引号(即中文引号 \u201c \u201d),禁止使用半角引号 ""
  • 批注形式: 直接在 Word 文档中生成批注(Comment),不是文本修改
  • 批注标签: 每条批注以【修改建议】【审查意见】【重点审查意见】等标签开头,便于分级阅读

批注生成技术规范

使用 Python + lxml 直接操作 docx(zip 包)实现:

  1. 创建 word/comments.xml(批注内容)
  2. 在 word/document.xml 中对应段落插入 commentRangeStart、commentRangeEnd、commentReference
  3. 在 [Content_Types].xml 中添加 comments 的 ContentType
  4. 在 word/_rels/document.xml.rels 中添加 comments 的 Relationship
  5. 生成前验证:所有批注文本中不含半角引号 "

三、合同分级审查策略

分级标准

档位金额范围审查定位批注密度参考
A档(小额)≤10万元底线把控,快速通过5-10条
B档(中等)10万-100万元标准审查,全面覆盖10-20条
C档(大额)>100万元深度审查,重点攻防15-30条

分级判定规则

  1. 合同金额明确的,直接按金额归档
  2. 合同金额为概算、预估或框架协议的,按可预见的最大履行金额归档
  3. 合同金额无法确定的(如长期服务、按次结算),默认按B档审查
  4. 虽金额小但涉及国有资产使用、品牌授权、数据共享的,至少按B档审查

各档审查策略差异

A档(小额 ≤10万元)——底线把控

重点关注: 主体资质、价格明确性、基本违约责任、管辖法院 适当放宽:

  • 缺少送达条款的,以【审查意见】提示即可,不标【重点审查意见】
  • 缺少保密、反商业贿赂等附属条款的,合并为一条【审查意见】概括提醒
  • 违约金比例不必苛求精确对等,有基本约定即可
  • 权利义务对等性做整体判断,不逐条拆分
B档(中等 10万-100万元)——标准审查

按第四章审查要点清单完整覆盖,各项均按默认标准执行。

C档(大额 >100万元)——深度审查

在B档标准基础上,额外强化以下方面:

  • 履约担保: 审查是否需要履约保证金、银行保函、母公司担保等担保措施,缺少的标【重点审查意见】
  • 付款节奏: 逐笔审查付款节点与交付里程碑的对应关系,避免付多做少;预付款比例建议不超过30%
  • 退出机制: 细化提前终止的触发条件、善后安排、已投入成本分担、在途业务处理
  • 对方履约能力: 建议核查对方注册资本与合同金额的匹配度,必要时要求提供近年财务报表或审计报告
  • 国资审批: 如委托方为国有企业,明确提醒是否触发三重一大决策程序,是否需要国资委备案或评估
  • 争议解决升级: 评估是否更适合约定仲裁(保密性强),是否需要约定诉前财产保全条款
  • 连带责任: 涉及项目分包或多方合作的,审查是否约定了连带责任或责任切割

批注标签与金额联动

审查问题A档标签B档标签C档标签
缺少保密条款【审查意见】【审查意见】【重点审查意见】
缺少送达条款【审查意见】【审查意见】【重点审查意见】
缺少履约保证金不提【审查意见】【重点审查意见】
违约金比例偏低【审查意见】【重点审查意见】【重点审查意见】
缺少反商业贿赂条款【审查意见】【审查意见】【重点审查意见】
管辖法院未约定为我方所在地【重点审查意见】【重点审查意见】【重点审查意见】
预付款比例过高【审查意见】【重点审查意见】【重点审查意见】

四、合同审查要点清单

每个要点后标注适用档位:[全档] 表示三档均审查;[B/C档] 表示仅中等和大额合同审查;[仅C档] 表示仅大额合同审查。

(一)主体与资质审查 [全档]

  • 识别委托方在合同中的角色(甲方/乙方/其他)[全档]
  • 核实对方主体信息是否完整(名称、统一社会信用代码、地址、法定代表人、联系方式)[全档]
  • 审查对方是否具备履行合同所需的经营资质和许可 [全档]
  • 审查合同内容是否在委托方经营范围内 [全档]
  • 核查对方注册资本与合同金额的匹配度,评估履约能力 [仅C档]

(二)权利义务对等性 [全档]

  • 委托方承担的义务是否有对等的对方义务或对价 [全档]
  • 委托方提供资源(资金、场地、品牌、产品等)时,对方是否有明确的回报承诺 [B/C档]
  • 是否存在单方面加重委托方负担或免除对方责任的条款 [全档]

(三)价格与付款条款 [全档]

  • 价格是否明确、可操作、有衡量标准 [全档]
  • 付款条件是否设置了充分的前提(如验收合格、发票合规等)[全档]
  • 付款比例和节奏是否对委托方有利(避免大比例预付)[全档]
  • 预付款比例是否超过30%,超过的应标注风险 [B/C档]
  • 发票类型、税率是否明确约定 [全档]
  • 如委托方为收款方,付款期限是否合理,是否有逾期付款违约金 [全档]
  • 付款节点与交付里程碑是否严格对应 [仅C档]

(四)履约保障条款 [B/C档]

  • 质量标准是否明确且可衡量 [B/C档]
  • 验收流程和标准是否清晰 [B/C档]
  • 交付时间、地点、方式是否明确 [全档]
  • 质保期是否合理 [B/C档]
  • 是否有履约保证金约定 [B/C档]
  • 是否需要银行保函、母公司担保等增强担保措施 [仅C档]

(五)违约责任 [全档]

  • 违约责任是否对委托方有利(对方违约金比例高于委托方)[B/C档]
  • 是否有基本的违约责任条款(A档仅审查是否存在)[全档]
  • 违约金是否包含兜底条款(不足以弥补损失时可另行赔偿)[B/C档]
  • 损失范围是否明确(直接损失、间接损失、律师费等)[B/C档]
  • 委托方是否有直接抵扣权(从货款/保证金中抵扣违约金)[仅C档]

(六)合同解除与退出机制 [B/C档]

  • 委托方是否享有单方解除权或提前终止权 [B/C档]
  • 解除/终止后的善后安排是否明确(如清算、退还、恢复原状等)[B/C档]
  • 对方违约达到何种程度时委托方可解除合同 [B/C档]
  • 提前终止时已投入成本的分担机制、在途业务的处理 [仅C档]

(七)争议解决 [全档]

  • 管辖法院是否约定为委托方所在地人民法院 [全档]
  • 是否约定败诉方承担律师费、保全费、鉴定费等维权费用 [B/C档]
  • 是否更适合约定仲裁(保密性需求、跨境因素等)[仅C档]
  • 是否需要约定诉前/仲裁前财产保全条款 [仅C档]

(八)送达条款 [B/C档]

  • 是否约定了有效送达地址(包括司法文书送达地址)[B/C档]
  • 是否包含电子送达条款(邮件、钉钉、企业微信等)[B/C档]
  • 对方是否提供法定代表人/实际控制人联系方式作为备用送达地址 [仅C档]

(九)必备条款检查清单

  • 保密条款 [B/C档](A档如缺失,合并提醒即可)
  • 知识产权归属条款 [B/C档](如涉及)
  • 反商业贿赂条款 [B/C档](A档如缺失,合并提醒即可)
  • 不可抗力条款(排除商业风险、明确通知义务和减损义务)[B/C档]
  • 个人信息保护条款(如涉及)[B/C档]
  • 数据安全条款(如涉及电商、数据共享等)[B/C档]
  • 竞业限制/排他条款(如涉及战略合作)[仅C档]
  • 转包分包限制条款(如涉及服务采购)[B/C档]
  • 连带责任条款(如涉及多方合作或项目分包)[仅C档]

(十)国企特殊审查要点(仅当委托方为国有企业时适用)

  • 合同金额>100万元的,明确提醒是否需要三重一大决策或国资委备案 [仅C档]
  • 合同金额>50万元的,提醒关注内部审批流程 [B/C档]
  • 涉及国有资产(品牌、场地、设备等)对外提供使用的,重点审查对价合理性和资产保护 [全档]
  • 涉及因公出国(境)的,提醒是否需要审批前置 [全档]
  • 关联交易需特别关注公允性 [全档]

五、审查输出要求

批注层级

标签含义使用场景
【修改建议】文字表述问题语句不通、用词不当、引号错误、表述重复等
【审查意见】一般性法律建议条款完善、补充约定、明确标准等
【重点审查意见】重大风险提示权利义务严重失衡、核心条款缺失、重大合规风险等

审查完成后

在终端输出审查要点摘要表格,包含:

  • 合同金额与审查档位(A/B/C档)
  • 重大风险提示(条款 + 风险等级 + 核心问题)
  • 重大条款缺失清单
  • 各条款审查意见汇总表

六、执行步骤

请按以下步骤执行合同审查:

  1. 读取委托方信息:从 CLAUDE.md 或用户输入中获取委托方基本信息和立场
  2. 读取合同文件:从 合同原版/ 目录或用户指定路径读取 .docx 文件
  3. 判定审查档位:根据合同金额确定 A/B/C 档
  4. 按要点清单逐项审查:根据档位适用的审查要点逐一检查
  5. 生成批注版合同:使用 Python + lxml 在 docx 中插入批注,输出到 律师修改版/ 目录
  6. 终端输出审查摘要:输出审查要点摘要表格

附录:CLAUDE.md 配置模板

用户在自己的项目目录下创建 CLAUDE.md,填写以下内容即可让本 skill 自动识别委托方信息:

markdown
# 合同审查项目配置

## 委托方基本信息

| 项目 | 信息 |
|------|------|
| 全称 | (填写委托方公司全称) |
| 统一社会信用代码 | (填写) |
| 企业类型 | (如:有限责任公司、国有控股等) |
| 法定代表人 | (填写) |
| 注册地址 | (填写,影响管辖法院约定) |
| 经营范围 | (填写核心经营范围) |

## 审查立场

始终站在(委托方名称)一方的立场,以保护其合法权益为核心目标。

## 批注人署名

批注人:(填写律师姓名或事务所简称)

## 特殊属性(按需勾选)

- [ ] 国有企业(需关注国资监管、三重一大决策等)
- [ ] 上市公司(需关注信息披露、关联交易等)
- [ ] 外商投资企业(需关注外资准入、外汇管理等)

Frequently asked questions

What does the Contract Review AI skill do?

中国律师合同审查助手。基于中国大陆法律体系,对合同进行分级审查, 自动在Word文档中生成批注(Comment),输出审查摘要。 支持A/B/C三档审查策略,覆盖主体资质、权利义务、违约责任、 争议解决等十大审查维度。适用于企业常年法律顾问的日常合同审查工作。

Why use Contract Review on TypingMind?

Because you install it once and use it with any model. Contract Review is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Contract Review in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/fayayy888/legal-document-assistant/tree/main/hetong-shencha. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Contract Review?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Contract Review?

As many as you like. As long as a model supports skills, you can use Contract Review with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Contract Review AI skill free?

It is published on GitHub by fayayy888. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇