What problem does it solve? Slow database queries are hard to diagnose without execution plan analysis. This Skill automates running EXPLAIN ANALYZE with BUFFERS on your hottest PostgreSQL/Supabase queries, interprets the output, and produces actionable index recommendations. ## Core Features & Use Cases - Hot Query Discovery: Pulls the slowest queries from pg_stat_statements ranked by mean execution time and total time share. - Deep Plan Analysis: Runs EXPLAIN with ANALYZE, BUFFERS, VERBOSE, COSTS, and TIMING, then flags sequential scans, row estimate mismatches, buffer cache misses, temp file spills, and expensive nested loops. - Index Recommendations: Uses the Supabase index_advisor extension to generate CREATE INDEX suggestions and compiles everything into a timestamped markdown performance report. - Use Case: Your Supabase app's dashboard endpoint is slow. Run this Skill to find the top 20 slowest queries, analyze the worst offenders, and get a report with concrete index migrations to apply. ## Quick Start Ask the agent to analyze the hot query paths on your Supabase database and generate a performance report with index recommendations.