claude-legal-skill

作者 evolsb已验证

AI-powered contract review skill with CUAD risk detection, market benchmarks, and lawyer-ready redlines. Works with Claude Code, Codex, Cursor, and 26+ tools.

413
Stars
52
Forks
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/evolsb/claude-legal-skill

快速入门

使用 claude-legal-skill 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

Contract Review — Agent Skill for Legal Analysis

AI-powered contract review with CUAD risk detection, market benchmarks, and lawyer-ready redlines

GitHub stars License: MIT Agent Skills CUAD Version

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

Demo output showing contract review with red flags, risk analysis, and redline suggestions


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:

ProvisionStandardYellowRed
Liability cap12 months6-11 mo<6 mo
Auto-renewal notice90+ days60-89<60
Non-compete1-2 years3-4 years5+
Rep survival (M&A)12-18 mo24-30 mo36+ 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

Next Steps

Contact

Questions or feedback? Open an issue or email chris@ctsheehan.com.

License

MIT — see LICENSE


Built by Chris Sheehan.

常见问题

What is claude-legal-skill?

claude-legal-skill is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by evolsb. AI-powered contract review skill with CUAD risk detection, market benchmarks, and lawyer-ready redlines. Works with Claude Code, Codex, Cursor, and 26+ tools. It has 413 GitHub stars.

Is claude-legal-skill safe to use?

Yes. claude-legal-skill passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install claude-legal-skill?

Clone the repository with "git clone https://github.com/evolsb/claude-legal-skill" and add it to your Claude Code skills directory (see the Installation section above).

Are there alternatives to claude-legal-skill?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh claude-legal-skill against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI 智能体
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情