neo4j-query-tuning-skill
Skill by neo4j-contrib
Diagnoses and fixes slow Neo4j Cypher queries by reading EXPLAIN and PROFILE plans, spotting bad operators, and prescribing indexes, hints, rewrites and runtime choices. Aimed at developers and agents tuning Neo4j queries.
Install neo4j-query-tuning-skill
Built from the published package, never by AI.
git clone --depth 1 https://github.com/neo4j-contrib/neo4j-skills /tmp/neo4j-skills && mkdir -p ~/.claude/skills && cp -r /tmp/neo4j-skills/neo4j-query-tuning-skill ~/.claude/skills/neo4j-query-tuning-skillRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install neo4j-query-tuning-skill in Claude Code
git clone --depth 1 https://github.com/neo4j-contrib/neo4j-skills /tmp/neo4j-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/neo4j-skills/neo4j-query-tuning-skill ~/.gemini/antigravity-cli/skills/neo4j-query-tuning-skillAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install neo4j-query-tuning-skill in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill helps an AI assistant find out why a Neo4j Cypher query is slow. It explains how to read EXPLAIN and PROFILE output, reading plans from the bottom up. It flags operators such as AllNodesScan, NodeByLabelScan, CartesianProduct and Eager, and checks metrics like dbHits, rows, estimatedRows and pageCacheHitRatio.
The skill follows a step-by-step runbook. It checks the baseline plan, confirms that indexes exist and are ONLINE, creates missing indexes, and profiles again. It also covers USING INDEX, USING SCAN and USING JOIN hints, query rewrites, runtime selection between pipelined, slotted and parallel, and monitoring with SHOW QUERIES, SHOW TRANSACTIONS and TERMINATE TRANSACTION. It is for developers and agents who need to tune Neo4j query performance.
Written from the project's SKILL.md and checked against it.
What it can do
- Plan interpretationReads EXPLAIN and PROFILE output and explains operators bottom-up.
- Bad operator detectionFlags AllNodesScan, NodeByLabelScan, CartesianProduct and Eager in a plan.
- Index diagnosisChecks SHOW INDEXES for a relevant ONLINE index and creates missing RANGE or TEXT indexes.
- Query hintsShows USING INDEX, USING SCAN and USING JOIN hints for planner problems.
- Query rewritesSuggests rewrites for CartesianProduct, Eager, over-traversal and LIMIT placement.
- Runtime selectionExplains when to use pipelined, slotted or parallel runtimes.
- Statistics refreshUses db.prepareForReplanning and index resampling when estimates diverge from actuals.
- Live query monitoringUses SHOW QUERIES, SHOW TRANSACTIONS and TERMINATE commands to manage long-running work.
What you need
- A Neo4j database
- Enterprise edition or Aura Pro 2025+ for the parallel runtime
- Bash and WebFetch tools for the Query API option
Try asking
- Explain this PROFILE output and tell me which operator is slow.
- Why does this Cypher query use AllNodesScan? Suggest an index fix.
- Check my Eager and CartesianProduct operators and propose rewrites.
Good to know
- Does not write new Cypher from scratch; use neo4j-cypher-skill for that.
- Does not cover GDS algorithm tuning; use neo4j-gds-skill.
- Does not cover index or constraint creation syntax details; see neo4j-cypher-skill references/indexes.md.
- Parallel runtime needs dbms.cypher.parallel.worker_limit set and is not for OLTP, writes or Aura Free.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: neo4j-query-tuning-skill/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: Bash WebFetch
Alternatives to neo4j-query-tuning-skill
All alternatives →Creates, configures and manages datasets on the Hugging Face Hub, including SQL-based querying and transformation. Built for people who edit dataset content and metadata directly, alongside the HF MCP server.
Diagnoses and repairs gbrain's Postgres access when a command or MCP result shows a GBRAIN_DB_ACCESS marker, or when the operator reports the brain database is down. It runs the hardcoded gbrain db-repair ladder and verifies the result with a re-probe.
Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.
Writes, reviews and migrates Supabase logs queries against the ClickHouse logs table served by the logs.all.otel endpoint. Built for developers who write Logs Explorer SQL or convert older BigQuery logs queries.
Diagnoses and fixes slow Paperclip PostgreSQL queries using Cloud and Neon evidence, local benchmarks, regression tests, and a pull request with passing checks. Built for engineers working on Paperclip.
Guides AI assistants through Prisma 8 projects built on @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo. It covers data contracts, migrations, typed queries and runtime setup for developers on Prisma 8.
Compare with hugging-face-datasets, db-repair or alloydb-basics
neo4j-query-tuning-skill: common questions
Does this skill write Cypher queries for me?
No. The source says it does not write new Cypher from scratch and points to neo4j-cypher-skill for that task.
Should I run EXPLAIN or PROFILE first?
The source recommends EXPLAIN first because it does not execute the query. It recommends running PROFILE twice, since the first run warms the page cache.
Which Neo4j runtime should I use for large aggregations?
The source suggests the parallel runtime for large analytical scans and aggregations. It notes that parallel requires worker_limit configuration and is available on Enterprise and Aura Pro 2025+.
How do I install neo4j-query-tuning-skill?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is neo4j-query-tuning-skill free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is neo4j-query-tuning-skill safe to use?
It scores 74 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to neo4j-query-tuning-skill?
Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.
