Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

domain-modeling

FreeRuns bundled scriptsNot checked

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…

borgheiby borghei★ 1,250 GitHub stars

About 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.md and docs/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]

  1. Gather material: a design-session transcript, recent tickets, and the code paths for the area.

  2. 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 text
    
  3. Triage 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, pause and suspension are two concepts that need two entries; membership is an alias of Subscription.

  4. Read the "never used" list: those terms are stale or called something else in practice.

  5. Draft new entries with status proposed and 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]

  1. Start from assets/GLOSSARY-template.md: one ### Term block per concept with Definition, Avoid, Owner, Related, Status.

  2. Definitions say what the thing is in at most two sentences. No tables, columns, classes or endpoints.

  3. Each alias appears under exactly one term, and never matches another canonical term.

  4. 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 json
    
  5. The scan splits identifiers, so clientId and memberships.renew count 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

Full SKILL.md on GitHub

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
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

Bundled files

assets/GLOSSARY-template.mdassets/adr-template.mdassets/sample_GLOSSARY.mdassets/sample_adr_set.jsonassets/sample_conversation.txtassets/sample_feature_notes.mdreferences/decision-records.mdreferences/glossary-practice.mdscripts/adr_lint.pyscripts/glossary_lint.pyscripts/term_extract.py

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

Compare domain-modeling with