Модель предметной области
Уточняет язык предметной области по ходу проектирования: оспаривает размытые и противоречивые термины, сразу пишет согласованные в GLOSSARY.md и предлагает короткий ADR лишь для трудно обратимых решений. Для случаев, когда обсуждают термины или пишут ADR.
domain-modeling- Автор
- Matt Pocock
- Источник
- mattpocock/skills/skills/engineering/domain-modeling @ abeeaf9
- Лицензия
- MIT · Copyright (c) 2026 Matt Pocock
Об этом скилле
Что делает
Скилл следит, чтобы язык проекта оставался точным, пока вы проектируете. Агент замечает слово, которое расходится с GLOSSARY.md («в глоссарии отмена — это X, а вы, похоже, имеете в виду Y»), спрашивает, какое понятие стоит за размытым словом («аккаунт» — это Customer или User?), придумывает пограничные случаи, чтобы найти, где кончается одно понятие и начинается другое, и сверяет ваши утверждения с кодом. Каждый согласованный термин сразу попадает в GLOSSARY.md, а не пачкой в конце. В глоссарии только определения — ни деталей реализации, ни спецификации, ни черновых заметок.
ADR скилл предлагает, только если решение трудно отменить, без контекста оно удивит и за ним стоит настоящий выбор между вариантами; не хватает хоть одного условия — ADR не будет. Файлы создаются, только когда в них есть что записать. В репозитории с несколькими контекстами в корне лежит GLOSSARY-MAP.md, который указывает на глоссарий и docs/adr/ каждого контекста.
GLOSSARY-FORMAT.md задаёт формат статьи — термин жирным, определение в одно-два предложения, строка _Avoid_: с отвергнутыми синонимами, только термины этого проекта — и устройство GLOSSARY-MAP.md. ADR-FORMAT.md задаёт формат ADR: docs/adr/0001-slug.md, заголовок и одно-три предложения, по желанию статус, варианты и последствия, и список того, что стоит записывать, — от технологий, которые потом трудно заменить, до ограничений, которых не видно в коде. agents/openai.yaml — название и описание для Codex.
Когда включать и когда не надо
Когда обсуждаете терминологию, когда в разговоре о дизайне или разборе задачи договариваетесь, что значат слова, и когда пишете статью глоссария или ADR.
Просто прочитать GLOSSARY.md ради словаря — это не этот скилл, так сказано в самом SKILL.md. Обычную документацию и README он не пишет.
Как поставить и вызвать
Команда установки ниже кладёт всю папку. Агент сам подхватывает скилл по описанию, когда речь идёт о терминах или ADR. Вызвать вручную:
- Claude Code:
/domain-modelingили попросить скилл по имени. - Codex:
$domain-modeling. - Cursor: наберите
/в чате Agent и выберитеdomain-modeling.
Пример: /domain-modeling «Аккаунтом» у нас называют и логин, и компанию-плательщика. Разведи термины и обнови GLOSSARY.md.
triage, wayfinder и improve-codebase-architecture вызывают его вместе с grilling, а tdd, to-spec, to-tickets и diagnosing-bugs опираются на глоссарий и ADR, которые он пишет.
Чем отличается от похожих
Запись архитектурного решения (ADR) из нашего каталога по запросу пишет полный ADR: контекст, решение, не меньше двух вариантов, последствия, статус и дату. Документация и ADR охватывает ещё комментарии, документацию API, README, changelog и отставание документации от кода. Здесь ADR — абзац и побочный продукт, который предлагается только после проверки тремя условиями; главный результат — глоссарий, а его ни один из тех скиллов не ведёт.
Установка
Выполните одну команду — она сохранит SKILL.md и файлы, которые он использует, в папку скиллов агента. Claude Code и Codex подхватывают новый скилл без перезапуска; если скилл не появился, перезапустите агента.
Скилл написан на английском — агент поймёт его и ответит вам по-русски.
curl -fsSL --create-dirs -o ~/.claude/skills/domain-modeling/SKILL.md https://anymodel.org/en/skills/matt-pocock/domain-modeling/SKILL.md -o ~/.claude/skills/domain-modeling/ADR-FORMAT.md https://anymodel.org/en/skills/matt-pocock/domain-modeling/ADR-FORMAT.md -o ~/.claude/skills/domain-modeling/GLOSSARY-FORMAT.md https://anymodel.org/en/skills/matt-pocock/domain-modeling/GLOSSARY-FORMAT.md -o ~/.claude/skills/domain-modeling/LICENSE https://anymodel.org/en/skills/matt-pocock/domain-modeling/LICENSE -o ~/.claude/skills/domain-modeling/agents/openai.yaml https://anymodel.org/en/skills/matt-pocock/domain-modeling/agents/openai.yaml
curl -fsSL --create-dirs -o ~/.agents/skills/domain-modeling/SKILL.md https://anymodel.org/en/skills/matt-pocock/domain-modeling/SKILL.md -o ~/.agents/skills/domain-modeling/ADR-FORMAT.md https://anymodel.org/en/skills/matt-pocock/domain-modeling/ADR-FORMAT.md -o ~/.agents/skills/domain-modeling/GLOSSARY-FORMAT.md https://anymodel.org/en/skills/matt-pocock/domain-modeling/GLOSSARY-FORMAT.md -o ~/.agents/skills/domain-modeling/LICENSE https://anymodel.org/en/skills/matt-pocock/domain-modeling/LICENSE -o ~/.agents/skills/domain-modeling/agents/openai.yaml https://anymodel.org/en/skills/matt-pocock/domain-modeling/agents/openai.yaml
foreach ($f in 'SKILL.md','ADR-FORMAT.md','GLOSSARY-FORMAT.md','LICENSE','agents/openai.yaml') { $p = Join-Path "$HOME\.claude\skills\domain-modeling" $f; New-Item -ItemType Directory -Force (Split-Path $p) | Out-Null; Invoke-WebRequest "https://anymodel.org/en/skills/matt-pocock/domain-modeling/$f" -UseBasicParsing -OutFile $p }foreach ($f in 'SKILL.md','ADR-FORMAT.md','GLOSSARY-FORMAT.md','LICENSE','agents/openai.yaml') { $p = Join-Path "$HOME\.agents\skills\domain-modeling" $f; New-Item -ItemType Directory -Force (Split-Path $p) | Out-Null; Invoke-WebRequest "https://anymodel.org/en/skills/matt-pocock/domain-modeling/$f" -UseBasicParsing -OutFile $p }Другой агент: сохраните файл в его папку скиллов или дайте ему ссылку на файл: https://anymodel.org/en/skills/matt-pocock/domain-modeling/SKILL.md
SKILL.md
Domain Modeling
Actively build and sharpen the project's domain model as you design. This is the active discipline: challenging terms, inventing edge-case scenarios, and writing the glossary and decisions down the moment they crystallise. (Merely reading GLOSSARY.md for vocabulary is not this skill: that's a one-line habit any skill can do. This skill is for when you're changing the model, not just consuming it.)
File structure
Most repos have a single context:
/
├── GLOSSARY.md
├── docs/
│ └── adr/
│ ├── 0001-event-sourced-orders.md
│ └── 0002-postgres-for-write-model.md
└── src/
If a GLOSSARY-MAP.md exists at the root, the repo has multiple contexts. The map points to where each one lives:
/
├── GLOSSARY-MAP.md
├── docs/
│ └── adr/ ← system-wide decisions
├── src/
│ ├── ordering/
│ │ ├── GLOSSARY.md
│ │ └── docs/adr/ ← context-specific decisions
│ └── billing/
│ ├── GLOSSARY.md
│ └── docs/adr/
Create files lazily: only when you have something to write. If no GLOSSARY.md exists, create one when the first term is resolved. If no docs/adr/ exists, create it when the first ADR is needed.
During the session
Challenge against the glossary
When the user uses a term that conflicts with the existing language in GLOSSARY.md, call it out immediately. "Your glossary defines 'cancellation' as X, but you seem to mean Y. Which is it?"
Sharpen fuzzy language
When the user uses vague or overloaded terms, propose a precise canonical term. "You're saying 'account': do you mean the Customer or the User? Those are different things."
Discuss concrete scenarios
When domain relationships are being discussed, stress-test them with specific scenarios. Invent scenarios that probe edge cases and force the user to be precise about the boundaries between concepts.
Cross-reference with code
When the user states how something works, check whether the code agrees. If you find a contradiction, surface it: "Your code cancels entire Orders, but you just said partial cancellation is possible. Which is right?"
Update GLOSSARY.md inline
When a term is resolved, update GLOSSARY.md right there. Don't batch these up: capture them as they happen. Use the format in GLOSSARY-FORMAT.md.
GLOSSARY.md should be totally devoid of implementation details. Do not treat GLOSSARY.md as a spec, a scratch pad, or a repository for implementation decisions. It is a glossary and nothing else.
Offer ADRs sparingly
Only offer to create an ADR when all three are true:
- Hard to reverse: the cost of changing your mind later is meaningful
- Surprising without context: a future reader will wonder "why did they do it this way?"
- The result of a real trade-off: there were genuine alternatives and you picked one for specific reasons
If any of the three is missing, skip the ADR. Use the format in ADR-FORMAT.md.
Подключить через AnyModel API
Скилл работает на той модели, которую использует агент. Подключите Claude Code, Codex или Cursor к AnyModel и запускайте его на Claude, GPT, Gemini и других моделях по одному ключу — оплата за токены, без подписки.
AnyModel