
Supabase Postgres Best Practices
A comprehensive ruleset from Supabase covering eight categories of Postgres optimization, from query performance and connection pooling to RLS security and schema design. Each rule includes side-by-side incorrect and correct SQL examples with explanations, so you're not just getting theory. The priority system is smart: it separates critical issues like missing indexes from lower-impact advanced features, which helps when you're triaging performance problems. Most useful when you're writing queries that need to scale or reviewing schema designs before they become production headaches. The fact that it's maintained by Supabase means it reflects real patterns they've seen cause problems at scale, not just textbook advice.
- skills.sh installs
- 481
- GitHub stars
- 33.2K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add davila7/claude-code-templates --skill supabase-postgres-best-practices --agent claude-codeInstalls into .claude/skills of the current project.
Files
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:
Sponsors
Details
- Repository
- github.com/davila7/claude-code-templates
- Categories
- Backend & APIs, Documentation, Debugging, Databases
- First seen
- Jun 3, 2026
More from davila7/claude-code-templates
All 618- File Organizer480
- Research Engineer478
- Llama Cpp475
- App Builder474
- Security Review471
- Api Security Best Practices466
- Senior Secops466
- Long Context465
- Autogpt Agents464
- Parallel Agents463
- Serving Llms Vllm461
- Llamaindex460
- Code Review457
- Computer Use Agents455
- Powershell Windows454
- React Useeffect454
- Backend Patterns452
- Find Bugs447
- Langgraph447
- Agent Md Refactor446
- Autonomous Agent Patterns446
- D3 Viz445
- Manim444
- Marketing Psychology443