Index live · v1.3.0 · MAY 26 2026
173+ skills indexed200+ MCP servers18+ platforms tracked
PostgreSQL optimization across 8 categories including indexing, RLS policies, and migrations.
Claude CodeCodexCursorMulti Platform
2.2Kstars
Updated 6 days ago
3contributors
Install This Skill
npx skills add supabase/supabase-postgres# Download SKILL.md and place in your agent's skills folder
curl -o SKILL.md https://github.com/supabase/agent-skills/tree/main/skills/supabase-postgres-best-practices/raw/main/SKILL.md/skill add supabase/supabase-postgresSKILL.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
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Query Performance | CRITICAL | query- |
| 2 | Connection Management | CRITICAL | conn- |
| 3 | Security & RLS | CRITICAL | security- |
| 4 | Schema Design | HIGH | schema- |
| 5 | Concurrency & Locking | MEDIUM-HIGH | lock- |
| 6 | Data Access Patterns | MEDIUM | data- |
| 7 | Monitoring & Diagnostics | LOW-MEDIUM | monitor- |
| 8 | Advanced Features | LOW | advanced- |
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
Synced from supabase/agent-skills@d9ef194fetched May 24, 2026
Related Skills
Quick Stats
Source repo · this path Stars2,151
Forks144
Last commit2026-05-19
Contributors3
LicenseMIT
CategoryBackend
Author
S
Supabase
@supabase
Tags
postgressupabasedatabasesqlrls