Postgres Best Practices
oleh Supabase
Optimasi performa Postgres dan praktik terbaik dari Supabase. Gunakan skill ini saat menulis, meninjau, atau mengoptimalkan kueri Postgres, desain skema, atau konfigurasi basis data.
npx skills add https://github.com/supabase/agent-skills --skill supabase-postgres-best-practicesSupabase 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
Skills Terkait
zoom-apps-sdk
anthropic
Skill referensi untuk Zoom Apps SDK. Gunakan setelah merutekan ke alur kerja aplikasi dalam-klien saat membangun aplikasi web yang berjalan di dalam rapat Zoom, webinar, utama…
official
mapbox-integration-patterns
mapbox
Official integration patterns for Mapbox GL JS across popular web frameworks. Covers setup, lifecycle management, token handling, search integration, and…
official
azure-resource-manager-mysql-dotnet
microsoft
SDK Azure Resource Manager untuk mengelola penyebaran MySQL Flexible Server.
official
persona-exec-assistant
Google
Manage an executive's schedule, inbox, and communications.
lbo-model
anthropic
Keterampilan ini harus digunakan saat menyelesaikan template model LBO (Leveraged Buyout) di Excel untuk transaksi ekuitas swasta, materi kesepakatan, atau investasi…
official
erk-gt
dagster-io
Erk-specific Graphite (gt) patterns. Supplements the official `graphite` skill
official
sentry-create-alert
sentry
Create Sentry alerts using the workflow engine API. Use when asked to create alerts, set up notifications, configure issue priority alerts, or build workflow…
official
agent-browser
factory-ai
Background knowledge for droid-control workflows -- not invoked directly. Agent-browser driver mechanics for web page and Electron desktop app automation.
official