What problem does it solve? Writing and changing Postgres schemas, queries, and RLS policies without established rules leads to slow queries, connection exhaustion, deadlocks, and data leaks. This Skill provides a prioritized rule set maintained by Supabase so every SQL change follows proven best practices. ## Core Features & Use Cases - Prioritized Rule Categories: Eight categories ranked by impact, from query performance and connection management (CRITICAL) 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 such as 10-100x faster queries. - Security & RLS Guidance: Covers Row Level Security policies, RLS performance optimization, SECURITY DEFINER functions, and least-privilege role design. - Use Case: When asked to add an index, design a multi-tenant table, write a migration, or diagnose a slow query, the agent loads the relevant reference file and produces SQL that follows the correct pattern, such as using partial indexes, cursor pagination, or idempotent constraint creation. ## Quick Start Review my Postgres schema and slow queries using the Supabase Postgres best practices rules and suggest optimized SQL.