Skip to content
Back to search

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.

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today
Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/evolsb--claude-legal-skill/badge.svg)](/listings/evolsb--claude-legal-skill)

HTML

<a href="/listings/evolsb--claude-legal-skill"><img src="/api/listings/evolsb--claude-legal-skill/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

Install instructions from the README

As written by the repo's author. findsafeskills has not verified these steps.

# 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

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md · README · 206 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

  1. # Contract Review — Agent Skill for Legal Analysis
  2. > AI-powered contract review with CUAD risk detection, market benchmarks, and lawyer-ready redlines
  3. [![GitHub stars](https://img.shields.io/github/stars/evolsb/claude-legal-skill)](https://github.com/evolsb/claude-legal-skill/stargazers)
  4. [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
  5. [![Agent Skills](https://img.shields.io/badge/Agent%20Skills-Compatible-blueviolet)](https://agentskills.io)
  6. [![CUAD](https://img.shields.io/badge/CUAD-41%20Categories-green)](https://github.com/TheAtticusProject/cuad)
  7. [![Version](https://img.shields.io/badge/version-3.0.0-blue)]()
  8. **Works with:** Claude Code · OpenAI Codex · Cursor · GitHub Copilot · Gemini CLI · [26+ tools](https://agentskills.io)
  9. ## Quick Install
  10. ```bash
  11. # Claude Code
  12. git clone https://github.com/evolsb/claude-legal-skill ~/.claude/skills/contract-review
  13. # OpenAI Codex
  14. git clone https://github.com/evolsb/claude-legal-skill ~/.codex/skills/contract-review
  15. # Other Agent Skills-compatible tools — clone to your tool's skills directory
  16. ```
  17. ## Try It
  18. ```
  19. Review this NDA - I'm the receiving party
  20. ```
  21. ### Example Output
  22. ![Demo output showing contract review with red flags, risk analysis, and redline suggestions](examples/demo.png)
  23. ---
  24. ## Why This Exists
  25. 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:
  26. - **Commercial legal AI** (Kira, Ironclad, LegalOn, Harvey, Spellbook) — enterprise-only, custom quotes, no API access for individual developers
  27. - **Open source tools** (LexNLP, OpenContracts, LawGlance) — incomplete projects requiring significant integration work, none designed for AI coding assistants
  28. - **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*
  29. 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.
  30. The result: position-aware review with market benchmarks, document-type checklists, and actual redline language — not just a list of issues.
  31. ---
  32. ## What It Does
  33. Analyzes legal contracts and outputs:
  34. - **Risk assessment** with severity ratings (🔴 Critical / 🟡 Important / 🟢 Acceptable)
  35. - **Red flags quick scan** — instant danger sign detection
  36. - **Key terms table** with section references
  37. - **Market standard benchmarks** — how terms compare to industry norms
  38. - **Negotiability ratings** — what's realistic to change given power dynamics
  39. - **Specific redlines** — actual replacement language, not just "negotiate this"
  40. - **Missing provisions** with suggested language to add
  41. - **Internal consistency checks** (broken cross-references, undefined terms)
  42. ### Generate Deliverables with legal-redline-tools
  43. 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):
  44. ```bash
  45. pip install git+https://github.com/evolsb/legal-redline-tools.git
  46. # After the skill generates redlines.json:
  47. legal-redline apply contract.docx redlined.docx \
  48. --from-json redlines.json \
  49. --pdf redline.pdf \
  50. --memo-pdf internal-memo.pdf
  51. ```
  52. ---
  53. ## Features
  54. ### Position-Aware Review
  55. Tell it which party you are (customer, vendor, buyer, seller, receiving party) — the skill adjusts what it flags as risky.
  56. ### Document Type Checklists
  57. Specialized checklists for each contract type:
  58. - **NDA** — confidentiality term, non-solicitation, standstill, destruction certification
  59. - **SaaS/MSA** — SLA, data export, suspension rights, price caps
  60. - **Payment/Merchant** — reserves, chargebacks, network rules, auto-debit
  61. - **M&A** — earnouts, escrow, rep survival, sandbagging
  62. - **Finder/Broker** — fee tails, covered buyer definitions, joint representation
  63. ### Market Standard Benchmarks
  64. Compares terms to industry norms with clear thresholds:
  65. | Provision | Standard | Yellow | Red |
  66. |-----------|----------|--------|-----|
  67. | Liability cap | 12 months | 6-11 mo | <6 mo |
  68. | Auto-renewal notice | 90+ days | 60-89 | <60 |
  69. | Non-compete | 1-2 years | 3-4 years | 5+ |
  70. | Rep survival (M&A) | 12-18 mo | 24-30 mo | 36+ mo |
  71. ### Negotiability Ratings
  72. Tells you what's actually changeable:
  73. - **High** — Mutual termination, cure periods, data export
  74. - **Medium** — Liability cap increases, price caps
  75. - **Low** — Network rules, regulatory requirements
  76. ### Red Flags Quick Scan
  77. Instant detection of danger signs:
  78. - Liability cap < 6 months
  79. - Uncapped indemnification
  80. - Unilateral amendment rights
  81. - Perpetual obligations
  82. - Offshore jurisdiction (BVI, Cayman)
  83. ### Jurisdiction Awareness
  84. Flags when governing law affects enforceability:
  85. - Non-competes void in CA/ND/OK/MN
  86. - Delaware vs NY vs CA implications
  87. - Offshore jurisdiction cost/enforcement concerns
  88. ### M&A Support
  89. Special handling for acquisition agreements:
  90. - Earnout mechanics and measurement
  91. - Rep & warranty survival periods
  92. - Working capital adjustments
  93. - Escrow/holdback provisions
  94. - Employment comp in deal value calculations
  95. ---
  96. ## Installation
  97. This skill follows the open [Agent Skills standard](https://agentskills.io) and works with any compatible tool.
  98. ```bash
  99. # Claude Code
  100. git clone https://github.com/evolsb/claude-legal-skill ~/.claude/skills/contract-review
  101. # OpenAI Codex
  102. git clone https://github.com/evolsb/claude-legal-skill ~/.codex/skills/contract-review
  103. # Cursor, Copilot, Gemini CLI, etc.
  104. # Clone to your tool's skills directory
  105. ```
  106. ### Development (Symlink)
  107. ```bash
  108. git clone https://github.com/evolsb/claude-legal-skill ~/Developer/claude-legal-skill
  109. ln -s ~/Developer/claude-legal-skill ~/.claude/skills/contract-review
  110. ```
  111. ---
  112. ## Usage Examples
  113. ```
  114. Review this NDA for red flags - I'm the receiving party
  115. Analyze the indemnification in this MSA - I'm the vendor
  116. What are the termination provisions? I'm the customer.
  117. Review this acquisition agreement - I'm the seller
  118. Check this merchant agreement - what's my chargeback exposure?
  119. ```
  120. See [examples/](examples/) for full sample outputs.
  121. ---
  122. ## Limitations
  123. - **Not legal advice** — always have material terms reviewed by qualified counsel
  124. - **US law focus** — analysis defaults to US; provisions vary by jurisdiction
  125. - **Context window** — very long contracts may need section-by-section review
  126. ## Accuracy
  127. 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.
  128. ---
  129. ## Credits
  130. - [CUAD Dataset](https://github.com/TheAtticusProject/cuad) — Atticus Project (NeurIPS 2021)
  131. - [LegalBench](https://hazyresearch.stanford.edu/legalbench/) — Stanford HAI
  132. - [ContractEval](https://arxiv.org/abs/2303.07389) — Contract understanding benchmarks
  133. ## Next Steps
  134. - **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
  135. - **Want examples?** See [examples/](examples/) for full sample reviews
  136. - **Found an issue?** [Open a GitHub issue](https://github.com/evolsb/claude-legal-skill/issues)
  137. ## Contact
  138. Questions or feedback? [Open an issue](https://github.com/evolsb/claude-legal-skill/issues) or email chris@ctsheehan.com.
  139. ## License
  140. MIT — see [LICENSE](LICENSE)
  141. ---
  142. Built by [Chris Sheehan](https://ctsheehan.com).

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.