What problem does it solve? SaaS teams repeatedly rebuild the same hard infrastructure: tenant isolation that leaks data, billing webhooks that silently fail, subscription state that drifts from the payment provider, feature flags with no cleanup discipline, permission systems that allow privilege escalation, and onboarding flows that lose users before activation. This Skill audits existing codebases for these pitfalls and emits production-tested implementations for each domain. ## Core Features & Use Cases - Multi-tenancy & Tenant Isolation: Detects the current isolation strategy (shared column, PostgreSQL RLS, schema-per-tenant, DB-per-tenant), audits query paths for cross-tenant leaks, and emits tenant middleware, scoped repositories, RLS policies, tenant-aware background jobs, and GDPR data export endpoints. - Billing & Subscription Management: Implements verified, idempotent webhook handlers for Stripe, LemonSqueezy, Polar, and Paddle, plus dunning flows, usage-based metering, proration previews, coupon codes, and one-time checkout with digital product delivery (repo invites, license keys, signed download links). - Feature Flags, Team RBAC & Onboarding: Builds gradual rollout and kill-switch flag systems with stale-flag detection, org/team RBAC with invite flows and audit trails, and onboarding wizards with progress persistence and activation metrics. - Use Case: A solo founder in Vietnam launching a developer tool uses this Skill to set up Polar hosted checkout with Standard Webhooks verification, deliver GitHub repo access on payment, and enforce plan-based feature gating in API middleware. ## Quick Start Ask the agent to audit my SaaS codebase for tenant isolation gaps and billing webhook reliability, then implement the missing patterns.