CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

neo4j-query-tuning-skill

Diagnoses and fixes slow Neo4j Cypher queries by reading execution plans, identifying bad operators (AllNodesScan, CartesianProduct, Eager, NodeByLabelScan), and prescribing fixes (indexes, hints, query rewrites, runtime selection). Use when a query is slow, when EXPLAIN or PROFILE output needs interpretation, when dbHits or pageCacheHitRatio are poor, when cardinality estimation diverges from actuals, or when deciding between slotted/pipelined/parallel runtimes. Covers USING INDEX / USING SCAN / USING JOIN hints, db.stats.retrieve, SHOW QUERIES, SHOW TRANSACTIONS, TERMINATE TRANSACTION. Does NOT write new Cypher from scratch — use neo4j-cypher-skill. Does NOT cover GDS algorithm tuning — use neo4j-gds-skill. Does NOT cover index/constraint creation syntax details — use neo4j-cypher-skill references/indexes.md.

Quality

96%

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

SKILL.md
Quality
Evals
Security

Quality

Content

92%Weight 40%Scale 1-5

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

The body is a highly actionable diagnostic runbook: executable Cypher for every common plan problem, a sequenced 5-step workflow with explicit validation and feedback loops, and clean two-file progressive disclosure verified against the actual bundle. Its only weakness is minor token redundancy — the closing checklist repeats the workflow steps and a few table rows state the obvious.

DimensionReasoningScore

Conciseness

The body is dense and tabular (Operator Reference, Key Plan Metrics) and assumes Neo4j knowledge without padding, but the 13-line Checklist largely restates the Diagnostic Workflow steps, and rows like "ProduceResults | — | Final output operator | Root of tree" state what Claude already knows. Matches anchor 4 (efficient with minor instances that could be trimmed); not 5 because of this redundancy, and not 3 because there is no genuinely unnecessary explanation beyond these minor trims.

4 / 5

Actionability

Everything is executable, copy-paste Cypher: "CREATE INDEX person_email IF NOT EXISTS FOR (n:Person) ON (n.email)", "CALL db.prepareForReplanning()", "SHOW INDEXES YIELD name, type, labelsOrTypes, properties, state WHERE state = 'ONLINE'", plus bad/good rewrite pairs for CartesianProduct and LIMIT pushdown. Matches anchor 5 (fully executable, covering the common cases); not 4 because placeholders like $email and $transactionId are idiomatic parameters, not gaps.

5 / 5

Workflow Clarity

The 5-step Agent Runbook is clearly sequenced with explicit validation checkpoints — "Wait for state = 'ONLINE' before measuring", "Run PROFILE twice — first run warms page cache", "Compare dbHits and elapsed ms before/after" — and a feedback branch for error recovery ("Step 5 — Stale Statistics (if estimatedRows wildly off)"), plus a checklist. Matches anchor 5; the destructive/batch operations (TERMINATE TRANSACTION, CALL IN TRANSACTIONS) appear alongside verification steps, so the workflow-clarity cap for missing validation does not apply.

5 / 5

Progressive Disclosure

Two well-signaled, one-level-deep references — "Full operator reference → [references/plan-operators.md]" and "Full monitoring reference → [references/stats-and-monitoring.md]" — both of which exist as real files and contain no further nested references. The inline table and command list are condensed triage views with detail appropriately split into the reference files, matching anchor 5 (clear overview, easy navigation); not 4 because there are no organization gaps or buried references.

5 / 5

Total

19

/

20

Passed

Description

100%Weight 40%Scale 1-5

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 exemplary: it states concrete diagnostic and fix capabilities with named operators, hints, and commands, gives an explicit multi-clause 'Use when' trigger list, and closes with explicit negative boundaries that route adjacent tasks to sibling skills. It fully answers both 'what' and 'when' with natural trigger phrasing and no vague language.

DimensionReasoningScore

Specificity

"Diagnoses and fixes slow Neo4j Cypher queries by reading execution plans, identifying bad operators (AllNodesScan, CartesianProduct, Eager, NodeByLabelScan), and prescribing fixes (indexes, hints, query rewrites, runtime selection)" names multiple concrete actions with specific operators, procedures, and commands (USING INDEX hints, db.stats.retrieve, SHOW QUERIES, TERMINATE TRANSACTION). Matches anchor 5 (comprehensive concrete coverage); not 4 because the enumerated actions span diagnosis, plan interpretation, fixing, and monitoring with no coverage gaps for the skill's scope.

5 / 5

Completeness

The 'what' is explicit ("Diagnoses and fixes slow Neo4j Cypher queries by reading execution plans, identifying bad operators..., and prescribing fixes...") and the 'when' is explicit with concrete triggers ("Use when a query is slow, when EXPLAIN or PROFILE output needs interpretation..."). Matches anchor 5 (both what AND when clearly and explicitly answered); not 4 because the 'when' clause is fully explicit rather than merely present.

5 / 5

Trigger Term Quality

"Use when a query is slow, when EXPLAIN or PROFILE output needs interpretation, when dbHits or pageCacheHitRatio are poor, when cardinality estimation diverges from actuals, or when deciding between slotted/pipelined/parallel runtimes" are exactly the phrases a user with this problem would say (slow query, PROFILE output, dbHits, runtime choice). Matches anchor 5; not 4 because the natural variations and specific command/metric names users would paste are all present.

5 / 5

Distinctiveness Conflict Risk

Explicit negative boundaries — "Does NOT write new Cypher from scratch — use neo4j-cypher-skill. Does NOT cover GDS algorithm tuning — use neo4j-gds-skill. Does NOT cover index/constraint creation syntax details" — carve out a clear niche (Neo4j Cypher query performance tuning) with hand-offs to sibling skills. Matches anchor 5 (clear niche with distinct triggers, minimal conflict risk); not 4 because the disambiguation is already explicit, leaving no meaningful overlap risk.

5 / 5

Total

20

/

20

Passed

Validation

93%

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

Validation — 15 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

frontmatter_unknown_keys

Unknown frontmatter key(s) found; consider removing or moving to metadata

Warning

Total

15

/

16

Passed

Repository

neo4j-contrib/neo4j-skills

Path

neo4j-query-tuning-skill/SKILL.md

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.