contract-copilot

Review and draft Chinese contracts with tracked changes, comments, and formal review opinions in DOCX.

636|91|Updated Jan 7, 2026
One-click install
npx skills add https://github.com/cat-xierluo/legal-skills --skill contract-copilot
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: contract-copilot
Source: https://github.com/cat-xierluo/legal-skills/tree/main/skills/contract-copilot
Command: npx skills add https://github.com/cat-xierluo/legal-skills --skill contract-copilot

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires defusedxml, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Reviewing Chinese commercial contracts manually is slow and inconsistent: risks get missed, revision marks look machine-generated, and review reports vary in format. This Skill turns contract review and drafting into a structured workflow that identifies risks by severity, applies tracked changes and comments directly into DOCX files, and produces a formal lawyer-style review opinion letter.

Core Features & Use Cases

  • Layered Contract Review: Scans contracts across transaction structure, document form, and clause language, then classifies every risk as P0/P1/P2 with recommended wording and legal basis.
  • DOCX Tracked Changes & Comments: Executes a structured review plan to write native Word revisions, comments, and a formatted review opinion document, with realistic staggered timestamps and reviewer attribution.
  • Contract Drafting Support: Routes drafting requests across 12 fixed contract categories, producing a routing card, clause skeleton, missing-facts list, and procedural prerequisites.
  • Use Case: A lawyer receives a design services contract via an IM chat, asks for a review from the buyer's position at standard intensity, and receives back a revised DOCX with tracked changes plus a formal review opinion letter ready for client delivery.

Quick Start

Review the attached contract DOCX from the buyer's position at standard intensity and deliver the revised Word file with tracked changes plus a formal review opinion document.

Frequently Asked Questions about contract-copilot

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I review a contract DOCX with tracked changes using AI?

Provide the DOCX contract and specify your party position and review intensity. The Skill builds a review plan JSON, then runs apply_review_plan.py to write tracked changes and comments into a revised DOCX plus a formal Word review opinion.

What contract types does this contract review skill cover?

It covers a fixed set of 12 Chinese contract categories: sales, lease, service, intellectual property, guarantee, lending and gift, internet agreements, marriage and family, employment, real estate, construction, and corporate investment.

Can it draft a new contract instead of only reviewing?

Yes. Drafting produces a routing card identifying the main contract type and companion agreements, a clause skeleton, a missing-facts list, and procedural prerequisites, using the same reference files as the review workflow.

What Python dependencies are required to run the DOCX scripts?

The scripts require the defusedxml package, pinned in scripts/requirements.txt. OOXML packing, unpacking, and validation are embedded in scripts/docx/, so no external Office parsing library is needed.

Why does the review pause and ask questions before starting?

Party position, review purpose, and review intensity form a blocking checklist. If any is missing, the Skill pauses and requests confirmation rather than silently defaulting, preventing misaligned formal review conclusions.

What are the limitations of automated contract review?

It does not replace a lawyer's final signing opinion on major transactions, handle foreign-language or foreign-jurisdiction contracts, or complete offline approvals and registrations. When key facts are missing, it outputs a pending conclusion instead of a signability verdict.