mcpField
G
graph-schema

graph-schema

github.com/pproencaData & databases218230 installsUpdated 11w ago
Repository

About graph-schema

A reference skill for designing and reviewing property-graph database schemas, including Neo4j, Memgraph, and Amazon Neptune. Its 46 rules cover modeling choices, query needs, integrity, and schema evolution with Cypher examples.

Key features

  1. 0146 schema-design rules
  2. 02Eight prioritized categories
  3. 03Correct and incorrect Cypher examples
  4. 04Guidance on constraints and integrity
  5. 05Advice for scale and schema evolution

Use cases

  1. 01Designing a graph schema from domain requirements
  2. 02Converting a relational schema to a graph
  3. 03Reviewing or refactoring an existing graph model

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/pproenca/dot-skills --skill graph-schema

After installing, type/graph-schemain Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

AGENTS.md
metadata.json
assets/templates/
_template.md
references/
_sections.md
anti-duplicate-data.md
anti-generic-relationships.md
anti-join-table-nodes.md
anti-over-modeling.md
anti-relational-porting.md
anti-string-encoded-structure.md
constraint-existence.md
constraint-index-traversals.md
constraint-no-over-index.md
constraint-node-key.md
constraint-unique-identifiers.md
entity-avoid-god-nodes.md
entity-events.md
entity-identity-state.md
entity-multi-label.md
entity-reify-actions.md
entity-shared-values.md
entity-specific-labels.md
pattern-bipartite.md
pattern-fan-out.md
pattern-hierarchy.md
pattern-intermediary-nodes.md
pattern-linked-list.md
pattern-timeline-tree.md
prop-correct-data-types.md
prop-no-arrays-for-connections.md

Details

From the project README

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

Comments

Markdown supported