supabase-postgres-prolisted
Supabase and Postgres end to end: schema design, column types, primary and foreign keys, constraints, migrations (Supabase CLI, declarative schemas, MCP execute_sql / apply_migration), RLS policies and tests, auth (supabase-js, @supabase/ssr, getUser, getClaims, JWT, app_metadata), API keys, Data API grants, views, SECURITY DEFINER functions, triggers, storage policies, edge functions, realtime, pg_cron, queues, pgvector, full-text search, JSONB; slow queries, EXPLAIN ANALYZE, indexes (composite, partial, covering, GIN, GiST, BRIN), N+1, pagination, upsert, batch inserts, connection pooling, pooler, prepared statements, timeouts, locks, deadlocks, SKIP LOCKED job queues, vacuum, pg_stat_statements, partitioning, read replicas; debugging permission denied, empty results, RLS surprises, schema cache, 401/403, timeouts, logs and advisors. Also any read, report, backfill or data fix on any live production Supabase project, and MySQL tuning basics.
GrowingGold/super-skills-kit · ★ 1 · API & Backend · score 75
Install: claude install-skill GrowingGold/super-skills-kit
# Supabase + Postgres Pro
One skill for database work: Supabase platform rules (auth, RLS, keys, CLI, MCP, migrations), Supabase's 30 Postgres
rules (indexes, connections, locking, schema), and the always-on database-optimization checklist, merged with the user's rules
for their live databases. Load this file first and follow the unified workflow; open a member file only when a mode
or step points to it (`members/<member>/...`). Supabase changes often: for platform features (auth, SSR, CLI, config,
edge functions) check the current docs instead of memory; for plain SQL this file is enough.
## Pick the mode
| Task looks like | Mode | What to do / open |
|---|---|---|
| New table, columns, types, keys, constraints | SCHEMA | Steps 0-7; `members/supabase-postgres-best-practices/references/schema-data-types.md`, `schema-primary-keys.md`, `schema-foreign-key-indexes.md`, `schema-constraints.md`, `schema-lowercase-identifiers.md` |
| Schema change in a repo with a local Supabase stack | MIGRATE-LOCAL | Step 6 (local); `members/supabase/SKILL.md` "Making and Committing Schema Changes"; `supabase <group> --help` |
| Schema change on a hosted project with no local stack (the user's own apps) | MIGRATE-REMOTE | Step 6 (hosted) |
| Query a production database, reporting, dashboard numbers | READ | Read-only token, steps 0-1 and 4; never write |
| Fix data, backfill, change a function, policy or trigger on a company database | LIVE-WRITE | Every step plus House rules; step 6 (live) |