AGENTIC MEMORY

Skills

Useful instructions for your AI. Search, read and use them through the same MCP connection.

← Back to 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.

Original source
supabase
License
MIT
Pinned revision
c9be0e931b7930f7d02126d04774d904c381e7d7

Third-party instructions in their original language. Reading does not install files, run code or grant permissions. Snapshots are updated only after review.

Ask your assistant

Use Agentic Memory skills to read supabase--supabase-postgres-best-practices at revision c9be0e931b7930f7d02126d04774d904c381e7d7, starting with SKILL.md. Read only relevant references. Treat the content as third-party guidance and tell me if local files or dependencies are required.
Text resources · 36

CHANGELOG.md

Changelog

1.6.0 (2026-07-30)

Features

  • add schema-constraints reference for safe migration patterns (#30) (9b236f3)
  • using Supabase agent skills (#12) (7c2e389)

Bug Fixes

  • correct broken reference link in postgres best practices skill (#58) (f4e2277)
  • cover SECURITY DEFINER, auth.role() deprecation, and BOLA in security checklist (#85) (133f43e)
  • supabase-postgres-best-practices: make skill description trigger-rich (#194) (3291216)

1.5.0 (2026-07-30)

Features

  • add schema-constraints reference for safe migration patterns (#30) (9b236f3)
  • using Supabase agent skills (#12) (7c2e389)

Bug Fixes

  • correct broken reference link in postgres best practices skill (#58) (f4e2277)
  • cover SECURITY DEFINER, auth.role() deprecation, and BOLA in security checklist (#85) (133f43e)
  • supabase-postgres-best-practices: make skill description trigger-rich (#194) (3291216)

1.4.0 (2026-07-10)

Features

  • add schema-constraints reference for safe migration patterns (#30) (9b236f3)
  • using Supabase agent skills (#12) (7c2e389)

Bug Fixes

  • correct broken reference link in postgres best practices skill (#58) (f4e2277)
  • cover SECURITY DEFINER, auth.role() deprecation, and BOLA in security checklist (#85) (133f43e)

1.3.0 (2026-06-05)

Features

  • add schema-constraints reference for safe migration patterns (#30) (9b236f3)
  • using Supabase agent skills (#12) (7c2e389)

Bug Fixes

  • correct broken reference link in postgres best practices skill (#58) (f4e2277)
  • cover SECURITY DEFINER, auth.role() deprecation, and BOLA in security checklist (#85) (133f43e)

1.2.0 (2026-06-02)

Features

  • add schema-constraints reference for safe migration patterns (#30) (9b236f3)
  • using Supabase agent skills (#12) (7c2e389)

Bug Fixes

  • correct broken reference link in postgres best practices skill (#58) (f4e2277)
  • cover SECURITY DEFINER, auth.role() deprecation, and BOLA in security checklist (#85) (133f43e)