Claude Legal Skill
AI-powered contract review skill with CUAD risk detection, market benchmarks, and lawyer-ready redlines. Works with Claude Code, Codex, Cursor, and 26+ tools.
Install: pip install git+https://github.com/evolsb/legal-redline-tools.git
Works with Claude Code, Codex, Cursor · 469 GitHub stars
Install
pip install git+https://github.com/evolsb/legal-redline-tools.gitInstall command taken from the project's README or registry entry. Always review code before running it.
README excerpt
Read full README on GitHub →Contract Review — Agent Skill for Legal Analysis
AI-powered contract review with CUAD risk detection, market benchmarks, and lawyer-ready redlines
Works with: Claude Code · OpenAI Codex · Cursor · GitHub Copilot · Gemini CLI · 26+ tools
Quick Install
# Claude Code
git clone https://github.com/evolsb/claude-legal-skill ~/.claude/skills/contract-review
# OpenAI Codex
git clone https://github.com/evolsb/claude-legal-skill ~/.codex/skills/contract-review
# Other Agent Skills-compatible tools — clone to your tool's skills directory
Try It
Review this NDA - I'm the receiving party
Example Output
Why This Exists
I was reviewing real contracts — NDAs, SaaS agreements, M&A docs, merchant agreements — and wanted AI assistance directly in my coding workflow. So I researched what was available:
- Commercial legal AI (Kira, Ironclad, LegalOn, Harvey, Spellbook) — enterprise-only, custom quotes, no API access for individual developers
- Open source tools (LexNLP, OpenContracts, LawGlance) — incomplete projects requiring significant integration work, none designed for AI coding assistants
- Generic contract checklists — one-size-fits-all reviews that don't differentiate between an NDA and an M&A agreement, give the same advice to buyers and sellers, and say "negotiate this" without telling you what to ask for
Nothing worked as a drop-in skill. So I built one grounded in the CUAD dataset (41 legal risk categories from 510 real contracts), tested it against actual agreements, and iterated until the output was useful for real negotiations.
The result: position-aware review with market benchmarks, document-type checklists, and actual redline language — not just a list of issues.
What It Does
Analyzes legal contracts and outputs:
- Risk assessment with severity ratings (🔴 Critical / 🟡 Important / 🟢 Acceptable)
- Red flags quick scan — instant danger sign detection
- Key terms table with section references
- Market standard benchmarks — how terms compare to industry norms
- Negotiability ratings — what's realistic to change given power dynamics
- Specific redlines — actual replacement language, not just "negotiate this"
- Missing provisions with suggested language to add
- Internal consistency checks (broken cross-references, undefined terms)
Generate Deliverables with legal-redline-tools
This skill outputs structured JSON redlines. To produce the tracked-changes Word docs and redline PDFs that lawyers actually send, pair with legal-redline-tools:
pip install git+https://github.com/evolsb/legal-redline-tools.git
# After the skill generates redlines.json:
legal-redline apply contract.docx redlined.docx \
--from-json redlines.json \
--pdf redline.pdf \
--memo-pdf internal-memo.pdf
Features
Position-Aware Review
Tell it which party you are (customer, vendor, buyer, seller, receiving party) — the skill adjusts what it flags as risky.
Similar plugs
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local…
Why use many token when few token do trick. Viral skill + proxy for coding agents that cuts 65% of tokens by talking like a caveman.
Production-grade engineering skills for AI coding agents.
The 1st Collaborative AI Design Agent Workspace. Local-first and open source. Create prototypes, websites, apps, dashboards, presentations, images, and videos with your team…