Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Scaffolds a Next.js App Router SaaS with Drizzle tenancy schema, auth, billing and tenant isolation guidance.
32% 77%+45 ptsof test cases passed
Passed 17 of 22 test cases with the skill, and 7 of 22 without it.
What command line call executes the tenant isolation scanner against `./app` using setting file `tenant_config.json`?
Specifies running `python scripts/tenant_config_validator.py --config tenant_config.json --src ./app`.
This test ran on v1. v3 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
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.
tenant_config_validator.py).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.
--auth; changes dependencies, env and middleware).--payments; adds or removes billing routes, deps and schema columns).--tenancy; shapes the schema and every query).--db; picks the driver). Only Postgres is supported: the schema uses drizzle-orm/pg-core.Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.
saas_scaffolder.py --name <pkg> --auth ... --payments ... --tenancy ... --output <dir>. It refuses a non-empty --output so it cannot overwrite work. Use --dry-run first to show the plan.next, react and Tailwind get ^ ranges for majors known to be current (Next.js 16, React 19, Tailwind 4); every other dependency uses an npm tag (latest, or beta for next-auth, whose v5 API the references use), because invented version numbers go stale. The lockfile from that first install is what makes later installs reproducible, so review it and commit it.
Auth.js notes it is now part of Better Auth; read its upgrade guide (authjs.dev) before choosing it for a new project. With Auth.js v5, AUTH_URL is optional and AUTH_TRUST_HOST=true is needed behind a reverse proxy.grep -rl "STUB generated" . lists what remains.tenant_config_validator.py --src <app dir>. Fix every critical finding; unscoped queries are cross-tenant data leaks.npm run build passes, no STUB generated files remain, a test checkout updates the subscription row, a replayed webhook is a no-op, and the validator reports no critical findings.# from engineering/saas-scaffolder/; scaffold outside the repo
OUT=$(mktemp -d)
python3 scripts/saas_scaffolder.py --name acme --auth clerk --payments none --tenancy none --output "$OUT/acme"
python3 scripts/saas_scaffolder.py --name acme --dry-run --format json # plan only, nothing written
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.