Service Legal Docs — Service Legal Document Set Generation Pipeline
Generates all legal documents required for service launch: Terms of Service, Privacy Policy, Cookie Policy, Refund Policy, and Copyright Notice.
Execution Modes
Agent Team — 4 members communicate directly via SendMessage and perform cross-validation.
Agent Configuration
| Agent |
File |
Role |
Type |
| tos-specialist |
.claude/agents/tos-specialist.md |
Terms of Service, unfair terms prevention |
general-purpose |
| privacy-specialist |
.claude/agents/privacy-specialist.md |
Privacy policy, cookie policy, consent framework |
general-purpose |
| consumer-analyst |
.claude/agents/consumer-analyst.md |
Refund policy, copyright notice |
general-purpose |
| consistency-reviewer |
.claude/agents/consistency-reviewer.md |
Cross-document consistency, final QA |
general-purpose |
Workflow
Phase 1: Preparation (Orchestrator performs directly)
- Extract from user input:
- Service Name: Company/service name
- Service Type: SaaS, e-commerce, content platform, community, etc.
- Service Region: Domestic, global (including EU or not)
- Payment: Paid/free/freemium (in-app purchases, subscriptions)
- Personal Data Collected (optional): List of data collected
- Existing Materials (optional): Current terms, privacy policy, etc.
- Create
_workspace/ directory in the project root
- Organize input and save to
_workspace/00_input.md
- Determine execution mode based on request scope
Phase 2: Team Formation and Execution
| Order |
Task |
Owner |
Depends On |
Output |
| 1a |
Terms of Service |
tos-specialist |
None |
_workspace/01_terms_of_service.md |
| 1b |
Privacy Policy + Cookie Policy |
privacy-specialist |
None |
_workspace/02_privacy_policy.md, _workspace/03_cookie_policy.md |
| 1c |
Refund Policy + Copyright Notice |
consumer-analyst |
None |
_workspace/04_refund_policy.md, _workspace/05_copyright_notice.md |
| 2 |
Consistency Review |
consistency-reviewer |
Tasks 1a, 1b, 1c |
_workspace/06_review_report.md |
Tasks 1a, 1b, and 1c are executed in parallel. All three agents can work independently. However, agents communicate with each other during work to ensure cross-document alignment.
Inter-team Communication Flow:
- tos-specialist ↔ privacy-specialist: Coordinate privacy-related terms clauses
- tos-specialist ↔ consumer-analyst: Coordinate refund, cancellation, and copyright clauses
- privacy-specialist ↔ consumer-analyst: Coordinate personal data processing during payment and refund
- consistency-reviewer cross-validates all outputs. If 🔴 critical issues are found, revision requests are sent to the relevant agent (maximum 2 times)
Phase 3: Integration and Final Output
- Verify all files in
_workspace/
- Confirm all 🔴 critical issues from the review report have been addressed
- Report final summary to the user:
- Terms of Service —
01_terms_of_service.md
- Privacy Policy —
02_privacy_policy.md
- Cookie Policy —
03_cookie_policy.md
- Refund Policy —
04_refund_policy.md
- Copyright Notice —
05_copyright_notice.md
- Review Report —
06_review_report.md
Mode by Request Scope
| User Request Pattern |
Execution Mode |
Agents Involved |
| "Full legal document set", "Create terms package" |
Full Pipeline |
All 4 agents |
| "Write terms of service only" |
Terms Mode |
tos-specialist + reviewer |
| "Write privacy policy only" |
Privacy Policy Mode |
privacy-specialist + reviewer |
| "Create refund policy only" |
Refund Policy Mode |
consumer-analyst + reviewer |
| "Review existing terms" |
Review Mode |
consistency-reviewer only |
Using Existing Files: If the user provides existing terms, privacy policy, etc., copy the relevant files to the appropriate numbered location in _workspace/ and skip the corresponding agent.
Data Transfer Protocol
| Strategy |
Method |
Purpose |
| File-based |
_workspace/ directory |
Store and share primary outputs |
| Message-based |
SendMessage |
Real-time clause coordination, revision requests |
Filename convention: {sequence}_{document_type}.{extension}
Error Handling
| Error Type |
Strategy |
| Insufficient service information |
Draft based on general online service standards, note "service customization required" |
| Agent failure |
1 retry → if still failing, proceed without that document and note the omission in the review report |
| 🔴 issues found in review |
Send revision request to relevant agent → rework → re-review (maximum 2 times) |
| Cross-document contradictions found |
consistency-reviewer proposes resolution direction, simultaneously requests revision from related agents |
| Unverified legal amendments |
Note "latest law verification required", recommend legal counsel |
Test Scenarios
Normal Flow
Prompt: "I'm preparing to launch a SaaS service and need the full legal document set. The service is called TaskFlow, it's a monthly subscription model, and we collect email, name, and phone number at signup."
Expected Result:
- Terms of Service: SaaS-specific clauses (subscription, service level, data ownership, etc.)
- Privacy Policy: Reflects email/name/phone number collection items
- Cookie Policy: Cookie type classification based on web service standards
- Refund Policy: Subscription model-specific withdrawal criteria
- Copyright Notice: SaaS content copyright provisions
- Review: Cross-document consistency verified across all 6 documents
Partial Flow
Prompt: "I already have the terms of service, just write the privacy policy"
Expected Result:
- Switches to Privacy Policy Mode (privacy-specialist + reviewer)
- References existing terms for consistency verification
Error Flow
Prompt: "Create service terms, it's an app but I'll give you the details later"
Expected Result:
- Full pipeline executes based on general mobile app standards
- All documents include "[Verification Required]" markers for items requiring service customization
- Review report includes "Document update required after confirming service details"
Agent Extended Skills
| Agent |
Extended Skill |
Purpose |
| tos-specialist, consistency-reviewer |
unfair-terms-detector |
Detect unfair terms, check for terms law violations |
| consistency-reviewer, all agents |
cross-document-linker |
Cross-document referencing, consistency management |
1---2name: service-legal-docs3description: Full pipeline for generating a service legal document set. An agent team collaborates to generate Terms of Service → Privacy Policy → Cookie Policy → Refund Policy → Copyright Notice all at once. Use this skill for any service legal document creation including: 'create service terms', 'write terms of service', 'privacy policy', 'legal document set', 'service launch legal documents', 'terms package', 'write refund policy', 'cookie policy', 'copyright notice', 'legal document package', etc. Note: actual legal counsel (attorney review), terms review (fair trade commission), legal dispute response, and notarization of legal documents are outside the scope of this skill.4---56# Service Legal Docs — Service Legal Document Set Generation Pipeline78Generates all legal documents required for service launch: Terms of Service, Privacy Policy, Cookie Policy, Refund Policy, and Copyright Notice.910## Execution Modes1112**Agent Team** — 4 members communicate directly via SendMessage and perform cross-validation.1314## Agent Configuration1516| Agent | File | Role | Type |17|---------|------|------|------|18| tos-specialist | `.claude/agents/tos-specialist.md` | Terms of Service, unfair terms prevention | general-purpose |19| privacy-specialist | `.claude/agents/privacy-specialist.md` | Privacy policy, cookie policy, consent framework | general-purpose |20| consumer-analyst | `.claude/agents/consumer-analyst.md` | Refund policy, copyright notice | general-purpose |21| consistency-reviewer | `.claude/agents/consistency-reviewer.md` | Cross-document consistency, final QA | general-purpose |2223## Workflow2425### Phase 1: Preparation (Orchestrator performs directly)26271. Extract from user input:28 - **Service Name**: Company/service name29 - **Service Type**: SaaS, e-commerce, content platform, community, etc.30 - **Service Region**: Domestic, global (including EU or not)31 - **Payment**: Paid/free/freemium (in-app purchases, subscriptions)32 - **Personal Data Collected** (optional): List of data collected33 - **Existing Materials** (optional): Current terms, privacy policy, etc.342. Create `_workspace/` directory in the project root353. Organize input and save to `_workspace/00_input.md`364. **Determine execution mode** based on request scope3738### Phase 2: Team Formation and Execution3940| Order | Task | Owner | Depends On | Output |41|------|------|------|------|--------|42| 1a | Terms of Service | tos-specialist | None | `_workspace/01_terms_of_service.md` |43| 1b | Privacy Policy + Cookie Policy | privacy-specialist | None | `_workspace/02_privacy_policy.md`, `_workspace/03_cookie_policy.md` |44| 1c | Refund Policy + Copyright Notice | consumer-analyst | None | `_workspace/04_refund_policy.md`, `_workspace/05_copyright_notice.md` |45| 2 | Consistency Review | consistency-reviewer | Tasks 1a, 1b, 1c | `_workspace/06_review_report.md` |4647Tasks 1a, 1b, and 1c are executed **in parallel**. All three agents can work independently. However, agents communicate with each other during work to ensure cross-document alignment.4849**Inter-team Communication Flow:**50- tos-specialist ↔ privacy-specialist: Coordinate privacy-related terms clauses51- tos-specialist ↔ consumer-analyst: Coordinate refund, cancellation, and copyright clauses52- privacy-specialist ↔ consumer-analyst: Coordinate personal data processing during payment and refund53- consistency-reviewer cross-validates all outputs. If 🔴 critical issues are found, revision requests are sent to the relevant agent (maximum 2 times)5455### Phase 3: Integration and Final Output56571. Verify all files in `_workspace/`582. Confirm all 🔴 critical issues from the review report have been addressed593. Report final summary to the user:60 - Terms of Service — `01_terms_of_service.md`61 - Privacy Policy — `02_privacy_policy.md`62 - Cookie Policy — `03_cookie_policy.md`63 - Refund Policy — `04_refund_policy.md`64 - Copyright Notice — `05_copyright_notice.md`65 - Review Report — `06_review_report.md`6667## Mode by Request Scope6869| User Request Pattern | Execution Mode | Agents Involved |70|----------------|----------|-------------|71| "Full legal document set", "Create terms package" | **Full Pipeline** | All 4 agents |72| "Write terms of service only" | **Terms Mode** | tos-specialist + reviewer |73| "Write privacy policy only" | **Privacy Policy Mode** | privacy-specialist + reviewer |74| "Create refund policy only" | **Refund Policy Mode** | consumer-analyst + reviewer |75| "Review existing terms" | **Review Mode** | consistency-reviewer only |7677**Using Existing Files**: If the user provides existing terms, privacy policy, etc., copy the relevant files to the appropriate numbered location in `_workspace/` and skip the corresponding agent.7879## Data Transfer Protocol8081| Strategy | Method | Purpose |82|------|------|------|83| File-based | `_workspace/` directory | Store and share primary outputs |84| Message-based | SendMessage | Real-time clause coordination, revision requests |8586Filename convention: `{sequence}_{document_type}.{extension}`8788## Error Handling8990| Error Type | Strategy |91|----------|------|92| Insufficient service information | Draft based on general online service standards, note "service customization required" |93| Agent failure | 1 retry → if still failing, proceed without that document and note the omission in the review report |94| 🔴 issues found in review | Send revision request to relevant agent → rework → re-review (maximum 2 times) |95| Cross-document contradictions found | consistency-reviewer proposes resolution direction, simultaneously requests revision from related agents |96| Unverified legal amendments | Note "latest law verification required", recommend legal counsel |9798## Test Scenarios99100### Normal Flow101**Prompt**: "I'm preparing to launch a SaaS service and need the full legal document set. The service is called TaskFlow, it's a monthly subscription model, and we collect email, name, and phone number at signup."102**Expected Result**:103- Terms of Service: SaaS-specific clauses (subscription, service level, data ownership, etc.)104- Privacy Policy: Reflects email/name/phone number collection items105- Cookie Policy: Cookie type classification based on web service standards106- Refund Policy: Subscription model-specific withdrawal criteria107- Copyright Notice: SaaS content copyright provisions108- Review: Cross-document consistency verified across all 6 documents109110### Partial Flow111**Prompt**: "I already have the terms of service, just write the privacy policy"112**Expected Result**:113- Switches to Privacy Policy Mode (privacy-specialist + reviewer)114- References existing terms for consistency verification115116### Error Flow117**Prompt**: "Create service terms, it's an app but I'll give you the details later"118**Expected Result**:119- Full pipeline executes based on general mobile app standards120- All documents include "[Verification Required]" markers for items requiring service customization121- Review report includes "Document update required after confirming service details"122123## Agent Extended Skills124125| Agent | Extended Skill | Purpose |126|---------|----------|------|127| tos-specialist, consistency-reviewer | `unfair-terms-detector` | Detect unfair terms, check for terms law violations |128| consistency-reviewer, all agents | `cross-document-linker` | Cross-document referencing, consistency management |