Graph schema

From pproenca/dot-skills · View interactive version

Graph schema is an AI agent skill from the GitHub repository pproenca/dot-skills. 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 do

How to use this skill

Skill file

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:

Rule Categories by Priority

| Priority | Category | Impact | Prefix |

|----------|----------|--------|--------|

| 1 | Entity Classification | CRITICAL | entity- |

| 2 | Relationship Design | CRITICAL | rel- |

| 3 | Property Placement | HIGH | prop- |

| 4 | Query-Driven Refinement | HIGH | query- |

| 5 | Structural Patterns | HIGH | pattern- |

| 6 | Anti-Patterns | MEDIUM | anti- |

| 7 | Constraints & Integrity | MEDIUM | constraint- |

| 8 | Scale & Evolution | LOW-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

| File | Description |

|------|-------------|

| references/_sections.md | Category definitions and ordering |

| assets/templates/_template.md | Template for new rules |

| metadata.json | Version and reference information |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.