In short.
Neo4j Query Tuning Skill is an instruction package for AI assistants helping Neo4j developers investigate slow Cypher queries, but some tuning shortcuts can change which rows a query returns. It connects execution-plan operators with index, statistics, traversal and monitoring checks. The documentation claims Neo4j 2025.x/2026.x support with edition-dependent features, but includes narrower version-specific additions. Its practical value is a structured diagnostic reference; installation success, command compatibility and speed improvements are unverified.
Researched and written by an AI model and checked by a second AI model. How it works
Covers the complete neo4j-query-tuning-skill folder at commit 004c7823fc05d352647f2e9e5106d9ae2a4080e5: README.md, SKILL.md, references/plan-operators.md and references/stats-and-monitoring.md, plus the repository-level LICENSE. Other repository skills, external manuals, installer behavior and live Neo4j deployments are outside this evidence. The captured documents can be retained unchanged with the MIT notice. Installation, commands, query results, runtime compatibility and performance were not tested.
The overview
Identity
The resource is neo4j-query-tuning-skill within the neo4j-contrib/neo4j-skills repository. SKILL.md declares version 1.0.9. The package contains assistant instructions, a README and two reference documents; it does not supply a standalone database application.
The original source folder is [https://github.com/neo4j-contrib/neo4j-skills/tree/main/neo4j-query-tuning-skill]. The documented snapshot is pinned to commit 004c7823fc05d352647f2e9e5106d9ae2a4080e5 at [https://github.com/neo4j-contrib/neo4j-skills/tree/004c7823fc05d352647f2e9e5106d9ae2a4080e5/neo4j-query-tuning-skill].
Assessment
The strongest feature is its concrete path from a slow query to an explanation: inspect the execution plan, check relevant indexes, compare estimated and actual row counts, then investigate statistics, traversal volume or runtime choice. The references give an assistant specific operators and metrics to discuss rather than generic optimization advice.
Use it as a diagnostic aid with human review. The operator tables assign broad good/bad labels, while the examples do not establish that every suggested rewrite preserves the original result. No workload measurements, installation results or demonstrated performance gains are supplied.
Users
The intended users are developers and database operators who already have a slow Cypher query, an execution plan or suspicious query metrics. Beginners get explanations of scans, joins, row counts and cache behavior; experienced users get planner hints, runtime selectors, statistics procedures and monitoring examples.
The skill explicitly excludes writing new Cypher from scratch, graph data modelling and Graph Data Science algorithm tuning. It assumes enough Cypher knowledge to review whether a proposed index, hint or rewrite matches the application's intended results.
Capabilities
The instructions cover EXPLAIN and PROFILE, bottom-up plan reading, database-access counts through dbHits, actual and estimated rows, and page-cache metrics. Operator references span scans, index seeks, traversals, joins, aggregation, sorting, writes and subqueries.
Suggested interventions include indexes, USING INDEX, USING SCAN and USING JOIN ON hints, earlier filtering or limiting, statistics refresh and runtime selection. Monitoring material covers running queries and transactions, index health, query logs, graph statistics and transaction termination.
These are documented procedures and examples. The package does not provide an optimizer implementation, automated correctness checks or evidence that an assistant will select the right intervention.
Using it
Requirements
For diagnosis, useful inputs are an existing query, its parameters, an execution plan and relevant schema or index information. Reviewing supplied plan output does not inherently require database access. Executing the operational examples requires database connectivity, credentials and permissions appropriate to each command.
The README claims support for self-managed Neo4j and Aura on 2025.x/2026.x. It identifies other users' query visibility as Enterprise-dependent and parallel runtime as requiring Enterprise or Aura Pro 2025+. The monitoring reference additionally calls for administrative access to other users' queries. These availability and privilege claims are unverified.
SKILL.md declares Bash and WebFetch as allowed tools. It supplies no model, database connector or credential manager. Compatibility with assistant hosts other than the documented Claude Code installation route is unknown.
Mechanism
The package works by giving an assistant a written diagnostic procedure and lookup references. Its sequence starts with EXPLAIN, checks indexes, proposes a targeted change, then uses PROFILE to compare database-access counts and elapsed time. Large differences between predicted and actual rows lead to statistics and replanning checks.
EXPLAIN is described as producing a plan without executing the query; PROFILE executes it and exposes actual metrics. The source recommends two PROFILE runs to warm the cache before comparison. That is a measurement recipe, not proof that the second run represents every workload, and profiling a write query also executes its writes.
Nothing in the supplied package measures or validates these outcomes automatically. The assistant and operator must interpret the plan, preserve query meaning and assess any operational changes.
Setup
The README gives /skill install neo4j-query-tuning-skill as the Claude Code installation command through agentskills.io. Installation availability and the revision that this command would retrieve are unknown; the command has not been run.
For a reproducible copy, retain SKILL.md, README.md, references/plan-operators.md and references/stats-and-monitoring.md from the pinned commit, together with the repository LICENSE. The relative reference paths matter because SKILL.md directs the assistant to those documents.
Before applying examples, establish the database release, edition and allowed operations. The supplied Query API example requires a host, database name and authentication details; no working endpoint or credentials are included.
Example
One supplied example investigates MATCH (p:Person {email: $email}) RETURN p.name. The documented approach is to inspect its EXPLAIN plan, check whether an appropriate Person.email index is online, and consider an index if a scan is doing unnecessary work.
The source then proposes PROFILE comparisons, looking for a change from a scan to an index seek and reduced dbHits. This is an illustrative diagnostic sequence, not an observed result: no actual plan, timings, row counts or before-and-after measurements accompany it.
Assessment & evidence
Limitations
The early-LIMIT example does not preserve the original query's result limit. The original returns at most ten review rows; the rewrite limits author/book pairs before expanding reviews and has no final LIMIT. From the shown query structure, it can return more than ten review rows and select different results.
The CartesianProduct rewrite introduces a WROTE relationship absent from the original query. That restricts results to related author/book pairs and is appropriate only if that relationship was intended. The additional suggestion to insert WITH does not demonstrate that multiplicative results are eliminated.
The operator labels and numeric thresholds are heuristics without supporting workloads. Examples include treating label scans as bad, investigating row-estimate divergence above tenfold and using fixed cache-ratio thresholds. Their applicability to a particular query is not established.
The broad release compatibility claim needs qualification because the references include features explicitly labelled as later 2026 additions. Command syntax, configuration names and edition availability have not been verified against a live database.
Reasoning
Its diagnostic structure is useful because it connects a visible symptom to a concrete hypothesis: scans suggest checking indexes, growing row counts suggest examining fan-out, and mismatched estimates suggest investigating statistics. Those connections help users explain a plan before choosing a change.
The evidence does not justify treating each suggested fix as interchangeable. Collect-then-write explicitly collects rows, so the example does not establish a memory reduction. CALL IN TRANSACTIONS introduces transaction batches, which requires considering the intended write behavior.
A sound use of this skill separates three questions: whether the suspected bottleneck is present, whether the change preserves required results, and whether representative measurements improve. The documentation supplies investigation steps but no completed demonstration covering all three.
Alternatives
The skill names neo4j-cypher-skill for writing queries and detailed index syntax, neo4j-modeling-skill for schema design, and neo4j-gds-skill for Graph Data Science tuning. These are scope-based referrals; their contents and effectiveness are not established by the supplied files.
For users who prefer direct investigation, the same documents describe a manual route using EXPLAIN, PROFILE, index inspection and transaction monitoring. No comparative evidence establishes whether using this assistant skill is faster or more accurate than that approach.
Evidence
The available source documents are the skill README, SKILL.md, the execution-plan operator reference, the statistics and monitoring reference, and the repository-level MIT LICENSE. All are associated with commit 004c7823fc05d352647f2e9e5106d9ae2a4080e5.
These documents establish the package's written instructions, examples, declared version and licence. They do not establish successful installation, live command availability, result correctness across workloads or measured performance improvements. No commands or examples were executed.
Access & freshness
Costs
Total operating cost is unknown. The files provide no assistant subscription price, model usage estimate, Neo4j hosting tariff or Enterprise/Aura Pro price. The MIT licence grants use and redistribution rights without specifying a purchase price for this resource.
The source states that PROFILE incurs the full query execution cost and recommends running it twice. Index creation, statistics refresh and database operation also involve work, but no resource usage or monetary estimates are supplied. EXPLAIN's description as having zero cost should not be read as a quantified guarantee about planning overhead.
Rights
The repository LICENSE is the MIT License, copyright 2026 Neo4j Contrib. It permits use, copying, modification, publication, distribution, sublicensing and sale, provided the copyright and permission notices remain in copies or substantial portions.
The licence disclaims warranties and liability. It supports redistributing the captured skill documents with the notice included; it does not establish rights to a separate Neo4j deployment or assistant service. Original notice: [https://raw.githubusercontent.com/neo4j-contrib/neo4j-skills/004c7823fc05d352647f2e9e5106d9ae2a4080e5/LICENSE].
Freshness
The files were captured on 17 November 2026, and SKILL.md declares version 1.0.9. The capture date does not establish a release date, maintenance cadence or the contents of later repository revisions.
The documents label currentQueryProgress as a 2026.03 addition, some remote index operators as 2026.07 additions and concurrent-transaction profiling details as 2026.10 additions. The monitoring reference also marks its 2026.09 page-cache statement as derived. These are source claims whose availability and accuracy remain unverified.
Actions
Start with a specific slow query, its parameters and an EXPLAIN plan. Ask the assistant to identify the suspected bottleneck, the evidence for it and the expected effect of one proposed change. Confirm syntax and feature availability for the actual Neo4j release and edition.
Before accepting a rewrite, compare required rows, ordering, limits and write behavior. Pay particular attention to the supplied early-LIMIT and relationship-join examples. Where profiling is appropriate, compare results and performance under comparable conditions rather than assuming an index seek or lower dbHits guarantees a faster application.
Review CREATE INDEX, statistics-refresh procedures and transaction-termination commands as operational actions before executing them. PROFILE executes its query, so the twice-run recipe needs separate consideration for writes. Successful installation, semantic equivalence and performance gains remain unverified until demonstrated in the intended environment.
