domain-model
Skill2 starsChanged 3 months agoMITView on GitHub
Build and sharpen the project's LIVING domain model — a ubiquitous-language glossary (CONTEXT.md) plus architectural decision records (docs/adr/). Actively challenge fuzzy terms, stress-test relationships with edge-case scenarios, cross-check against code, and write the glossary and decisions down the moment they crystallize. A shared language makes the agent terse, names code consistently, and is easier to navigate next session. TRIGGER when: the user wants to pin down terminology / a ubiquitous language, record an architectural decision, resolve a naming conflict, OR another skill (analyst, grill, tdd) needs the domain model actively maintained — not merely read. DO NOT TRIGGER when: a skill only needs to *read* the glossary for vocabulary (that's a one-line habit any skill does, not this skill) — this skill is for *changing* the model.
11 other projects use a version of this, 4 of them edited.
Adopted by
Most recently taken up by
- thoughtbot/rails-consultanttheir own version, first seen Nov 8, 2026
- mariomile/builder-ostheir own version, first seen Nov 1, 2026
- evelan-de/claude-code-pluginsedited, first seen Oct 17, 2026
- stevepolitodesign/skillstheir own version, first seen Oct 14, 2026
- tslateman/skillstheir own version, first seen Oct 11, 2026
- joelhooks/joelclawedited, first seen Oct 8, 2026
Other versions11 projects use a version of this.
Word for word · 0
None found.
Edited · 4
- ayoubben18/ab-method★ 19223% same
- joelhooks/joelclaw★ 6523% same
- evelan-de/claude-code-plugins★ 329% same
- witi-projects/Skills★ 223% same
Wrote their own version · 7
- thoughtbot/rails-consultant★ 29same name
- stevepolitodesign/skills★ 10same name
- mariomile/builder-os★ 2same name
- tslateman/skills★ 1same name
- zyphr-labs/bounty-harness★ 1same name
- ltatarev/skills★ 0same name
- ryktara/Foundry★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository48 other files it gives its agents.
- analystSkill
- api-designSkill
- arch-healthSkill
- audit-qualitySkill
- audit-securitySkill
- bootstrapSkill
- clean-mvpSkill
- close-epicSkill
- codebase-designSkill
- code-reviewSkill
- decomposeSkill
- deploySkill
- depsSkill
- diagnoseSkill
- discoverSkill
- distillSkill
- epic-statusSkill
- grillSkill
- grill-with-docsSkill
- handoffSkill
- ideaSkill
- implementSkill
- incidentSkill
- onboardSkill
- perfSkill
- preflightSkill
- prepareSkill
- prompt-masterSkill
- prototypeSkill
- refactorSkill
- retroSkill
- revisitSkill
- rolloutSkill
- scaffoldSkill
- select-techSkill
- spikeSkill
- sweepSkill
- tddSkill
- teardownSkill
- testSkill
- test-specSkill
- threat-modelSkill
- to-issuesSkill
- to-prdSkill
- triageSkill
- update-kitSkill
- which-skillSkill
- writing-skillsSkill
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 4 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 10 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 36
Read .claude/PROJECT.md → Domain (the seed vocabulary and roles) and Architecture (so terms map to real modules).
- Very specific: line 64
Create files lazily: Don't scaffold empty docs.
- Distinctive: line 71
Run these continuously while designing — this is a background discipline, not a phase you finish.
- Very specific: line 74
When the user uses a term that conflicts with the existing language in CONTEXT.md, call it out immediately.
- Very specific: line 78
When the user uses a vague or overloaded term, propose a precise canonical one.
- Distinctive: line 85
When a relationship is being discussed, stress-test it with a specific scenario that probes the boundary.
- Very specific: line 90
When the user states how something works, check whether the code agrees (Grep/Glob/Read).
- Distinctive: line 107
After the session, report:
- Distinctive: line 121
One model per context; rename the slices: When one word carries the whole domain — the class everything hangs off, its fields and status …
- Very specific: line 128
Lazy files: No empty CONTEXT.md/docs/adr/ — create on first real content.
“Common” is measured: kept by at least 6 in 10 of the 10 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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 crystallize. (Merely reading CONTEXT.md for vocabulary is a
one-line habit any skill does — that is not this skill. This skill is for when you are changing
the model.)
Why it matters: at the start of a project the developer and the domain experts speak different languages, and the agent is dropped in to guess the jargon — so it uses 20 words where 1 would do. A shared language fixes that. The same precise term flows into conversation, variable names, file names, and tests; the codebase gets easier to navigate; the agent spends fewer tokens thinking.
Phase 0 — Load profile & locate the model
- Read
.claude/PROJECT.md→ Domain (the seed vocabulary and roles) and Architecture (so terms map to real modules). IfPROJECT.mdis missing or stillTEMPLATE, you can still run (lean on the rootCLAUDE.mdif it carries the facts) — but tell the user/bootstrapwill wire the glossary location into the profile. - Locate the model files (lazily created — see below):
CONTEXT.md— the glossary, at the repo root (or the path named inPROJECT.md→ Domain). If aCONTEXT-MAP.mdexists at the root, the repo has multiple bounded contexts; the map points to where eachCONTEXT.mdlives.docs/adr/NNNN-<slug>.md— architectural decision records (or the ADR location named inPROJECT.md).
File structure
Most repos have a single context:
/
├── CONTEXT.md ← the ubiquitous-language glossary
├── docs/adr/
│ ├── 0001-event-sourced-orders.md
│ └── 0002-postgres-for-write-model.md
└── src/Multi-context repos add a root CONTEXT-MAP.md and put a CONTEXT.md (and optional
context-specific docs/adr/) inside each context directory. Default to a single CONTEXT.md —
introduce the map only when contexts genuinely diverge.
Create files lazily. Don't scaffold empty docs. Create CONTEXT.md when the first term is
resolved; create docs/adr/ when the first decision needs recording.
During the session
Run these continuously while designing — this is a background discipline, not a phase you finish.
Challenge against the glossary
When the user uses a term that conflicts with the existing language in CONTEXT.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 a vague or overloaded term, propose a precise canonical one. "You're saying
'account' — do you mean the Customer or the User? Those are different things." Pick one term per
concept and an _Avoid_ list of the synonyms it replaces.
A word that names both a kind and one of its instances (a Product that is also the catalogue
entry) is the same error a level up — split the kind from its instances before any hierarchy.
Discuss concrete scenarios
When a relationship is being discussed, stress-test it with a specific scenario that probes the boundary. "A lesson moves to a different section mid-course — does its materialized path change?" Edge cases are where fuzzy models break; force precision there.
Cross-reference with code
When the user states how something works, check whether the code agrees (Grep/Glob/Read). If you find a contradiction, surface it: "Your code cancels entire Orders, but you just said partial cancellation is possible — which is right?"
Write it down inline
The moment a term or decision crystallizes, write it — don't defer to an "update docs" step that never happens:
- New/changed term → update
CONTEXT.mdper CONTEXT-FORMAT.md. - A decision with trade-offs that future readers will question → write an ADR per
ADR-FORMAT.md. For drafting a longer ADR, delegate to the
docs-writeragent, then review it yourself before it lands — the agent never commits; if ADRs are the committed category (profile → Artifact git policy), hand the user the commit command to run.
Output
After the session, report:
- Glossary changes — terms added/changed/retired in
CONTEXT.md(with the_Avoid_synonyms). - ADRs written —
docs/adr/NNNN-<slug>.mdpaths and their one-line decisions. - Open ambiguities — terms still unresolved, flagged for the user (mirror the "Flagged
ambiguities" section in
CONTEXT.md).
Hard rules
- Write inline, not later. Capture each term/decision the moment it's settled; an unrecorded model decays back into jargon.
- One term per concept. Canonical term +
_Avoid_synonyms. Consistency is the whole payoff. - One model per context; rename the slices. When one word carries the whole domain — the class
everything hangs off, its fields and status enum drawn from four concerns — the fix is not one
definition wide enough to cover them all. Give each context its own model with only the fields
its rules need, and rename each to what it is there: fulfilment sees a
Ticket, the courier side aDelivery. The name is the test — a slice you cannot name on its own is not a separate context, and collapses back. Record the price under Relationships: those models must now be kept consistent with each other. - Lazy files. No empty
CONTEXT.md/docs/adr/— create on first real content. - Don't touch app code. This skill writes
CONTEXT.mdand ADRs only; renaming code to match the glossary is/refactor's job. - Ground in code. A glossary term that contradicts the codebase is a bug in one of them — surface it, don't paper over it.
See also
/grill&/grill-with-docs— a grilling session is where most terms crystallize; run this skill alongside it to capture them. (/analystalso feeds terms here.)/codebase-design— its glossary (Module/Seam/Adapter…) is the design vocabulary; this is the domain vocabulary. Both keep the language tight.- CONTEXT-FORMAT.md · ADR-FORMAT.md — the two formats.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

