Postgres Best Practices
tarafından Supabase
Supabase'den Postgres performans optimizasyonu ve en iyi uygulamalar. Postgres sorguları, şema tasarımları veya veritabanı konfigürasyonları yazarken, gözden geçirirken veya optimize ederken bu beceriyi kullanın.
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
İlgili Skills
azure-diagnostics
microsoft
Azure üretim sorunları için AppLens, Monitor ve kaynak sağlığı kullanarak sistematik tanı ve düzeltme. Container Apps, Function Apps ve AKS sorun gidermeyi, görüntü çekme, soğuk başlatma, sağlık sondaları, çağrı hataları ve düğüm/pod sorunları için hizmete özel kılavuzlarla kapsar. AI destekli kök neden analizi için AppLens (MCP) ve KQL tabanlı günlük ve metrik sorguları için Azure Monitor (MCP) entegrasyonu sağlar. Beş adımlı bir tanı akışı sunar: belirtileri tanımla, kaynak sağlığını kontrol et, gözden geçir...
official
lambda-labs-gpu-cloud
firecrawl
Reserved and on-demand GPU cloud instances for ML training and inference. Use when you need dedicated GPU instances with simple SSH access, persistent…
official
sentry-php-sdk
sentry
Full Sentry SDK setup for PHP. Use when asked to "add Sentry to PHP", "install sentry/sentry", "setup Sentry in PHP", or configure error monitoring, tracing,…
official
generate-bug-report
sentry
Kapsamlı bir Sentry hata raporu oluşturur. Kullanıcı açıkça "hata raporu oluştur" dediğinde kullanılır.
official
azure-identity-dotnet
microsoft
Microsoft Entra ID kullanarak Azure SDK istemcileri için kimlik doğrulama kütüphanesi.
official
add-educational-comments
github
Add educational comments to code files to transform them into effective learning resources. Adapts explanation depth and tone to three configurable knowledge levels: beginner, intermediate, and advanced Automatically requests a file if none is provided, with numbered list matching for quick selection Expands files by up to 125% using educational comments only (hard limit: 400 new lines; 300 for files over 1,000 lines) Preserves file encoding, indentation style, syntax correctness, and...
official
figma-implement-design
figma
Translates Figma designs into production-ready application code with 1:1 visual fidelity. Use when implementing UI code from Figma files, when user mentions…
official
research-documentation
notion
Notion çalışma alanınızda arama yapın, birden fazla sayfadan bulguları sentezleyin ve uygun alıntılarla kapsamlı araştırma dokümantasyonu oluşturun…
official