saas-scaffolder

Installation
SKILL.md

SaaS Scaffolder

The agent stands up a Next.js App Router + TypeScript + Tailwind + Drizzle SaaS for the chosen auth, billing and tenancy providers, then implements auth, billing and tenant isolation from the reference code and checks isolation before anything ships.

What the tool writes, and what it does not. saas_scaffolder.py writes the file tree, a package.json whose dependencies follow --auth, --db and --payments, a provider-filtered .env.example, a Drizzle schema shaped by --tenancy, drizzle.config.ts, tsconfig.json, next.config.ts, Tailwind v4 PostCSS config, route protection (proxy.ts for Next.js 16+, which replaces middleware.ts; --next-major 15 writes middleware.ts) and a health route. Every other file is a // STUB that names the reference section to implement it from. It does not write application logic, so the result does not build until the stubs are filled.

When to Use

  • Starting a new SaaS product, subscription app or multi-tenant platform.
  • Standing up auth, billing and tenancy before building product features.
  • Adding workspace or organization tenancy with roles and plan gating.
  • Auditing an existing app's tenant config or source for isolation leaks (tenant_config_validator.py).

Clarify First

Before scaffolding, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.

Installs
125
GitHub Stars
1.2K
First Seen
Mar 10, 2026