AI Legal Contract Review
Paste the following prompt into your AI chat to install this skill:
Please follow https://skillhub.cn/install/skillhub.md and install @user_1a470ba8/workbuddy-contract-review.
About this skill
Problem
Chinese contract review often gets stuck in scattered risks, weak citations, and missing follow-through. Contracts arrive as PDF, Word, scanned images, or plain text; risk levels, edit suggestions, and legal bases are easy to mix together; historical contracts, payment milestones, and recurring counterparty risks are hard to track. This skill turns the review workflow into repeatable command-line steps instead of manual clause hunting.
How It Works
The pipeline is: text extraction -> structure parsing -> rule engine + LLM semantic review -> report generation. The rule engine handles deterministic checks; the LLM handles semantic risk; use --scope, --role, and --industry to switch between full/key/quick review, Party A/Party B perspective, and industry packs. Outputs include risk grading, edit suggestions, compliance basis, and structured reports such as report.md.
- Clause library and revision draft: matches 275 standard clauses;
--revisecan generate a redline draft with red strikethrough, green replacement text, and gray comments; falls back to Markdown comparison ifpython-docxis unavailable. - Legal and case support:
--legal-baselinks Civil Code contract clauses, Company Law, and judicial interpretations;--guiding-casesand--case-lawprovide Supreme People's Court guiding-case points and tendency summaries. - Ledger and search: reviewed contracts can be stored in a SQLite ledger with contract number, counterparty, amount, payment milestones, and expiry date;
--archive-searchsupports inverted-index search, BM25 recall, and multi-dimension filters. - Multi-contract analysis:
--risk-trendaggregates risk-frequency trends, high-risk clause ratios, and recurring counterparty risks;--negotiatecompares multiple versions to flag must-defend and negotiable terms;--alignsupports Chinese-English, Chinese-Japanese, and Chinese-Korean paragraph alignment and version mismatch detection.
Boundaries
This is useful for first-pass review, clause comparison, review drafts, and milestone tracking, but it does not replace licensed legal advice. OCR on scanned documents may misread amounts, dates, or entity names; cross-border contracts involving multiple jurisdictions should be reviewed with local counsel; using --text or external LLM APIs may send sensitive contract text outside the local environment.
Use Cases
- Legal teams reviewing PDF procurement contracts need to flag high-risk clauses and generate edit suggestions
- Business teams comparing Chinese and English contract versions need to locate missing terms and wording conflicts
- Operations teams maintaining contract ledgers need reminders for payment or performance milestones 30, 7, and 1 days before expiry
Best For
- Legal engineers: add reusable rule checks and legal citations to contract review workflows
- Business operations: track contract performance milestones and compare risks across historical contracts
- Contract review developers: integrate PDF/Word text extraction, risk reports, and Word revision generation
Related Skills
Covers literature review, data analysis, visualization, drug discovery, paper writing, and grant writing workflows.
A retrieval assistant for Chinese laws and regulations, supporting semantic queries, validity checks, clause location, and regulation comparison with CLI-based output.
Run questionnaire-based tax risk scans that generate red/orange/yellow alerts with industry templates, policy references, remediation actions, and local trend tracking.
A contract review assistant for legal and business teams that extracts clauses, flags risks, compares versions, and generates opinion reports with a built-in legal knowledge base.