supabase-dev
SKILL.md
Supabase Development
Quick Reference
- Auth SSR: See bootstrap-auth.md for Next.js Auth setup
- Migrations: See create-migration.md for migration file conventions
- RLS Policies: See create-rls-policies.md for Row Level Security
- DB Functions: See create-db-functions.md for PostgreSQL functions
- Edge Functions: See writing-edge-functions.md for Deno functions
- Declarative Schema: See declarative-database-schema.md for schema management
- SQL Style: See postgres-sql-style-guide.md for SQL conventions
Critical Auth Patterns
Always use @supabase/ssr with getAll/setAll cookie methods:
// Browser client - src/shared/api/supabase/client.ts
import { createBrowserClient } from '@supabase/ssr';