contract-review
Contract review assistant analyzing agreements against playbooks. GREEN/YELLOW/RED severity. Use when reviewing vendor contracts, SaaS agreements, service agreements, or generating redline suggestions.
What this skill does
> **⚠️ EXPERIMENTAL** — This skill is provided for educational and informational purposes only. It does NOT constitute legal advice. All responsibility for usage rests with the user. Consult qualified legal professionals before acting on any output. # Contract Review Automated contract review tools that analyze agreements against organizational playbooks, classify clause risk with GREEN/YELLOW/RED severity, and generate prioritized redline suggestions with fallback positions. --- ## Table of Contents - [Tools](#tools) - [Contract Analyzer](#contract-analyzer) - [Redline Generator](#redline-generator) - [Reference Guides](#reference-guides) - [Workflows](#workflows) - [Standard Contract Review](#standard-contract-review) - [Rapid Risk Triage](#rapid-risk-triage) - [Troubleshooting](#troubleshooting) - [Success Criteria](#success-criteria) - [Scope & Limitations](#scope--limitations) - [Anti-Patterns](#anti-patterns) - [Tool Reference](#tool-reference) --- ## Tools ### Contract Analyzer Analyzes contract text files for clause types, missing standard clauses, and risk indicators. ```bash # Analyze a contract file python scripts/contract_analyzer.py contract.txt # JSON output for pipeline integration python scripts/contract_analyzer.py agreement.md --json # Save analysis to file python scripts/contract_analyzer.py contract.txt --output analysis.json --json ``` **What it detects:** - Clause types: Limitation of Liability, Indemnification, IP, Data Protection, Term & Termination, Governing Law, Reps & Warranties, Force Majeure, Confidentiality, Payment Terms - Missing standard clauses against a baseline checklist - Risk indicators: uncapped liability, perpetual terms, unilateral indemnification, automatic renewal without opt-out, broad IP assignment, unlimited audit rights **Risk Classification:** | Level | Meaning | Action | |-------|---------|--------| | RED | Deal-breaker risk | Must negotiate before signing | | YELLOW | Material concern | Should negotiate, may accept with mitigation | | GREEN | Standard or favorable | Acceptable as-is | --- ### Redline Generator Takes contract analysis JSON and generates formatted redline suggestions with priority tiers. ```bash # Generate redlines from analysis python scripts/contract_analyzer.py contract.txt --json --output analysis.json python scripts/redline_generator.py analysis.json # JSON output python scripts/redline_generator.py analysis.json --json # Save redlines to file python scripts/redline_generator.py analysis.json --output redlines.md ``` **Output includes:** - Priority tier (Must-Have / Should-Have / Nice-to-Have) - Preferred redline language - Rationale for each change - Fallback position if counterparty rejects - Negotiation notes **Priority Tiers:** | Tier | Label | Description | |------|-------|-------------| | 1 | Must-Have | Deal-breakers; walk away if rejected | | 2 | Should-Have | Strong preferences; push hard but negotiable | | 3 | Nice-to-Have | Concession candidates; trade for Tier 1-2 wins | --- ## Reference Guides ### Clause Analysis Guide `references/clause_analysis_guide.md` Deep reference covering 8+ clause types: - Limitation of Liability (cap types, carveouts, consequential damages) - Indemnification (mutuality, scope, procedure) - IP (ownership, licenses, work-for-hire, feedback) - Data Protection (DPA, sub-processors, breach notification, transfers) - Term & Termination (auto-renewal, cure periods, transition) - Governing Law (jurisdiction, arbitration, jury waiver) - Representations & Warranties - Force Majeure ### Negotiation Playbook `references/negotiation_playbook.md` Negotiation priority framework with: - Tier 1 deal-breakers and walkaway criteria - Tier 2 strong preferences with trading strategies - Tier 3 concession candidates for strategic give-backs - Redline format template - Common negotiation pitfalls --- ## Workflows ### Standard Contract Review 1. **Ingest** -- Save contract as `.txt` or `.md` file 2. **Analyze** -- Run `contract_analyzer.py` with `--json` flag 3. **Review findings** -- Check RED items first, then YELLOW 4. **Generate redlines** -- Run `redline_generator.py` on analysis output 5. **Prioritize** -- Focus on Must-Have redlines, prepare fallbacks for Should-Have 6. **Send to counsel** -- Attach analysis and redlines for final review ### Rapid Risk Triage 1. Run `contract_analyzer.py` in text mode for quick scan 2. If any RED findings: escalate immediately to legal counsel 3. If YELLOW only: schedule review within 48 hours 4. If all GREEN: proceed with standard approval workflow --- ## Troubleshooting | Problem | Cause | Solution | |---------|-------|----------| | `Error: File not found` | Contract file path is incorrect or file does not exist | Verify the file path; use absolute paths if relative paths fail | | No clauses detected | Contract uses unusual formatting or non-standard clause headers | Ensure contract is plain text; strip PDF artifacts before analysis | | All clauses marked GREEN | Contract is genuinely favorable, or text extraction missed key sections | Manually verify critical clauses (liability, indemnification, IP) are present in the input file | | Redline generator produces empty output | Analysis JSON has no YELLOW or RED findings | Confirm analysis JSON is valid; re-run analyzer if contract was updated | | False positive on uncapped liability | Liability section references a cap elsewhere in the document | Review the full Limitation of Liability section; the tool scans for cap keywords within each clause boundary | | Missing clause false positive | Clause exists but uses non-standard heading (e.g., "Damages Cap" instead of "Limitation of Liability") | The analyzer checks multiple heading variants; add custom aliases if your organization uses unique terminology | --- ## Success Criteria - **Contract review time reduced by 50%:** Automated clause identification and risk classification eliminates manual scanning. - **Zero missed RED-severity clauses:** Every uncapped liability, unilateral indemnification, and broad IP assignment is flagged before human review. - **Redline generation under 2 minutes:** From analysis JSON to prioritized redline document. - **Consistent risk classification across reviewers:** GREEN/YELLOW/RED framework eliminates subjective assessments. - **100% of contracts reviewed with structured output:** Every agreement gets a clause inventory and risk report before negotiation begins. - **Negotiation success rate above 80% on Must-Have items:** Tier 1 redlines with prepared fallbacks improve negotiation outcomes. --- ## Scope & Limitations **Covers:** - Static text analysis of contract clauses using keyword and pattern matching - Clause type identification across 10+ standard commercial contract categories - Risk indicator detection: uncapped liability, perpetual terms, unilateral obligations, auto-renewal traps - Missing clause detection against a standard commercial contract baseline - Prioritized redline generation with fallback positions **Does NOT cover:** - **Legal advice** -- this tool supports review, it does not replace qualified legal counsel - **Jurisdiction-specific compliance** -- use `ra-qm-team` skills for regulatory compliance (GDPR, SOC 2, etc.) - **Contract execution or e-signature workflows** -- out of scope - **Multi-document cross-reference** (e.g., checking SOW against MSA) -- analyze each document separately - **Non-English contracts** -- pattern matching is English-language only --- ## Anti-Patterns | Anti-Pattern | Why It Fails | Better Approach | |-------------|-------------|-----------------| | Signing contracts with only GREEN findings and no human review | Automated analysis cannot catch context-dependent risks, ambiguous language, or business-specific concerns | Always have qualified counsel review before execution, even on all-GREEN contracts | | Treating all RED findings as equal | Some RED items are structural deal-breakers whi
Related in Code Review
gstack
IncludedFast headless browser for QA testing and site dogfooding. Navigate pages, interact with elements, verify state, diff before/after, take annotated screenshots, test responsive layouts, forms, uploads, dialogs, and capture bug evidence. Use when asked to open or test a site, verify a deployment, dogfood a user flow, or file a bug with screenshots. (gstack)
startup-due-diligence
IncludedLegal due diligence review for seed-stage and Series A startups (US, Delaware C-Corp focus). Supports both investor and founder perspectives. Capabilities include: (1) Interactive document review and issue spotting; (2) Document request list generation; (3) Cap table and SAFE/convertible note analysis; (4) Red flag identification with severity ratings; (5) Diligence report generation. TRIGGERS: due diligence, DD, startup investment, cap table review, Series A, seed round, investor diligence, legal review startup, SAFE analysis, convertible note, 409A, founder vesting.
interview-master
IncludedThis skill should be used when the user asks to "generate interview questions", "prepare for interview", "optimize resume", "conduct mock interview", "analyze git commits for resume", "generate resume from code", "review my resume", or mentions interview preparation, career assistance, or extracting project experience from git history. Provides comprehensive interview and career development guidance for both job seekers and interviewers.
fix-issue
IncludedFixes GitHub issues using parallel analysis agents for root cause investigation, code exploration, and regression detection. Reads issue context from gh CLI, searches codebase and memory for related patterns, generates a fix with tests, and links the resolution back to the issue via PR. Includes prevention analysis to avoid recurrence. Use when debugging errors, resolving regressions, fixing bugs, or triaging issues.
sf-apex
IncludedGenerates and reviews Salesforce Apex code with 150-point scoring. TRIGGER when: user writes, reviews, or fixes Apex classes, triggers, test classes, batch/queueable/schedulable jobs, or touches .cls/.trigger files. DO NOT TRIGGER when: LWC JavaScript (use sf-lwc), Flow XML (use sf-flow), SOQL-only queries (use sf-soql), or non-Salesforce code.
swift-development
IncludedComprehensive Swift development for building, testing, and deploying iOS/macOS applications. Use when Claude needs to: (1) Build Swift packages or Xcode projects from command line, (2) Run tests with XCTest or Swift Testing framework, (3) Manage iOS simulators with simctl, (4) Handle code signing, provisioning profiles, and app distribution, (5) Format or lint Swift code with SwiftFormat/SwiftLint, (6) Work with Swift Package Manager (SPM), (7) Implement Swift 6 concurrency patterns (async/await, actors, Sendable), (8) Create SwiftUI views with MVVM architecture, (9) Set up Core Data or SwiftData persistence, or any other Swift/iOS/macOS development tasks.