Contract Review
Overview
Analyze legal contracts and agreements to identify risks, missing clauses, unfavorable terms, and compliance issues. This skill reads contract documents, categorizes clauses, flags potential problems, and produces a structured risk report with actionable recommendations.
Instructions
When a user asks you to review, analyze, or check a contract, follow these steps:
Step 1: Load and parse the contract
Read the contract file. Supported formats include PDF, DOCX, TXT, and Markdown.
For PDF files, extract text using pdfplumber:
import pdfplumber
def load_contract(pdf_path):
full_text = ""
with pdfplumber.open(pdf_path) as pdf:
for page in pdf.pages:
text = page.extract_text()
if text:
full_text += text + "\n\n"
return full_text
For DOCX files, use python-docx:
from docx import Document
def load_docx(docx_path):
doc = Document(docx_path)
return "\n\n".join([p.text for p in doc.paragraphs if p.text.strip()])
Step 2: Identify the contract type
Determine the contract type from the content:
- Employment contract: Look for salary, benefits, termination, non-compete clauses
- NDA / Confidentiality agreement: Look for confidential information definitions, duration, exceptions
- Service agreement / SaaS: Look for SLA, liability caps, data handling, termination for convenience
- Vendor / Supplier agreement: Look for delivery terms, payment terms, warranties, indemnification
Step 3: Extract and categorize key clauses
Identify and extract these critical sections:
- Parties: Who is involved, are they correctly identified
- Term and termination: Duration, renewal terms, termination conditions, notice periods
- Payment terms: Amounts, schedule, late payment penalties, currency
- Liability and indemnification: Liability caps, mutual vs one-sided indemnification
- Confidentiality: Scope of confidential information, duration, exceptions
- Non-compete / Non-solicitation: Geographic scope, duration, reasonableness
- Intellectual property: Ownership, assignment, licensing rights
- Dispute resolution: Jurisdiction, arbitration vs litigation, governing law
- Force majeure: Events covered, notice requirements
- Data protection: GDPR compliance, data processing terms, breach notification
Step 4: Perform risk analysis
For each clause, assess:
- Risk level: High, Medium, or Low
- Issue: What is problematic or missing
- Recommendation: Specific change or addition to suggest
Flag these common red flags:
- One-sided indemnification without caps
- Automatic renewal without opt-out notice period
- Non-compete clauses exceeding 12 months or unreasonable geographic scope
- Missing limitation of liability
- Vague termination conditions
- No data protection or breach notification terms
- Missing force majeure clause
- Unclear IP ownership assignment
Step 5: Generate the review report
Produce a structured report with:
- Contract summary (type, parties, effective date, term)
- Clause-by-clause analysis with risk ratings
- Missing clauses that should be added
- Top recommendations ranked by priority
- Overall risk score (Low / Medium / High / Critical)
Examples
Example 1: Review an employment contract
User request: "Review my employment contract at ~/contracts/offer.pdf for any red flags"
Actions taken:
- Extract text from offer.pdf
- Identify as employment contract
- Analyze each clause for risks
- Flag issues found
Output:
CONTRACT REVIEW REPORT
======================
Type: Employment Contract
Parties: Jane Doe (Employee) <-> Acme Corp (Employer)
Term: Indefinite, starting March 1, 2025
RISK ANALYSIS:
-------------------------------------------------
| Clause | Risk | Issue |
|---------------------|--------|------------------------------------------|
| Non-compete | HIGH | 24-month duration, nationwide scope |
| Termination | MEDIUM | No severance terms specified |
| IP Assignment | HIGH | Covers all work, including personal projects |
| Benefits | LOW | Standard package, clearly defined |
| Confidentiality | LOW | Reasonable scope and 2-year duration |
MISSING CLAUSES:
- No remote work policy or location flexibility terms
- No bonus or equity vesting schedule details
TOP RECOMMENDATIONS:
1. Negotiate non-compete down to 6-12 months with limited geography
2. Add carve-out for personal projects in IP assignment clause
3. Request explicit severance terms (e.g., 2 weeks per year of service)
OVERALL RISK: HIGH - Address non-compete and IP clauses before signing
Example 2: Audit a SaaS service agreement
User request: "Check this vendor agreement for our SaaS tool. Flag anything we should push back on."
Actions taken:
- Parse the service agreement
- Check for standard SaaS contract terms
- Compare against best practices for data protection and SLAs
Output:
CONTRACT REVIEW REPORT
======================
Type: SaaS Service Agreement
Parties: Your Company <-> CloudTool Inc.
Term: 12 months, auto-renews
RISK ANALYSIS:
-------------------------------------------------
| Clause | Risk | Issue |
|---------------------|----------|----------------------------------------|
| SLA / Uptime | HIGH | No uptime guarantee or credits defined |
| Data Processing | HIGH | No DPA or GDPR compliance language |
| Liability Cap | MEDIUM | Capped at 1 month of fees (very low) |
| Termination | MEDIUM | 90-day notice required to cancel |
| Auto-renewal | LOW | 30-day opt-out window before renewal |
TOP RECOMMENDATIONS:
1. Require a 99.9% uptime SLA with service credits
2. Add a Data Processing Agreement as an appendix
3. Negotiate liability cap to at least 12 months of fees
4. Reduce cancellation notice to 30 days
Guidelines
- Always specify that this is an AI-assisted review and not legal advice. Recommend the user consult a lawyer for final decisions.
- Present risks in order of severity (High first) so the most important issues are seen immediately.
- When clauses are ambiguous, flag them as risks rather than assuming favorable interpretation.
- For multi-party contracts, analyze obligations and risks from the perspective of the user's party.
- If the contract references external documents (exhibits, schedules, addenda), note which ones are missing from the review.
- Compare terms against standard market practices for the contract type when assessing reasonableness.
- Keep the report concise. Use tables for clause analysis and bullet points for recommendations.
1---2name: contract-review3description: >-4 Analyze contracts for risks, check completeness, and provide actionable5 recommendations. Use when a user asks to review a contract, check an agreement6 for red flags, analyze contract terms, find risky clauses, review an NDA,7 evaluate a service agreement, or audit employment contract terms. Supports8 employment contracts, NDAs, service agreements, and vendor contracts.9license: Apache-2.010compatibility: "Requires Python 3.9+ with pdfplumber or PyMuPDF for PDF contracts"11metadata:12 source: https://skillmd.com/skills/eliferjunior/contract-review13 author: terminal-skills14 version: "1.0.0"15 category: documents16 tags: ["contract", "legal", "review", "risk-analysis", "compliance"]17 use-cases:18 - "Review employment contracts before signing to identify unfavorable terms"19 - "Audit vendor agreements for missing clauses and liability risks"20 - "Compare contract versions to detect changes in key terms"21 agents: [claude-code, openai-codex, gemini-cli, cursor]22---2324# Contract Review2526## Overview2728Analyze legal contracts and agreements to identify risks, missing clauses, unfavorable terms, and compliance issues. This skill reads contract documents, categorizes clauses, flags potential problems, and produces a structured risk report with actionable recommendations.2930## Instructions3132When a user asks you to review, analyze, or check a contract, follow these steps:3334### Step 1: Load and parse the contract3536Read the contract file. Supported formats include PDF, DOCX, TXT, and Markdown.3738For PDF files, extract text using pdfplumber:3940```python41import pdfplumber4243def load_contract(pdf_path):44 full_text = ""45 with pdfplumber.open(pdf_path) as pdf:46 for page in pdf.pages:47 text = page.extract_text()48 if text:49 full_text += text + "\n\n"50 return full_text51```5253For DOCX files, use python-docx:5455```python56from docx import Document5758def load_docx(docx_path):59 doc = Document(docx_path)60 return "\n\n".join([p.text for p in doc.paragraphs if p.text.strip()])61```6263### Step 2: Identify the contract type6465Determine the contract type from the content:66- **Employment contract**: Look for salary, benefits, termination, non-compete clauses67- **NDA / Confidentiality agreement**: Look for confidential information definitions, duration, exceptions68- **Service agreement / SaaS**: Look for SLA, liability caps, data handling, termination for convenience69- **Vendor / Supplier agreement**: Look for delivery terms, payment terms, warranties, indemnification7071### Step 3: Extract and categorize key clauses7273Identify and extract these critical sections:741. **Parties**: Who is involved, are they correctly identified752. **Term and termination**: Duration, renewal terms, termination conditions, notice periods763. **Payment terms**: Amounts, schedule, late payment penalties, currency774. **Liability and indemnification**: Liability caps, mutual vs one-sided indemnification785. **Confidentiality**: Scope of confidential information, duration, exceptions796. **Non-compete / Non-solicitation**: Geographic scope, duration, reasonableness807. **Intellectual property**: Ownership, assignment, licensing rights818. **Dispute resolution**: Jurisdiction, arbitration vs litigation, governing law829. **Force majeure**: Events covered, notice requirements8310. **Data protection**: GDPR compliance, data processing terms, breach notification8485### Step 4: Perform risk analysis8687For each clause, assess:88- **Risk level**: High, Medium, or Low89- **Issue**: What is problematic or missing90- **Recommendation**: Specific change or addition to suggest9192Flag these common red flags:93- One-sided indemnification without caps94- Automatic renewal without opt-out notice period95- Non-compete clauses exceeding 12 months or unreasonable geographic scope96- Missing limitation of liability97- Vague termination conditions98- No data protection or breach notification terms99- Missing force majeure clause100- Unclear IP ownership assignment101102### Step 5: Generate the review report103104Produce a structured report with:1051. Contract summary (type, parties, effective date, term)1062. Clause-by-clause analysis with risk ratings1073. Missing clauses that should be added1084. Top recommendations ranked by priority1095. Overall risk score (Low / Medium / High / Critical)110111## Examples112113### Example 1: Review an employment contract114115**User request:** "Review my employment contract at ~/contracts/offer.pdf for any red flags"116117**Actions taken:**1181. Extract text from offer.pdf1192. Identify as employment contract1203. Analyze each clause for risks1214. Flag issues found122123**Output:**124```125CONTRACT REVIEW REPORT126======================127Type: Employment Contract128Parties: Jane Doe (Employee) <-> Acme Corp (Employer)129Term: Indefinite, starting March 1, 2025130131RISK ANALYSIS:132-------------------------------------------------133| Clause | Risk | Issue |134|---------------------|--------|------------------------------------------|135| Non-compete | HIGH | 24-month duration, nationwide scope |136| Termination | MEDIUM | No severance terms specified |137| IP Assignment | HIGH | Covers all work, including personal projects |138| Benefits | LOW | Standard package, clearly defined |139| Confidentiality | LOW | Reasonable scope and 2-year duration |140141MISSING CLAUSES:142- No remote work policy or location flexibility terms143- No bonus or equity vesting schedule details144145TOP RECOMMENDATIONS:1461. Negotiate non-compete down to 6-12 months with limited geography1472. Add carve-out for personal projects in IP assignment clause1483. Request explicit severance terms (e.g., 2 weeks per year of service)149150OVERALL RISK: HIGH - Address non-compete and IP clauses before signing151```152153### Example 2: Audit a SaaS service agreement154155**User request:** "Check this vendor agreement for our SaaS tool. Flag anything we should push back on."156157**Actions taken:**1581. Parse the service agreement1592. Check for standard SaaS contract terms1603. Compare against best practices for data protection and SLAs161162**Output:**163```164CONTRACT REVIEW REPORT165======================166Type: SaaS Service Agreement167Parties: Your Company <-> CloudTool Inc.168Term: 12 months, auto-renews169170RISK ANALYSIS:171-------------------------------------------------172| Clause | Risk | Issue |173|---------------------|----------|----------------------------------------|174| SLA / Uptime | HIGH | No uptime guarantee or credits defined |175| Data Processing | HIGH | No DPA or GDPR compliance language |176| Liability Cap | MEDIUM | Capped at 1 month of fees (very low) |177| Termination | MEDIUM | 90-day notice required to cancel |178| Auto-renewal | LOW | 30-day opt-out window before renewal |179180TOP RECOMMENDATIONS:1811. Require a 99.9% uptime SLA with service credits1822. Add a Data Processing Agreement as an appendix1833. Negotiate liability cap to at least 12 months of fees1844. Reduce cancellation notice to 30 days185```186187## Guidelines188189- Always specify that this is an AI-assisted review and not legal advice. Recommend the user consult a lawyer for final decisions.190- Present risks in order of severity (High first) so the most important issues are seen immediately.191- When clauses are ambiguous, flag them as risks rather than assuming favorable interpretation.192- For multi-party contracts, analyze obligations and risks from the perspective of the user's party.193- If the contract references external documents (exhibits, schedules, addenda), note which ones are missing from the review.194- Compare terms against standard market practices for the contract type when assessing reasonableness.195- Keep the report concise. Use tables for clause analysis and bullet points for recommendations.