legal-docs-skill
v1.0.0
Published
Claude Code skill that generates jurisdiction-aware Privacy Policies and Terms & Conditions for SaaS products and apps.
Maintainers
Readme
legal-docs
A Claude Code skill that generates Privacy Policies and Terms & Conditions for SaaS products, apps, and digital services.
Why this exists
Getting legal documents professionally drafted is expensive. Like, really expensive. For most indie developers and early-stage founders, paying a lawyer to write a privacy policy isn't realistic — but shipping a product without one isn't great either.
I built this skill to make it easier to generate legal documents that are actually structured correctly, reference the right laws, and aren't just a generic copy-paste from some random template site. It's not a replacement for a lawyer. It's a starting point that's a lot better than nothing.
What it does
When you install this skill into Claude Code, it turns Claude into a jurisdiction-aware legal document generator. You tell it about your product, and it generates:
- Privacy Policy — covers data collection, third-party services, user rights, retention, cookies, and more
- Terms & Conditions — covers acceptable use, payments, IP, liability, dispute resolution, and more
It handles jurisdiction-specific requirements automatically:
- 🇦🇺 Australia — Australian Privacy Principles (APPs), Notifiable Data Breaches scheme, Australian Consumer Law
- 🇪🇺 EU / UK — GDPR lawful bases, Article 13 disclosures, user rights, international transfers
- 🇺🇸 United States — CCPA/CPRA, COPPA, CAN-SPAM
It can also scan your package.json to infer which third-party services you're using (Stripe, Sentry, Supabase, etc.) and include them in the privacy policy automatically.
Output is Markdown by default, with HTML available for dropping straight into your /legal/ page.
How to use it
This is a skill for Claude Code. You'll need Claude Code installed first — if you don't have it, grab it at claude.ai/code.
Installation
npx legal-docs-skillThat's it. Copies the skill into ~/.claude/skills/ and you're done. Restart Claude Code after running it.
Using it
Once installed, open Claude Code in any project and just ask:
"I need a privacy policy for my app"
"Can you draft terms and conditions for my SaaS?"
"Write the legal docs for my product"
Claude will pick up the skill automatically and walk you through it. It'll ask you a few questions about your product before generating anything — answer them honestly, the output is only as good as what you put in.
⚠️ Disclaimer — please read this
This tool does not provide legal advice. I am not a lawyer.
Everything generated by this skill is a starting point only. It does not constitute legal advice, does not create any kind of lawyer-client relationship, and I make no guarantees that the output is accurate, complete, or appropriate for your situation.
Laws change. Jurisdictions vary. Your product might have edge cases this skill doesn't account for. You use this at your own risk.
If you use it, that's your call — but please don't rely on it as a substitute for actual legal counsel, especially if you're handling sensitive data, operating in regulated industries, or serving large numbers of users.
I accept no liability whatsoever for any consequences arising from the use of this tool or its output.
If you can afford it, get a real lawyer to review anything before you publish it.
What's in the repo
legal-docs/
├── SKILL.md ← the skill itself
└── references/
├── document-sections.md ← required sections for both documents
├── au-privacy.md ← Australian Privacy Act, APPs, NDB scheme, ACL
├── gdpr.md ← GDPR articles, user rights, transfer mechanisms
└── us-privacy.md ← CCPA/CPRA, COPPA, CAN-SPAMContributing
If you spot something wrong — a law that's changed, a jurisdiction that's missing, a section that's badly worded — feel free to open an issue or PR. I'd rather this be accurate than just mine.
License
MIT. Do whatever you want with it, just don't blame me if something goes wrong.
