What problem does it solve? Postgres databases often suffer from slow queries, missing indexes, connection exhaustion, and unsafe schema changes that are hard to diagnose without deep expertise. This Skill gives you a prioritized, rule-based reference so you can write, review, and optimize Postgres SQL correctly the first time. ## Core Features & Use Cases - Prioritized Rule Library: 8 categories of performance rules 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: Every rule shows the anti-pattern alongside the optimized solution, with EXPLAIN output and impact metrics. - Supabase-Specific Guidance: Covers Row Level Security policies, RLS performance patterns, connection pooling modes, and prepared statement handling in pooled environments. - Use Case: When writing a migration that adds a foreign key, consult the schema rules to add the required index, use idempotent constraint creation, and choose the right primary key strategy. ## Quick Start Ask the AI to review your Postgres query or schema design against the Supabase best practices rules and suggest optimizations.