postgres-best-practices▌
sickn33/antigravity-awesome-skills · updated Apr 8, 2026
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.
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 Use
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:
rules/query-missing-indexes.md
rules/schema-partial-indexes.md
rules/_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)
Full Compiled Document
For the complete guide with all rules expanded: AGENTS.md
When to Use
This skill is applicable to execute the workflow or actions described in the overview.
Discussion
Product Hunt–style comments (not star reviews)- No comments yet — start the thread.
Ratings
4.6★★★★★63 reviews- ★★★★★Ava Kim· Dec 16, 2024
postgres-best-practices fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
- ★★★★★Kabir Kapoor· Dec 12, 2024
We added postgres-best-practices from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
- ★★★★★Ganesh Mohane· Dec 4, 2024
Useful defaults in postgres-best-practices — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
- ★★★★★Kabir Malhotra· Dec 4, 2024
We added postgres-best-practices from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
- ★★★★★Sakshi Patil· Nov 23, 2024
postgres-best-practices is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
- ★★★★★Ren Martin· Nov 23, 2024
Solid pick for teams standardizing on skills: postgres-best-practices is focused, and the summary matches what you get after install.
- ★★★★★Hassan Wang· Nov 7, 2024
postgres-best-practices has been reliable in day-to-day use. Documentation quality is above average for community skills.
- ★★★★★Yash Thakker· Nov 3, 2024
Registry listing for postgres-best-practices matched our evaluation — installs cleanly and behaves as described in the markdown.
- ★★★★★Hassan Park· Oct 26, 2024
Solid pick for teams standardizing on skills: postgres-best-practices is focused, and the summary matches what you get after install.
- ★★★★★Dhruvi Jain· Oct 22, 2024
postgres-best-practices reduced setup friction for our internal harness; good balance of opinion and flexibility.
showing 1-10 of 63