contract-review – skill Lập trình cho agent AI
Dành cho trợ lý pháp lý, trợ lý luật và chuyên gia quản lý dự án khi rà soát hợp đồng và kiểm tra rủi ro điều khoản. Tự động thực hiện rà soát ba lớp: cơ bản, thương mại, pháp lý; chỉ thêm chú thích, không sửa văn bản gốc; xuất hợp đồng có chú thích, bản tóm tắt rà soát, ý kiến tổng hợp và sơ đồ quy trình nghiệp vụ, giúp quản trị rủi ro hợp đồng và phân tích nghiệp vụ hiệu quả hơn.
Cài skill contract-review bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/contract-review-1019d.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /contract-review – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/contract-review-1019d.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $contract-review – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/contract-review-1019d.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /contract-review – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/contract-review-1019d.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /contract-review – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
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 orReview_Result_{ContractName}for English - Reviewed contract:
{ContractName}_审核版.docxfor Chinese or{ContractName}_Reviewed.docxfor English - Review report:
审核报告.txtfor Chinese orReview_Report.txtfor 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.mmdbusiness_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
mmdcinstalled; 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
Skill liên quan
- video-generator – Dùng mô hình AI lớn tạo video có thoại và âm thanh môi trường từ văn bản, khung đầu/cuối…
- antigravity-cli – Vận hành Antigravity CLI (agy): plugin, xác thực, sandbox.
- apple-notes – Quản lý Apple Notes qua CLI memo: tạo, tìm kiếm, chỉnh sửa.
- benchling-integration – Tích hợp Benchling Python SDK và REST API cho thực thể registry, kho mẫu, mục ELN, quy…
- auth-implementation-patterns – Nắm vững các mẫu xác thực và phân quyền gồm JWT, OAuth2, quản lý session và RBAC để xây…
- gh-address-comments – Hỗ trợ xử lý các comment review/issue trên PR GitHub đang mở của nhánh hiện tại bằng gh…
- ai-decision-authority – Phân loại quyết định marketing và GTM vào ba vùng quản trị AI (AI-Primary…
- gh-fix-ci – Dùng khi người dùng yêu cầu gỡ lỗi hoặc sửa các PR check thất bại chạy trên GitHub…