Neo4j Modern Cypher Query Guide
Production-grade guidance for Neo4j 5.x Cypher generation and migration. This skill is optimized for AI-assisted workflows and enterprise consistency.
When to Apply
Use this skill when tasks involve:
- Writing modern Cypher queries for Neo4j 5.x
- Migrating legacy Cypher to supported syntax
- Building nodes and relationships with deterministic
MERGEpatterns - Generating Python scripts for Neo4j Desktop 2 data import
- Producing graph analysis queries and interpretation templates
Rule Categories by Priority
| Priority | Category | Impact | Prefix |
| -------- | --------------------------- | -------- | -------------- |
| 1 | Compatibility and Safety | CRITICAL | compat- |
| 2 | Query Construction | HIGH | query- |
| 3 | Read Patterns and Analytics | HIGH | read- |
| 4 | Data Import Workflows | MEDIUM | import- |
| 5 | Troubleshooting | MEDIUM | troubleshoot-|
Quick Reference
rules/compat-deprecated-syntax.mdrules/query-modern-construction.mdrules/read-subqueries-and-qpp.mdrules/import-desktop2-python.mdrules/troubleshoot-common-errors.md
Required Output Standard
For migration requests, return:
Issue(s)- why the old query is invalid or riskyModern Query (Neo4j 5.x)- ready-to-run CypherRationale- concise explanation of key changes
For generation requests, return:
Cypher(parameterized where possible)Validation Query(to verify imported graph)Optional Performance Notes(PROFILE, indexing, null-safe sort)
Additional Resources
- Full compiled handbook:
AGENTS.md - Structure and contribution guide:
README.md
扫码联系在线客服