neo4j-cypher

neo4j-cypher is a skill for Claude Code from hanamizuki/solopreneur. It costs 135 tokens per session (7,043 once invoked), scanned A, original, MIT.

A guide for writing, checking, and improving Cypher, the query language used by the Neo4j graph database. It covers graph searches, text and vector search, subqueries, and batch writes.

In plain words
What is it for?
Use it to write new queries, fix or optimize slow queries, search connected data, and prepare batch updates.
Why use it?
It helps produce modern queries and avoid syntax that newer Neo4j versions have removed or changed. It also highlights when a query cannot be safely validated because the database schema or version is unknown.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the neo4j-dev plugin — 4 skills, 1 agent shipped together

Good fit Use it to write new queries, fix or optimize slow queries, search connected data, and prepare batch updates.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hanamizuki/solopreneur/neo4j-cypher
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add hanamizuki/solopreneur --skill neo4j-cypher
Clone the repo
git clone --depth 1 https://github.com/hanamizuki/solopreneur

Made for: Claude Code.

Or install neo4j-dev, the plugin that ships this one along with the rest of its 4 skills, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for neo4j-cypher

README.md
[![agentmods](https://agentmods.dev/badge/skills/hanamizuki/solopreneur/neo4j-cypher/github.svg)](https://agentmods.dev/skills/hanamizuki/solopreneur/neo4j-cypher)
Your own site
<a href="https://agentmods.dev/skills/hanamizuki/solopreneur/neo4j-cypher"><img src="https://agentmods.dev/badge/skills/hanamizuki/solopreneur/neo4j-cypher/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for neo4j-cypher

Your own site · 80×15
<a href="https://agentmods.dev/skills/hanamizuki/solopreneur/neo4j-cypher"><img src="https://agentmods.dev/badge/skills/hanamizuki/solopreneur/neo4j-cypher.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 135 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,043 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00135 $0.07043
Opus 5.5 $0.00054 $0.02817
Sonnet 5.5 $0.00027 $0.01409
Haiku 4.5 $0.00014 $0.00704

Measured 14d ago against content hash a42265adcbc9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

neo4j-cypher scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 14d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/define_schema.py, scripts/generate_schema.py, scripts/import_neo4j_schema.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -X POST https://<instance>.databases.neo4j.io/db/<database>/query/v2 \
Origin

Copies of this mod

1 near-identical copy found in the catalogue:

plugins/claude/neo4j-dev/skills/neo4j-cypher/SKILL.md · 446 lines

How it starts

The opening of the file, as written. The whole thing — 446 lines — stays where its author put it; the contents beside it link to each section on GitHub.

When to Use

  • Writing, optimizing, or debugging Cypher queries
  • Graph pattern matching, QPEs, variable-length paths
  • Vector/fulltext search, subqueries, batch writes, LOAD CSV

When NOT to Use

  • Driver migration/API changes → neo4j-migration-skill
  • DB admin (users, config, backups) → neo4j-cli-tools-skill
  • Hybrid search that combines vector with fulltext or other ranked sources → neo4j-vector-index-skill

GQL conformance note: LET, FINISH, FILTER, and INSERT are valid Cypher 25 clauses (introduced via GQL conformance, mostly in Neo4j 2025.06). On older versions, fall back to WITH / (omit RETURN) / WHERE / CREATE. INSERT requires &-separated multi-labels and does not support dynamic labels/types.


Pre-flight

? Known Unknown
<db-name>-schema.json found in project Use it directly — skip live inspection —
Schema (from context or live DB) Use directly Run Schema-First Protocol
Neo4j version Use version features Default to 2025.01 safe set
Executing (not generating)? Use EXPLAIN + write gate State query is unvalidated

Schema unknown + no tool → produce non-executable sketch outside a code block:

(<SOURCE_LABEL> {<KEY>: $value})-[:<REL_TYPE>]->(<TARGET_LABEL>)

Never fill guessed names — realistic guesses get copied blindly.


Defaults — apply every query

  1. CYPHER 25 — first token; never repeat after UNION or inside subqueries
  2. Schema first — inspect before writing; if schema in prompt, use it directly
  3. MERGE on constrained key only; rel MERGE on already-bound endpoints only
  4. Label-free MATCH (n) forbidden unless bound or followed by WHERE n:$($label)
  5. LIMIT 25 default on all exploratory reads; push WITH n LIMIT before high-cardinality operations (variable-length traversals, fan-out MATCH, Cartesian products)
  6. Comments: // only — -- is SQL, invalid
  7. REPEATABLE ELEMENTS / DIFFERENT RELATIONSHIPS go after MATCH, not end of pattern
  8. SHOW commands: YIELD before WHERE; combinable with general Cypher clauses incl. UNION/RETURN [2026.05] — SHOW DATABASES still requires system db (use USE system). CALL on system db: YIELD then WHERE [2026.07]
  9. Inline node predicates (:Label WHERE p=x) — valid in MATCH only
  10. WHERE cannot follow bare UNWIND — use WITH x WHERE
  11. (a)-[:R]-(b) — undirected matches both directions, double-counts; use directed unless unknown
  12. DETACH DELETE — plain DELETE throws if node has relationships

Read the full file on GitHub · 446 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 14d ago Changed · +29 lines a42265adcbc9
  2. 2mo ago First seen · 417 lines · 135 tokens per session scan A fa9847cda8c5

Subscribe to this mod's changes

neo4j-cypher is a skill published in the GitHub repository hanamizuki/solopreneur (159 stars, last pushed 13d ago), licensed MIT. It adds 135 tokens to every session and 7,043 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-27.

Related

neo4j-cypher compared with skills from other repositories

neo4j-cypher next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
neo4j-cypherhanamizuki/solopreneurSkill15913d agoMITA135Claude Code
create-prprisma/ormSkill48ktodayApache-2.0A47Claude Code, Codex
schema-explorationlangchain-ai/deepagentsSkill32ktodayMITA57Claude Code, Codex
atlas-mssqlariga/atlasSkill8.9k2d agoApache-2.0A163Claude Code
ha-data-storesshiwenwen/hope-agentSkill1.9ktodayMITA115Claude Code, Codex
bex-keyvaluebex-co/bexSkill1.6ktodayApache-2.0A117Claude Code, Codex
pentesting-mysqlxalgorix/xalgorixSkill1.6ktodayApache-2.0A65Claude Code, Codex