neo4j-contrib avatar

Neo4j Cypher Skill

This is a dense reference for writing and optimizing Cypher 25 queries in Neo4j 2025.x and 2026.x. It covers the full query surface: pattern matching, subqueries, quantified path expressions, vector and fulltext search, bulk writes with LOAD CSV, and the newer GQL conformance additions like INSERT, LET, and ACYCLIC. The schema-first protocol is smart, it pushes you to inspect before guessing labels or properties, which prevents the classic mistake of writing queries against imagined data models. Defaults are opinionated in a good way: LIMIT 25 on exploratory reads, MERGE only on constrained keys, directed relationships unless you truly need undirected. If you're doing anything beyond basic MATCH RETURN, especially around performance or newer Cypher features, this will save you from documentation diving.

skills.sh installs
1.6K
GitHub stars
121
last updated
Aug 21, 2026

Install

$ npx -y skills add neo4j-contrib/neo4j-skills --skill neo4j-cypher-skill --agent claude-code

Installs into .claude/skills of the current project.

Files

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

?KnownUnknown
<db-name>-schema.json found in projectUse it directly — skip live inspection—
Schema (from context or live DB)Use directlyRun Schema-First Protocol
Neo4j versionUse version featuresDefault to 2025.01 safe set
Executing (not generating)?Use EXPLAIN + write gateState query is unvalidated

Sponsors

Details

Repository
github.com/neo4j-contrib/neo4j-skills
Categories
Backend & APIs, Git & Pull Requests, Documentation, AI & Agent Building, Automation & Workflows, CLI & Terminal, Databases
First seen
Jun 3, 2026

More from neo4j-contrib/neo4j-skills

All 5
1jezweb avatarwordpress-setupjezweb/claude-skillsConnect to a WordPress site via WP-CLI over SSH or the REST API. Check CLI, test SSH, set up auth, verify access, save config. Use whenever the user wants to co1.6Kskills.sh installs
2xixu-me avatarxdropxixu-me/xdropUse this skill when the user wants to send or fetch files through an Xdrop server from the terminal, asks to automate encrypted Xdrop share-link workflows, prov1.5Kskills.sh installs
3astronomer avatarairflowastronomer/agentsQueries, manages, and troubleshoots Apache Airflow using the `af` CLI. Use when working with anything related to Airflow - a DAG, a DAG run, a task log, an impo1.5Kskills.sh installs
4unclecatvn avatarodoo-18unclecatvn/agent-skillsOdoo 18 development reference for Python models and ORM (search, domain, read_group, compute fields), XML/CSV data and views, OWL/JS client code, QWeb reports, 1.5Kskills.sh installs
5aj-geddes avatarnginx-configurationaj-geddes/useful-ai-promptsConfigure Nginx web server for high-performance reverse proxy, load balancing, SSL/TLS, caching, and API gateway functionality.1.5Kskills.sh installs
6timescale avatarpostgrestimescale/pg-aiguideUse this skill for any PostgreSQL database work — table design, indexing, data types, constraints, extensions (pgvector, PostGIS, TimescaleDB), search, and migr1.4Kskills.sh installs