anbeime/contract-review
Contract review skill that adds comment-based issue annotations without changing original text. Enforces a three-layer review (basic, business, legal), writes structured comments (issue type, risk reason, revision suggestion) with risk level encoded via reviewer name, and generates a contract summary, consolidated opinion, and Mermaid business flowchart (with rendered image). Output language must follow the contract’s language.
npx skills add https://github.com/anbeime/skill --skill contract-review
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:
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.
审核结果:{ContractName} for Chinese or Review_Result_{ContractName} for English{ContractName}_审核版.docx for Chinese or {ContractName}_Reviewed.docx for English审核报告.txt for Chinese or Review_Report.txt for Englishreferences/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.
Use the three-layer review model and the detailed checklist in references/checklist.md.
Risk levels (encoded in reviewer name):
Generate a structured, objective summary in the contract’s language.
Output file: 合同概要.docx for Chinese or Contract_Summary.docx for English (default font: 仿宋; adjust if language requires)
Generate a concise, two-paragraph response for the business team in the contract’s language.
Output file: 综合审核意见.docx for Chinese or Consolidated_Opinion.docx for English (default font: 仿宋; adjust if language requires)
Generate Mermaid flowchart per requirements and render to image.
Outputs:
business_flowchart.mmdbusiness_flowchart.pngli## Technical Notes
Core workflow:
API & implementation details:
mmdc) for renderingdoc.verify_comments() and re-savemmdc installed; use Chrome path or Puppeteer configSee references/examples.md for a full workflow example.
Take anbeime/contract-review from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.