neo4j-cypher-guide

Generate modern Neo4j Cypher read queries with correct subquery and traversal patterns.

Updated Mar 5, 2026
One-click install
npx skills add https://github.com/diegorodsouza/pos-ia-aplicada --skill neo4j-cypher-guide-diegorodsouza
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: neo4j-cypher-guide
Source: https://github.com/diegorodsouza/pos-ia-aplicada/tree/main/MODULO_03-Model_Context_Protocol_MCP/Exemplo_04_Skills/.agents/skills/neo4j-cypher-guide
Command: npx skills add https://github.com/diegorodsouza/pos-ia-aplicada --skill neo4j-cypher-guide-diegorodsouza

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you write modern Neo4j Cypher read queries that avoid deprecated syntax and common query mistakes, so graph retrieval logic is correct, maintainable, and compatible with current Neo4j behavior.

Core Features & Use Cases

  • Modern Cypher Patterns: Use up-to-date query forms for matching, filtering, aggregation, and traversal.
  • Safe Query Construction: Avoid removed features such as id(), implicit grouping keys, repeated relationship variables, and unsafe sorting with null values.
  • Advanced Read Scenarios: Handle text-to-Cypher generation, query migration, complex subqueries, and multi-hop path exploration with quantified path patterns.
  • Use Case: A developer asks for a query that finds top earners per department, checks relationship existence, or traverses a filtered multi-hop path, and this Skill provides a modern Neo4j-compliant solution.

Quick Start

Ask the skill to generate a modern Neo4j read query for your graph question and specify any constraints such as sorting, subqueries, deprecated syntax migration, or path-length limits.

Frequently Asked Questions about neo4j-cypher-guide

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write modern Neo4j Cypher read queries that avoid deprecated syntax?

Modern Neo4j Cypher read queries avoid deprecated syntax by using explicit grouping keys, null-safe sorting, scope clauses in CALL subqueries, and removing functions like id() to ensure correct, maintainable graph retrieval logic.

Can I convert natural language to Neo4j Cypher for graph traversal and data retrieval?

Text-to-Cypher generation translates natural language graph questions into modern Neo4j read queries, handling complex graph traversal, filtered multi-hop path exploration, and read-only data retrieval.

What's the best way to migrate deprecated Neo4j Cypher syntax to current standards?

Migrating deprecated Neo4j Cypher syntax involves replacing removed features like id(), implicit grouping keys, repeated relationship variables, and unsafe sorting with modern compliant query forms for current Neo4j behavior.

How do quantified path patterns work in Neo4j Cypher for multi-hop traversal?

Quantified path patterns in Neo4j Cypher enable efficient filtered multi-hop traversal by applying path-length limits and traversal constraints directly within the read query structure.

Why does my Neo4j Cypher subquery fail with scope clause errors?

Neo4j Cypher subquery errors often stem from missing scope clauses in CALL subqueries; modern Cypher requires explicit scope definitions for COUNT, EXISTS, and COLLECT subqueries to function correctly.

Does Neo4j Cypher support null-safe sorting for graph database queries?

Neo4j Cypher requires null-safe sorting in modern read queries to prevent unsafe sorting behaviors, ensuring reliable query results when handling null values in graph database data retrieval.