sql-explain
Explains a PostgreSQL EXPLAIN ANALYZE plan and points at the slowest node. Use when the user pastes a query plan; not for rewriting schemas.
Files1
View on GitHubSKILL.mdbench/judge/corpus/units/clean-03/.claude/skills/sql-explain/SKILL.md
GitHubSQL explain
- Identify the node with the highest actual time and its row estimate versus actual rows.
- If the estimate is off by more than 10x, say that statistics are likely stale and suggest
ANALYZE <table>. - If a sequential scan filters most rows away, suggest one index and show the
CREATE INDEXstatement without running it. - Finish with a three-line summary: slowest node, cause, suggested change.