Agent skill

Domain Modeling

by vinvcn in vinvcn/mattpocock-skills-zh-CN

构建并打磨项目的领域模型。适用于讨论 codebase 术语、编写或编辑 GLOSSARY.md,或记录或编辑 ADR。

MITAuto-check passedDevelopment

Install Domain Modeling

skills CLI
$ npx skills add vinvcn/mattpocock-skills-zh-CN --skill domain-modeling -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install vinvcn/mattpocock-skills-zh-CN domain-modeling --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/vinvcn/mattpocock-skills-zh-CN.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/engineering/domain-modeling .claude/skills/domain-modeling && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
domain-modeling
GitHub stars
4.7k
Token cost
~477 tokens
SKILL.md length
151 words
Files
4
Skills in repo
32
Repo updated
First seen
Licence
MIT

At a glance

构建并打磨项目的领域模型。适用于讨论 codebase 术语、编写或编辑 GLOSSARY.md,或记录或编辑 ADR。

  • Works in 3 steps: Hard to reverse - 之后改变主意的成本有意义 → Surprising without context - 未来读者会疑惑… → The result of a real trade-off -…
  • Tasks that involve Architecture decision records
  • SKILL.md covers 文件结构 and Session 期间
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Domain Modeling is an agent skill from vinvcn/mattpocock-skills-zh-CN. 构建并打磨项目的领域模型。适用于讨论 codebase 术语、编写或编辑 GLOSSARY.md,或记录或编辑 ADR。

Its SKILL.md is about 480 tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files (for example `ADR-FORMAT.md`, `GLOSSARY-FORMAT.md` and `agents/openai.yaml`).

It sits in Development, covering Architecture decision records and Domain-driven design. The repository describes itself as: 这是 mattpocock/skills 的简体中文本地化版本。 The licence is MIT.

When your agent uses it

  • Tasks that involve Architecture decision records
  • Tasks that involve Domain-driven design

Example prompts

  • “/domain-modeling”

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Hard to reverse - 之后改变主意的成本有意义
  2. Surprising without context - 未来读者会疑惑 "why did they do it this way?"
  3. The result of a real trade-off - 确实存在替代方案,而你基于具体理由选择了其中一个

What it can do on your machine

Read from SKILL.md and the folder at commit bf98e53. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Domain Modeling loads about 477 tokens when it runs. Until then it costs about 19 tokens; SKILL.md has 151 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~19
When it runs · the whole SKILL.md, loaded when a task matches
~477

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from vinvcn/mattpocock-skills-zh-CN at commit bf98e53, republished under its MIT licence (© vinvcn). 151 words, ~477 tokens.

Download SKILL.mdSave it as .claude/skills/domain-modeling/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
domain-modeling
description
构建并打磨项目的领域模型。适用于讨论 codebase 术语、编写或编辑 GLOSSARY.md,或记录或编辑 ADR。

领域建模

在设计过程中主动构建并打磨项目的 domain model。这是 active discipline:挑战术语、发明 edge-case scenarios,并在概念成形的当下写入 glossary 和 decisions。

文件结构

多数 repos 只有一个 context:

text
/
|- GLOSSARY.md
|- docs/
|  `- adr/
|     |- 0001-event-sourced-orders.md
|     `- 0002-postgres-for-write-model.md
`- src/

如果 root 有 GLOSSARY-MAP.md,说明 repo 有多个 contexts。map 指向每个 context 的位置:

text
/
|- GLOSSARY-MAP.md
|- docs/
|  `- adr/                          -> system-wide decisions
`- src/
   |- ordering/
   |  |- GLOSSARY.md
   |  `- docs/adr/                  -> context-specific decisions
   `- billing/
      |- GLOSSARY.md
      `- docs/adr/

按需懒创建文件:只有在有内容要写时才创建。如果没有 GLOSSARY.md,当第一个 term 被解决时创建它。如果没有 docs/adr/,当第一个 ADR 需要出现时创建它。

Session 期间

对照术语表质询

当用户使用的术语与 GLOSSARY.md 中既有语言冲突时,立即指出。"Your glossary defines 'cancellation' as X, but you seem to mean Y - which is it?"

打磨模糊用语

当用户使用模糊或过载术语时,提出一个精确的 canonical term。"You're saying 'account' - do you mean the Customer or the User? Those are different things."

讨论具体场景

讨论 domain relationships 时,用具体场景做压力测试。发明能探测 edge cases 的场景,迫使用户精确定义概念之间的 boundaries。

与代码交叉对照

当用户描述某事如何工作时,检查代码是否同意。如果发现矛盾,要指出:"Your code cancels entire Orders, but you just said partial cancellation is possible - which is right?"

就地更新 GLOSSARY.md

当一个 term 被解决时,立刻更新 GLOSSARY.md。不要批量攒到最后;随着概念出现就捕获。使用 GLOSSARY-FORMAT.md 中的格式。

GLOSSARY.md 必须完全不包含 implementation details。不要把 GLOSSARY.md 当 spec、scratch pad 或 implementation decisions 的仓库。它只是一份 glossary。

谨慎提议 ADR

只有以下三项都成立时,才提出创建 ADR:

  1. Hard to reverse - 之后改变主意的成本有意义
  2. Surprising without context - 未来读者会疑惑 "why did they do it this way?"
  3. The result of a real trade-off - 确实存在替代方案,而你基于具体理由选择了其中一个

缺少任一项就跳过 ADR。使用 ADR-FORMAT.md 中的格式。

© vinvcn, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files in skills/engineering/domain-modeling of vinvcn/mattpocock-skills-zh-CN.

  • SKILL.md
  • ADR-FORMAT.md
  • GLOSSARY-FORMAT.md
  • agents/openai.yaml

Open the folder on GitHubat commit bf98e53

Compare with similar skills

Domain Modeling next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Domain Modeling compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Domain Modeling this skillvinvcn/mattpocock-skills-zh-CN4.7k—~477Automated safety check: PassMIT
Domain Modelingbrim-borium/spotify_sdk1665 repos~806Automated safety check: PassApache-2.0
Domain Modelingdevcxl/mattpocock-skills-zh440—~412Automated safety check: PassMIT
Domain Modelingiurysza/module-graph420—~1.2kAutomated safety check: PassMIT
Expectationscitypaul/.dotfiles740—~1.2kAutomated safety check: PassCustom licence
Domain Modelingromiluz13/cc10x164—~1.8kAutomated safety check: PassMIT

Similar skills

  • Domain Modeling

    brim-borium/spotify_sdk

    Build and sharpen a project's domain model. An agent skill from brim-borium/spotify_sdk.

    166 GitHub starsUsed in 5 repos~806 tokens
    DevelopmentAuto-check passed
  • Domain Modeling

    devcxl/mattpocock-skills-zh

    构建和完善项目的领域模型。当讨论代码库术语、编写或编辑 GLOSSARY.md,或记录或编辑 ADR 时使用. An agent skill from devcxl/mattpocock-skills-zh.

    440 GitHub stars~412 tokensUpdated today
    DevelopmentAuto-check passed
  • Domain Modeling

    iurysza/module-graph

    Maintains project domain language, context maps, diagrams, and architectural decisions under ai-artifacts.

    420 GitHub stars~1.2k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Expectations

    citypaul/.dotfiles

    Decide where a learning, gotcha, or decision should live so it is not lost, and capture it there while context is fresh.

    740 GitHub stars~1.2k tokensUpdated today
    DevelopmentAuto-check passed
  • Domain Modeling

    romiluz13/cc10x

    A skill your agent uses when changing or sharpening a project's domain model: challenge terms against the glossary, sharpen fuzzy language, stress-test with edge-case scenarios, update CONTEXT.md…

    164 GitHub stars~1.8k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Domain Model

    sammcj/agentic-coding

    Actively build and sharpen a project's domain model - challenge terms against the glossary, stress-test boundaries with scenarios, cross-reference against the code, and record the glossary…

    162 GitHub stars~883 tokensUpdated today
    DevelopmentAuto-check passed

More from vinvcn/mattpocock-skills-zh-CN

All 32 skills in this repo
  • Git Guardrails Claude Code

    vinvcn/mattpocock-skills-zh-CN

    设置 Claude Code hooks,在危险 git commands(push、reset --hard、clean、branch -D 等)执行前阻止它们。适用于用户想防止破坏性 git 操作、添加 git safety hooks,或在 Claude Code 中阻止 git push/reset 时。

    4.7k GitHub stars~461 tokensUpdated today
    Auto-check passed
  • Codebase Design

    vinvcn/mattpocock-skills-zh-CN

    用于设计深模块的共享词汇。适用于用户想设计或改进模块接口、寻找深化机会、决定 seam 放在哪里、让代码更容易测试或更适合 AI 导航,或其他技能需要深模块词汇时。

    4.7k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Diagnosing Bugs

    vinvcn/mattpocock-skills-zh-CN

    面向棘手缺陷和性能回退的诊断循环。适用于用户说 “diagnose” / “debug this”,或报告某些东西 broken、throwing、failing、slow 时。

    4.7k GitHub stars~1.4k tokensUpdated today
    Auto-check passed
  • Migrate To Shoehorn

    vinvcn/mattpocock-skills-zh-CN

    将测试文件从 as 类型断言迁移到 @total-typescript/shoehorn。适用于用户提到 shoehorn、想替换测试中的 as,或需要局部测试数据时。

    4.7k GitHub stars~603 tokensUpdated today
    Auto-check passed
  • PR

    vinvcn/mattpocock-skills-zh-CN

    用于撰写 PR 正文。适用于用户要求起草、改写或改进 PR 正文,或希望 PR 更便于审阅时. An agent skill from vinvcn/mattpocock-skills-zh-CN.

    4.7k GitHub stars~729 tokensUpdated today
    Auto-check passed
  • Scaffold Exercises

    vinvcn/mattpocock-skills-zh-CN

    创建包含章节、题目、答案和讲解的练习目录结构,并确保通过 linting。适用于用户想 scaffold exercises、创建 exercise stubs,或设置新的课程章节时。

    4.7k GitHub stars~748 tokensUpdated today
    Auto-check passed

Categories

Questions about Domain Modeling

What does Domain Modeling do?

构建并打磨项目的领域模型。适用于讨论 codebase 术语、编写或编辑 GLOSSARY.md,或记录或编辑 ADR。. Domain Modeling is an agent skill from vinvcn/mattpocock-skills-zh-CN.

When should I use Domain Modeling?

Domain Modeling fits situations like: tasks that involve Architecture decision records; tasks that involve Domain-driven design.

How do I install Domain Modeling in Claude Code?

Run `npx skills add vinvcn/mattpocock-skills-zh-CN --skill domain-modeling -a claude-code`. Or copy the skill folder (skills/engineering/domain-modeling in vinvcn/mattpocock-skills-zh-CN) into .claude/skills/domain-modeling in your project. Claude Code loads it when a task matches its description.

How do I install Domain Modeling in Codex?

Run `npx skills add vinvcn/mattpocock-skills-zh-CN --skill domain-modeling -a codex`. Or copy the skill folder (skills/engineering/domain-modeling in vinvcn/mattpocock-skills-zh-CN) into .agents/skills/domain-modeling in your project. Codex loads it when a task matches its description.

Can I use Domain Modeling in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add vinvcn/mattpocock-skills-zh-CN --skill domain-modeling -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/domain-modeling, .gemini/skills/domain-modeling, .github/skills/domain-modeling and .opencode/skills/domain-modeling in your project.

What does Domain Modeling need to run?

SKILL.md names no scripts, command-line tools or credentials: Domain Modeling is instructions for the agent only.

Does Domain Modeling access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Domain Modeling safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Domain Modeling use?

Domain Modeling is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Domain Modeling use?

About 477 tokens (SKILL.md is roughly 1.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Domain Modeling?

Skills that share tags, products or a category with Domain Modeling: Domain Modeling (brim-borium/spotify_sdk, 166 stars), Domain Modeling (devcxl/mattpocock-skills-zh, 440 stars), Domain Modeling (iurysza/module-graph, 420 stars) and Expectations (citypaul/.dotfiles, 740 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Domain Modeling?

vinvcn (a GitHub user) maintains it in vinvcn/mattpocock-skills-zh-CN, which has 4,682 GitHub stars. The repository holds 32 skills in this directory. The repository was last updated on October 8, 2026.

Source: vinvcn/mattpocock-skills-zh-CN on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.