A pipeline where an agent team performs contract analysis, drafting, review, and risk assessment. Use this skill for contexts such as 'review the contract', 'contract analysis', 'draft a contract', 'contract risk assessment', 'contract review', 'clause modification', 'contract comparison', 'NDA review', 'service agreement', 'lease agreement', 'employment contract', 'license agreement', and other contract management tasks. Note: Providing legal counsel, conducting litigation, notarization, and court document preparation are outside the scope of this skill.
An agent team collaborates to perform clause analysis, drafting/revision, risk assessment, comparison review, and comprehensive opinion.
Warning: This pipeline does not replace professional legal advice.
Agent Team — 5 agents communicate directly via SendMessage and cross-verify each other's work.
| Agent | File | Role | Type |
|---|---|---|---|
| clause-analyst | .claude/agents/clause-analyst.md | Clause structure, interpretation, essential clause verification | general-purpose |
| clause-drafter | .claude/agents/clause-drafter.md | Clause drafting, amendment proposals | general-purpose |
| risk-assessor | .claude/agents/risk-assessor.md |
| Legal and business risk assessment |
| general-purpose |
| comparison-reviewer | .claude/agents/comparison-reviewer.md | Standard/previous version comparison, negotiation points | general-purpose |
| contract-coordinator | .claude/agents/contract-coordinator.md | Comprehensive opinion, consistency verification | general-purpose |
_workspace/ directory in the project root_workspace/00_input.md_workspace/original_contract.md| Order | Task | Owner | Dependencies | Output |
|---|---|---|---|---|
| 1 | Clause Analysis | clause-analyst | None | _workspace/01_clause_analysis.md |
| 2a | Risk Assessment | risk-assessor | Task 1 | _workspace/03_risk_assessment.md |
| 2b | Comparison Review | comparison-reviewer | Task 1 | _workspace/04_comparison_report.md |
| 3 | Clause Drafting/Revision | clause-drafter | Tasks 1, 2a, 2b | _workspace/02_draft_clauses.md |
| 4 | Comprehensive Opinion | contract-coordinator | Tasks 1, 2a, 2b, 3 | _workspace/05_final_opinion.md |
Tasks 2a (Risk) and 2b (Comparison) are executed in parallel.
Inter-agent Communication Flow:
_workspace/01_clause_analysis.md02_draft_clauses.md03_risk_assessment.md04_comparison_report.md05_final_opinion.md| User Request Pattern | Execution Mode | Agents Deployed |
|---|---|---|
| "Review this contract", "Full analysis" | Full Analysis | All 5 agents |
| "Draft a contract", "Write a contract" | Drafting Mode | clause-drafter + risk-assessor + contract-coordinator |
| "Just assess the risk" | Risk Mode | clause-analyst + risk-assessor |
| "Compare with previous version" | Comparison Mode | clause-analyst + comparison-reviewer |
| "Modify this clause" | Amendment Mode | clause-drafter only |
Using Existing Files: If comparison targets (standard, previous version) are provided, comparison-reviewer utilizes them.
| Strategy | Method | Purpose |
|---|---|---|
| File-based | _workspace/ directory | Storing and sharing main deliverables |
| Message-based | SendMessage | Real-time delivery of key information, revision requests |
| Web Browsing | WebSearch/WebFetch | Standard templates, related laws, case law research |
| Error Type | Strategy |
|---|---|
| No contract text | Switch to drafting mode based on standard template for the contract type |
| Party position unclear | Analyze from both Party A and Party B perspectives, request position confirmation from user |
| Governing law unclear | Default analysis based on domestic law, note possibility of other applicable laws |
| Web search failure | Work based on general legal knowledge, note "latest case law unverified" |
| Agent failure | Retry once -> if failed, proceed without that deliverable, note omission in report |
Prompt: "Review this software development service contract. We are Party B (the contractor)." + contract file provided Expected Results:
Prompt: "Draft a freelance design service contract. I am Party A." Expected Results:
Prompt: "Check if this contract is okay" + English NDA provided Expected Results:
| Agent | Extension Skill | Purpose |
|---|---|---|
| risk-assessor, clause-analyst | clause-risk-database | Risk clause pattern DB, risk scoring algorithm |
| clause-drafter, comparison-reviewer | negotiation-playbook | Negotiation strategy framework, amendment wording templates |