Postgres Best Practices

Postgres-Performanceoptimierung und Best Practices von Supabase. Nutzen Sie diese Fähigkeit beim Schreiben, Überprüfen oder Optimieren von Postgres-Abfragen, Schema-Designs oder Datenbankkonfigurationen.

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

Verwandte Skills

mcp-qa
sentry
QA MCP-Tool-Änderungen mit lokaler CLI und echten Agent-Clients. Verwenden, wenn explizit über /mcp-qa aufgerufen oder wenn gebeten wird, MCP-Tool-Änderungen End-to-End zu testen.
official
omni-to-snowflake-semantic-view
exploreomni
Konvertieren Sie ein Omni Analytics Topic in eine Snowflake Semantic View YAML-Definition. Verwenden Sie diese Fähigkeit, wenn jemand Omni-Metriken nach Snowflake exportieren möchte,…
official
code-review
cloudflare
Überprüft Workers- und Cloudflare Developer Platform-Code auf Typkorrektheit, API-Nutzung und Konfigurationsgültigkeit. Laden beim Überprüfen von TypeScript/JavaScript…
official
simulate-new-user
posthog
Sende synthetischen Erstbesucher-Traffic an eine URL und bestätige, dass PostHog $pageview-Ereignisse ausgelöst werden. Verwende dies, wenn ein Kunde überprüfen möchte, dass anonyme Besucher…
official
fetch-api-reference
runwayml
Rufe die neueste Runway-API-Referenz von docs.dev.runwayml.com ab und verwende sie als maßgebliche Quelle vor jeglicher Integrationsarbeit.
official
eas-workflows
expo
EAS-Dienst (kostenpflichtig). Hilft beim Verstehen und Schreiben von EAS-Workflow-YAML-Dateien für Expo-Projekte. Verwenden Sie diese Fähigkeit, wenn der Benutzer nach CI/CD oder Workflows in einem Expo…
official
mcore-linting-and-formatting
nvidia
Linting und Formatierung für Megatron-LM. Deckt die Ausführung von autoformat.sh, Tools (ruff, black, isort, pylint, mypy) und Code-Stil-Regeln ab.
official
minimal-run-and-audit
lllllllama
Rigor Run skill for README-first deep learning repo reproduction. Use when the task is specifically to capture or normalize evidence from the selected smoke test or documented inference or evaluation command and write standardized `repro_outputs/` files, including patch notes when repository files changed. Do not use for training execution, initial repo intake, generic environment setup, paper lookup, target selection, hidden scientific-meaning changes, or end-to-end orchestration by itself.
developmenttestingcode-review