What problem does it solve? Writing or changing anything in a Postgres database without established rules leads to slow queries, missing indexes, connection exhaustion, deadlocks, and insecure Row-Level Security policies. This Skill provides a prioritized rule set maintained by Supabase so agents and developers apply proven patterns before writing SQL, designing schemas, or diagnosing performance issues. ## Core Features & Use Cases - Prioritized rule library: 8 categories ranked by impact, from critical query performance and connection management to advanced features like full-text search and JSONB indexing. - Error-first SQL examples: Each rule shows an incorrect pattern with explanation, then the correct rewrite with quantified impact (e.g., 100x faster queries, 10x smaller indexes). - Security and RLS guidance: Covers RLS policy authoring, performance optimization with cached auth checks, SECURITY DEFINER pitfalls, and least-privilege role design. - Use Case: Before writing a migration that adds a column and index to a multi-tenant orders table, load this Skill to get the correct composite index column order, idempotent constraint syntax, and an RLS policy that avoids per-row function calls. ## Quick Start Ask the agent to review your Postgres schema or slow query using the Supabase Postgres best practices rules before writing any SQL.