Catalogue / legal-tos-privacy
legal-tos-privacy
MITSignedCreate bulletproof Terms of Service and Privacy Policy documents for SaaS applications. Infers company information from codebase/marketing site, conducts comprehensive audits, drafts documents, then asks user ONLY for missing details at the end. Minimizes user interaction. Use when the user needs to…--- name: legal-tos-privacy description: Create bulletproof Terms of Service and Privacy Policy documents for SaaS applications. Infers company information from codebase/marketing site, conducts comprehensive audits, drafts documents, then asks user ONLY for missing details at the end. Minimizes user interaction. Use when the user needs to draft, review, or update legal documents (ToS, Terms of Service, Privacy Policy, legal pages). Triggers on requests for legal documents, terms drafting, privacy policy creation, "cover our bases legally", liability protection, or legal compliance for software products. ---
Legal Document Generator: Terms of Service & Privacy Policy
Generate comprehensive, legally protective Terms of Service and Privacy Policy documents. This skill:
- Audits the codebase and marketing materials
- Extracts company info, service details, and data practices automatically
- Drafts complete documents (using
[[TEMPLATE_VARIABLES]]for unknowns) - Asks the user ONLY for information that couldn't be found (minimal interaction)
- Delivers final, ready-to-publish documents with zero placeholders
Reference Files
references/legal-guide.md- Comprehensive guide to ToS and Privacy Policy draftingreferences/compliance-checklist.md- Jurisdiction-specific requirements (GDPR, CCPA, LGPD, COPPA, etc.)references/protective-clauses.md- Ready-to-adapt legal clauses for common risk scenarios
Read these references as needed when drafting the actual documents.
Critical Principle: Infer Everything Possible, Ask Only What's Missing
Minimize user interaction. Extract and infer as much information as possible from the codebase, marketing site, config files, and any existing legal documents. Only ask the user for information that genuinely cannot be found or inferred.
Workflow:
- Audit codebase and marketing materials (Phases 1-3)
- Extract company/service info from code during audit
- Draft documents with template variables for unknowns (Phases 4-5)
- Final step: resolve any remaining template variables by asking user (Phase 7)
---
Phase 1: Codebase & Data Flow Audit
Conduct exhaustive exploration to understand every aspect of data handling. During this audit, also extract company and service information from the sources below.
1.0 Extract Company & Service Information
Search these locations to infer company details - DO NOT ask the user if you can find it:
# Package/project metadata Read: package.json (name, author, description, homepage, repository) Read: README.md, README (project name, description, company info) # Config files with company info Search for: companyName, company_name, APP_NAME, SITE_NAME, BRAND_NAME Read: .env.example, .env.local.example (for variable names, not secrets) # Marketing site footer/header (often contains company info) Read: footer, Footer, layout, Layout files for copyright notices Search for: "©", "Copyright", "All rights reserved", "Inc.", "LLC", "Ltd." # Existing legal pages Read: terms, privacy, legal folders/files (may have company name, address, contact) Search for: legal@, privacy@, support@, contact@, hello@ # Site metadata Search for: <title>, meta description, og:site_name, og:title Read: metadata, siteConfig, site.config, app.config files # Contact pages Read: contact, about, company pages for addresses/emails
Track what you find and what's missing:
| Field | Found? | Value | Source | |-------|--------|-------|--------| | Legal Entity Name | | | | | DBA/Trade Name | | | | | Entity Type | | | | | Physical Address | | | | | Legal Contact Email | | | | | Privacy Contact Email | | | | | Support Contact Email | | | | | Service/Product Name | | | | | Website URL | | | | | Governing Law | | | |
Inference rules:
- If copyright says "© 2024 Acme Inc." → Legal entity is likely "Acme Inc."
- If package.json has
"author": "Acme Software"→ Use as company name - If footer has
hello@acme.combut no legal email → Use hello@ for legal contact - If site is
acme.com→ Website URL ishttps://acme.com - If company address found in footer/contact → Use for physical address
- If no governing law found → Leave as template variable (will ask later)
1.1 Data Collection Discovery
Search for ALL data collection points:
# User input collection Search for: form, input, useState, formData, register, signup, login, email, password, name, phone, address, billing, payment # API data handling Search for: req.body, request.body, params, query, headers, authorization, bearer, token, cookie, session # Database schemas Search for: schema, model, entity, table, @Column, field, prisma.schema, drizzle, mongoose # Third-party integrations Search for: stripe, paddle, polar, analytics, google, facebook, pixel, segment, mixpanel, amplitude, sentry, posthog, plausible
Document every data point found:
- Field name and type
- Where collected (signup, checkout, in-app)
- Purpose (auth, billing, analytics, marketing)
- Storage location (database, third-party)
- Retention period (if determinable)
1.2 Third-Party Service Inventory
Identify ALL external services that receive user data:
# Check dependencies Read: package.json, requirements.txt, go.mod, Cargo.toml # Check environment variables Search for: process.env, import.meta.env, Deno.env, .env files # Check API integrations Search for: fetch, axios, http, api, client, sdk
For each third-party service, document:
- Service name and purpose
- What data is shared with them
- Their data processing role (processor vs controller)
- Link to their privacy policy/DPA
1.3 Authentication & Security Mechanisms
Search for: auth, session, jwt, oauth, password, hash, bcrypt, argon, encrypt, ssl, tls, https, 2fa, mfa, totp
Document:
- Authentication methods used
- Password storage approach
- Session management
- Security features offered to users
1.4 User Content & Generated Data
Search for: upload, file, image, document, content, post, comment, message, storage, s3, blob, bucket
Document:
- Types of user-generated content accepted
- Storage mechanisms
- Processing performed on user content
- Who can access user content
1.5 Tracking & Analytics
Search for: cookie, localStorage, sessionStorage, tracking, analytics, gtag, ga4, pixel, event, track, identify, page
Document:
- All cookies set (name, purpose, duration)
- Analytics tools and what they track
- Advertising/remarketing pixels
- Cross-site tracking capabilities
Phase 2: Marketing Claims Audit
Examine all public-facing materials for claims that must be addressed legally.
2.1 Feature Claims
# Check marketing site Read all files in: marketing/, website/, landing/, pages/marketing, app/(marketing) Search for: guarantee, promise, ensure, always, never, 100%, unlimited, secure, safe, protect, best, fastest, #1, leading
Document every claim that could create liability:
- Uptime/availability claims
- Security/privacy claims
- Performance claims
- Results/outcome claims
- Comparison claims
2.2 Pricing & Subscription Claims
Search for: pricing, price, plan, tier, subscription, trial, free, refund, cancel, money-back
Document:
- All pricing tiers and what's included
- Trial terms
- Refund policy claims
- Cancellation process claims
2.3 Compliance & Certification Claims
Search for: GDPR, CCPA, HIPAA, SOC, ISO, compliant, certified, secure
Document any compliance claims that must be legally defensible.
Phase 3: Risk Assessment
Before drafting, identify highest-risk areas:
3.1 Liability Hotspots
Rate each area (High/Medium/Low risk):
- [ ] Data breach exposure - What's the damage if data leaks?
- [ ] Service failure impact - What happens if product goes down?
- [ ] Incorrect output liability - Could wrong results cause harm?
- [ ] Third-party dependency risk - What if integrations fail?
- [ ] User content liability - Could user content create legal issues?
- [ ] Regulatory exposure - Which regulations apply?
3.2 Geographic Scope
Determine applicable regulations based on:
- Company location
- Server/data storage locations
- Target user locations
- Actual user locations (if known)
Regulations to consider:
- GDPR (EU/EEA users)
- CCPA/CPRA (California users)
- LGPD (Brazil users)
- PIPEDA (Canada users)
- COPPA (if children might use service)
- Industry-specific (HIPAA, PCI-DSS, etc.)
Phase 4: Draft Terms of Service
Use findings from audit to draft comprehensive ToS. See references/legal-guide.md for detailed section guidance.
Required Sections Checklist
Every ToS MUST include:
- [ ] Introduction & Acceptance - Binding agreement, clickwrap consent, effective date
- [ ] Definitions - Define "Service", "User", "Content", "Data", etc.
- [ ] Account Terms - Registration, accuracy, security responsibility, no sharing
- [ ] Acceptable Use Policy - Prohibited activities tailored to your product
- [ ] Payment Terms (if paid) - Pricing, billing, taxes, refunds, cancellation
- [ ] Intellectual Property - Company owns service, user owns their content, license grants
- [ ] User Content License - Rights you need to operate (host, display, process)
- [ ] Privacy Reference - Incorporation of Privacy Policy
- [ ] Third-Party Services - Disclaimer for integrated services
- [ ] Warranty Disclaimer - "AS IS", no guarantees, use at own risk
- [ ] Limitation of Liability - Cap damages, exclude consequential damages
- [ ] Indemnification - User covers you for their misuse/violations
- [ ] Term & Termination - Duration, termination rights, post-termination
- [ ] Dispute Resolution - Arbitration, class action waiver, governing law
- [ ] Governing Law & Venue - Jurisdiction selection
- [ ] Force Majeure - Excuse for uncontrollable events
- [ ] Severability - Invalid clauses don't void agreement
- [ ] Entire Agreement - This supersedes prior agreements
- [ ] Modification Rights - How terms can change, notification requirement
- [ ] Contact Information - How to reach you
Liability Protection Language
Include these protective clauses:
Service Availability Disclaimer:
The Service is provided on an "as is" and "as available" basis. We do not guarantee that the Service will be uninterrupted, timely, secure, or error-free. We make no warranties regarding the accuracy, reliability, or completeness of any content or results obtained through the Service.
Consequential Damages Exclusion:
IN NO EVENT SHALL [[LEGAL_ENTITY_NAME]] BE LIABLE FOR ANY INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL, OR PUNITIVE DAMAGES, INCLUDING BUT NOT LIMITED TO LOSS OF PROFITS, DATA, USE, GOODWILL, OR OTHER INTANGIBLE LOSSES, REGARDLESS OF WHETHER WE HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
(Note: Replace [[LEGAL_ENTITY_NAME]] with actual company name found in audit, or resolve in Phase 7)
Liability Cap:
OUR TOTAL LIABILITY TO YOU FOR ALL CLAIMS ARISING FROM OR RELATED TO THE SERVICE SHALL NOT EXCEED THE GREATER OF (A) THE AMOUNTS YOU PAID TO US IN THE TWELVE (12) MONTHS PRECEDING THE CLAIM, OR (B) ONE HUNDRED DOLLARS ($100).
Results Disclaimer (for AI/analytics products):
Any insights, recommendations, or outputs generated by the Service are provided for informational purposes only and should not be relied upon as professional advice. You are solely responsible for evaluating and verifying any results before taking action based on them.
Audit-Specific Additions
Based on your audit findings, add clauses for:
If AI/ML features exist:
- Output accuracy disclaimer
- No reliance for critical decisions
- Training data usage rights
If user content is processed:
- Content ownership clarification
- License grant for processing
- Prohibited content types
Preview shortened. The full SKILL.md is in the pack.
| File | Size | SHA-256 |
|---|---|---|
| SKILL.md | 20.0 kB | 1711ccba90fb |
| SKILVAULT_SOURCE.json | 1.4 kB | 70cbdaa414e6 |
| THIRD_PARTY_NOTICES.md | 1.1 kB | eacbaa9d7eac |
| references/compliance-checklist.md | 10.5 kB | 1a88b6b24b05 |
| references/legal-guide.md | 42.9 kB | 89d5b1add0b2 |
| references/protective-clauses.md | 14.3 kB | 8ba3b3516c61 |
Published verbatim from the pinned commit. Nothing is rewritten.
| Version | Pinned commit | Signed | |
|---|---|---|---|
| 0.1.0 Current | 16db0b67ce91 | 29 Nov 2026 |
Locking a skill to one version needs Pro.