contract-review

Insert structured comments into Word contracts and generate summaries, opinions, and Mermaid flowcharts.

Updated Jan 25, 2026
One-click install
npx skills add https://github.com/xfs96192/claude-config --skill contract-review-xfs96192
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: contract-review
Source: https://github.com/xfs96192/claude-config/tree/main/skills/contract-review
Command: npx skills add https://github.com/xfs96192/claude-config --skill contract-review-xfs96192

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Contract review often requires laborious manual annotation and risk assessment while preserving the original document. This Skill automates a non-editing, comment-based review workflow that surfaces structured feedback without altering source text.

Core Features & Use Cases

  • Comment-based review: Attaches precise, user-facing comments to contract text (no edits to original).
  • Three-layer review: Implements Basic, Business, and Legal review layers and generates a contract summary, consolidated opinion, and a Mermaid flowchart.
  • Language-aware outputs: Detects the contract’s dominant language and renders all outputs (comments, summary, opinion, and diagrams) in that language.
  • Outputs and artifacts: Produces a reviewed Word document, a contract summary (Word), a consolidated opinion (Word), and a flowchart image (Mermaid rendering).

Quick Start

Provide a contract.docx to the workflow and receive a reviewed contract document, a contract summary, a consolidated opinion, and a rendered business flowchart.

Frequently Asked Questions about contract-review

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

FAQPage Schema
How do I add review comments to a Word contract without changing the original text?

To add review comments to a Word contract without changing the original text, you can use an automated workflow that inserts non-editing comments via OOXML. This preserves the source document while attaching structured feedback directly to the relevant clauses.

Can I automatically generate a contract summary and a visual flowchart from a docx file?

Yes, you can automatically generate a contract summary and a Mermaid flowchart from a docx file. The workflow analyzes the document and outputs a summary, a consolidated opinion document, and a rendered flowchart image.

Does the automated contract review workflow support multi-language documents?

Yes, the automated contract review workflow supports multi-language documents by detecting the contract's dominant language. It then renders all outputs, including comments, summaries, opinions, and diagrams, in that detected language.

Do I need Python dependencies to run the contract review automation?

Yes, you need Python dependencies to run the contract review automation. The workflow relies on Python tooling and requires the defusedxml and python-docx libraries to process OOXML and manipulate Word documents.

What is the best way to perform a three-layer legal and business contract review?

The best way to perform a three-layer legal and business contract review is using an automated workflow that applies basic, business, and legal analysis. It produces structured comments, a consolidated opinion, and a visual flowchart.