claude-legal-skill  by evolsb

AI contract analysis agent skill

Created 3 months ago
275 stars

Top 94.1% on SourcePulse

GitHubView on GitHub
Project Summary

Summary This project offers an AI-powered contract review skill for integration with coding assistants like Claude Code and Codex. It addresses the lack of accessible, developer-friendly legal AI tools by providing CUAD-based risk detection, market benchmarks, and actionable redlines, enabling contract analysis directly within development workflows. The skill benefits individual developers and legal professionals seeking efficient, nuanced contract analysis without enterprise costs or complex integrations.

How It Works

The skill integrates as a component for Agent Skills-compatible tools, using the CUAD dataset (41 risk categories) for analysis. Its core innovation is position-aware review, adapting flags and suggestions based on the user's specified party role. It provides document-type specific checklists, market standard benchmarks with clear thresholds, and concrete redline language suggestions, moving beyond generic advice.

Quick Start & Requirements

Installation involves cloning the repository into the AI coding assistant's skills directory (e.g., git clone https://github.com/evolsb/claude-legal-skill ~/.claude/skills/contract-review). Compatibility with the Agent Skills standard is required. Generating Word/PDF redlines necessitates installing legal-redline-tools via pip. No specific hardware or OS prerequisites beyond tool compatibility are listed.

Highlighted Details

  • Position-Aware Review: Tailors analysis based on user role (customer, vendor, etc.).
  • Document Type Checklists: Specialized analysis for NDAs, SaaS/MSAs, Payment/Merchant, M&A, and Finder/Broker agreements.
  • Market Standard Benchmarks: Compares provisions against industry norms with defined thresholds.
  • Negotiability Ratings: Assesses realistic modification potential for clauses.
  • Red Flags Quick Scan: Instantly identifies critical danger signs (e.g., uncapped liability, offshore jurisdictions).
  • Jurisdiction Awareness: Highlights potential enforceability issues based on governing law.
  • M&A Support: Specialized handling for acquisition agreement clauses.
  • Deliverables: Outputs JSON redlines, compatible with legal-redline-tools for Word/PDF generation.

Maintenance & Community

Maintained by evolsb. Issues can be reported via GitHub. Direct contact is available at chris@ctsheehan.com. No specific community channels or roadmap details are provided.

Licensing & Compatibility

Released under the MIT License. Analysis defaults to US law; explicitly not legal advice and requires review by qualified counsel for material terms.

Limitations & Caveats

Not a substitute for professional legal counsel; focuses on US law, with significant jurisdictional variations. Very long contracts may require section-by-section review due to context window limits. ContractEval benchmarks show ~0.62 F1 for clause extraction, best for initial review and issue flagging, not definitive legal judgment.

Health Check
Last Commit

2 months ago

Responsiveness

Inactive

Pull Requests (30d)
1
Issues (30d)
0
Star History
77 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.