领域文档
工程 skills 在探索代码库时,如何使用仓库的领域文档。
探索前,先阅读这些内容
Section titled “探索前,先阅读这些内容”- 仓库根目录的
GLOSSARY.md,或 - 如果仓库根目录有
GLOSSARY-MAP.md:它会指向每个上下文对应的GLOSSARY.md。阅读与当前主题相关的文件。 docs/adr/:阅读涉及你即将处理区域的 ADR。在多上下文仓库中,也要查看src/<context>/docs/adr/中上下文范围的决策。
如果这些文件不存在,静默继续。不要指出文件缺失,也不要建议提前创建。/domain-modeling skill(通过 /grill-with-docs 和 /improve-codebase-architecture 触发)会在术语或决策真正确定时再创建这些文件。
单上下文仓库(大多数仓库):
/├── GLOSSARY.md├── docs/adr/│ ├── 0001-event-sourced-orders.md│ └── 0002-postgres-for-write-model.md└── src/多上下文仓库(根目录存在 GLOSSARY-MAP.md):
/├── GLOSSARY-MAP.md├── docs/adr/ ← 系统范围的决策└── src/ ├── ordering/ │ ├── GLOSSARY.md │ └── docs/adr/ ← 上下文范围的决策 └── billing/ ├── GLOSSARY.md └── docs/adr/使用术语表中的词汇
Section titled “使用术语表中的词汇”当输出中提到领域概念时(例如 issue 标题、重构提案、假设、测试名称),使用 GLOSSARY.md 中定义的术语。不要改用术语表明确避免的同义词。
如果你需要的概念还不在术语表中,这说明你可能在创造项目并未使用的说法(请重新考虑),也可能确实存在缺漏(记录下来,交给 /domain-modeling 处理)。
标出与 ADR 的冲突
Section titled “标出与 ADR 的冲突”如果输出与现有 ADR 矛盾,请明确指出,不要默默覆盖:
与 ADR-0007(事件溯源订单)矛盾,但值得重新讨论,因为……
原文链接和 commit
Section titled “原文链接和 commit”英文 domain.md
# Domain Docs
How the engineering skills should consume this repo's domain documentation when exploring the codebase.
## Before exploring, read these
- **`GLOSSARY.md`** at the repo root, or- **`GLOSSARY-MAP.md`** at the repo root if it exists: it points at one `GLOSSARY.md` per context. Read each one relevant to the topic.- **`docs/adr/`**: read ADRs that touch the area you're about to work in. In multi-context repos, also check `src/<context>/docs/adr/` for context-scoped decisions.
If any of these files don't exist, **proceed silently**. Don't flag their absence; don't suggest creating them upfront. The `/domain-modeling` skill (reached via `/grill-with-docs` and `/improve-codebase-architecture`) creates them lazily when terms or decisions actually get resolved.
## File structure
Single-context repo (most repos):
```/├── GLOSSARY.md├── docs/adr/│ ├── 0001-event-sourced-orders.md│ └── 0002-postgres-for-write-model.md└── src/```
Multi-context repo (presence of `GLOSSARY-MAP.md` at the root):
```/├── GLOSSARY-MAP.md├── docs/adr/ ← system-wide decisions└── src/ ├── ordering/ │ ├── GLOSSARY.md │ └── docs/adr/ ← context-specific decisions └── billing/ ├── GLOSSARY.md └── docs/adr/```
## Use the glossary's vocabulary
When your output names a domain concept (in an issue title, a refactor proposal, a hypothesis, a test name), use the term as defined in `GLOSSARY.md`. Don't drift to synonyms the glossary explicitly avoids.
If the concept you need isn't in the glossary yet, that's a signal: either you're inventing language the project doesn't use (reconsider) or there's a real gap (note it for `/domain-modeling`).
## Flag ADR conflicts
If your output contradicts an existing ADR, surface it explicitly rather than silently overriding:
> _Contradicts ADR-0007 (event-sourced orders), but worth reopening because…_非官方学习站,与 Matt Pocock 和 AI Hero 没有隶属关系。本站不提供可安装的中文技能包。
技能原文采用 MIT 许可。Copyright (c) 2026 Matt Pocock