Skip to content
Agentmart
Submit a tool

domain-modeling

构建并打磨项目的 domain model。在讨论代码库术语、编写或编辑 GLOSSARY.md、或记录或编辑 ADR 时使用。

Skill by toRolex

IndexedMIT★ 1
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/torolex-domain-modeling

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

构建并打磨项目的 domain model。在讨论代码库术语、编写或编辑 GLOSSARY.md、或记录或编辑 ADR 时使用。

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/domain-modeling

What's inside

Skill name
domain-modeling
Description
构建并打磨项目的 domain model。在讨论代码库术语、编写或编辑 GLOSSARY.md、或记录或编辑 ADR 时使用。
License
MIT
Instructions
71 lines in SKILL.md · view on GitHub

Files (3)

  • ADR-FORMAT.md
  • GLOSSARY-FORMAT.md
  • SKILL.md

SKILL.md (first lines)

# Domain Modeling

在设计中主动构建并打磨项目的 domain model。这是一门 *主动* 的功夫:质疑术语、编造 edge case 场景,并在 glossary 和 decisions 一经成形时立刻把它们写下来。(仅仅 *读* `GLOSSARY.md` 来取词汇并不是这个 skill:那是任何 skill 都能做到的一行习惯。这个 skill 适用于你在*改变*模型,而不只是消费它。)

## 文件结构

大多数仓库只有一个 context:

```
/
├── GLOSSARY.md
├── docs/
│   └── adr/
│       ├── 0001-event-sourced-orders.md
│       └── 0002-postgres-for-write-model.md
└── src/
```

如果根目录存在 `GLOSSARY-MAP.md`,说明仓库有多个 contexts。map 会指出每个 context 所在的位置:

```
/
├── GLOSSARY-MAP.md
├── docs/
│   └── adr/                          ← system-wide decisions
├── src/
│   ├── ordering/
│   │   ├── GLOSSARY.md
│   │   └── docs/adr/                 ← context-specific decisions
│   └── billing/
│       ├── GLOSSARY.md
│       └── docs/adr/
```

懒创建文件:只在你有东西要写时才创建。如果不存在 `GLOSSARY.md`,在第一个术语被确定时创建它。如果不存在 `docs/adr/`,在第一个 ADR 需要时创建它。

## 会话期间

### 用 glossary 提出质疑

当用户使用一个与 `GLOSSARY.md` 中现有语言冲突的术语时,立刻指出来。「你的 glossary 把 'cancellation' 定义为 X,但你看起来想说的是 Y。到底是哪个?」

### 打磨模糊的语言

当用户使用模糊或过载的术语时,提出一个精确的规范术语。「你说的是 'account':你指的是 Customer 还是 User?两者是不同的东西。」

### 讨论具体场景

当讨论领域关系时,用具体场景做压力测试。编造能探测 edge cases、迫使用户对概念之间的边界做到精确的场景。

### 与代码交叉核对

当用户描述某件事如何运作时,检查代码是否一致。如果发现矛盾,就把它摆出来:「你的代码取消的是整个 Orders,但你刚才说可以部分取消。哪个才是对的?」

### 就地更新 GLOSSARY.md

当一个术语被确定时,就地更新 `GLOSSARY.md`。不要攒起来:随时发生随时记录。使用 [GLOSSARY-FORMAT.md](./GLOSSARY-FORMAT.md) 中的格式。

`GLOSSARY.md` 应该完全不含实现细节。不要把 `GLOSSARY.md` 当作 spec、草稿本或实现决策的仓库。它只是一个 glossary,仅此而已。

### 审慎地提供 ADRs

只有以下三条全部成立时才主动提出创建 ADR:

1. **Hard to reverse**:日后改变主意的代价是实质性的
2. **Surprising without context**:未来的读者会疑惑"他们为什么这样做?"
3. **The result of a real trade-off**:存在真正的备选方案,而你基于特定理由选了一个

三条缺一,就跳过 ADR。使用 [ADR-FORMAT.md](./ADR-FORMAT.md) 中的格式。

From toRolex/rolex-skills, MIT.

More from toRolex/rolex-skills

Signals

Stars
1
Forks
0
Open issues
1
Last commit (this folder)
Oct 1, 2026 (28 days ago)
Last release
Oct 1, 2026 (28 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from toRolex

Cite this page

domain-modeling skill. Agent Mart. https://agentmart.dev/skills/torolex-domain-modeling (last updated 2026-10-24)