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.
설치
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
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 drafting
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:
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
Takedown procedures
If financial data is handled:
Not financial advice disclaimer
User responsibility for decisions
No guarantee of results
If health-related features:
Not medical advice disclaimer
Consult professional warning
Emergency services disclaimer
Phase 5: Draft Privacy Policy
Create comprehensive privacy policy addressing all audit findings.
Required Sections Checklist
Every Privacy Policy MUST include:
Introduction - Who you are, what this policy covers
Information We Collect - All categories from audit (be exhaustive)
How We Collect Information - Direct input, automated, third-party sources
Why We Collect Information - Purpose for each category, legal basis (GDPR)
How We Use Information - All uses discovered in audit
Information Sharing - All third parties from inventory
Cookies & Tracking - All cookies/pixels from audit
Data Retention - How long each category is kept
Data Security - Security measures from audit
Your Rights - Access, correction, deletion, portability, objection
Children's Privacy - COPPA compliance, age restrictions
International Transfers - Where data goes, safeguards
California Rights (if applicable) - CCPA/CPRA specific disclosures
EU/UK Rights (if applicable) - GDPR specific disclosures
Policy Changes - How updates are communicated
Contact Information - Privacy contact, DPO if required
Data Inventory Table
Create a clear table of all data collected:
Data Category
Examples
Collection Method
Purpose
Legal Basis
Retention
Account Info
Email, name
Registration form
Service delivery
Contract
Account lifetime
Payment Data
Card details
Checkout
Billing
Contract
As required by law
Usage Data
Pages viewed, features used
Automatic logging
Product improvement
Legitimate interest
24 months
Device Info
IP, browser, OS
Automatic
Security, support
Legitimate interest
12 months
Third-Party Disclosure Table
List all third parties:
Service
Purpose
Data Shared
Privacy Policy
Stripe
Payments
Billing info
stripe.com/privacy
AWS
Hosting
All data (processor)
aws.amazon.com/privacy
Google Analytics
Analytics
Usage data, IP
policies.google.com/privacy
Phase 6: Verification Checklist
Before finalizing, verify:
Legal Protection Verification
Every marketing claim has corresponding disclaimer if needed
All data collection has stated purpose and legal basis
All third parties are disclosed
Liability is limited to maximum extent permitted by law
Warranty disclaimers cover all product functionality
Indemnification protects against user misuse
Dispute resolution favors your jurisdiction
Force majeure covers service interruptions
Termination rights preserved for violations
Compliance Verification
GDPR compliant (if EU users): legal basis, rights, DPO contact if needed
CCPA compliant (if CA users): categories listed, sale disclosure, opt-out
COPPA compliant: age gate, no children data collection
Cookie consent mechanism described
Data retention periods specified
International transfer safeguards noted
Consistency Verification
ToS and Privacy Policy don't contradict each other
No promises in ToS that Privacy Policy contradicts
Marketing claims align with legal disclaimers
Refund policy matches what checkout shows
Data practices match what code actually does
Phase 7: Resolve Template Variables (FINAL STEP)
After drafting both documents, scan for any remaining template variables. Template variables use the format [[VARIABLE_NAME]] (double brackets).
7.1 Scan for Remaining Variables
Search the drafted documents for any [[...]] patterns. Common ones that may need user input:
Variable
What to ask
[[LEGAL_ENTITY_NAME]]
"What is your company's full legal name (e.g., 'Acme Software, Inc.')?"
[[PHYSICAL_ADDRESS]]
"What address should be used for legal notices?"
[[LEGAL_EMAIL]]
"What email should receive legal inquiries?"
[[PRIVACY_EMAIL]]
"What email should receive privacy/GDPR requests?"
[[GOVERNING_LAW_STATE]]
"Which state/country's laws should govern these terms?"
[[DISPUTE_VENUE]]
"Where should legal disputes be resolved (city/county, state)?"
[[EFFECTIVE_DATE]]
"When should these documents take effect? (default: today)"
[[ARBITRATION_PROVIDER]]
"Do you want binding arbitration? If so, which provider (e.g., JAMS, AAA)?"
7.2 Ask User for Missing Information
If any template variables remain, ask the user for ALL missing values in a single request. Group related questions together.
Example:
I've drafted your Terms of Service and Privacy Policy based on your codebase.
I found most information automatically, but need a few details to finalize:
1. **Legal entity name:** What is your company's full legal name as registered?
(e.g., "Acme Software, Inc." or "Acme LLC")
2. **Physical address:** What address should appear for legal notices?
3. **Governing law:** Which state's laws should govern? (I'd suggest Delaware
or California based on most SaaS companies, but this is your choice)
Once you provide these, I'll finalize the documents with no placeholders.
7.3 Fill In and Verify
After receiving answers:
Replace ALL template variables with actual values
Re-scan to confirm zero [[...]] patterns remain
Present the final, complete documents
The final output must have NO template variables whatsoever.
Output Format
During Drafting (Phases 4-5)
Use [[VARIABLE_NAME]] syntax (double brackets) for any information you couldn't find during the audit. This makes variables easy to scan for in Phase 7.
Final Output (After Phase 7)
NO PLACEHOLDERS IN FINAL OUTPUT. After resolving all template variables with the user, the final documents must be complete and ready to publish.
"INSERT X HERE", "YOUR X", "TBD", "TBA", "Coming Soon"
Deliver final documents in this structure:
# Terms of Service**Last Updated: [actual date]**
[Full ToS content - every field filled with real values, zero placeholders]
---
# Privacy Policy **Last Updated: [actual date]**
[Full Privacy Policy - every field filled with real values, zero placeholders]
Important Notes
Minimize user interaction - Infer and extract as much as possible from the codebase. Only ask the user for information that genuinely cannot be found. Batch all questions into a single request at the end (Phase 7).
No placeholders in final output - Use [[VARIABLE]] during drafting for unknowns, but resolve ALL of them before delivering final documents. The user should receive ready-to-publish documents.
Be specific - Generic templates create liability gaps. Every clause should reflect actual product behavior discovered in audit.
Plain language - Write clearly. Courts and regulators favor understandable policies.
Conservative claims - When in doubt, disclaim more. It's better to under-promise legally.
Verify before delivery - After Phase 7, scan for any remaining [[...]] patterns. If found, resolve before presenting final documents.
Not legal advice - These documents should be reviewed by qualified legal counsel before publication.