neo4j-cypher-guide
Skill by opsmill
Guides an AI assistant in writing modern Neo4j Cypher queries and avoiding removed or deprecated syntax. It is aimed at text2cypher MCP tools and LLMs that generate Cypher.
Install neo4j-cypher-guide
Built from the published package, never by AI.
git clone --depth 1 https://github.com/opsmill/infrahub /tmp/infrahub && mkdir -p ~/.claude/skills && cp -r /tmp/infrahub/.agents/skills/neo4j-cypher-guide ~/.claude/skills/neo4j-cypher-guideRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/opsmill/infrahub /tmp/infrahub && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/infrahub/.agents/skills/neo4j-cypher-guide ~/.gemini/antigravity-cli/skills/neo4j-cypher-guideAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
neo4j-cypher-guide is an agent skill from opsmill that helps an AI assistant write modern Neo4j Cypher queries. It lists removed features, such as the id() function and implicit grouping keys, and gives modern replacements, such as elementId() and explicit WITH clauses. It also covers CALL subqueries for reads, COLLECT and COUNT patterns, null filtering before sorting, and set-based writes.
The skill includes a checklist to apply before finalizing a query. It points to reference files for deprecated syntax, subqueries, Quantified Path Patterns and entry points, and it advises using EXPLAIN and PROFILE to check query plans. The source says it is written for text2cypher MCP tools and for LLMs that generate Cypher queries.
Written from the project's SKILL.md and checked against it.
What it can do
- Removed syntax checksFlags removed features such as id() and implicit grouping keys, with modern replacements.
- Quantified Path PatternsWrites graph traversals with QPP and inline filtering instead of variable-length paths.
- CALL subqueries for readsBuilds CALL subqueries with variable scope for more complex read operations.
- Null-safe sortingAdds IS NOT NULL filters before ORDER BY on sorted properties.
- Set-based writesReplaces per-node mutations with one query that matches all target nodes.
- Entry point selectionChooses a query entry point so the plan starts with an index seek instead of a label scan.
- Dynamic labels and typesUses parameters for node labels and relationship types on Neo4j 5.26 or later.
- Type predicatesChecks property types with IS :: predicates such as STRING or INTEGER.
What you need
- A Neo4j database
- Neo4j 5.26 or later for dynamic labels and types
Try asking
- Write a Cypher query that deletes all Preference nodes for one owner_id.
- Rewrite this old size() pattern count query using modern Cypher syntax.
- Find the top 3 earners per department using a CALL subquery in Cypher.
Good to know
- Entry point guidance refers to indexes listed in backend/infrahub/core/graph/index.py.
- The branch index exists only for the edge types listed in that file.
- Each interpolated or dynamic label variant is planned and cached separately, so the source suggests running PROFILE on both.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/neo4j-cypher-guide/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to neo4j-cypher-guide
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-cypher-guide: common questions
Which Cypher syntax does this guide say to avoid?
It lists removed features such as the id() function, implicit grouping keys, repeated relationship variables and automatic list to boolean coercion. Each entry names a modern replacement.
Does this skill help with query performance?
It recommends anchoring patterns with indexed lookups, filtering early in QPP and filtering nulls before sorting. It also explains how to choose an entry point that starts with an index seek.
Who is this skill for?
The source says it is for text2cypher MCP tools and for LLMs that generate Cypher queries.
How do I install neo4j-cypher-guide?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is neo4j-cypher-guide free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is neo4j-cypher-guide safe to use?
It scores 72 of 100. Grades: maintenance A, licence A, quality A. 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-cypher-guide?
Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.
