Skip to content
Agentmart
Submit a tool

domain-modeling

构建并磨利项目的领域模型。在讨论代码库术语、编写或编辑 CONTEXT.md,或记录或编辑 ADR 时使用。

Skill by shenjunjian

IndexedMIT
Write a review

Chalk Labs

Need help deploying domain-modeling?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

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/shenjunjian-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

构建并磨利项目的领域模型。在讨论代码库术语、编写或编辑 CONTEXT.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
构建并磨利项目的领域模型。在讨论代码库术语、编写或编辑 CONTEXT.md,或记录或编辑 ADR 时使用。
License
MIT
Instructions
71 lines in SKILL.md · view on GitHub

Files (4)

  • ADR-FORMAT.md
  • CONTEXT-FORMAT.md
  • SKILL.md
  • openai.yaml · agents/

SKILL.md (first lines)

# 领域建模

在设计时主动构建并磨利项目的领域模型。这是 *主动* 纪律 — 挑战术语、发明边界情形场景,并在词汇和决策刚结晶的那一刻写下来。(仅仅 *阅读* `CONTEXT.md` 拿词汇不是本 skill — 那是任何 skill 都能做的一行习惯。本 skill 用于你在改变模型,而不仅仅是消费它的时候。)

## 文件结构

大多数仓库只有一个 context:

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

若根目录存在 `CONTEXT-MAP.md`,仓库有多个 context。地图指向每一个所在之处:

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

惰性创建文件 — 只有当你有东西可写时才建。若没有 `CONTEXT.md`,在第一个术语敲定时创建。若没有 `docs/adr/`,在需要第一份 ADR 时创建。

## 会话期间

### 对照词汇表提出挑战

当用户使用的术语与 `CONTEXT.md` 中的既有语言冲突时,立刻指出来。「你的词汇表把『cancellation』定义为 X,但你似乎指的是 Y — 到底是哪个?」

### 磨利模糊语言

当用户使用含糊或过载的术语时,提出一个精确的规范术语。「你在说『account』 — 你指的是 Customer 还是 User?那是两件不同的事。」

### 讨论具体场景

当正在讨论领域关系时,用具体场景给它们加压。发明探测边界情形的场景,迫使对概念之间的边界说精确。

### 与代码交叉对照

当用户陈述某事如何运作时,检查代码是否同意。若发现矛盾,摊开来:「你的代码取消的是整张 Order,但你刚才说部分取消是可能的 — 哪个对?」

### 当场更新 CONTEXT.md

当一个术语敲定时,立刻更新 `CONTEXT.md`。不要攒着批处理 — 发生时就捕获。使用 [CONTEXT-FORMAT.md](./CONTEXT-FORMAT.md) 中的格式。

`CONTEXT.md` 应完全不含实现细节。不要把 `CONTEXT.md` 当 spec、草稿本或实现决策的仓库。它是词汇表,别无其他。

### 吝啬地提供 ADR

只有以下三点全部为真时,才提议创建 ADR:

1. **难以逆转** — 以后改主意的成本是有意义的
2. **没有 context 会令人惊讶** — 未来的读者会纳闷「他们为什么这样做?」
3. **真实权衡的结果** — 存在真正的备选,你出于具体理由选了其中一个

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

From shenjunjian/matt-skill-cn, MIT.

More from shenjunjian/matt-skill-cn

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Aug 14, 2026 (2 months ago)

From GitHub (fetched Oct 24, 2026).

Details

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

More from shenjunjian

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get domain-modeling running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying domain-modeling?

CallGet help
Cite this page

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