domain-modeling
FreeRuns bundled scriptsNot checkedKeep a project glossary of domain terms and lightweight decision records, and catch banned synonyms in docs and code. Use when terms are used inconsistently…
by borghei★ 1,250 GitHub starsAbout this skill
Domain Modeling
Shared language is the cheapest defect prevention there is. This skill keeps two
small artefacts: a GLOSSARY.md where every domain term has one name, one
definition in business language, the synonyms to avoid and an owner who settles
disputes; and a folder of short decision records for choices that are costly to
reverse, surprising later and the result of a real trade-off. Its tools pull
candidate terms out of conversations and code, lint the glossary, find banned
synonyms in docs and identifiers, and keep decision records numbered and linked.
When to use this skill
- The same thing has three names across code, docs, tickets and support macros
- A design conversation keeps stalling on what a word means ("account" — the payer or the login?)
- Starting a GLOSSARY.md for a project or a bounded part of a system
- A decision was just made that a newcomer would otherwise undo
- Onboarding — new people need the vocabulary before the code makes sense
- Before naming a new module, table or API resource, to use the agreed term
Inputs the skill expects
- Material that carries the language: meeting transcripts, design notes, tickets, code paths
- The existing
GLOSSARY.mdanddocs/adr/if present - Who owns which terms (roles that can settle a meaning)
- Whether the system has one context or several where the same word means different things
Clarify First
What most shapes the output is whether the language is being created, repaired or checked, and who has authority over it. Settle the inputs below before producing anything. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.
- One context or several: if a word legitimately means two things in two parts of the system, forcing one definition causes the bugs this skill exists to prevent.
- Term owners: a proposed term without an owner stays proposed forever; the owner decides synonym fights.
- Source material: transcripts and support tickets surface customer language and aliases; code surfaces engineering names — the extraction differs.
- Decision threshold: which choices the team wants recorded; default is the three-part test (costly to reverse, surprising, real trade-off).
Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.
Quick Start
# Lint the sample glossary and find banned aliases in a feature note
python3 engineering/domain-modeling/scripts/glossary_lint.py \
--glossary engineering/domain-modeling/assets/sample_GLOSSARY.md \
--scan engineering/domain-modeling/assets/sample_feature_notes.md
# Lint the sample decision records and get the next file name
python3 engineering/domain-modeling/scripts/adr_lint.py \
--input engineering/domain-modeling/assets/sample_adr_set.json \
--next-title "Publish events for billing"
Workflows
Workflow 1 — Extract terms from conversations and code [RECOMMENDED]
Gather material: a design-session transcript, recent tickets, and the code paths for the area.
Run the extractor against the current glossary (or none, for a first pass):
python3 engineering/domain-modeling/scripts/term_extract.py \ --paths engineering/domain-modeling/assets/sample_conversation.txt \ --glossary engineering/domain-modeling/assets/sample_GLOSSARY.md --format textTriage each new candidate: add as a term, add as an alias of an existing term, split (one word, two concepts), or ignore. In the sample,
pauseandsuspensionare two concepts that need two entries;membershipis an alias of Subscription.Read the "never used" list: those terms are stale or called something else in practice.
Draft new entries with status
proposedand ask each owner to confirm.
Exit code 1 means new candidates exist and need a decision — useful as a periodic review prompt, not a merge gate.
Workflow 2 — Write and lint the glossary [PROVEN]
Start from
assets/GLOSSARY-template.md: one### Termblock per concept with Definition, Avoid, Owner, Related, Status.Definitions say what the thing is in at most two sentences. No tables, columns, classes or endpoints.
Each alias appears under exactly one term, and never matches another canonical term.
Lint it, then scan docs and code for the aliases you just banned:
python3 engineering/domain-modeling/scripts/glossary_lint.py \ --glossary engineering/domain-modeling/assets/sample_GLOSSARY.md \ --scan engineering/domain-modeling/assets/sample_feature_notes.md --format jsonThe scan splits identifiers, so
clientIdandmemberships.renewcount as uses of "client" and "membership". Fix docs now; rename identifiers when the files are next touched.
Validation checkpoint: the lint reports no errors, every term ha
Install domain-modeling in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
FAQ
What does the domain-modeling skill do?
Keep a project glossary of domain terms and lightweight decision records, and catch banned synonyms in docs and code. Use when terms are used inconsistently, writing a GLOSSARY.md, or recording a design decision.
How do I install the domain-modeling skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the domain-modeling skill run scripts?
Yes, this skill bundles executable scripts. Review the source before installing.
Related skills
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
by Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
by Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
by Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
by Anthropic