⏳ This skill is pending AI review.
Scores will appear once the review pipeline completes.
claude-legal-skill
Review legal contracts, NDAs, employment agreements, SaaS terms, and M&A documents. Identifies unfavorable terms, suggests redlines, and compares to market standards. Use for contract analysis, due diligence, or negotiation prep.
Choose how to use this skill
You do not need every option. Choose the path your AI client supports. The stable page stays the same; versioned files are immutable.
1. Native installer
This listing has no registered native installer command. Use the complete package or source fallback below, depending on what your client supports.
Do not guess an installer command or replace an existing version without reviewing the diff.
2. Complete package recommended
Download the ZIP when available. It includes SKILL.md plus the references, security notes and version metadata.
No complete ProSkills package is published for this listing yet.3. Prompt-only
Copy the prompt above when the agent can read the stable page or when you want to adopt the workflow without installing a skill.
Need only the instruction file?
Download SKILL.md only if your client requires a single file. The complete ZIP is safer for a full installation because it preserves the references and release context.
No path installs or executes anything by itself. Your agent still needs access to the project files. Before updating, compare the installed version and review the diff.
// RATINGS
Not yet listed on ClawHub or SkillsMP
// README
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.
Document Type Checklists
Specialized checklists for each contract type:
- NDA — confidentiality term, non-solicitation, standstill, destruction certification
- SaaS/MSA — SLA, data export, suspension rights, price caps
- Payment/Merchant — reserves, chargebacks, network rules, auto-debit
- M&A — earnouts, escrow, rep survival, sandbagging
- Finder/Broker — fee tails, covered buyer definitions, joint representation
Market Standard Benchmarks
Compares terms to industry norms with clear thresholds:
| Provision | Standard | Yellow | Red |
|---|---|---|---|
| Liability cap | 12 months | 6-11 mo | <6 mo |
| Auto-renewal notice | 90+ days | 60-89 | <60 |
| Non-compete | 1-2 years | 3-4 years | 5+ |
| Rep survival (M&A) | 12-18 mo | 24-30 mo | 36+ mo |
Negotiability Ratings
Tells you what's actually changeable:
- High — Mutual termination, cure periods, data export
- Medium — Liability cap increases, price caps
- Low — Network rules, regulatory requirements
Red Flags Quick Scan
Instant detection of danger signs:
- Liability cap < 6 months
- Uncapped indemnification
- Unilateral amendment rights
- Perpetual obligations
- Offshore jurisdiction (BVI, Cayman)
Jurisdiction Awareness
Flags when governing law affects enforceability:
- Non-competes void in CA/ND/OK/MN
- Delaware vs NY vs CA implications
- Offshore jurisdiction cost/enforcement concerns
M&A Support
Special handling for acquisition agreements:
- Earnout mechanics and measurement
- Rep & warranty survival periods
- Working capital adjustments
- Escrow/holdback provisions
- Employment comp in deal value calculations
Installation
This skill follows the open Agent Skills standard and works with any compatible tool.
# 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
# Cursor, Copilot, Gemini CLI, etc.
# Clone to your tool's skills directory
Development (Symlink)
git clone https://github.com/evolsb/claude-legal-skill ~/Developer/claude-legal-skill
ln -s ~/Developer/claude-legal-skill ~/.claude/skills/contract-review
Usage Examples
Review this NDA for red flags - I'm the receiving party
Analyze the indemnification in this MSA - I'm the vendor
What are the termination provisions? I'm the customer.
Review this acquisition agreement - I'm the seller
Check this merchant agreement - what's my chargeback exposure?
See examples/ for full sample outputs.
Limitations
- Not legal advice — always have material terms reviewed by qualified counsel
- US law focus — analysis defaults to US; provisions vary by jurisdiction
- Context window — very long contracts may need section-by-section review
Accuracy
Based on ContractEval benchmarks, Claude achieves F1 ~0.62 on clause extraction. Best for first-pass review and issue flagging — not a replacement for attorney review on material deals.
Credits
- CUAD Dataset — Atticus Project (NeurIPS 2021)
- LegalBench — Stanford HAI
- ContractEval — Contract understanding benchmarks
Next Steps
- Need deliverables? Use legal-redline-tools to generate tracked-changes
.docx, redline PDFs, and negotiation memos from the skill's output - Want examples? See examples/ for full sample reviews
- Found an issue? Open a GitHub issue
Contact
Questions or feedback? Open an issue or email [email protected].
License
MIT — see LICENSE
Built by Chris Sheehan.
// HOW IT'S BUILT
// FILES
10 files shipped with this skill. Inline text is the catalog copy. The upstream link is the source repository.
skill.md14 KB644297a5a6eeupstream ↗
--- name: contract-review description: Review legal contracts, NDAs, employment agreements, SaaS terms, and M&A documents. Identifies unfavorable terms, suggests redlines, and compares to market standards. Use for contract analysis, due diligence, or negotiation prep. version: 3.0.0 --- # Contract Review Skill Review legal contracts for risks, extract key terms, and suggest redlines. Built on the CUAD dataset (41 risk categories), ContractEval benchmarks, and LegalBench. ## When to Activate - User mentions "review contract", "analyze agreement", "check this contract" - User uploads or references a PDF/DOCX legal document - User asks about specific clauses, risks, or terms --- ## Step 1: Pre-Review Checklist Before analyzing content, verify document completeness: - [ ] **Blank fields**: Flag any "$X", "TBD", "[amount]", "____" placeholders - [ ] **Missing exhibits**: List all referenced schedules/exhibits and note which are missing - [ ] **Signature status**: Draft or already executed? - [ ] **All pages present**: Check for truncation or missing sections If blank fields or missing exhibits exist, flag prominently in output header. --- ## Step 2: Identify Document Type & User Position **Ask if unclear:** "Which party are you? (customer, vendor, buyer, seller, licensor, licensee, receiving party, disclosing party)" This affects what's "risky": - Customer reviewing vendor agreement → flag vendor-favorable terms - Vendor reviewing own template → flag customer-favorable terms - Buyer in M&A → flag seller-favorable terms - Seller in M&A → flag buyer-favorable terms - Receiving party in NDA → flag disclosing party-favorable terms **Assess power dynamic:** - Startup vs. large enterprise? (limited negotiating leverage) - Standard form vs. negotiated? (some terms non-negotiable) - Regulated industry? (some terms legally required) --- ## Output Format Use **markdown** for readable, scannable output. Do NOT use XML tags. --- ### Example Output ```markdown # Contract Review: [Document Name] **Document Type:** SaaS Subscription Agreement **Your Position:** Customer **Counterparty:** Acme Software Inc. **Risk Level:** 🟡 Medium **Document Status:** Draft / Executed on [date] ## ⚠️ Pre-Signing Alerts - **Blank field:** Fee amount in Section 4.1 is "$____" - **Missing exhibit:** Exhibit B (SLA) referenced but not attached ## Executive Summary Standard vendor agreement with some one-sided terms. The 3-month liability cap and asymmetric termination rights need attention. Data ownership is clear. --- ## Key Terms | Term | Value | Location | |------|-------|----------| | Initial Term | 12 months | Section 8.1 | | Auto-Renewal | 12-month periods, 60-day notice | Section 8.2 | | Liability Cap | 3 months' fees | Section 10.2 | | Governing Law | Delaware | Section 12.1 | --- ## Red Flags (Quick Scan) | Flag | Found | Location | |------|-------|----------| | Liability cap < 6 months | ⚠️ Yes | Section 10.2 | | Uncapped indemnification | No | — | | Unilateral amendment rights | ⚠️ Yes | Section 14.1 | | No termination for convenience | No | — | | Perpetual obligations | No | — | | Offshore jurisdiction | No | — | --- ## Risk Analysis ### 🔴 Critical **Limitation of Liability** (Section 10.2) > "Liability shall not exceed fees paid in the preceding three (3) months" - **Issue:** 3-month cap is below market standard (typically 12 months) - **Risk:** For $120K annual contract, liability capped at $30K - **Market Standard:** 12 months' fees - **Negotiability:** Medium — most vendors accept 6-12 months - **Redline:** Change "three (3) months" → "twelve (12) months" - **Fallback:** Accept 6 months as compromise --- ### 🟡 Important **Termination for Convenience** (Section 8.5) > "Vendor may terminate for any reason upon 30 days notice" - **Issue:** One-sided; customer lacks equivalent right - **Market Standard:** Mutual termination rights - **Negotiability:** High — reasonable ask - **Redline:** Add "Either party may terminate..." or change to "90 days" --- ### 🟢 Reviewed & Acceptable | Category | Status | Notes | |----------|--------|-------| | Data Ownership | ✓ | Customer owns all customer data | | IP Rights | ✓ | Clear separation, no broad assignment | | Confidentiality | ✓ | Mutual, 3-year term, standard exceptions | | Governing Law | ✓ | Delaware — neutral for commercial | --- ## Missing Provisions | Provision | Priority | Why It Matters | |-----------|----------|----------------| | Data Export Rights | Critical | No guaranteed way to get data out on termination | | SLA Credits | Important | 99.9% uptime stated but no remedy for breach | | Price Increase Cap | Important | Renewal pricing uncapped | **Suggested language for Data Export:** > "Upon termination, Vendor shall make Customer Data available for export in CSV or JSON format for 90 days at no additional charge." --- ## Internal Consistency Issues - ⚠️ Section 5.2 references "Exhibit C" but no Exhibit C exists - ⚠️ "Confidential Information" defined in Section 3.1 but used lowercase in Section 7 --- ## Negotiation Priority | # | Issue | Ask | Negotiability | |---|-------|-----|---------------| | 1 | Liability cap | 12 months | Medium | | 2 | Termination rights | Mutual | High | | 3 | Data export | Add provision | High | | 4 | Price cap | 5% annual max | Medium | --- *This review is for informational purposes only. Material terms should be reviewed by qualified legal counsel.* ``` --- ## Red Flags Quick Scan Check these danger signs FIRST before deep analysis: | Red Flag | Why It Matters | |----------|----------------| | Liability cap < 6 months | Inadequate protection | | Uncapped indemnification | Unlimited exposure | | "As-is" with no warranty | No recourse for defects | | Unilateral suspension without notice | Service can vanish | | Unilateral amendment rights | Terms can change | | No termination for convenience | Locked in | | Perpetual obligations (tails, non-competes) | Indefinite exposure | | Offshore jurisdiction (BVI, Cayman) | Expensive to enforce | | Pre-signed conflict waivers | No recourse for conflicts | | "Sole discretion" language favoring counterparty | No objective standard | | Class action waiver + mandatory arbitration | Limited remedies | | Asymmetric assignment rights | They can assign, you can't | --- ## Document Type Checklists ### NDA Checklist | Category | Check For | |----------|-----------| | Direction | One-way or mutual? | | Definition scope | "All information" too broad? Standard exceptions? | | Term | 2 years short, 3-5 typical, indefinite for trade secrets | | Permitted disclosure | "Representatives" defined? Flow-down required? | | Residuals clause | Can use general knowledge retained in memory? | | Non-solicitation | Employees protected? | | Standstill | Prevents hostile acquisition actions? | | No-contact | Customers, suppliers, employees protected? | | Return/destruction | Certification required? | | Public announcement | Prohibits disclosure of discussions? | | Compelled disclosure | Notice required? Time to seek protective order? | | Injunctive relief | Pre-agreed specific performance? Bond waiver? | ### SaaS/MSA Checklist | Category | Check For | |----------|-----------| | Liability cap | 12+ months = standard | | Uptime SLA | 99.9% with credits = standard | | Suspension rights | Unilateral? Notice required? | | Data ownership | Customer owns customer data? | | Data export | Format, duration, cost on termination? | | Price increases | Capped? Notice period? | | Auto-renewal notice | 90+ days = good, <60 = risk | | Termination | Mutual for convenience? Cure period for cause? | | Subprocessors | Notice of changes? Approval rights? | | Insurance | Vendor carries E&O, cyber? | ### Payment/Merchant Agreement Checklist | Category | Check For | |----------|-----------| | Reserve/holdback | Amount, duration, release conditions? | | Chargeback liability | Capped? Fraud protection? | | Network rules | Incorporated by reference? Access provided? | | Auto-debit authority | Notice before debits? | | Settlement timing | When do you receive funds? | | Volume commitments | Realistic? Penalty for shortfall? | | Suspension rights | Immediate or notice? | | Termination tail | How long do obligations survive? | | Audit rights | Frequency, notice, cost allocation? | | PCI compliance | Who bears cost? | ### M&A Agreement Checklist | Category | Check For | |----------|-----------| | Purchase price | Cash vs. stock vs. earnout mix? | | Earnout mechanics | Measurement, discretion, audit rights, acceleration? | | Escrow/holdback | Amount (10-15% typical), duration (12-18 mo), release? | | Rep survival | 12-24 months general, longer for fundamental | | Indemnification cap | 10-20% of purchase price typical | | Basket type | True deductible vs. tipping? | | Sandbagging | Pro-buyer or anti-sandbagging? | | Non-compete | 2-3 years, geographic scope? | | Working capital | Target, collar, true-up mechanism? | | MAC definition | Carve-outs for market conditions? | | Employment comp | Counted in purchase price or separate? | ### Finder/Broker Agreement Checklist | Category | Check For | |----------|-----------| | Fee percentage | Specified or blank? | | Fee calculation | What's included in deal value? Employment comp? | | "Covered buyer" definition | How broad? Any prior relationship carve-out? | | Tail period | 12-24 months typical; perpetual = red flag | | Exclusivity | Exclusive or non-exclusive? | | Minimum fee | Floor amount? | | Joint representation | Consent required? Conflict waiver? | | Escrow deduction | Auto-pay from proceeds? | | Term/termination | Can you exit? | | Broker status | BD registered if securities involved? | --- ## Risk Categories (CUAD 41 + Extensions) ### Document Basics - Document Name and Type - Parties (legal names, roles) - Agreement Date / Effective Date - Expiration Date - Renewal Terms - **Document Status** (draft/executed) - **Blank Fields / Placeholders** ### Term & Termination - Contract Term / Duration - Termination for Convenience - Termination for Cause - Post-Termination Services - Survival Clauses - **Suspension Rights** (immediate vs. with notice) - **Cure Periods** ### Assignment & Control - Anti-Assignment Clause - Change of Control - Consent Requirements - **Asymmetric Assignment** (they can, you can't) ### Financial Terms - Payment Terms - Price Restrictions / Adjustments - Most Favored Nation (MFN) - Minimum Commitment - Volume Restrictions - Audit Rights - **Price Escalation Caps** - **Reserve/Holdback Requirements** - **Auto-Debit Authority** ### Liability & Risk - Limitation of Liability - Cap on Liability - Uncapped Liability Carve-outs - Indemnification - Insurance Requirements - Warranty Duration - **Warranty Disclaimer (As-Is)** - **Exclusive Remedy Clauses** - **Chargeback/Return Liability** ### IP & Confidentiality - IP Ownership Assignment - License Grant - Affiliate License - Licensor/Licensee - Covenant Not To Sue - Non-Compete - Non-Solicitation (Employees/Customers) - Competitive Restriction Exception - Exclusivity - Non-Disparagement - Confidentiality Duration - Third Party Beneficiary - **Residuals Clause** - **Feedback Ownership** ### Dispute Resolution - Governing Law - Jurisdiction / Venue - Arbitration vs Litigation - Jury Trial Waiver - **Class Action Waiver** - **Offshore Jurisdiction Flags** ### Special Provisions - ROFR / ROFO / ROFN - Revenue/Profit Sharing - Joint IP Ownership - Source Code Escrow - Irrevocable or Perpetual License - **Data Export Rights** - **Uptime/Availability SLA** - **Sublicensing Rights** - **Unilateral Amendment Rights** --- ## Market Standard Benchmarks | Provision | Standard | Yellow Flag | Red Flag | |-----------|----------|-------------|----------| | **Liability cap** | 12 months' fees | 6-11 months | <6 months | | **Non-compete duration** | 1-2 years | 3-4 years | 5+ years | | **Non-compete geography** | Where business operates | State-wide | Nationwide | | **Auto-renewal notice** | 90+ days | 60-89 days | <60 days | | **Termination notice** | Mutual, 60-90 days | One-sided, 30 days | Immediate | | **Indemnification** | Mutual, capped | Asymmetric | Uncapped | | **Rep survival (M&A)** | 12-18 months general | 24-30 months | 36+ months | | **Escrow (M&A)** | 10-15% for 12-18 mo | 15-20% for 18-24 mo | >20% or >24 mo | | **Confidentiality (NDA)** | 3 years general | 2 years | 5+ years | | **Fee tail (broker)** | 12-18 months | 24 months | Perpetual | | **SLA uptime** | 99.9% with credits | 99.5% | No SLA | | **Data export** | 90 days, standard format | 30 days | None | | **Price increase cap** | CPI or 5% annual | 10% annual | Uncapped | | **Cure period** | 30 days | 15 days | None | --- ## Negotiability Guide | Rating | Meaning | Examples | |--------|---------|----------| | **High** | Usually accepted | Mutual termination, cure periods, data export | | **Medium** | Depends on leverage | Liability cap increase, price caps | | **Low** | Rarely changed | Network rules (payments), regulatory requirements | | **None** | Non-negotiable | Card network mandates, banking regulations | **Power dynamic factors:** - Large customer + small vendor = more leverage - Startup + enterprise vendor = less leverage - Competitive market = more leverage - Sole-source vendor = less leverage - Regulated terms = no leverage (legally required) --- ## Jurisdiction Notes **Non-Competes:** - California, North Dakota, Oklahoma, Minnesota: Generally void - Other states: Reasonableness test applies **Choice of Law:** - Delaware: Corp-friendly, predictable - New York: Financial agreements, sophisticated courts - California: Employee-friendly, tech industry - BVI/Cayman: Offshore, expensive to litigate, potential red flag **Arbitration Venues:** - AAA, JAMS: Standard US commercial - SIAC (Singapore), LCIA (London): International, expensive - Mandatory + class waiver: Limits remedies significantly --- ## Guardrails - **Not legal advice**: Recommend attorney review for material terms - **Not tax advice**: Flag but don't opine - **Jurisdiction matters**: Note when enforceability varies - **Express uncertainty**: Say when interpretation is unclear - **No hallucination**: Only reference text actually in document - **Show what's acceptable**: Always include "Reviewed & Acceptable" section - **Document status matters**: Note if already executed (review is informational)README.md7.7 KB09a209820e5cupstream ↗
# Contract Review — Agent Skill for Legal Analysis > AI-powered contract review with CUAD risk detection, market benchmarks, and lawyer-ready redlines [](https://github.com/evolsb/claude-legal-skill/stargazers) [](LICENSE) [](https://agentskills.io) [](https://github.com/TheAtticusProject/cuad) []() **Works with:** Claude Code · OpenAI Codex · Cursor · GitHub Copilot · Gemini CLI · [26+ tools](https://agentskills.io) ## Quick Install ```bash # 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](https://github.com/TheAtticusProject/cuad) (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**](https://github.com/evolsb/legal-redline-tools): ```bash 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. ### Document Type Checklists Specialized checklists for each contract type: - **NDA** — confidentiality term, non-solicitation, standstill, destruction certification - **SaaS/MSA** — SLA, data export, suspension rights, price caps - **Payment/Merchant** — reserves, chargebacks, network rules, auto-debit - **M&A** — earnouts, escrow, rep survival, sandbagging - **Finder/Broker** — fee tails, covered buyer definitions, joint representation ### Market Standard Benchmarks Compares terms to industry norms with clear thresholds: | Provision | Standard | Yellow | Red | |-----------|----------|--------|-----| | Liability cap | 12 months | 6-11 mo | <6 mo | | Auto-renewal notice | 90+ days | 60-89 | <60 | | Non-compete | 1-2 years | 3-4 years | 5+ | | Rep survival (M&A) | 12-18 mo | 24-30 mo | 36+ mo | ### Negotiability Ratings Tells you what's actually changeable: - **High** — Mutual termination, cure periods, data export - **Medium** — Liability cap increases, price caps - **Low** — Network rules, regulatory requirements ### Red Flags Quick Scan Instant detection of danger signs: - Liability cap < 6 months - Uncapped indemnification - Unilateral amendment rights - Perpetual obligations - Offshore jurisdiction (BVI, Cayman) ### Jurisdiction Awareness Flags when governing law affects enforceability: - Non-competes void in CA/ND/OK/MN - Delaware vs NY vs CA implications - Offshore jurisdiction cost/enforcement concerns ### M&A Support Special handling for acquisition agreements: - Earnout mechanics and measurement - Rep & warranty survival periods - Working capital adjustments - Escrow/holdback provisions - Employment comp in deal value calculations --- ## Installation This skill follows the open [Agent Skills standard](https://agentskills.io) and works with any compatible tool. ```bash # 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 # Cursor, Copilot, Gemini CLI, etc. # Clone to your tool's skills directory ``` ### Development (Symlink) ```bash git clone https://github.com/evolsb/claude-legal-skill ~/Developer/claude-legal-skill ln -s ~/Developer/claude-legal-skill ~/.claude/skills/contract-review ``` --- ## Usage Examples ``` Review this NDA for red flags - I'm the receiving party Analyze the indemnification in this MSA - I'm the vendor What are the termination provisions? I'm the customer. Review this acquisition agreement - I'm the seller Check this merchant agreement - what's my chargeback exposure? ``` See [examples/](examples/) for full sample outputs. --- ## Limitations - **Not legal advice** — always have material terms reviewed by qualified counsel - **US law focus** — analysis defaults to US; provisions vary by jurisdiction - **Context window** — very long contracts may need section-by-section review ## Accuracy Based on ContractEval benchmarks, Claude achieves F1 ~0.62 on clause extraction. Best for first-pass review and issue flagging — not a replacement for attorney review on material deals. --- ## Credits - [CUAD Dataset](https://github.com/TheAtticusProject/cuad) — Atticus Project (NeurIPS 2021) - [LegalBench](https://hazyresearch.stanford.edu/legalbench/) — Stanford HAI - [ContractEval](https://arxiv.org/abs/2303.07389) — Contract understanding benchmarks ## Next Steps - **Need deliverables?** Use [legal-redline-tools](https://github.com/evolsb/legal-redline-tools) to generate tracked-changes `.docx`, redline PDFs, and negotiation memos from the skill's output - **Want examples?** See [examples/](examples/) for full sample reviews - **Found an issue?** [Open a GitHub issue](https://github.com/evolsb/claude-legal-skill/issues) ## Contact Questions or feedback? [Open an issue](https://github.com/evolsb/claude-legal-skill/issues) or email [email protected]. ## License MIT — see [LICENSE](LICENSE) --- Built by [Chris Sheehan](https://ctsheehan.com)..gitignore267 B6e4db38ef36dupstream ↗
# Python __pycache__/ *.py[cod] *$py.class .venv/ venv/ env/ # IDE .idea/ .vscode/ *.swp *.swo # OS .DS_Store Thumbs.db # Zuva config (contains API token) .zdai/ # Test contracts (may contain sensitive data) contracts/ *.pdf *.docx # Environment .env .env.localCHANGELOG.md1.4 KB49ff0cd490d5upstream ↗
# Changelog ## [3.0.0] - 2026-01-26 ### Added - "Why This Exists" backstory section in README - Multi-platform support via [Agent Skills standard](https://agentskills.io) (26+ tools) - Full example outputs for NDA, SaaS, M&A, and balanced agreements - Optimized skill description for Claude Code discovery ### Changed - Complete rewrite of skill.md based on real-world contract testing - Position-aware analysis now adjusts for power dynamics - Market benchmark thresholds refined from actual negotiation outcomes - Redline suggestions include fallback positions ## [2.1.0] - 2026-01-26 ### Added - Markdown output format with severity badges - shields.io badges and GitHub topics for discoverability - Link to examples folder in README ## [2.0.0] - 2026-01-26 ### Added - Position-aware review (customer/vendor/buyer/seller) - Complete CUAD 41-category coverage - Document-type checklists (NDA, SaaS, M&A, Payment, Finder/Broker) - Market standard benchmarks with color-coded thresholds - Negotiability ratings (High/Medium/Low) - Red flags quick scan - Jurisdiction awareness - M&A-specific support (earnouts, escrow, rep survival) ### Changed - Improved redline language with specific replacement text - Better severity classification (Critical/Important/Acceptable) ## [1.0.0] - 2026-01-26 ### Added - Initial release - Basic contract review with risk detection - Key terms extraction - CUAD dataset integrationexamples/balanced-agreement.md2.9 KBf63f76513201upstream ↗
# Balanced Agreement Example — Low Risk Shows what a well-balanced contract looks like and how to report acceptable terms. ## Prompt ``` I'm the customer. Review this SaaS agreement. ``` ## Example Output ```markdown # Contract Review: Acme Cloud Platform Agreement **Document Type:** SaaS Subscription Agreement **Your Position:** Customer **Counterparty:** Acme Software Inc. **Risk Level:** 🟢 Low ## Executive Summary Well-balanced commercial agreement with mutual protections. Terms are within market standards for enterprise SaaS. Minor points exist but no critical issues. --- ## Key Terms | Term | Value | Location | |------|-------|----------| | Initial Term | 12 months | Section 8.1 | | Auto-Renewal | 12-month periods, 90-day notice | Section 8.2 | | Liability Cap | 12 months' fees | Section 10.2 | | SLA | 99.9% uptime, 10% credits | Exhibit B | | Governing Law | Delaware | Section 12.1 | --- ## Risk Analysis ### 🟢 Minor **Price Adjustments** (Section 4.5) > "Vendor may adjust pricing upon renewal with 60 days notice, not to exceed 5% annually" - **Issue:** Price increases capped but could compound over time - **Assessment:** 5% cap is reasonable; this is low risk - **Optional ask:** CPI-linked cap instead of flat 5% --- ## Reviewed & Acceptable | Category | Status | Notes | |----------|--------|-------| | Limitation of Liability | ✓ | 12-month cap — market standard | | Indemnification | ✓ | Mutual with reasonable scope | | Data Ownership | ✓ | Customer owns all customer data | | Data Export | ✓ | 90-day export period, standard formats | | Termination | ✓ | Mutual for convenience with 90 days notice | | Auto-Renewal | ✓ | 90-day notice period is adequate | | SLA | ✓ | 99.9% with meaningful credits | | Governing Law | ✓ | Delaware — neutral for commercial | | IP Rights | ✓ | Customer retains all IP in data/configs | | Confidentiality | ✓ | Mutual, 3-year term, standard exceptions | | Assignment | ✓ | Consent required, CoC exception | --- ## Missing Provisions None critical. Agreement is comprehensive. --- *This review is for informational purposes only. Material terms should be reviewed by qualified legal counsel.* ``` ## Key Lesson Not every contract needs extensive redlines. When terms are balanced: 1. **Show what's acceptable** — the "Reviewed & Acceptable" table builds confidence 2. **Don't over-flag** — minor issues stay 🟢, not everything is 🔴 3. **Provide context** — explain why terms are fine 4. **Save negotiation capital** — push back only on truly problematic terms ## Signs of a Balanced Agreement - Mutual obligations (indemnification, confidentiality, termination) - 12-month liability cap (market standard for SaaS) - 60-90 day notice periods - Clear data ownership and export rights - Meaningful SLA with actual remedies - Price increase caps - Neither party has dramatically more powerexamples/demo.png428 KB03ecf7c4c10fupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
examples/ma-agreement-review.md4.4 KB5ced109a2984upstream ↗
# M&A Agreement Review Example ## Prompt ``` Review this acquisition agreement. I'm the seller. ``` ## Example Output ```markdown # Contract Review: Asset Purchase Agreement **Document Type:** Asset Purchase Agreement **Your Position:** Seller **Counterparty:** Acquirer Inc. **Risk Level:** 🔴 High ## Executive Summary $15M acquisition with 30% earnout, 18-month escrow, and 3-year rep survival. Significant seller exposure post-closing. Earnout mechanics need protection. --- ## Key Terms | Term | Value | Location | |------|-------|----------| | Base Purchase Price | $10,500,000 cash at closing | Section 2.1(a) | | Earnout | Up to $4,500,000 (Y1-Y2 revenue) | Section 2.1(b) | | Escrow | $1,575,000 (15%) for 18 months | Section 2.1(c) | | Indemnification Cap | $3,000,000 (20% of total) | Section 10.4 | | Rep Survival | 36 months | Section 10.2 | | Non-Compete | 5 years, nationwide | Section 7.8 | --- ## Risk Analysis ### 🔴 Critical **Earnout Mechanics** (Section 2.1(b), Exhibit C) > "Earnout shall be calculated based on Revenue as determined by Buyer in its sole discretion" - **Issue:** No objective standard; buyer controls calculation; no audit rights - **Risk:** Buyer can manipulate to minimize earnout - **Redline:** Add: - "Revenue calculated per GAAP, consistent with historical practices" - "Seller audit rights within 30 days of each calculation" - "Buyer shall operate business consistent with past practice" - "Earnout accelerates in full upon change of control" --- ### 🔴 Critical **Rep & Warranty Survival** (Section 10.2) > "All representations and warranties shall survive for 36 months" - **Issue:** 3-year survival is longer than market (12-18 months typical) - **Redline:** Change to "18 months for general reps; 36 months only for fundamental reps (title, authority, cap)" - **Fallback:** Accept 24 months --- ### 🔴 Critical **Non-Compete** (Section 7.8) > "Seller shall not engage in any competitive business for 5 years anywhere in the United States" - **Issue:** 5-year nationwide non-compete may be unenforceable; exceeds market (2-3 years) - **Redline:** - Duration: "five (5) years" → "three (3) years" - Geography: "United States" → "states where Business operates" - Add clear definition of "competitive" --- ### 🟡 Important **Sandbagging** (Section 10.5) > "Buyer's right to indemnification shall not be affected by any investigation or knowledge" - **Issue:** Pro-sandbagging lets buyer claim for issues known pre-close - **Redline:** Add anti-sandbagging: "Buyer may not seek indemnification for matters actually known to Buyer prior to Closing" --- ### 🟡 Important **Basket Structure** (Section 10.4) > "First dollar basket of $150,000" - **Issue:** First-dollar (tipping) basket means once threshold met, buyer recovers from dollar one - **Redline:** Convert to true deductible: "Seller liable only for amounts exceeding $150,000" --- ## Reviewed & Acceptable | Category | Status | Notes | |----------|--------|-------| | Escrow Amount | ✓ | 15% is within market range | | Escrow Duration | ✓ | 18 months is standard | | Indemnification Cap | ✓ | 20% is reasonable | | Governing Law | ✓ | Delaware | --- ## Missing Provisions | Provision | Priority | Suggested Language | |-----------|----------|-------------------| | Earnout Operating Covenants | Critical | "Buyer shall operate Business consistent with past practice and not take actions primarily intended to reduce Earnout" | | R&W Insurance Acknowledgment | Important | "Buyer shall first seek recovery under R&W insurance before asserting claims against Seller" | | Earnout Acceleration | Important | "Upon change of control of Buyer, unpaid Earnout accelerates at target amount" | --- *This review is for informational purposes only. M&A transactions require qualified legal and tax counsel.* ``` ## Seller Protection Checklist 1. **Maximize cash at close** — earnouts, escrows, holdbacks reduce certainty 2. **Earnout protections** — operating covenants, audit rights, acceleration 3. **Short rep survival** — 12-18 months general, longer only for fundamental 4. **True deductible basket** — not first-dollar/tipping 5. **Reasonable indemnification cap** — 10-15% excluding fraud 6. **Anti-sandbagging** — buyer can't claim for known issues 7. **Reasonable non-compete** — 2-3 years, limited geography 8. **Partial escrow release** — at 12 months if no claims 9. **D&O tail** — buyer to purchase or fundexamples/nda-review.md3.2 KB00d75e4316faupstream ↗
# NDA Review Example ## Prompt ``` Review this NDA for red flags. I'm the receiving party. ``` ## Example Output ```markdown # Contract Review: Mutual Non-Disclosure Agreement **Document Type:** Mutual NDA **Your Position:** Receiving Party **Counterparty:** Acme Corp **Risk Level:** 🟡 Medium ## Executive Summary Mutual NDA with some one-sided provisions favoring the disclosing party. The 5-year confidentiality period and hidden non-solicitation clause need attention. --- ## Key Terms | Term | Value | Location | |------|-------|----------| | Term | 2 years | Section 5 | | Confidentiality Survival | 5 years post-termination | Section 5.2 | | Governing Law | New York | Section 8 | | Definition Scope | "All information disclosed" — very broad | Section 1.1 | --- ## Risk Analysis ### 🟡 Important **Confidentiality Duration** (Section 5.2) > "The obligations of confidentiality shall survive for five (5) years following termination" - **Issue:** 5-year survival is longer than standard (2-3 years for general business info) - **Redline:** Change "five (5) years" → "three (3) years" - **Alternative:** Add carve-out: "except for trade secrets, which shall survive indefinitely" --- ### 🔴 Critical **Non-Solicitation** (Section 6.3) > "Receiving Party shall not solicit any employees of Disclosing Party for 12 months" - **Issue:** Non-solicitation is unusual in an NDA; may be unenforceable in some states - **Redline:** Delete entire Section 6.3 - **Fallback:** Limit to "shall not directly solicit employees with whom Receiving Party had contact during discussions" --- ### 🟡 Important **Broad Definition** (Section 1.1) > "Confidential Information means all information disclosed by either party, whether oral, written, or electronic" - **Issue:** "All information" without carve-outs could include publicly available info - **Redline:** Add standard exceptions: "(a) publicly available; (b) already known; (c) independently developed; (d) received from third party" --- ## Reviewed & Acceptable | Category | Status | Notes | |----------|--------|-------| | Mutual Obligations | ✓ | Both parties bound equally | | Return/Destruction | ✓ | Standard 30-day requirement | | Injunctive Relief | ✓ | Reasonable — acknowledges irreparable harm | | Governing Law | ✓ | New York — standard for commercial | --- ## Missing Provisions | Provision | Priority | Suggested Language | |-----------|----------|-------------------| | Residuals Clause | Important | "Nothing restricts use of Residuals (information retained in unaided memory)" | | Compelled Disclosure | Important | "May disclose if legally required, with prompt notice to other party" | --- *This review is for informational purposes only.* ``` ## Common NDA Red Flags 1. **Overly broad definitions** — "All information" without exceptions 2. **One-way obligations** — Only one party bound 3. **Long survival** — 5+ years for non-trade-secret info 4. **Hidden restrictive covenants** — Non-compete, non-solicit buried in NDA 5. **No residuals clause** — Can't use general knowledge gained 6. **Pre-agreed injunctive relief** — Specific performance without bond 7. **Broad assignability** — Other party can assign without consentexamples/saas-agreement-review.md3.6 KBe738bf438510upstream ↗
# SaaS Agreement Review Example ## Prompt ``` Review this SaaS agreement. I'm the customer. ``` ## Example Output ```markdown # Contract Review: CloudCo Platform Subscription **Document Type:** SaaS Subscription Agreement **Your Position:** Customer **Counterparty:** CloudCo Inc. **Risk Level:** 🔴 High ## Executive Summary One-sided vendor agreement with significant customer risk. The 3-month liability cap, missing uptime SLA, and uncapped price increases need immediate attention. --- ## Key Terms | Term | Value | Location | |------|-------|----------| | Initial Term | 36 months | Section 8.1 | | Annual Fee | $120,000/year | Exhibit A | | Liability Cap | 3 months' fees ($30,000) | Section 9.2 | | Auto-Renewal | 30-day notice to cancel | Section 8.2 | | Uptime SLA | None specified | — | --- ## Risk Analysis ### 🔴 Critical **Limitation of Liability** (Section 9.2) > "In no event shall Vendor's liability exceed the fees paid in the three (3) months preceding the claim" - **Issue:** 3-month cap is unusually low; market standard is 12 months - **Risk:** For $120K/year contract, liability capped at $30K - **Redline:** Change "three (3) months" → "twelve (12) months" - **Fallback:** Accept 6 months minimum --- ### 🔴 Critical **No Service Level Agreement** - **Issue:** No uptime commitment or service credits for outages - **Risk:** Vendor has no contractual obligation to maintain service - **Add:** SLA exhibit with 99.9% uptime and credit structure: > **Suggested SLA language:** > "Vendor commits to 99.9% monthly uptime. For each full percentage point below 99.9%, Customer receives credit of 10% of monthly fees, up to 25%. Uptime below 95% in any month is material breach." --- ### 🟡 Important **Auto-Renewal Notice** (Section 8.2) > "Agreement auto-renews unless either party provides notice 30 days prior" - **Issue:** 30 days is very tight for a 36-month, $120K contract - **Redline:** Change "30 days" → "90 days" --- ### 🟡 Important **Price Increases** (Section 4.3) > "Vendor may adjust pricing upon any renewal with 30 days notice" - **Issue:** No cap on increases; could double pricing at renewal - **Redline:** Add "not to exceed 5% annually" or "CPI + 3%" --- ## Reviewed & Acceptable | Category | Status | Notes | |----------|--------|-------| | Data Ownership | ✓ | Customer owns customer data | | Governing Law | ✓ | Delaware — standard | | IP in Configs | ✓ | Customer retains | --- ## Missing Provisions | Provision | Priority | Why It Matters | |-----------|----------|----------------| | Data Export | Critical | No way to get data out on termination | | Security Standards | Critical | No SOC 2 or security commitments | | Subprocessor Notice | Important | No visibility into third-party data access | | Transition Assistance | Important | No help migrating away | **Suggested Data Export language:** > "Upon termination, Vendor shall make Customer Data available for export in JSON or CSV format for 90 days at no charge." --- ## Internal Consistency - ⚠️ "Services" defined in Section 1.2 but Exhibit A references "Platform Services" --- *This review is for informational purposes only.* ``` ## Vendor-Favorable Terms to Watch 1. **Liability cap tied to recent fees** — 3 months on annual contracts is very low 2. **No uptime SLA** — Even 99.9% with credits is better than nothing 3. **Short renewal notice** — 30 days is tight for large contracts 4. **Uncapped price increases** — Always negotiate a cap 5. **Broad vendor termination** — Customer should have this, not just vendor 6. **One-sided indemnification** — Should be mutual 7. **No data export rights** — Critical for avoiding vendor lock-inLICENSE1.1 KBa08a62a97c33upstream ↗
MIT License Copyright (c) 2026 Christopher Sheehan Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Plain-text copy, no login: /skill-bundles/evolsb-claude-legal-skill.md