Skip to content
Development
Skill

/domain-modeling

梳理领域模型 — 来自 superpowers 体系。本 skill 是桥接层,完整纪律见 <SUPERPOWERS_SKILL_ROOT>/domain-modeling/。

From plugin
analysis-to-delivery
2626 skills

Claude Code

$ npx -y skills add BlueprintOS/analysis-to-delivery --skill domain-modeling --agent claude-code

SKILL.md

domain-modeling.SKILL.md
name: domain-modeling
description: 梳理领域模型 — 来自 superpowers 体系。本 skill 是桥接层,完整纪律见 <SUPERPOWERS_SKILL_ROOT>/domain-modeling/。
version: 4.0.0

Domain-Modeling(桥接到 superpowers)

Contract

  • Inputs: design spec, terminology, entities, business rules
  • Outputs: domain model diagram and entity list
  • Gates: user agrees canonical terms and relationships
  • Required disciplines: `stage-gate`
  • Next: `/writing-plans`

> **本仓库不维护此 skill 的内容**。完整纪律请读: > `<SUPERPOWERS_SKILL_ROOT>/domain-modeling/SKILL.md`

何时调

  • brainstorming / design-an-interface 之后
  • 需要定义实体、值对象、聚合根

衔接点

  • **产出**:领域模型图 + 实体清单
  • **下一步**:`/writing-plans`
  • **门控**:`disciplines/stage-gate` 第 2 层

降级方案(superpowers 未装时)

如果 `<SUPERPOWERS_SKILL_ROOT>/domain-modeling/` 不存在,按以下 4 步产出领域模型:

1. 列实体

从 brainstorming 设计稿提取名词,过滤出**实体**(有生命周期、有 ID)与**值对象**(无 ID、不可变):

| 类型 | 例子 | 判别 | |---|---|---| | 实体 | ASN / LPN / 波次 | 有 `*_ID`,状态会变 | | 值对象 | 收货地址 / 计量单位 | 无 ID,只描述属性 | | 聚合根 | ASN(含 LPN 列表) | 一致性边界 |

2. 画 ASCII 关系图

参考 `disciplines/ascii-flowchart` 用 ASCII 画实体关系图,严禁 Mermaid:

[ASN] -- 1..N --> [ASN_DTL] -- 1..N --> [LPN]
   |                                       |
   +-- 1..1 --> [收货地址(值对象)]

3. 字段对齐验证

每个实体字段必须与知识库核对(`disciplines/no-field-guessing`):

  • 已有表 → 直接用现有字段(走 `field-alignment-check.py`)
  • 新增字段 → 标记 `EXTEND` 且写扩展理由

4. 输出 + 签字

写到 `docs/superpowers/specs/<topic>-domain.md`,末尾 `## Sign-off` 等用户白名单签字(4 句之一)。

最小纪律摘要

  • **名词 ≠ 实体**:不是所有名词都是实体,看 ID 与状态
  • **ASCII 不用 Mermaid**:与全局 `ascii-flowchart` 纪律冲突
  • **字段不靠记忆**:严禁自创字段名(`no-field-guessing` + `no-self-invent`)
  • **聚合根边界 = 事务边界**:不能跨聚合根强一致

安装提示

npx skills@latest add obra/superpowers-domain-modeling
Read more
@blueprintos
Ships withanalysis-to-delivery

通用需求分析到开发实施工作流 — 26 个独立可组合 skill、3 个完整行业示例、13 个 CI workflow、26 个自动化脚本、15 个 pytest 测试。

Stars on GitHub

Momentum

stars in total
26
Star history of BlueprintOS/analysis-to-delivery on GitHub, a chart by star-history.com

Other skills on analysis-to-delivery.

ask-delivery

ask-delivery

分析到交付的入口 — 根据你的目标(配置/澄清/BRD/PRD/合规/开发/审计/交接)路由到正确的 user-invoked skill。不确定该用哪个 analysis-to-delivery skill 时,从此入口进入。

ascii-flowchart

ascii-flowchart

**Deprecated**: 此 Skill 是 `rules/ascii-flowchart.md` 的兼容壳。 新代码 / 新文档应直接加载 `rules/ascii-flowchart.md`,不要继续依赖本 Skill。

context-pointer

context-pointer

**Deprecated**: 此 Skill 是 `rules/context-pointer.md` 的兼容壳。 新代码 / 新文档应直接加载 `rules/context-pointer.md`,不要继续依赖本 Skill。

doc-numbering

doc-numbering

**Deprecated**: 此 Skill 是 `rules/doc-numbering.md` 的兼容壳。 新代码 / 新文档应直接加载 `rules/doc-numbering.md`,不要继续依赖本 Skill。

no-field-guessing

no-field-guessing

**Deprecated**: 此 Skill 是 `rules/no-field-guessing.md` 的兼容壳。 新代码 / 新文档应直接加载 `rules/no-field-guessing.md`,不要继续依赖本 Skill。

no-self-invent

no-self-invent

**Deprecated**: 此 Skill 是 `rules/no-self-invent.md` 的兼容壳。 新代码 / 新文档应直接加载 `rules/no-self-invent.md`,不要继续依赖本 Skill。

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills12d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc2w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react3d252k
@facebook@facebookInstall Skill

Questions about domain-modeling.

Which coding agents can use domain-modeling?
domain-modeling installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.