Skillshub graph-schema

dot-skills Graph Database Schema Design Best Practices

install
source · Clone the upstream repo
git clone https://github.com/ComeOnOliver/skillshub
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ComeOnOliver/skillshub "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/pproenca/dot-skills/graph-schema" ~/.claude/skills/comeonoliver-skillshub-graph-schema && rm -rf "$T"
manifest: skills/pproenca/dot-skills/graph-schema/SKILL.md
source content

dot-skills Graph Database Schema Design Best Practices

Comprehensive graph database data modeling guide for property graphs (Neo4j, Memgraph, Amazon Neptune, etc.). Contains 46 rules across 8 categories, prioritized by modeling impact from critical (entity classification, relationship design) to incremental (scale and evolution). Each rule includes detailed explanations, real-world Cypher examples comparing incorrect vs. correct models, and specific impact descriptions.

Philosophy: Data modeling correctness first, performance second. Always ask "what is the user trying to achieve?" before choosing structure.

When to Apply

Reference these guidelines when:

  • Designing a new graph database schema from domain requirements
  • Translating a relational schema to a graph model
  • Deciding whether something should be a node, relationship, or property
  • Reviewing an existing graph schema for modeling errors
  • Refactoring a graph that produces awkward or slow queries
  • Planning for schema evolution and data growth

Rule Categories by Priority

PriorityCategoryImpactPrefix
1Entity ClassificationCRITICAL
entity-
2Relationship DesignCRITICAL
rel-
3Property PlacementHIGH
prop-
4Query-Driven RefinementHIGH
query-
5Structural PatternsHIGH
pattern-
6Anti-PatternsMEDIUM
anti-
7Constraints & IntegrityMEDIUM
constraint-
8Scale & EvolutionLOW-MEDIUM
scale-

Quick Reference

1. Entity Classification (CRITICAL)

2. Relationship Design (CRITICAL)

3. Property Placement (HIGH)

4. Query-Driven Refinement (HIGH)

5. Structural Patterns (HIGH)

6. Anti-Patterns (MEDIUM)

7. Constraints & Integrity (MEDIUM)

8. Scale & Evolution (LOW-MEDIUM)

How to Use

Read individual reference files for detailed explanations and code examples:

Reference Files

FileDescription
references/_sections.mdCategory definitions and ordering
assets/templates/_template.mdTemplate for new rules
metadata.jsonVersion and reference information