AI-powered contract analysis that identifies risks and generates professional review reports.
Live Demo: Deploy your own instance using the button above, or run locally.
Claude Desktop/Cursor: After deployment, add to your MCP config:
{
"mcpServers": {
"contract-review": {
"url": "https://contract-review-skill.YOUR_SUBDOMAIN.workers.dev/mcp"
}
}
}Contract Review Skill is a Claude Agent Skill that helps you analyze contracts automatically. It's not just text extraction β it's intelligent review with domain knowledge.
- π Risk Detection: Identifies 15+ common risk patterns (restrictions, liability, IP, etc.)
- π PDF Support: Handles text PDFs, scanned documents, and mixed files
- π Visual Understanding: Detects stamps, signatures, and validates completeness
- π Structured Output: Generates Markdown or DOCX reports
- π Bilingual: Supports both English and Chinese contracts
- βοΈ Cloud Ready: Deploy to Cloudflare Workers for free
Add to ~/.config/claude/config.json or Cursor settings:
{
"mcpServers": {
"contract-review": {
"url": "https://contract-review-skill.workers.dev/mcp"
}
}
}Then in Claude/Cursor, just say:
"Analyze this employment contract and identify risks"
# Analyze a contract
curl -X POST https://contract-review-skill.workers.dev/api/analyze \
-H "Content-Type: application/json" \
-d '{"content": "CONTRACT TEXT HERE...", "jurisdiction": "us"}'
# Check completeness
curl -X POST https://contract-review-skill.workers.dev/api/check \
-H "Content-Type: application/json" \
-d '{"content": "CONTRACT TEXT HERE..."}'
# Extract key terms
curl -X POST https://contract-review-skill.workers.dev/api/extract \
-H "Content-Type: application/json" \
-d '{"content": "CONTRACT TEXT HERE..."}'# Clone the repository
git clone https://github.com/claude-office-skills/contract-review-skill.git
cd contract-review-skill
# Install dependencies
pip install -r requirements.txt
# Set your Claude API key
export ANTHROPIC_API_KEY="your-api-key"
# Analyze a contract
python cli.py analyze path/to/contract.pdf
# Generate a detailed report
python cli.py analyze path/to/contract.pdf --output report.md --format markdown-
One-Click Deploy
-
Manual Deploy
cd worker npm install # Set your API key wrangler secret put ANTHROPIC_API_KEY # Deploy npm run deploy
-
GitHub Actions (Auto-Deploy)
Set these secrets in your GitHub repo:
CF_API_TOKEN: Cloudflare API token (create here)CF_ACCOUNT_ID: Your Cloudflare account IDANTHROPIC_API_KEY: Your Claude API key
Push to
mainbranch and it auto-deploys!
| Resource | Free Allowance |
|---|---|
| Requests | 100,000/day |
| CPU Time | 10ms/request |
| Storage | 10GB (R2) |
This is more than enough for testing and small teams.
Note: This is the Advanced version of Claude Office Skills. For simple usage, just copy a SKILL.md file - no deployment needed!
This repository provides the Advanced (Power Users) features shown on the right side of the diagram.
# Contract Analysis Report
## Executive Summary
This is a standard employment agreement with several high-risk clauses
that require attention before signing.
## Identified Risks
### π΄ High Risk
1. **Unlimited Liability Clause** (Section 8.2)
- Issue: No cap on indemnification
- Recommendation: Add liability cap at 12 months of fees
2. **Broad IP Assignment** (Section 5.1)
- Issue: Assigns all work product including pre-existing IP
- Recommendation: Exclude pre-existing IP from assignment
### π‘ Medium Risk
3. **Non-Compete (3 years)** (Section 9)
- Issue: Duration exceeds California law limits
- Recommendation: Reduce to 1 year or remove
## Completeness Check
- β
Parties Identified
- β
Effective Date
- β
Term Duration
- β οΈ Governing Law (implied, not explicit)
- β Dispute Resolution clause missing
## Overall Assessment: β οΈ REVIEW NEEDED| Tool | Description |
|---|---|
analyze_contract |
Full risk analysis of a contract |
check_completeness |
Verify all required elements present |
extract_key_terms |
Extract structured data from contract |
list_jurisdictions |
List available legal knowledge bases |
| Endpoint | Method | Description |
|---|---|---|
/api/analyze |
POST | Analyze contract for risks |
/api/check |
POST | Check contract completeness |
/api/extract |
POST | Extract key terms as JSON |
/api/jurisdictions |
POST | List jurisdiction knowledge |
/mcp |
POST | MCP protocol endpoint |
/health |
GET | Health check |
| Code | Name | Status |
|---|---|---|
us |
United States | β Full |
eu |
European Union | β Full |
cn |
China | β Full |
auto |
Auto-detect | β Default |
| Operation | Estimated Cost |
|---|---|
| Single contract analysis | ~$0.02-0.05 |
| Contract comparison | ~$0.04-0.08 |
| Cloudflare Workers | Free (100K req/day) |
Contributions are welcome! See CONTRIBUTING.md for guidelines.
- Add more jurisdiction knowledge (UK, Japan, etc.)
- Support more contract types
- Improve Chinese contract recognition
- Add PDF upload to demo page
- Implement caching with Cloudflare KV
MIT License - see LICENSE for details.
Built with β€οΈ using Claude + Cloudflare Workers
