Skip to content
AI & Agents
Skill

/contract-review

律师助理与法律助手、项目管理专家在审核合同、排查条款风险时必备。自动执行基础、商业、法律三层审查,仅添加批注不改原文,一键生成带批注合同、审查摘要、综合意见及业务流程图,让合同风控与业务梳理更高效专业。

From plugin
skill
9.6k127 skills

Claude Code

$ npx -y skills add anbeime/skill --skill contract-review --agent claude-code

SKILL.md

contract-review.SKILL.md
name: contract-review
description: 律师助理与法律助手、项目管理专家在审核合同、排查条款风险时必备。自动执行基础、商业、法律三层审查,仅添加批注不改原文,一键生成带批注合同、审查摘要、综合意见及业务流程图,让合同风控与业务梳理更高效专业。
display_name: 法律咨询助手
version: 1.0.0
author: c3b57459-6405-4180-adea-9dcff7bb7e1c
examples:
  - "审查这份合同里的违约责任和管辖条款"
  - "这份协议有没有自动续约的坑"

Contract Review Skill

Overview

This skill performs contract reviews by **adding comments only** (no edits to the original text). It follows a three-layer review (basic, business, legal) and generates:

  • Annotated contract (.docx)
  • Contract summary (.docx)
  • Consolidated review opinion (.docx)
  • Business flowchart (Mermaid + rendered image)

**Language rule:** detect the contract’s dominant language and output all generated content (comments, summary, opinion, flowchart text) in that language. Use the guidance in **[references/language.md](references/language.md)**.

Workflow

1. Unpack the contract (.docx) for XML operations 2. Read contract text (pandoc or XML) 3. Execute three-layer review 4. Add comments to the document 5. Generate contract summary 6. Generate consolidated opinion 7. Generate business flowchart and render image 8. Repack to .docx

Output Naming

  • Output directory: `审核结果:{ContractName}` for Chinese or `Review_Result_{ContractName}` for English
  • Reviewed contract: `{ContractName}_审核版.docx` for Chinese or `{ContractName}_Reviewed.docx` for English
  • Review report: `审核报告.txt` for Chinese or `Review_Report.txt` for English

Comment Principles

  • **Comments only**: do not modify the original text or formatting
  • **Precise anchoring**: comment should target specific clauses/paragraphs
  • **Structured content**: each comment includes issue type, risk reason, and revision suggestion
  • **Risk level**: carried by reviewer name; do **not** include a “risk level” line in comment body
  • **Output language**: use labels in the contract’s language (see `references/language.md`)

**Comment example (English):**

[Issue Type] Payment Terms
[Risk Reason] The total amount is stated as USD 100,000 in Section 3.2, but the payment clause lists USD 1,000,000 in Section 5.1. This inconsistency may cause disputes.
[Revision Suggestion] Align the total amount across clauses and clarify whether tax is included.

Review Standards

Use the three-layer review model and the detailed checklist in **[references/checklist.md](references/checklist.md)**.

Layer 1: Basic (text quality)

  • Accuracy of numbers, dates, terms
  • Consistent numbering and references
  • Clarity and lack of ambiguity
  • Formatting and punctuation quality

Layer 2: Business terms

  • Scope, deliverables, quantity/specs
  • Pricing and payment schedule
  • Delivery/acceptance procedures
  • Rights/obligations and performance guarantees

Layer 3: Legal terms

  • Effectiveness and term/termination
  • Liability/penalties and remedies
  • Dispute resolution and governing law
  • Confidentiality, force majeure, IP, notice, authorization

**Risk levels (encoded in reviewer name):**

  • 🔴 High: core business ambiguity (price, scope, rights/obligations)
  • 🟡 Medium: material but non-core ambiguity
  • 🔵 Low: minimal practical impact

Contract Summary

Generate a structured, objective summary in the contract’s language.

  • See **[references/summary.md](references/summary.md)** (English template)
  • Use **[references/language.md](references/language.md)** for language selection and Chinese labels

Output file: `合同概要.docx` for Chinese or `Contract_Summary.docx` for English (default font: 仿宋; adjust if language requires)

Consolidated Opinion

Generate a concise, two-paragraph response for the business team in the contract’s language.

  • See **[references/opinion.md](references/opinion.md)**

Output file: `综合审核意见.docx` for Chinese or `Consolidated_Opinion.docx` for English (default font: 仿宋; adjust if language requires)

Business Flowchart (Mermaid)

Generate Mermaid flowchart per requirements and render to image.

  • See **[references/flowchart.md](references/flowchart.md)**

Outputs:

  • `business_flowchart.mmd`
  • `business_flowchart.png`

li## Technical Notes

Core workflow: 1. Unpack → 2. Add comments → 3. Summary → 4. Opinion → 5. Flowchart → 6. Repack

API & implementation details:

  • **[references/technical.md](references/technical.md)**

Dependencies

  • Python 3.9+ (3.10+ recommended)
  • pandoc (system install)
  • defusedxml
  • Mermaid CLI (`mmdc`) for rendering
  • python-docx for rich text output

Troubleshooting (Short)

  • **Comments missing in Word**: run `doc.verify_comments()` and re-save
  • **find_paragraph fails**: shorten search text; confirm actual paragraph text
  • **Mermaid render fails**: ensure `mmdc` installed; use Chrome path or Puppeteer config

Examples

See **[references/examples.md](references/examples.md)** for a full workflow example.

Important Rules

1. Never alter original contract text 2. Review all three layers, do not skip items 3. Ensure risk level is accurate and consistent 4. Keep comments precise, professional, and actionable 5. Flowchart must come strictly from the contract text 6. Summary is objective only; no risk analysis 7. Opinion only reflects findings already identified

Read more
@anbeime
Ships withskill

收录最全、更新最快的AI Agent技能库,涵盖文档处理、内容创作、编程开发、机器学习、自动化工作流等多个领域的精选技能包。 🎁 知易多模型知识管家 · 免费试用预约 — 20+ 模型自由切换、技能市场、四色卡片知识库,留邮箱锁定免费试用名额,每周再收一份知易AI周刊。

9.6k127 skills
Get the whole plugin

Stars on GitHub

Momentum

stars in total
9.6k
Star history of anbeime/skill on GitHub, a chart by star-history.com

Other skills on skill.

doc-parse

doc-parse

将 PDF/PPT/Excel/Word 等多格式文档解析为结构化 Markdown,并输出元数据与解析置信度,作为 RAG 与四色卡片的数据底座。

@anbeime@anbeimeInstall Skill
four-color-cards

four-color-cards

基于解析后的文档与用户意图,生成四色卡片——事实蓝卡、解释绿卡、风险黄卡、行动红卡,是八官署方法论的核心分析输出。

@anbeime@anbeimeInstall Skill
provenance

provenance

收集系统全链路操作日志,生成可追溯的执行证据链与向量索引,是多智能体系统可观测性与安全审计的底座。

@anbeime@anbeimeInstall Skill
security-scan

security-scan

对进入系统的文件或 URL 执行安全与合规扫描,输出 pass/reject 判定与扫描报告,作为所有文档处理的强制前置关卡。

@anbeime@anbeimeInstall Skill
RuiC-card-skill

RuiC-card-skill

Generate interactive 3D holographic collectible-card websites from a user description or reference image, using layered artwork,…

@anbeime@anbeimeInstall Skill
agent-team

agent-team

产品经理与项目管理专家在应对复杂项目时,使用此技能可动态组建包含“执行、指挥、评审”的专属AI团队。实时查看多智能体辩论与决策全过程,共享统一上下文记忆,一键完成从会议决策到系统构建的全流程高效协同!

@anbeime@anbeimeInstall Skill

More skills from other plugins.

1password

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

openclaw2w393k
@openclaw@openclawInstall Skill

Questions about contract-review.

Which coding agents can use contract-review?
contract-review installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.