Back to skills

postgres-best-practices

data

A collection of Postgres optimization rules organized by impact, covering query performance, connection management, RLS, schema design, and concurrency. Each rule includes SQL examples showing the wro

Setup & Installation

npx skills add https://github.com/supabase/postgres-best-practices --skill postgres-best-practices
or paste the link and ask your coding assistant to install it
https://github.com/supabase/postgres-best-practices
View on GitHub

What This Skill Does

A collection of Postgres optimization rules organized by impact, covering query performance, connection management, RLS, schema design, and concurrency. Each rule includes SQL examples showing the wrong and right approach, with EXPLAIN output and metrics where relevant. Maintained by Supabase, but applies to any Postgres setup. Instead of piecing together Postgres tuning advice from scattered blog posts, you get prioritized rules with concrete SQL examples and measurable performance impact in one place.

When to use it

  • Working with postgres best practices functionality
  • Implementing postgres best practices features
  • Debugging postgres best practices related issues