What problem does it solve? Writing and maintaining Postgres schemas, queries, and RLS policies without proven guidelines 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 tested best practices. ## Core Features & Use Cases - Prioritized Rule Library: 8 categories of 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: Each rule file shows the anti-pattern first, then the optimized rewrite, with quantified impact (e.g., 100x faster queries, 10x smaller indexes). - Diagnostics & Security Coverage: Guidance for EXPLAIN ANALYZE, pg_stat_statements, VACUUM tuning, RLS policy optimization, SECURITY DEFINER functions, and safe idempotent migrations. - Use Case: Before writing a migration that adds a column and index to a multi-tenant orders table, load this Skill to choose the right index type, write an idempotent constraint, and add a performant RLS policy. ## Quick Start Review my Postgres schema and slow query against the Supabase best practices rules and suggest optimized SQL.