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 and developers a prioritized, example-driven rulebook for writing and reviewing performant, secure Postgres and Supabase databases. ## Core Features & Use Cases - Prioritized Rule Categories: Rules organized across 8 categories 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 file 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 behavior with Supabase's pooler. - Use Case: When reviewing a migration that adds a foreign key without an index, or optimizing a paginated endpoint using OFFSET, reference the relevant rule file to get the correct SQL pattern with an explanation of why it is faster. ## Quick Start Ask the AI to review your Postgres query or schema design using the Supabase Postgres best practices rules and suggest optimizations.