Contract Comparison

Compares two contract versions or two competing contracts side by side, showing every change, who it favors and which ones are risky.

Office & Documentscontractslegaldocument comparisonnegotiationby zubair-trabzada1.8kGitHub

What it is

Contract Comparison is for anyone who receives a revised draft of an agreement and needs to know what actually changed, or who is choosing between two offers, such as two vendor contracts or two job agreements. You give it two documents as files, web links or pasted text. The agent works out whether they are two versions of one contract or two separate contracts, labels them, and maps which sections were kept, added, removed or renumbered.

Rather than a loose summary, it compares the documents clause by clause and sorts every difference as added, removed, a change in meaning or a cosmetic edit. Each one is rated major, minor or cosmetic and marked as favoring one party, the other, or neither. It watches for sneaked-in clauses, removed protections such as liability caps, quietly widened definitions, new payment or termination terms, broader indemnification (who pays for whose losses), shifts in who owns intellectual property and new rights for one side to change terms alone.

The result is a report file called CONTRACT-COMPARISON.md with an executive summary, a change table, a section on dangerous changes showing the exact before and after wording, a list of unchanged sections, and a clear verdict on which version is better and what to push back on. When the two files are different contracts rather than versions, it compares equivalent sections instead of tracking edits. It is not legal advice, and it says so at the top.

What it can do

  • Tells you whether the two files are versions of one contract or different contracts, and labels them.
  • Lists every added, removed, reworded and cosmetic change, quoting the exact text from both documents.
  • Rates each change as major, minor or cosmetic and says which party it favors.
  • Flags dangerous edits such as dropped liability caps, broader indemnities or a switched governing law.
  • Gives an overall verdict on which version is more favorable, with reasons.
  • Names the three changes most worth reversing if you have to sign the newer version.

When to use it

  • The other side returned your draft with what they call minor edits, and you want to check nothing important slipped in.
  • You have two vendor proposals with different terms and need to know which contract is safer to sign.
  • Your landlord sent a renewal lease and you want to see exactly how it differs from last year's.
  • A client's legal team sent a clean copy with no tracked changes and you need to find what moved.

How it works

  1. 1Reads both documents from files, links or pasted text and decides which is the earlier and which the later version.
  2. 2Maps the structure of each to find sections that appear in both, only in one, or were renumbered.
  3. 3Compares matching clauses and classifies each difference by type, significance and which party it favors.
  4. 4Checks for a fixed list of dangerous patterns, from stripped protections to one-sided amendment rights.
  5. 5Writes the CONTRACT-COMPARISON.md report with summary tables, quoted before-and-after text and a recommendation.

Try asking

“Compare these two versions of our service agreement and tell me what changed.”
“Which of these two vendor contracts is better for us?”
“The client sent the contract back with edits. Did they slip anything risky in?”
“Show me every difference between my old lease and the new one.”

How to install

Install with the skills CLI (recommended)

Works with Claude Code, Codex, Cursor, OpenCode and other agents, and asks which ones to install to. Needs Node.js 22.20+. Add -g to make it available in every project.

npm
npx skills add https://github.com/zubair-trabzada/ai-legal-claude/tree/main/skills/legal-compare
pnpm
pnpm dlx skills add https://github.com/zubair-trabzada/ai-legal-claude/tree/main/skills/legal-compare

Install manually

Copies the skill folder into Claude Code's personal skills directory. For claude.ai, zip the legal-compare folder and upload it in the Skills section of Settings.

Terminal
git clone --depth 1 https://github.com/zubair-trabzada/ai-legal-claude.git
mkdir -p ~/.claude/skills
cp -r ai-legal-claude/skills/legal-compare ~/.claude/skills/legal-compare

Then just ask in plain language, for example: “Compare these two versions of our service agreement and tell me what changed.”