supabase/agent-skills
supabase-postgres-best-practices
Postgres best practices maintained by Supabase, for Postgres running anywhere. Load this skill BEFORE writing or changing anything that lives in a Postgres database: creating or altering tables and columns (including choosing column types), schema design, migrations and declarative schema files, RLS policies and the tests that verify them, indexes, triggers, database functions, queues and scheduled jobs (pg_cron, pgmq), vector/semantic search (pgvector), and restoring dumps (pg_restore) or importing data. Also load it when diagnosing slow queries, high CPU, timeouts, EXPLAIN plans, connection exhaustion, locking, bloat, or rows visible to the wrong user or tenant. This is not just a performance guide — schema, migration, security, and SQL authoring tasks need these rules too, even for a one-column change or a single query.
Official selection · May 28, 2026What you’re adding
This skill may reference tools or services you need to set up separately. The package check shows the exact files; it does not install dependencies or run scripts.
36 files in the provider snapshot
CHANGELOG.md5,684 Breferences/_contributing.md4,113 Breferences/_sections.md1,682 Breferences/_template.md1,040 Breferences/advanced-full-text-search.md1,468 Breferences/advanced-jsonb-indexing.md1,444 Breferences/conn-idle-timeout.md1,282 Breferences/conn-limits.md1,325 Breferences/conn-pooling.md1,382 Breferences/conn-prepared-statements.md1,529 Breferences/data-batch-inserts.md1,287 Breferences/data-n-plus-one.md1,361 Breferences/data-pagination.md1,358 Breferences/data-upsert.md1,390 Breferences/lock-advisory.md1,531 Breferences/lock-deadlock-prevention.md1,855 Breferences/lock-short-transactions.md1,350 Breferences/lock-skip-locked.md1,353 Breferences/monitor-explain-analyze.md1,441 Breferences/monitor-pg-stat-statements.md1,418 Breferences/monitor-vacuum-analyze.md1,506 Breferences/query-composite-indexes.md1,454 Breferences/query-covering-indexes.md1,287 Breferences/query-index-types.md1,521 Breferences/query-missing-indexes.md1,218 Breferences/query-partial-indexes.md1,347 Breferences/schema-constraints.md1,880 Breferences/schema-data-types.md1,453 Breferences/schema-foreign-key-indexes.md1,679 Breferences/schema-lowercase-identifiers.md1,728 Breferences/schema-partitioning.md1,548 Breferences/schema-primary-keys.md1,821 Breferences/security-privileges.md1,566 Breferences/security-rls-basics.md1,372 Breferences/security-rls-performance.md2,103 BSKILL.md3,231 B
Snapshot inspected Sep 12, 2026. Adding uses a fresh GitHub revision and checks it separately.
Your vault, your checks
- 01Inspect the source
Review the exact revision, files and available capacity.
- 02Save a private Draft
Run your vault’s security scan and complete any required review.
- 03Use the approved version
Make it available through your existing agent connection.
Observed activity
All-time installs reported by skills.sh. Daily observations start when this catalog is first synchronized.
| Date | Installs | Rank |
|---|---|---|
| Sep 7, 2026 | 390,079 | #118 |
| Sep 9, 2026 | 392,486 | #123 |
| Sep 10, 2026 | 394,054 | #124 |
| Sep 11, 2026 | 395,597 | #126 |
| Sep 13, 2026 | 398,365 | #127 |
| Sep 14, 2026 | 399,567 | #127 |
| Sep 15, 2026 | 401,292 | #128 |