Agent Skillsrohitg00/pro-workflow › domain-modeling

domain-modeling

GitHub

在项目初期或领域术语混乱时,通过提取、定义术语并划分限界上下文,生成CONTEXT.md词表和决策记录,统一代码与对话语言,消除歧义。

skills/domain-modeling/SKILL.md rohitg00/pro-workflow

Trigger Scenarios

项目启动或新功能开发初期 代码库与描述者使用不同术语体系 遇到无法明确定义的领域概念

Install

npx skills add rohitg00/pro-workflow --skill domain-modeling -g -y
More Options

Use without installing

npx skills use rohitg00/pro-workflow@domain-modeling

指定 Agent (Claude Code)

npx skills add rohitg00/pro-workflow --skill domain-modeling -a claude-code -g -y

安装 repo 全部 skill

npx skills add rohitg00/pro-workflow --all -g -y

预览 repo 内 skill

npx skills add rohitg00/pro-workflow --list

SKILL.md

Frontmatter
{
    "name": "domain-modeling",
    "description": "Build the project's shared language and bounded contexts before writing code, so names stay consistent and the agent stops paraphrasing domain concepts. Produces a CONTEXT.md glossary and decision records. Use at the start of a project or feature, or when the codebase and the people describing it speak different languages.",
    "user-invocable": true
}

domain-modeling

Most misbuilds start as a language gap: the agent is dropped into a project and left to infer the jargon, so it uses twenty words where the domain has one. A shared language closes the gap. When code, conversation, and the model all draw from the same vocabulary, names line up, navigation gets cheaper, and the model spends fewer tokens reasoning because it has a tighter language to reason in.

Method

  1. Harvest the terms. From the request, the codebase, and the user's own words, list the nouns and verbs that carry domain meaning - the concepts a newcomer would have to ask about. Prefer the user's word over a synonym you like better.
  2. Pin each one. Write a one-line definition in the project's own language, not a dictionary definition. If two terms blur together, force the distinction or collapse them - ambiguity here becomes inconsistent names in code.
  3. Draw the boundaries. Where the same word means different things in different parts of the system, that is a boundary. Name each context and note which terms belong to it. A term that means two things is two terms.
  4. Record the hard calls. When a modeling choice was contested or will be questioned later, write a short decision record: context, choice, alternatives rejected, why.

Outputs

  • CONTEXT.md - the shared-language glossary. One term per line: term - what it means in this project. Grouped by bounded context when there is more than one. Point every future session at this file. On re-run, add new terms and update definitions that changed; do not rewrite the file wholesale.
  • Bounded-context sketch - the contexts and which terms live in each, short enough to read in fifteen seconds.
  • Decision records in docs/decisions/NNNN-slug.md for the contested modeling calls only. Read the directory first and number from the highest existing record so two records never collide. Skip the obvious ones.

Guardrails

  • The glossary is for the model as much as the human - write it to be loaded, not framed on a wall.
  • Do not invent terms the project does not use. Reflect the domain; do not rename it.
  • Keep it small and current. A glossary that lists everything and updates nothing is worse than none. Prune terms that fall out of use.

Where it fits

Run this before plan-interrogate on a new area, or let plan-interrogate call back here when it hits terms it cannot pin. The CONTEXT.md this produces is the same file plan-interrogate emits - one shared-language artifact, two ways in.

Version History

  • 7f7209d Current 2026-07-24 11:40

Same Skill Collection

skills/agent-teams/SKILL.md
skills/auto-setup/SKILL.md
skills/batch-orchestration/SKILL.md
skills/bug-capture/SKILL.md
skills/compact-guard/SKILL.md
skills/context-engineering/SKILL.md
skills/context-optimizer/SKILL.md
skills/cost-tracker/SKILL.md
skills/design-engineering/SKILL.md
skills/deslop/SKILL.md
skills/file-watcher/SKILL.md
skills/improve-architecture/SKILL.md
skills/insights/SKILL.md
skills/learn-rule/SKILL.md
skills/llm-council/SKILL.md
skills/llm-gate/SKILL.md
skills/mcp-audit/SKILL.md
skills/orchestrate/SKILL.md
skills/parallel-worktrees/SKILL.md
skills/permission-tuner/SKILL.md
skills/plan-interrogate/SKILL.md
skills/replay-learnings/SKILL.md
skills/safe-mode/SKILL.md
skills/session-handoff/SKILL.md
skills/skill-router/SKILL.md
skills/smart-commit/SKILL.md
skills/sprint-status/SKILL.md
skills/tdd/SKILL.md
skills/thoroughness-scoring/SKILL.md
skills/token-efficiency/SKILL.md
skills/wiki-builder/SKILL.md
skills/wiki-query/SKILL.md
skills/wiki-research-loop/SKILL.md
skills/wiki-viewer/SKILL.md
skills/wrap-up/SKILL.md
skills/writing-guidelines/SKILL.md
skills/pro-workflow/SKILL.md
skills/skill-optimizer/SKILL.md
skills/survey-generator/SKILL.md

Metadata

Files
0
Version
7f7209d
Hash
0e9ba07d
Indexed
2026-07-24 11:40

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-06 19:36
浙ICP备14020137号-1 $방문자$