neo4j-query-tuning-skill

Official

Fix slow Cypher with plan-driven tuning

Authorneo4j-contrib
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Neo4j users get stuck with slow or unpredictable Cypher queries without knowing which plan operators, missing indexes, or runtime choices are causing the slowness.

Core Features & Use Cases

  • Plan interpretation (EXPLAIN vs PROFILE): Decide when to use each and read key metrics like dbHits, estimatedRows, and pageCacheHitRatio to validate whether the plan matches reality.
  • Operator diagnostics with targeted fixes: Identify bad signals such as AllNodesScan, NodeByLabelScan, CartesianProduct, and Eager, then prescribe concrete remedies like indexes, query rewrites, hints, and LIMIT placement.
  • Planner accuracy & monitoring workflow: Detect stale cardinality estimation and trigger replanning or index resampling, while using SHOW QUERIES / SHOW TRANSACTIONS to diagnose and terminate problematic live queries.

Use Case: When a query is slow and PROFILE shows high dbHits and a plan containing a scan operator, use this Skill to pinpoint the exact operator and apply the appropriate index/hint/runtime strategy to reduce IO and improve selectivity.

Quick Start

Ask the Skill to analyze the output of PROFILE for your slow Cypher query and propose the smallest targeted changes to eliminate the specific bad plan operators it identifies.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: neo4j-query-tuning-skill
Download link: https://github.com/neo4j-contrib/neo4j-skills/archive/main.zip#neo4j-query-tuning-skill

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.