Better Auth Scaffold

Scaffolds a Better Auth setup in a Next.js (App Router) + Drizzle project — lib/auth.ts, lib/auth-client.ts, the /api/auth/[...all] route handler, middleware.ts, .env.example, and a permissions module. Produces convention-enforced templates for three plugin presets (minimal, social, advanced with twoFactor+magicLink). Trigger even when the user doesn't explicitly say "scaffold" — phrases like "set up Better Auth", "wire up auth", "initialize auth in this project", or "add auth to Next.js" should pull this in. Pairs with the `better-auth` skill, which covers the rules these templates encode.

pproenca c2b485b 15 files · 38.4 KB Updated

File contents

pproenca/dot-skills/tree/main/skills/.experimental/better-auth-scaffold commit c2b485b0c5

Frequently asked questions

npx skillmds add pproenca/better-auth-scaffold