What problem does it solve? Slow queries, missing indexes, connection exhaustion, and insecure Row-Level Security policies are common Postgres issues that are hard to diagnose without deep expertise. This Skill gives AI agents a structured, prioritized rulebook of Postgres best practices so generated and reviewed SQL follows proven performance and security patterns. ## Core Features & Use Cases - Prioritized Rule Categories: 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 SQL rewrite with quantified impact (e.g., 10-100x faster queries). - Supabase-Specific Guidance: Covers RLS policy optimization, SECURITY DEFINER functions, connection pooling modes, and prepared statement handling in pooled environments. - Use Case: When designing an orders table for a multi-tenant app, the agent applies rules to index foreign keys, enable RLS with optimized policies, choose proper data types, and write idempotent migration constraints. ## Quick Start Ask the agent to review your Postgres schema or SQL query for performance and security issues using the Supabase best practices rules.