skills
Marketplace

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, 2026
All-time installs401.3KObserved Sep 15, 2026
Trending · 24h1,755Observed Sep 15, 2026
Hot · last hour84Observed Sep 7, 2026

What 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 B
  • references/_contributing.md4,113 B
  • references/_sections.md1,682 B
  • references/_template.md1,040 B
  • references/advanced-full-text-search.md1,468 B
  • references/advanced-jsonb-indexing.md1,444 B
  • references/conn-idle-timeout.md1,282 B
  • references/conn-limits.md1,325 B
  • references/conn-pooling.md1,382 B
  • references/conn-prepared-statements.md1,529 B
  • references/data-batch-inserts.md1,287 B
  • references/data-n-plus-one.md1,361 B
  • references/data-pagination.md1,358 B
  • references/data-upsert.md1,390 B
  • references/lock-advisory.md1,531 B
  • references/lock-deadlock-prevention.md1,855 B
  • references/lock-short-transactions.md1,350 B
  • references/lock-skip-locked.md1,353 B
  • references/monitor-explain-analyze.md1,441 B
  • references/monitor-pg-stat-statements.md1,418 B
  • references/monitor-vacuum-analyze.md1,506 B
  • references/query-composite-indexes.md1,454 B
  • references/query-covering-indexes.md1,287 B
  • references/query-index-types.md1,521 B
  • references/query-missing-indexes.md1,218 B
  • references/query-partial-indexes.md1,347 B
  • references/schema-constraints.md1,880 B
  • references/schema-data-types.md1,453 B
  • references/schema-foreign-key-indexes.md1,679 B
  • references/schema-lowercase-identifiers.md1,728 B
  • references/schema-partitioning.md1,548 B
  • references/schema-primary-keys.md1,821 B
  • references/security-privileges.md1,566 B
  • references/security-rls-basics.md1,372 B
  • references/security-rls-performance.md2,103 B
  • SKILL.md3,231 B

Snapshot inspected Sep 12, 2026. Adding uses a fresh GitHub revision and checks it separately.

Your vault, your checks

  1. 01
    Inspect the source

    Review the exact revision, files and available capacity.

  2. 02
    Save a private Draft

    Run your vault’s security scan and complete any required review.

  3. 03
    Use 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.

DateInstallsRank
Sep 7, 2026390,079#118
Sep 9, 2026392,486#123
Sep 10, 2026394,054#124
Sep 11, 2026395,597#126
Sep 13, 2026398,365#127
Sep 14, 2026399,567#127
Sep 15, 2026401,292#128