Postgres Best Practices

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-practices

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

PriorityCategoryImpactPrefix
1Query PerformanceCRITICALquery-
2Connection ManagementCRITICALconn-
3Security & RLSCRITICALsecurity-
4Schema DesignHIGHschema-
5Concurrency & LockingMEDIUM-HIGHlock-
6Data Access PatternsMEDIUMdata-
7Monitoring & DiagnosticsLOW-MEDIUMmonitor-
8Advanced FeaturesLOWadvanced-

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

face-swap
doany-ai
Swap a face / character into video or images on RunComfy via the `runcomfy` CLI. Routes across community Wan 2-2 Animate (audio-driven character animation + identity swap), GPT Image 2 Edit (single-shot precise face swap on still images via reference composition), Nano Banana Edit (batch identity-preserving swap), Flux Kontext (single-ref high-fidelity local face edit), and Kling 2-6 Motion Control Pro (transfer motion from one performance onto a target character). Picks the right model for...
creativevideoimage
zoom-oauth
anthropic
Skill referensi untuk autentikasi Zoom. Gunakan setelah merutekan ke alur kerja autentikasi saat memilih kredensial aplikasi, jenis izin, cakupan, perilaku penyegaran token, atau…
official
skill-developer
langfuse
Buat dan kelola skill Claude Code sesuai praktik terbaik Anthropic. Gunakan saat membuat skill baru, memodifikasi skill-rules.json, memahami pemicu…
official
recipe-forward-labeled-emails
Google
Temukan pesan Gmail dengan label tertentu dan teruskan ke alamat lain.
azure-prepare
microsoft
Siapkan aplikasi Azure untuk deployment (infra Bicep/Terraform, azure.yaml, Dockerfiles). Gunakan untuk membuat/memodernisasi atau membuat+men-deploy; bukan untuk migrasi lintas-cloud (gunakan…
official
flags
vercel
Gunakan skill ini saat menambahkan atau mengubah bendera fitur framework di internal Next.js.
official
debug
openai
Menyelidiki proses yang macet dan kegagalan eksekusi dengan melacak Symphony dan Codex
official
vercel-ai-sdk
vercel
Vercel AI SDK (Python) - pola untuk membangun aplikasi bertenaga LLM dengan streaming, alat, kait, dan keluaran terstruktur
official