Skip to content
Docksoft

Supabase Postgres Best Practices

A

supabase-postgres

PostgreSQL optimization across 8 categories including indexing, RLS policies, and migrations.

postgressupabasedatabasesqlrls

Install

npx skills add supabase/supabase-postgres
Author
Supabase
License
MIT
Updated
February 2026
Type
Single skill
Document
2.5 KB
Platforms
Claude Code, Codex, Cursor, Multi Platform
View source

SKILL.md

Supabase Postgres Best Practices

Comprehensive performance optimization guide for Postgres, maintained by Supabase. Contains rules across 8 categories, prioritized by impact to guide automated query optimization and schema design.

When to Apply

Reference these guidelines when:

  • Writing SQL queries or designing schemas
  • Implementing indexes or query optimization
  • Reviewing database performance issues
  • Configuring connection pooling or scaling
  • Optimizing for Postgres-specific features
  • Working with Row-Level Security (RLS)

Rule Categories by Priority

PriorityCategoryImpactPrefix
1Query PerformanceCRITICALquery-
2Connection ManagementCRITICALconn-
3Security & RLSCRITICALsecurity-
4Schema DesignHIGHschema-
5Concurrency & LockingMEDIUM-HIGHlock-
6Data Access PatternsMEDIUMdata-
7Monitoring & DiagnosticsLOW-MEDIUMmonitor-
8Advanced FeaturesLOWadvanced-

How to Use

Read individual rule files for detailed explanations and SQL examples:

references/query-missing-indexes.md
references/query-partial-indexes.md
references/_sections.md

Each rule file contains:

  • Brief explanation of why it matters
  • Incorrect SQL example with explanation
  • Correct SQL example with explanation
  • Optional EXPLAIN output or metrics
  • Additional context and references
  • Supabase-specific notes (when applicable)

References

Related

Backend & APIs

A

.NET 11

dotnet11

Skills for new .NET 11 APIs and language features: System.Text.Json improvements, runtime updates, and adoption patterns.

claude-codegithub-copilotcursor+1MIT

Backend & APIs

A

.NET Core Skills

dotnet

Common everyday C#/.NET coding skills useful to all .NET developers. Skill bundle covering C# scripting, P/Invoke patterns, and NuGet trusted publishing.

claude-codegithub-copilotcursor+1MIT

Backend & APIs

A

ASP.NET Core

dotnet-aspnet

ASP.NET Core web development skills: middleware, endpoints, real-time communication, API patterns, OpenTelemetry, and Minimal API patterns.

claude-codegithub-copilotcursor+1MIT

Agent tooling

Want agents that know your stack?

This index is ours, and so is the tooling behind it. If your team wants agents that understand how your own systems actually work, that is a thing we build.

Contact the dock

One address, read by the people who would do the work. No intake form, no calendar link — just an email.

tphamdn@gmail.com
Other reasons to writeWe reply within two business days