Postgres Best Practices
por Supabase
Otimização de performance e melhores práticas do Postgres da Supabase. Use esta habilidade ao escrever, revisar ou otimizar consultas Postgres, designs de esquemas ou configurações de banco de dados.
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 relacionadas
owasp-top-10
microsoft
Base de conhecimento de vulnerabilidades OWASP Top 10 para Aplicações Web (2025) para identificar, avaliar e remediar riscos de segurança em aplicações web…
official
nano-banana-edit
runcomfy-com
Edit images with Google Nano Banana 2 (image-to-image edit endpoint) on RunComfy. Documents Nano Banana Edit's strengths (preserve subject identity, swap background, localize edits with spatial language, multi-image batch edits up to 20 inputs), the schema, and when to route to GPT Image 2 edit / Flux Kontext / Nano Banana 2 t2i instead. Calls `runcomfy run google/nano-banana-2/edit` through the local RunComfy CLI. Triggers on "nano banana edit", "edit with nano banana", "image edit nano...
creativeimageapi
gh-address-comments
openai
Aborda feedback acionável de revisão de pull request no GitHub. Use quando o usuário quiser inspecionar tópicos de revisão não resolvidos, alterações solicitadas ou revisões inline…
official
launchdarkly-flag-create
launchdarkly
Create and configure LaunchDarkly feature flags in a way that fits the existing codebase. Use when the user wants to create a new flag, wrap code in a flag,…
official
exploring-llm-costs
posthog
PostHog attaches per-call cost metadata to every $ai_generation and $ai_embedding event at ingestion time. Every cost question reduces to an aggregation over those two event types — the interesting variation is only in how you group, filter, and compare.
official
vercel-plugin-eval
vercel
Execute sessões de avaliação ao vivo contra o vercel-plugin para verificar o comportamento dos hooks, injeção de habilidades, correção de deduplicação e cobertura. Inicia sessões reais do Claude Code…
official
vercel-deploy
openai
Deploy applications to Vercel as preview or production environments. Supports both Vercel CLI and fallback script-based deployment methods, with automatic framework detection and packaging Always deploys as preview by default unless user explicitly requests production deployment Returns preview URL immediately and claim URL for fallback deployments to manage the deployment Requires 10-minute timeout for build completion; escalates network permissions only if sandbox blocks outbound...
official
gws-admin-reports
Google
Google Workspace Admin SDK: Audit logs and usage reports.