Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 72
  • 554 stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-guide

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install neo4j-cypher-guide in Claude Code

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

A

No 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 →
hugging-face-datasetssickn33
94

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.

AAA Skill 50k
db-repairgarrytan
94

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.

AAA Skill 34k
alloydb-basicsgoogle
94

Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.

AAA Skill 26k
clickhouse-logs-queriessupabase
94

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.

AAA Skill 116k
fix-slow-queriespaperclipai
94

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.

AAA Skill 119k
prisma-8prisma
94

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.

AAA Skill 48k

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.

neo4j-cypher-guide Install

Add to stack

Loading.