auth-setup
Installation
SKILL.md
Set up Supabase Auth: $ARGUMENTS
$ARGUMENTS can include:
- Framework hint: "nextjs" or "vite" (if omitted, auto-detects from package.json)
- Providers: "email", "google", "github", "magic-link" (default: email + magic-link)
- "with-roles" to add role-based access control (user/admin/owner)
- "minimal" for email-only, no OAuth
- Empty — auto-detects framework and asks about providers
Before Starting
- Read
package.jsonto detect framework (Next.js vs Vite) - Read
src/lib/env.tsor.env.exampleto see existing env var patterns - Check if
@supabase/ssris already installed (grep "@supabase" package.json) - Read
src/middleware.ts(Next.js) orsrc/main.tsx(Vite) for existing setup - Read
src/lib/supabase/if it exists — do not overwrite working clients - Check
src/lib/database/schema.tsfor existing user/profile tables