Index live · v1.7.0 · OCT 6 2026
193+ skills indexed196 MCP servers9 platforms tracked
Supabase Postgres Best Practices
A-rankPostgreSQL optimization across 8 categories including indexing, RLS policies, and migrations.
Claude CodeCodexCursorMulti Platform
2.7Kstars
Updated 2 months ago
4contributors
Install This Skill
npx skills add supabase/agent-skills@supabase-postgres-best-practicesmkdir -p ~/.claude/skills/supabase-postgres
curl -o ~/.claude/skills/supabase-postgres/SKILL.md \
https://raw.githubusercontent.com/supabase/agent-skills/main/skills/supabase-postgres-best-practices/SKILL.mdGet new skills in your inbox. What we added, what we rejected, and why. See a past issue.
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
| 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@6400792fetched Oct 3, 2026
Get new skills in your inbox. What we added, what we rejected, and why. See a past issue.
Related Skills
Quick Stats
Source repo · this path Stars2,698
Forks216
Last commit2026-07-30
Contributors4
LicenseMIT
CategoryBackend & APIs
Sourcesupabase/agent-skills
Author
S
Supabase
@supabase
Tags
postgressupabasedatabasesqlrls
Keep exploring
Supabase Postgres Best Practices is one of 193 skills in the directory.