Atlas / Skills / revfactory / Service Legal Docs

Service Legal DocsSAFE

skills/revfactory/service-legal-docs
Verdict
SAFE
Grade
B
Trust score
89 /100
Version
—
Hosts
—
License
Apache-2.0
Stars
1,297
01

Overview

An agent skill published by revfactory.

Read from source at commit 459e1bb8f76eOBSERVED · 2026-10-12
02

What it tells the agent

The instruction file, verbatim from the audited commit — this is the text the model reads, and the surface the audit's instruction layer examines. Quoted here so you can judge it without cloning anything.

---
name: service-legal-docs
description: "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."
---

# 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)

1. 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.
2. Create `_workspace/` directory in the project root
3. Organize input and save to `_workspace/00_input.md`
4. **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

1. Verify all files in `_workspace/`
2. Confirm all 🔴 critical issues from the review report have been addressed
3. 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."
**Expecte
03

Trust audit

SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codeNA
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfacePASS
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
none-observed
Network
none-observed
Shell
none-observed
Dependencies
pinned
Secrets in source
none-found

Findings (0)

No findings outside the package's declared scope.

Gates applied: no_behavioural_pass.

Audited 2026-10-12 · audit v0.4.1 · source sha 459e1bb8f76efull audit observations/trust-audit/skill/revfactory__service-legal-docs.json · Report an issue / request a re-scan
04

Audit history

Every audit this skill has had.

DateSourceVerdictGradeScoreChange
2026-10-12459e1bb8f76eSAFEB89first audit
05

Questions

Is Service Legal Docs safe to install?

The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean skill reads B.

What can Service Legal Docs access on my machine?

The audit observed no filesystem, network or shell use at all in its source.

How current is this page?

The grade is for one exact copy of the source (459e1bb8f76e), read on 2026-10-12. The repository is watched, and a new audit runs when it changes — this is the first audit.

Advertisement