Skip to content
neo4j logo

Neo4j

neo4j

Neo4j graph database with Cypher query language. Use for graph-based data.

G1Joshi/Agent-Skills0installs14stars

SKILL.md

Full skill instructions

Neo4j

Neo4j is a native graph database. It stores data as nodes and relationships, not tables or documents. It is essential for "connected data" problems where relationships are as important as the data itself.

When to Use

  • Knowledge Graphs: Connecting silos of data (Users, Docs, Concepts).
  • Fraud Detection: Finding "Rings" of users sharing IDs/​Devices.
  • Recommendation Engines: "People who bought X also bought Y" (Collaborative Filtering).
  • GraphRAG (2025): Enhancing LLM context by traversing a knowledge graph instead of just vector similarity.

Quick Start (Cypher)

-- Create nodes and relationships
CREATE (alice:Person {name: 'Alice'})
CREATE (bob:Person {name: 'Bob'})
CREATE (alice)-[:KNOWS {since: 2024}]->(bob);

-- Query friends of friends
MATCH (p:Person {name: 'Alice'})-[:KNOWS]->(friend)-[:KNOWS]->(fof)
RETURN fof.name;

Core Concepts

Cypher

The SQL of Graphs. It uses ASCII-art patterns (node)-[RELATIONSHIP]->(node).

Index-Free Adjacency

In Neo4j, every node physically points to the next node. "Joins" are pre-computed pointers. Traversing 1 million relationships is O(1) per step, not O(Log N) like B-Trees.

Graph Data Science (GDS)

Library for algorithms like PageRank, Louvain (Community Detection), and Path Finding.

Best Practices (2025)

Do:

  • Use GraphRAG: Combine Vector Search (Semantic) with Graph Traversal (Structural) for better AI answers.
  • Model Relationships Richly: Put properties on relationships (e.g., [:REVIEWED {rating: 5, date: ...}]).
  • Use Labels: Always label nodes (:Person) to optimize scans.

Don't:

  • Don't create Supernodes: A node with 1 Million edges (e.g., (Justin Bieber)-[:FOLLOWED_BY]->(...)) hurts traversal performance.
  • Don't use it for simple lookups: If you just need ByKey or Range, use a K-V store.

References

More skills from G1Joshi

digitalocean logo
G1Joshi/Agent-Skills

digitalocean

DigitalOcean cloud platform with droplets. Use for simple cloud.

14 0
View
remix logo
G1Joshi/Agent-Skills

remix

Remix React framework with nested routing and data loading. Use for full-stack React.

14 0
View
dart logo
G1Joshi/Agent-Skills

dart

Dart programming for Flutter mobile and web development. Use for .dart files.

14 0
View
npm logo
G1Joshi/Agent-Skills

npm

npm Node.js package manager and registry. Use for JavaScript dependencies.

14 0
View
sanity logo
G1Joshi/Agent-Skills

sanity

Sanity structured content platform. Use for content management.

14 0
View
render logo
G1Joshi/Agent-Skills

render

Render unified cloud for web services. Use for managed hosting.

14 0
View
cpp logo
G1Joshi/Agent-Skills

cpp

C++ modern C++17/20/23 with STL, smart pointers, and performance optimization. Use for .cpp files.

14 0
View
monolith logo
G1Joshi/Agent-Skills

monolith

Monolithic architecture single deployment. Use for simple systems.

14 0
View
rust logo
G1Joshi/Agent-Skills

rust

Rust programming with ownership, borrowing, lifetimes, and zero-cost abstractions. Use for .rs files.

14 0
View
hbase logo
G1Joshi/Agent-Skills

hbase

Apache HBase wide-column store on Hadoop. Use for big data.

14 0
View
wordpress logo
G1Joshi/Agent-Skills

wordpress

WordPress CMS development with themes, plugins, and Gutenberg. Use for content sites.

14 0
View
fiber logo
G1Joshi/Agent-Skills

fiber

Fiber Express-inspired Go web framework. Use for Go APIs.

14 0
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View