domain-modeling 是什么?
在设计讨论中澄清业务词义、用具体场景检查概念关系,并即时维护 GLOSSARY.md。遇到难逆转、缺少上下文会误解且存在真实取舍的决定时,再考虑记录 ADR。
中文说明由本站依据来源整理;英文原文保留在页面下方。
适合用在
- 团队把客户、用户、账户等词混用,或代码中的业务行为与讨论不一致。
怎么接入你的 Agent?
- 定位完整 Skill 目录
打开本项目来源,核对
SKILL.md及其引用的脚本和资料。 - 交给你正在用的 Agent
在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。
- 确认识别,再做具体任务
让 Agent 回报安装目录和识别到的名称
domain-modeling,然后按本页使用示例提供材料。
展开并复制给 Codex 的安装指令
安装并检查 domain-modeling
请在 Codex 的当前工作环境中安装并检查 domain-modeling 这个 Skill。
项目身份:mattpocock/skills / domain-modeling
来源:https://github.com/mattpocock/skills/blob/5863806dd4e15c63174bee4e7515a4256792ecfa/skills/engineering/domain-modeling/SKILL.md
已定位的源文件:skills/engineering/domain-modeling/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 Claude Code 的安装指令
安装并检查 domain-modeling
请在 Claude Code 的当前工作环境中安装并检查 domain-modeling 这个 Skill。
项目身份:mattpocock/skills / domain-modeling
来源:https://github.com/mattpocock/skills/blob/5863806dd4e15c63174bee4e7515a4256792ecfa/skills/engineering/domain-modeling/SKILL.md
已定位的源文件:skills/engineering/domain-modeling/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 Cursor 的安装指令
安装并检查 domain-modeling
请在 Cursor Agent 的当前工作环境中安装并检查 domain-modeling 这个 Skill。
项目身份:mattpocock/skills / domain-modeling
来源:https://github.com/mattpocock/skills/blob/5863806dd4e15c63174bee4e7515a4256792ecfa/skills/engineering/domain-modeling/SKILL.md
已定位的源文件:skills/engineering/domain-modeling/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 当前 Agent 的安装指令
安装并检查 domain-modeling
请在 当前 Agent 的当前工作环境中安装并检查 domain-modeling 这个 Skill。
项目身份:mattpocock/skills / domain-modeling
来源:https://github.com/mattpocock/skills/blob/5863806dd4e15c63174bee4e7515a4256792ecfa/skills/engineering/domain-modeling/SKILL.md
已定位的源文件:skills/engineering/domain-modeling/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。装好以后,具体怎么用?
准备哪些材料
- 提供项目现有 GLOSSARY.md 与相关代码;多领域项目还需要 GLOSSARY-MAP.md。完整目录应保留 GLOSSARY-FORMAT.md、ADR-FORMAT.md。
会得到什么
- 精确的领域词定义与更新后的术语表;必要时有解释设计取舍的 ADR。
实际使用顺序
- 对照术语表检查讨论里的词,指出一个词同时代表多个概念或与已有定义冲突的位置。
- 用具体边界场景确认关系,例如整单取消与部分取消是否分别存在,再回读代码验证陈述。
- 词义确定后立刻更新所在领域的 GLOSSARY.md;词汇表只写领域含义,不塞实现设计或临时笔记。
- 只有需要长期理解的真实取舍才提议 ADR。没有现成目录时,到首次确有内容要写才创建;多领域按映射定位,不把所有术语混进根目录。
从一个具体任务开始
本站根据源文件编写的使用示例,未在本站实际运行。示例中的文件由你提供。
复制一个具体任务
教学示例:请用 domain-modeling 核对订单模块里‘取消’和‘退款’的含义。先读术语表和实际代码,用支付前取消、支付后退款、部分退款三种场景找冲突;和我确认定义后即时更新对应领域GLOSSARY.md。只有确有长期取舍时才提议ADR,不把技术实现写进词汇表。预期得到业务概念差异和相应文档变更,实际支持哪些场景应以代码证据为准;本例未运行。
使用条件与边界
- 只是读取术语表不算领域建模;这个 Skill 包含对术语表的实际维护。
- ADR 不是会议纪要,不能为每个临时偏好都新建一篇。
常见问题
为什么不直接自动生成完整术语表?
来源要求在讨论里用场景与代码澄清后即时记录,并按需创建文件。凭名称批量补定义会把未确定的业务规则写成事实。
来源原文与资料状态
- 源文件
- 已保存 SKILL.md,抓取于 2026-11-16T12:36:35.145Z
- 中文使用说明
- 已针对下方源文件版本整理用途、用法和常见问题
- 安装与任务测试
- 本站未执行安装或任务测试
- 来源复核
- 本页中文用法已对照保存版本的完整 SKILL.md 阅读整理
展开 SKILL.md 原文、章节与历史收录资料
skills/engineering/domain-modeling/SKILL.md · 抓取时间 2026-11-16T12:36:35.145Z
以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。
抓取成功不代表已完成安装或任务测试。
Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a GLOSSARY.md, or recording or editing an ADR.
查看源文件章节 / Source sections
- 原文:Domain Modeling
- 原文:File structure
- 原文:During the session
- 原文:Challenge against the glossary
- 原文:Sharpen fuzzy language
- 原文:Discuss concrete scenarios
- 原文:Cross-reference with code
- 原文:Update GLOSSARY.md inline
- 原文:Offer ADRs sparingly
原文:Domain Modeling
Actively build and sharpen the project's domain model as you design. This is the *active* discipline: challenging terms, inventing edge-case scenarios, and writing the glossary and decisions down the moment they crystallise. (Merely *reading* `GLOSSARY.md` for vocabulary is not this skill: that's a one-line habit any skill can do. This skill is for when you're changing the model, not just consuming it.)
原文:File structure
Most repos have a single context: ``` / ├── GLOSSARY.md ├── docs/ │ └── adr/ │ ├── 0001-event-sourced-orders.md │ └── 0002-postgres-for-write-model.md └── src/ ``` If a `GLOSSARY-MAP.md` exists at the root, the repo has multiple contexts. The map points to where each one lives: ``` / ├── GLOSSARY-MAP.md ├── docs/ │ └── adr/ ← system-wide decisions ├── src/ │ ├── ordering/ │ │ ├── GLOSSARY.md │ │ └── docs/adr/ ← context-specific decisions │ └── billing/ │ ├── GLOSSARY.md │ └── docs/adr/ ``` Create files lazily: only when you have something to write. If no `GLOSSARY.md` exists, create one when the first term is resolved. If no `docs/adr/` exists, create it when the first ADR is needed.
原文:Challenge against the glossary
When the user uses a term that conflicts with the existing language in `GLOSSARY.md`, call it out immediately. "Your glossary defines 'cancellation' as X, but you seem to mean Y. Which is it?"
原文:Sharpen fuzzy language
When the user uses vague or overloaded terms, propose a precise canonical term. "You're saying 'account': do you mean the Customer or the User? Those are different things."
原文:Discuss concrete scenarios
When domain relationships are being discussed, stress-test them with specific scenarios. Invent scenarios that probe edge cases and force the user to be precise about the boundaries between concepts.
原文:Cross-reference with code
When the user states how something works, check whether the code agrees. If you find a contradiction, surface it: "Your code cancels entire Orders, but you just said partial cancellation is possible. Which is right?"
文件 SHA256:7b925d7b1e341a2eeae33ad68a8a8c0ab889a38ddd22a7598e4c240e5a7556a3
仓库许可证记录:MIT;repository-license-recorded-scope-unverified,查看来源。
Build and sharpen a project's domain model. Use when the user wants to pin down domain terminology or a ubiquitous language, record an architectural decision,…
这份历史简介在采集时已截断;完整用途和触发条件需打开来源核对。
历史收录数据
| Skill标识 | domain-modeling |
|---|---|
| 来源仓库 | mattpocock/skills |
| 榜单快照 | 2026-07-28 |
| 榜单口径 | Skills.sh累计安装量 |
| 快照名次 | 82 |
| 快照累计安装量 | 269882 |
历史资料说明
- 所保留的来源简介在采集时已截断;完整触发条件、依赖及排除项须阅读源文件,本站不补写缺失部分。
- 安装量用于说明当时的收录次序,不是效果、可信度或当前可用性的证明。
此页用于识别项目与来源。安装入口可在该Skill的Skills.sh页面查看;当前目录是否仍存在、附带脚本和账户依赖尚需按具体版本确认。
