graph-schema

v2026.09.24

Graph database schema design and data modeling expert. Use when designing, reviewing, or refactoring graph database schemas (Neo4j, Memgraph, Neptune, etc.). Triggers on graph modeling, node/relationship design, Cypher schema, property graph design, knowledge graph modeling, or when translating a domain into a graph structure. Focuses primarily on data modeling correctness — understanding the user's goal and translating it into the right graph structure — with performance as a secondary concern.

GitHub
安装命令
npx skhub add pproenca/graph-schema
Markdown
SKILL.md

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 ClassificationCRITICALentity-
2Relationship DesignCRITICALrel-
3Property PlacementHIGHprop-
4Query-Driven RefinementHIGHquery-
5Structural PatternsHIGHpattern-
6Anti-PatternsMEDIUManti-
7Constraints & IntegrityMEDIUMconstraint-
8Scale & EvolutionLOW-MEDIUMscale-

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
发现
标签

此技能尚未发布标签。

版本
最新版本元数据

版本

v2026.09.24

发布时间

Sep 24, 2026

分类

未分类

许可证

MIT

源路径

skills/.experimental/graph-schema

默认分支

master

最新提交

cf93c57

Tree SHA

afbb575