What problem does it solve? Writing and reviewing Postgres queries, schemas, and configurations without expert guidance often leads to slow queries, missing indexes, connection exhaustion, and insecure Row-Level Security policies that are costly to fix later. ## Core Features & Use Cases - Prioritized Rule Library: 8 categories of Postgres best practices ranked by impact, from critical query performance and connection management to advanced features like full-text search and JSONB indexing. - Incorrect vs. Correct SQL Examples: Each rule shows the anti-pattern first, then the optimized solution with quantified impact metrics and EXPLAIN output guidance. - Supabase-Specific Guidance: Covers RLS policy optimization, SECURITY DEFINER functions, connection pooling modes, and prepared statement handling in pooled environments. - Use Case: When reviewing a slow multi-tenant query, consult the RLS performance and missing indexes references to rewrite the policy with cached auth.uid() calls and add the right composite index. ## Quick Start Ask the agent to review your Postgres query or schema design using the Supabase Postgres best practices guidelines and suggest optimizations.