What problem does it solve? Slow queries, connection exhaustion, and poorly designed schemas are common Postgres issues that are hard to diagnose without deep expertise. This Skill gives AI agents a structured, impact-prioritized rule set so they can write, review, and optimize Postgres SQL correctly the first time. ## Core Features & Use Cases - Prioritized Rule Library: 8 categories of optimization rules 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 an explanation, followed by the corrected SQL with quantified impact (e.g., 10-100x faster queries). - Supabase-Specific Guidance: Covers Row-Level Security policies, connection pooling modes, prepared statement handling, and auth-aware query patterns. - Use Case: When asked to design a multi-tenant orders table, the agent applies rules for foreign key indexes, RLS policies with cached auth.uid() calls, and appropriate data types, producing production-quality schema SQL. ## Quick Start Ask the agent to review your Postgres query or schema design and apply the Supabase best practices rules to optimize it.