/saas-builder:saas-legalfrom saas-builder
Set up a legal compliance infrastructure for a SaaS application. GDPR compliance, privacy policy, terms of service, cookie consent, disclosure text, and data processing flows. Use this skill when the user wants anything related to legal requirements, GDPR, privacy policy, terms of service, cookie consent, personal data, or compliance. Phrases like "write a privacy policy", "make it GDPR-compliant", "add cookie consent", "prepare legal pages" trigger this skill.
Ships in saas-builder. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill sets up the legal compliance layer for a SaaS application. Legal requirements are not things that can be deferred with "we'll sort that after launch" — you can't get Google OAuth approval without a privacy policy, you risk fines without cookie consent, and you have no legal protection without terms of service.
Dependency: This skill is applied after the Landing Page phase of the saas-launcher orchestrator skill. It can also be used independently.
Related skills:
GDPR is the EU's personal data protection regulation. It applies to any product that collects personal data from EU residents.
Who must comply: Every natural or legal person collecting personal data from EU-based users — including solo founders.
What is personal data: Any information relating to an identified or identifiable person — name, email, IP address, cookie data, payment information, usage data.
Core obligations:
Depending on your users' location, other regulations may also apply:
Practical approach: If you build to GDPR standards, you'll satisfy most other privacy regulations as a baseline.
1. Data controller information:
2. Data collected:
3. Purposes for which data is processed:
4. Third parties data is shared with:
5. Data retention period:
6. User rights:
7. Cookie policy (separate page or a section on the same page)
8. Update notice: Notification to users when the policy changes
Create the privacy policy page at the /privacy route. It must be accessible from the footer on every page. Show the last updated date.
To start: Generate a draft with an AI tool, edit it to match your project's actual data processing practices. Don't delay launch waiting for a lawyer — launch with the draft, then have a lawyer review it.
Create the page at the /terms route.
Simple banner: A cookie notice at the bottom or top of the page. Two buttons: "Accept All" (all cookies) and "Necessary Only" (analytics off). Store the user's choice in localStorage or a cookie.
Detailed management (optional): Toggle individual cookie categories on/off. Not needed in the first phase.
If the user declines analytics cookies, don't initialise PostHog or run it in cookieless mode. Bind PostHog's opt_out_capturing() and opt_in_capturing() functions to the cookie consent decision.
The user's right to delete their account and data is a legal obligation.
Timeline: Deletion requests must be fulfilled within 30 days. Set up an automated deletion mechanism — a manual process doesn't scale.
If you accept payments, you must have a refund policy:
Consumer protection law may grant a 14-day right of withdrawal for digital services — seek legal advice.
/privacy) is live/terms) is liveWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub carriegale2710/skills-library --plugin saas-builder12 skills in this plugin
/saas-analyticsSet up PostHog analytics and product analysis for a SaaS application. Event tracking, user identification, feature flags, session replay, funnel analysis, and privacy-compliant configuration. Use this skill when the user wants anything related to user analytics, PostHog, event tracking, user behaviour, feature flags, A/B testing, conversion analysis, or metric tracking. Phrases like "set up analytics", "track users", "add PostHog", "create a feature flag" trigger this skill.
/saas-api-securitySet up an API security layer for a SaaS application. Rate limiting, plan-based access control, input validation, error handling, CORS, and health checks. Use this skill when the user wants anything related to API security, rate limiting, authorisation, input validation, error handling, or API protection. Phrases like "secure the API", "add rate limiting", "check the plan", "input validation" trigger this skill.
/saas-authSet up the authentication layer of a SaaS application. Covers Google OAuth, Magic Link, email/password login, JWT session management, and middleware for protected routes. Use this skill when the user wants to add authentication, set up login, or configure user sessions.