domain-modeling · pandoscope — скилл для Claude Code: глоссарий и ADR
Скилл помогает зафиксировать термины проекта в глоссарии и записать архитектурные решения, пока вы проектируете.
npx skills add pandoscope/skills --skill domain-modeling -a claude-codeЧто делает domain-modeling
Скилл ведёт доменную модель проекта в двух местах: глоссарий в docs/glossary/ и ADR в docs/adr/. Пока вы обсуждаете устройство системы, он ловит расхождения. Сказали «отмена», а в глоссарии это слово уже занято другим смыслом — агент спросит, что вы имеете в виду. Использовали расплывчатое «аккаунт» — предложит выбрать между Customer и User.
Работает это так. Агент сверяет ваши слова с кодом и указывает на противоречия: в коде отменяется весь заказ, а вы говорите о частичной отмене. Придумывает пограничные сценарии, чтобы вы точнее провели границы между понятиями. Разобранный термин сразу уходит в отдельный файл — не откладывая на потом.
Файлы создаются по мере надобности: папка docs/glossary/ появится, когда разрешится первый термин. Формат файла рассчитан на uvx disambiguate — имя файла это слаг, первый H2 это каноническое название, ссылки между терминами строят граф зависимостей. После правок глоссарий проверяют командой uvx disambiguate --lint. Записи держат без деталей реализации: это словарь, а не спецификация. ADR скилл предлагает редко, только когда решение трудно откатить и оно родилось из реального компромисса.
Какие задачи решает
- зафиксировать единый словарь терминов проекта
- поймать расхождение между словами разработчика и кодом
- развести перегруженные понятия вроде account и customer
- записать архитектурное решение в ADR
- проверить глоссарий линтером на битые ссылки
Примеры запросов агенту
- добавь термин в глоссарий: order-line это позиция заказа
- у нас в коде отменяется весь заказ, а я говорю о частичной отмене — разберись
- запиши ADR по выбору хранилища для корзины
Как установить domain-modeling
1Через Skills CLI (Vercel)
npx skills add pandoscope/skills --skill domain-modeling -a claude-code2Вручную: положить файлы
~/.claude/skills/domain-modeling/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/domain-modeling/
1Через Skills CLI (Vercel)
npx skills add pandoscope/skills --skill domain-modeling -a codex2Вручную: положить файлы
.agents/skills/domain-modeling/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add pandoscope/skills --skill domain-modeling -a cursor2Вручную: положить файлы
.cursor/skills/domain-modeling/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install pandoscope/skills domain-modeling2Вручную: положить файлы
.github/skills/domain-modeling/SKILL.md1Через Skills CLI (Vercel)
npx skills add pandoscope/skills --skill domain-modeling -a gemini-cli2Командой платформы
gemini skills install https://github.com/pandoscope/skills --path derived/domain-modelingВручную: положить файлы
.devin/skills/domain-modeling/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add pandoscope/skills --skill domain-modeling -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о domain-modeling
Как установить domain-modeling в Claude?
Выполните npx skills add pandoscope/skills --skill domain-modeling -a claude-code. Скилл встанет в ~/.claude/skills/domain-modeling/SKILL.md.
Что делает domain-modeling?
Ведёт доменную модель проекта: глоссарий терминов в docs/glossary/ и архитектурные решения в docs/adr/. По ходу обсуждения уточняет формулировки и сверяет их с кодом.
Нужен ли uvx disambiguate?
Да, формат файлов глоссария рассчитан на uvx disambiguate, а проверка идёт командой uvx disambiguate --lint.
Исходный текст
SKILL.md · MIT
--- name: domain-modeling description: Build and sharpen a project's domain model. Use when the user wants to pin down domain terminology or a ubiquitous language, record an architectural decision, or when another skill needs to maintain the domain model. metadata.derived-from: https://github.com/mattpocock/skills/blob/391a2701dd948f94f56a39f7533f8eea9a859c87/skills/engineering/domain-modeling/SKILL.md metadata.derivation-note: Glossary output retargeted from a root CONTEXT.md to docs/glossary/ (one file per term, `uvx disambiguate` format); CONTEXT.md/CONTEXT-MAP.md file-structure section dropped; ADR mechanics delegated to the writing-adrs skill. --- # 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* the glossary 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.) The domain model lives in two places: - **Glossary** — `docs/glossary/`, one markdown file per term, in the format `uvx disambiguate` expects (see below). Never a root `CONTEXT.md`. - **Decisions** — ADRs in `docs/adr/`, per the `writing-adrs` skill. Glossary entries, ADRs, docs: written and checked with the `writing-prose` skill if available, surface `markdown` — precision and understandability must not suffer. Create files lazily — only when you have something to write. If `docs/glossary/` doesn't exist, create it when the first term is resolved. ## During the session ### Challenge against the glossary When the user uses a term that conflicts with the existing language in `docs/glossary/`, 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 the glossary inline When a term is resolved, write its glossary file right there. Don't batch these up — capture them as they happen. Glossary entries must be totally devoid of implementation details. The glossary is not 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 the three-part bar in the `writing-adrs` skill is met (hard to reverse, surprising without context, the result of a real trade-off). Format, numbering, and location also come from `writing-adrs`. ## Glossary entry format One file per term in `docs/glossary/`, consumable by `uvx disambiguate`: - **Filename is the slug**: lowercase letters, digits, single hyphens (`order-line.md` → slug `order-line`). Slugs must be unique. - **First H2 is the canonical name** (mandatory): `## Order Line`. - **Body is free-form markdown**: one or two tight sentences defining what the term IS, not what it does. When multiple words exist for the same concept, pick the best one and list the others under `_Avoid_:`. - **Cross-reference related terms** with standard markdown links by basename (`[Customer](customer.md)`) or wiki-style (`[[customer]]`). These links form the dependency graph `disambiguate` renders in topological order — a term that builds on another must link it. Example `docs/glossary/invoice.md`: ```md ## Invoice A request for payment sent to a [Customer](customer.md) after delivery. _Avoid_: Bill, payment request ``` Rules: - **Be opinionated.** One canonical term per concept; competing words go under `_Avoid_`. - **Only include terms specific to this project's context.** General programming concepts (timeouts, error types, utility patterns) don't belong even if the project uses them extensively. - Validate with `uvx disambiguate --lint` after editing.
© pandoscope · MIT · pandoscope/skills
Похожие скиллы
Всё по теме «Тексты и документация» →Сначала — domain-modeling от других авторов.