redline

Generate Word-tracked-changes redlines and risk analysis from two .docx contract versions.

6|Updated Feb 10, 2026
One-click install
npx skills add https://github.com/jdrodriguez/legal-toolkit --skill redline
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: redline
Source: https://github.com/jdrodriguez/legal-toolkit/tree/main/legal-toolkit/skills/redline
Command: npx skills add https://github.com/jdrodriguez/legal-toolkit --skill redline

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Manually comparing two contract versions and surfacing differences is error-prone and time-consuming. This tool generates Word-tracked changes redlines and provides risk-rated change analysis to streamline contract revision workflows.

Core Features & Use Cases

  • Generate Word tracked-changes redlines from two contract versions (.docx)
  • Provide risk-rated change analysis and categorization
  • Detect sections and preserve formatting for review
  • Output artifacts: redline.docx, change_analysis.json, material_changes.txt, redline_summary.txt

Quick Start

Provide two .docx contract files to compare and generate a redline document with automated risk analysis.

Frequently Asked Questions about redline

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

FAQPage Schema
How do I generate a Word redline between two contract versions?

To generate a Word redline, provide two .docx contract files for comparison. The Skill outputs a redline document with tracked changes, alongside a JSON change analysis and text summaries highlighting material and administrative differences.

Can I automate contract risk analysis for tracked changes in .docx files?

Yes, you can automate contract risk analysis by processing two .docx files. The Skill performs section detection, categorizes risks, and outputs a change_analysis.json file along with material_changes.txt to flag material vs administrative edits.

Does this redline tool preserve document formatting and detect contract sections?

Yes, the redline tool preserves original formatting and detects contract sections during comparison. It processes the .docx inputs to maintain structural integrity while generating tracked changes and risk-rated analysis artifacts.

What do I need to compare contracts and produce client-ready redline documentation?

You need two .docx contract versions to compare. The Skill outputs a redline.docx, change_analysis.json, material_changes.txt, and redline_summary.txt, providing client-ready documentation and categorized risk assessment.

Are there limitations when using python-docx for legal contract comparison?

The Skill relies on python-docx and docx dependencies, meaning it is limited to processing .docx file formats. It handles error handling and section detection within this scope, but cannot parse PDF or other document types.

What is the best way to surface material vs administrative changes in a contract revision?

The best way to surface material vs administrative changes is to input the original and revised .docx contracts. The Skill automatically compares versions, categorizes the risk level of changes, and exports a summary distinguishing material edits.