agentleFS
ForceInjectionForceInjection/domain-driven-design-skills/skills/ddd-subdomains/SKILL.md

ddd-subdomains

Skill82 starsChanged 7 months agoApache-2.0View on GitHub

识别业务能力并分类子域(Core/Supporting/Generic),产出核心域声明与所有权建议。

1 other project uses a version of this, 1 of them edited.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 1

    1. NinjaSln-labs/agent-skills★ 141% same

    Wrote their own version · 0

    None found.

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository10 other files it gives its agents.

The file

Files
SKILL.md

DDD Subdomains

🌐 English version: English

使用时机

  • 已完成领域发现(事件流与命令/事件候选已就绪),需要将领域切分为子域。
  • 需要明确"什么是核心竞争力、什么可以外购/复用"的战略决策。
  • ddd-context-map 报告"上帝上下文"或子域误分时,作为回溯目标重新执行。

输入要求

  • 必需:事件流、命令/事件候选、边界线索(来自 ddd-discover)。
  • 可选:当前系统能力清单或模块清单、业务差异化假设、竞争优势描述(来自 ddd-scope)。

流程

  1. 提取能力集:从事件流中抽取业务能力(Capability),去重合并同义能力。
  2. 属性标注:为每个能力标注业务价值、复杂度、变更频率、外部依赖程度。
  3. 分类:按 DDD 子域类型分类——Core(核心差异化)、Supporting(必要但非差异化)、Generic(通用可复用)。
  4. 核心域声明:形成核心域声明文档——为什么它是核心、衡量指标、长期演进方向。
  5. 所有权建议:建议团队归属,对齐语言边界与一致性边界;标注跨团队协作点。
  6. 输出边界候选:为 ddd-contexts 提供子域到上下文的初步映射建议。

输出

工件结构要求
能力清单表格:能力、说明、关联事件、上下游依赖
子域分类表表格:能力/能力组、子域类型(Core/Supporting/Generic)、分类理由、建议投入
核心域声明1 页以内:价值、边界、衡量指标、风险、演进方向
所有权建议表格:能力/子域、建议团队、依赖方、协作方式
边界候选列表:子域到上下文的初步映射建议

校验清单

  • 每个能力有分类理由,业务方与技术方均可接受
  • 核心域声明包含可衡量的业务指标
  • 至少识别 3 个跨团队协作点并给出协作建议
  • Core 子域数量 ≤ 总子域的 1/3(核心域不应过多)
  • 边界候选可被 ddd-contexts 直接消费

回溯触发

  • 无法区分 Core 与 Supporting(所有能力看起来同等重要) → 回溯至 ddd-scope,业务价值主张需重新澄清。
  • 被 ddd-context-map 触发回溯:循环依赖或"上帝上下文"暗示子域划分有误。

示例

@ddd-subdomains
基于以下事件流和边界线索,帮我识别子域并分类:
[粘贴 ddd-discover 的事件流表与边界线索]
请输出能力清单、子域分类表、核心域声明与所有权建议。

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.