Skill / SKILL.md

Supabase Postgres Best Practices

supabase/agent-skills

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.
4 views 3,149 repository stars 0 commentsUpdated Nov 28, 2026
Overview

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.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/supabase/agent-skills' skill-source

Use the complete skill-source/skills/supabase-postgres-best-practices directory with your client’s skill installer.

  • skills/supabase-postgres-best-practices

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory skills/supabase-postgres-best-practices

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Included files
36 included files
Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
f6ba5116be957d09d046cb218dd1c2003961a4b3b998960ec718937486cd644c
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills