CtrlK
BlogDocsLog inGet started
Tessl Logo

testland/db-query-plan-analyzer

Reads `EXPLAIN` / `EXPLAIN ANALYZE` output from PostgreSQL, MySQL, or SQLite - identifies the dominant cost (sequential scan, nested loop, sort spill, missing index, type-cast preventing index use), proposes the specific index or query rewrite to fix it, and emits the candidate `CREATE INDEX` statement. Use when load testing or production telemetry shows the database as the bottleneck and the team needs targeted query-level remediation.

80

Quality

100%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide

SecuritybySnyk

Passed

No findings from the security scan

Overview
Quality
Evals
Security
Files

Quality

Content

100%

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

The skill body is well-structured: concise, actionable with executable SQL, a clearly sequenced workflow including a validate-after-applying feedback loop, and clean progressive disclosure to a single verified reference file. It does not pad with concepts Claude already knows.

DimensionReasoningScore

Conciseness

The body is lean: the Overview crisply enumerates the five failure modes, steps are terse, and it avoids explaining concepts Claude already knows (no primer on what an index or a database is), with every section earning its place.

3 / 3

Actionability

Provides fully executable vendor-specific EXPLAIN commands, copy-paste CREATE INDEX examples (single, composite, partial, functional, covering), and a complete worked output-format template — concrete and copy-paste ready rather than pseudocode.

3 / 3

Workflow Clarity

A clear four-step sequence (get EXPLAIN ANALYZE → identify dominant cost → match to fix → emit candidate) with an explicit validation checkpoint in the output format that re-runs EXPLAIN ANALYZE and confirms the new plan meets budget.

3 / 3

Progressive Disclosure

The body is an overview that points to one real, one-level-deep reference file (references/plan-signatures.md, verified to exist), signaled inline at each relevant step for cost signatures, diagnosis-to-fix, index choice, and anti-patterns.

3 / 3

Total

12

/

12

Passed

Description

100%

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

The description is specific, complete, and well-triggered: it names concrete capabilities, includes an explicit 'Use when' clause with natural practitioner keywords, and carves out a distinct database-query niche. Third-person voice is maintained throughout.

DimensionReasoningScore

Specificity

Lists multiple concrete actions — 'identifies the dominant cost (sequential scan, nested loop, sort spill, missing index, type-cast preventing index use)', 'proposes the specific index or query rewrite', and 'emits the candidate CREATE INDEX statement' — matching the anchor for listing multiple specific concrete actions.

3 / 3

Completeness

Clearly answers both what (reads plan output, identifies cost, proposes index/rewrite, emits CREATE INDEX) and when, with an explicit 'Use when load testing or production telemetry shows the database as the bottleneck' trigger clause.

3 / 3

Trigger Term Quality

Covers natural practitioner terms users would actually say — 'EXPLAIN / EXPLAIN ANALYZE', 'PostgreSQL, MySQL, or SQLite', 'load testing', 'production telemetry', 'database as the bottleneck' — providing good coverage of natural triggers rather than only jargon.

3 / 3

Distinctiveness Conflict Risk

Occupies a clear niche (query-plan analysis across three named databases) with distinct triggers tied to DB-bound latency and an explicit non-applicability carve-out, making it unlikely to trigger for the wrong skill.

3 / 3

Total

12

/

12

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation16 / 16 Passed

Validation for skill structure

No warnings or errors.

Reviewed

Table of Contents