query-explainer
Installation
SKILL.md
Query Explainer Protocol
This skill bridges the gap between raw database optimizer output and human-readable performance tuning. It reads EXPLAIN (ANALYZE, BUFFERS) and translates the nodes and costs into concrete actions.
Core assumption: A developer should not need to be a DBA to understand why their query takes 3 seconds and what to do about it.
0. Context Intake
Before designing, make sure you have the inputs below. Read the previous workflow step's artifact first if it exists. Ask only for what is missing, in a single message, and state any assumption you make instead of blocking.
- The execution plan (
EXPLAIN (ANALYZE, BUFFERS)output preferred) and the query text. - Engine and version.
- Table sizes when the plan does not show them.