neo4j-modeling-skill

仓库创建 2026年1月20日最近提交 7 天前SkillHot 收录 20 天前
▸ 精选理由

涵盖节点/关系/属性设计及反模式修复,适用于数据建模阶段

这个 Skill 做什么

设计、评审并重构 Neo4j 图数据模型,避免常见反模式

把领域模型拆成 Neo4j 的节点、关系和属性,判断何时用标签、关系或属性,设计中间节点处理 n 元关系,并识别和修复常见反模式(泛化标签、supernode、高扇出等)。适合从关系库或文档迁移到图模型或评审现有模型时使用。特点是专注建模最佳实践并会建议约束与索引,但不负责写 Cypher 查询。

▸ 展开 SKILL.md 英文原文

Design, review, and refactor Neo4j graph data models. Use when choosing node labels vs relationship types vs properties, migrating relational/document schemas to graph, detecting anti-patterns (generic labels, supernodes, missing constraints), designing intermediate nodes for n-ary relationships, enforcing schema with constraints and indexes, or assessing an existing model against graph modeling best practices. Does NOT handle Cypher query authoring — use neo4j-cypher-skill. Does NOT handle Spring Data Neo4j entity mapping — use neo4j-spring-data-skill. Does NOT handle GraphQL type definitions — use neo4j-graphql-skill. Does NOT handle data import — use neo4j-import-skill.

数据与抓取建模反模式架构通用
98
Stars
35
Forks
29
仓库内 Skill
+7
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/neo4j-contrib/neo4j-skills/main/neo4j-modeling-skill/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/neo4j-contrib/neo4j-skills/main/neo4j-modeling-skill/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
## When to Use

- Designing graph model from scratch (domain → nodes, rels, props)
- Reviewing existing model for anti-patterns
- Deciding node vs property vs relationship vs label
- Migrating relational or document schema to graph
- Designing intermediate nodes for n-ary or complex relationships
- Detecting and mitigating supernode / high-fanout problems
- Choosing and creating constraints + indexes for a model

## When NOT to Use

- **Writing or optimizing Cypher** → `neo4j-cypher-skill`
- **Spring Data Neo4j (@Node, @Relationship)** → `neo4j-spring-data-skill`
- **GraphQL type definitions** → `neo4j-graphql-skill`
- **Importing data (LOAD CSV, APOC import)** → `neo4j-import-skill`

---

#
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有