跳到主要内容
知仓学习社ZHICANG

domain-modeling

Build the project's shared language and bounded contexts before writing code, so names stay consistent and the agent stops paraphrasing domain conce…

不碰外部(只输出文字)无严重或高危命中rohitg00/pro-workflow

它会碰到什么

扫了多少1 个文本文件,3 KB
它会碰到什么不碰外部(只输出文字)
命中总数0 处
命中统计严重 0 · 高 0 · 中 0 · 低 0

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

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.

  1. 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.

  1. 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.

  1. 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.

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。

它属于哪个仓库

星标★ 2,870
本站分层T1
该仓技能数41
原文件路径skills/domain-modeling/SKILL.md

同一个仓库里的其他技能

看这个仓库的全部 41 个技能