npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

legal-docs-skill

v1.0.0

Published

Claude Code skill that generates jurisdiction-aware Privacy Policies and Terms & Conditions for SaaS products and apps.

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-skill

That'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-SPAM

Contributing

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.