cloudthinker-ai/cloudskills/analyzing-neo4j
Claude Code and agent skill by cloudthinker-ai/cloudskills
- community
Checking that the SKILL.md file is still in the repository.
Use when working with Neo4J — neo4j graph database analysis, index management, Cypher query optimization, APOC utilities, and cluster health monitoring.
Install
npx vskill@latest install cloudthinker-ai/cloudskills/analyzing-neo4jSKILL.md
The same SKILL.md was published earlier as cloudthinker-ai/cloudskills/analyzing-neo4j.
Neo4j Analysis Skill
Analyze and optimize Neo4j graph databases with safe, read-only operations.
MANDATORY: Two-Phase Execution
You MUST follow this two-phase pattern. Skipping Phase 1 causes hallucinated label/relationship names.
Phase 1: Discovery (ALWAYS run first)
Phase 1 outputs:
- Node labels and relationship types
- Property keys in use
- Sample nodes to understand actual properties
Phase 2: Analysis (only after Phase 1)
Only reference labels, relationship types, and properties confirmed in Phase 1.
Shell Script Patterns
Helper Function
Anti-Hallucination Rules
- NEVER reference a node label without confirming via
db.labels() - NEVER reference a relationship type without confirming via
db.relationshipTypes() - NEVER reference property names without seeing them in
db.propertyKeys()or sample nodes - NEVER assume index names — always check with
SHOW INDEXES - NEVER guess constraint names — always verify with
SHOW CONSTRAINTS
Safety Rules
- READ-ONLY ONLY: Use only MATCH, RETURN, CALL (read procedures), EXPLAIN, PROFILE
- FORBIDDEN: CREATE, DELETE, DETACH DELETE, MERGE, SET, REMOVE, DROP without explicit user request
- ALWAYS add `LIMIT` to MATCH queries — graphs can have millions of nodes
- Use `EXPLAIN` before running expensive traversals
- Use `PROFILE` sparingly — it executes the query and captures runtime stats
Common Operations
Graph Overview
Index Management
Query Performance Analysis
APOC Utilities
Output Format
Present results as a structured report:
Target ≤50 lines of output. Use tables for multi-resource comparisons.
Counter-Rationalizations
| Shortcut | Counter | Why | |
|---|---|---|---|
| "I'll skip discovery and check known resources" | Always run Phase 1 discovery first | Resource names change, new resources appear — assumed names cause errors | |
| "The user only asked for a quick check" | Follow the full discovery → analysis flow | Quick checks miss critical issues; structured analysis catches silent failures | |
| "Default configuration is probably fine" | Audit configuration explicitly | Defaults often leave logging, security, and optimization features disabled | |
| "Metrics aren't needed for this" | Always check relevant metrics when available | API/CLI responses show current state; metrics reveal trends and intermittent issues | |
| "I don't have access to that" | Try the command and report the actual error | Assumed permission failures prevent useful investigation; actual errors are informative |
Common Pitfalls
- Unbounded traversals:
MATCH (a)-[*]->(b)can explode on large graphs — always bound depth with[*1..3] - Cartesian products: Multiple disconnected MATCH patterns create cartesian products — always connect patterns
- Missing indexes: Label+property scans without indexes cause full scans — check
SHOW INDEXES - Eager operations: Some operations (e.g., COLLECT before DELETE) load everything into memory — use
EXPLAINto check for Eager operators - PROFILE vs EXPLAIN: PROFILE executes the query; EXPLAIN only plans it — use EXPLAIN first on production
- Property existence: Properties are optional in Neo4j — always handle NULL/missing properties
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/connections/analyzing-neo4j/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/cloudthinker-ai/cloudskills/analyzing-neo4j)