neo4j-cypher-skill

neo4j-cypher-skill is a skill for Claude Code from neo4j-contrib/neo4j-skills. It costs 137 tokens per session (7,395 once invoked), scanned A, a copy of neo4j-cypher, MIT.

A guide for writing, improving, and checking Cypher 25 queries for Neo4j graph databases. Cypher is Neo4j’s language for finding and changing connected data.

In plain words
What is it for?
Use it for graph pattern matching, vector or full-text search, subqueries, batch writes, CSV imports, and debugging or optimizing Cypher queries.
Why use it?
It helps account for the Neo4j version, database schema, query performance, and the difference between generating a query and safely executing one.

Skill for Claude Code

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

Part of the neo4j-skills plugin — 30 skills, 1 command shipped together

Good fit Use it for graph pattern matching, vector or full-text search, subqueries, batch writes, CSV imports, and debugging or optimizing Cypher queries.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/neo4j-contrib/neo4j-skills/neo4j-cypher-skill
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 neo4j-contrib/neo4j-skills --skill neo4j-cypher-skill
Clone the repo
git clone --depth 1 https://github.com/neo4j-contrib/neo4j-skills

Made for: Claude Code.

Or install neo4j-skills, the plugin that ships this one along with the rest of its 30 skills, 1 command.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/neo4j-contrib/neo4j-skills/neo4j-cypher-skill/github.svg)](https://agentmods.dev/skills/neo4j-contrib/neo4j-skills/neo4j-cypher-skill)
Your own site
<a href="https://agentmods.dev/skills/neo4j-contrib/neo4j-skills/neo4j-cypher-skill"><img src="https://agentmods.dev/badge/skills/neo4j-contrib/neo4j-skills/neo4j-cypher-skill/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-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/neo4j-contrib/neo4j-skills/neo4j-cypher-skill"><img src="https://agentmods.dev/badge/skills/neo4j-contrib/neo4j-skills/neo4j-cypher-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 137 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,395 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. Third-party audits
  • Socket pass 24 Nov 2026
  • Snyk warn 24 Nov 2026
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Data Exfiltration · line 309
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
How audits are shown
Origin 95% copy Near-identical to another mod 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.00137 $0.07395
Opus 5.5 $0.00055 $0.02958
Sonnet 5.5 $0.00027 $0.01479
Haiku 4.5 $0.00014 $0.00739

Measured 9d ago against content hash 27569bd0c8c3, 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-skill 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 9d 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

This is a copy

95% identical to neo4j-cypher — 36 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

neo4j-cypher-skill/SKILL.md · 452 lines

How it starts

The opening of the file, as written. The whole thing — 452 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.06 safe set (Cypher 25)
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 · 452 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. 9d ago Changed · +6 lines 27569bd0c8c3
  2. 1mo ago Changed · +1 lines fe905929ea87
  3. 1mo ago Changed · +1 lines d01f9a016849
  4. 1mo ago Changed 9271afa75655
  5. 1mo ago Changed 5be289f0a8b0
  6. 1mo ago Changed · -7 lines a6aabc5fdd31
  7. 2mo ago Changed a938e86880be
  8. 2mo ago Changed · +1 lines 919b91b9b129
  9. 2mo ago Changed · +28 lines dd2d984d8392
  10. 3mo ago First seen · 422 lines · 137 tokens per session scan A 4c2e4933a728

Subscribe to this mod's changes

neo4j-cypher-skill is a skill published in the GitHub repository neo4j-contrib/neo4j-skills (122 stars, last pushed 9d ago), licensed MIT. It adds 137 tokens to every session and 7,395 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). It is 95% identical to neo4j-cypher, differing in 36 lines, and is treated as a copy.

Related

neo4j-cypher-skill compared with skills from other repositories

neo4j-cypher-skill next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
neo4j-cypher-skillneo4j-contrib/neo4j-skillsSkill1229d agoMITA137Claude Code
results-storagecrazyMarky/pentest-skillsSkill3796mo agoApache-2.0A40Claude Code, Codex
exploit-sqlicrazyMarky/pentest-skillsSkill3796mo agoApache-2.0A51Claude Code, Codex
timescaledb-hyperfunctionstimescale/pg-aiguideSkill1.9kyesterdayApache-2.0A298Cursor
durable-objectsfcakyon/claude-codex-settingsSkill1.2kyesterdayApache-2.0A22Claude Code
mongodb-connectionfcakyon/claude-codex-settingsSkill1.2kyesterdayApache-2.0A122Claude Code
mongodb-schema-designfcakyon/claude-codex-settingsSkill1.2kyesterdayApache-2.0A127Claude Code