/supabase-skills:supabase-postgres-best-practicesfrom supabase-skills
Applies Postgres best practices (Supabase-maintained) for schema design, query performance, RLS, migrations, indexes, and diagnostics. Load before writing SQL or changing database objects.
Ships in supabase-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Comprehensive performance optimization guide for Postgres, maintained by Supabase. Contains rules across 8 categories, prioritized by impact to guide automated query optimization and schema design.
Reference these guidelines when:
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Query Performance | CRITICAL | query- |
| 2 | Connection Management | CRITICAL | conn- |
| 3 | Security & RLS | CRITICAL | security- |
| 4 | Schema Design | HIGH | schema- |
| 5 | Concurrency & Locking | MEDIUM-HIGH | lock- |
| 6 | Data Access Patterns | MEDIUM | data- |
| 7 | Monitoring & Diagnostics | LOW-MEDIUM | monitor- |
| 8 | Advanced Features | LOW | advanced- |
Read individual rule files for detailed explanations and SQL examples:
references/query-missing-indexes.md
references/query-partial-indexes.md
references/_sections.md
Each rule file contains:
CHANGELOG.md (opens in a new tab)references/_contributing.md (opens in a new tab)references/_sections.md (opens in a new tab)references/_template.md (opens in a new tab)references/advanced-full-text-search.md (opens in a new tab)references/advanced-jsonb-indexing.md (opens in a new tab)references/conn-idle-timeout.md (opens in a new tab)references/conn-limits.md (opens in a new tab)references/conn-pooling.md (opens in a new tab)references/conn-prepared-statements.md (opens in a new tab)references/data-batch-inserts.md (opens in a new tab)references/data-n-plus-one.md (opens in a new tab)references/data-pagination.md (opens in a new tab)references/data-upsert.md (opens in a new tab)references/lock-advisory.md (opens in a new tab)references/lock-deadlock-prevention.md (opens in a new tab)references/lock-short-transactions.md (opens in a new tab)references/lock-skip-locked.md (opens in a new tab)references/monitor-explain-analyze.md (opens in a new tab)references/monitor-pg-stat-statements.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub fcakyon/claude-codex-settings --plugin supabase-skills4 skills in this plugin
/supabaseUse when doing ANY task involving Supabase. Triggers: Supabase products (Database, Auth, Edge Functions, Realtime, Storage, Vectors, Cron, Queues); client libraries and SSR integrations (supabase-js, @supabase/ssr) in Next.js, React, SvelteKit, Astro, Remix; auth issues (login, logout, sessions, JWT, cookies, getSession, getUser, getClaims, RLS); Supabase CLI or MCP server; schema changes, migrations, declarative schemas, security audits, Postgres extensions (pg_graphql, pg_cron, pg_vector); debugging and troubleshooting errors or unexpected behavior on Supabase projects (HTTP errors, Postgres errors, RLS surprises, permission denied, schema cache issues, timeouts, Edge Function crashes, Realtime drops, Storage failures) and reading or querying logs (Logs Explorer, ClickHouse)./supabase-cliThis skill should be used when user asks to "use supabase CLI", "supabase init", "supabase start", "run migrations", "deploy edge functions", "manage Supabase project", or works with the supabase command-line tool for local development and project management./supabase-jsThis skill should be used when user asks to "use supabase-js", "query Supabase database", "supabase auth", "supabase storage", "supabase realtime", "supabase edge functions", or works with the @supabase/supabase-js JavaScript/TypeScript SDK.12 plugins ship this exact skill · first indexed Jul 31, 2026
Other plugins' skills for the same job