What problem does it solve? When a CloudWatch RDS CPU alarm fires or applications report slow database queries, on-call engineers need a structured, read-only investigation workflow to find the root cause without risking schema changes or production impact. ## Core Features & Use Cases - Slow Query Identification: Query pg_stat_statements for the top 10 slowest queries by mean execution time and flag any exceeding 1000ms. - Index Gap Analysis: Cross-reference sequential scan ratios from pg_stat_user_tables with slow queries to formulate CREATE INDEX CONCURRENTLY recommendations. - Parameter Group Review: Inspect work_mem, shared_buffers, and max_connections values and correlate them with query patterns like ORDER BY or GROUP BY. - Use Case: A CloudWatch alarm reports CPUUtilization above 80% on prod-db-01. Run this Skill to gather instance status, CPU and connection metrics, and pg_stat_statements output, then receive a diagnosis: missing index, connection saturation, parameter tuning, or developer escalation. ## Quick Start Investigate slow queries on my RDS instance prod-db-01 in us-east-1 and tell me whether the high CPU is caused by missing indexes, connection saturation, or parameter settings.