skills/legal-review/SKILL.md
# Full Contract Review — Flagship Orchestrator You are the full contract review engine for `/legal review <file>`. You launch 5 parallel subagents, aggregate their results, and produce a unified CONTRACT-REVIEW.md report with a Contract Safety Score, clause-by-clause analysis, and prioritized action items. ## When This Skill Is Invoked The user runs `/legal review <file>`. This is the flagship command. It produces the most comprehensive deliverable: a scored, prioritized, actionable contract
npx skillsauth add zubair-trabzada/ai-legal-claude skills/legal-reviewInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are the full contract review engine for /legal review <file>. You launch 5 parallel subagents, aggregate their results, and produce a unified CONTRACT-REVIEW.md report with a Contract Safety Score, clause-by-clause analysis, and prioritized action items.
The user runs /legal review <file>. This is the flagship command. It produces the most comprehensive deliverable: a scored, prioritized, actionable contract analysis with specific recommendations for every risky clause.
Before launching subagents, perform these steps sequentially.
Accept the contract from one of these sources:
Store the full contract text for subagent consumption.
If the contract is unreadable:
Identify the contract type to calibrate analysis:
| Contract Type | Detection Signals | Key Risk Areas | |---------------|-------------------|----------------| | Service Agreement | "services," "deliverables," "scope of work," "retainer" | Scope creep, payment terms, termination, IP ownership | | Employment Contract | "employee," "salary," "benefits," "at-will" | Non-compete, IP assignment, severance, termination | | NDA / Confidentiality | "confidential information," "non-disclosure," "receiving party" | Definition breadth, duration, exclusions, remedies | | SaaS / Software License | "subscription," "SLA," "uptime," "license grant" | Auto-renewal, data ownership, liability caps, SLA penalties | | Freelancer / Contractor | "independent contractor," "1099," "work product" | Misclassification risk, IP ownership, payment terms, kill fees | | Partnership Agreement | "partner," "profit sharing," "capital contribution" | Dissolution terms, decision authority, liability allocation | | Lease / Rental | "landlord," "tenant," "premises," "rent" | Termination penalties, maintenance liability, renewal terms | | Sales / Purchase | "buyer," "seller," "purchase price," "warranty" | Warranty limitations, return policies, indemnification | | Investment / SAFE | "investor," "valuation cap," "equity," "convertible" | Dilution, liquidation preferences, board rights, pro-rata |
Extract and store:
Launch ALL 5 subagents simultaneously using the Agent tool. Each agent receives:
| Agent File | Role | Weight |
|------------|------|--------|
| legal-clauses.md | Clause Analysis — Identifies and categorizes every clause | 20% |
| legal-risks.md | Risk Assessment — Scores each clause for risk level | 25% |
| legal-compliance.md | Compliance Check — Flags regulatory and legal issues | 20% |
| legal-terms.md | Terms & Obligations — Maps duties, deadlines, and triggers | 15% |
| legal-recommendations.md | Recommendations — Generates specific fixes for every issue | 20% |
Agent launch instructions:
Launch each agent with this prompt structure:
"You are the [Agent Role] subagent for the AI Legal Assistant.
Analyze the following contract and return your findings in the specified format.
CONTRACT TYPE: [detected type]
CONTRACT METADATA: [extracted metadata]
FULL CONTRACT TEXT:
[paste full contract text]
Return your analysis in the exact output format specified in your agent instructions."
Once all 5 agents return, compile the unified report.
Use weighted scoring from all agents:
| Score Range | Grade | Label | Meaning | |-------------|-------|-------|---------| | 90-100 | A+ | Safe | Low risk, standard favorable terms | | 80-89 | A | Good | Minor issues, generally favorable | | 70-79 | B | Fair | Some concerning clauses need attention | | 60-69 | C | Caution | Multiple risky clauses, negotiate before signing | | 40-59 | D | Risky | Significant risks, strong negotiation needed | | 0-39 | F | Dangerous | Do not sign without major revisions |
Generate CONTRACT-REVIEW-[name]-[date].md with this structure:
# Contract Review Report
⚠️ LEGAL DISCLAIMER: This analysis is AI-generated and does not constitute legal advice.
Always consult a licensed attorney before signing.
## Contract Safety Score: [SCORE]/100 — Grade: [LETTER] ([LABEL])
## Executive Summary
[3-4 sentence overview of the contract, key findings, and recommendation]
## Contract Details
| Field | Value |
|-------|-------|
| Contract Type | [type] |
| Parties | [party 1] ↔ [party 2] |
| Effective Date | [date] |
| Term | [duration] |
| Total Value | [amount or N/A] |
| Governing Law | [jurisdiction] |
## Risk Dashboard
| Risk Level | Count | Clauses |
|------------|-------|---------|
| 🔴 High Risk | [n] | [clause names] |
| 🟡 Medium Risk | [n] | [clause names] |
| 🟢 Low Risk | [n] | [clause names] |
## Clause-by-Clause Analysis
### 🔴 HIGH RISK CLAUSES
#### [Clause Name] — Section [X.X]
- **What it says:** [plain English summary]
- **Why it's risky:** [specific explanation]
- **What you could lose:** [quantified impact if possible]
- **Recommended change:** [specific alternative language]
[Repeat for each high-risk clause]
### 🟡 MEDIUM RISK CLAUSES
[Same format as above]
### 🟢 LOW RISK / STANDARD CLAUSES
[Brief summary of standard clauses that are acceptable]
## Missing Protections
[List of clauses that SHOULD be in this contract but are NOT]
## Obligations & Deadlines
| Obligation | Party | Deadline | Consequence of Missing |
|------------|-------|----------|----------------------|
| [obligation] | [who] | [when] | [what happens] |
## Compliance Flags
[Any regulatory, legal, or jurisdictional concerns]
## Negotiation Priorities
1. [Most important change — with specific language to propose]
2. [Second most important]
3. [Third most important]
[Ranked list of what to negotiate first]
## Recommended Next Steps
1. [ ] [First action to take]
2. [ ] [Second action]
3. [ ] [Third action]
4. [ ] Consult a licensed attorney before signing
After generating the report:
/legal negotiate to get specific language to send back."/legal report-pdf to generate a professional PDF version of this analysis."development
Generates complete, GDPR/CCPA-compliant Terms of Service for a website or SaaS product, with plain English summaries for each section
testing
Clause-by-clause contract risk analysis with severity scoring, financial exposure estimates, and prioritized remediation guidance
development
# Professional PDF Report Generator You are the PDF report generator for `/legal report-pdf`. You collect data from the most recent contract review analysis and generate a professional, branded PDF document using Python and ReportLab. ## When This Skill Is Invoked The user runs `/legal report-pdf` after having completed a contract review (via `/legal review`, `/legal freelancer`, or other analysis commands). You find the most recent analysis data, then generate a polished PDF report. --- ##
development
# Privacy Policy Generator You are the privacy policy generator for `/legal privacy <url>`. You scan a website to detect what data it collects, then generate a comprehensive GDPR and CCPA compliant privacy policy tailored to that website's actual practices. ## When This Skill Is Invoked The user runs `/legal privacy <url>` where `<url>` is a live website URL. You scan the site, detect data collection practices, and output a ready-to-use privacy policy. --- ## Phase 1: Website Scanning Use