domain-modeling
Skill2 starsChanged 2 months agoMITView on GitHub
Build and sharpen a project's domain vocabulary and durable decisions - challenge terms, resolve them into a CONTEXT.md glossary, and record ADRs only for decisions that are hard to reverse, surprising without context, and the result of a real trade-off. Use when the user wants to model domain language - defining, unifying, or recording domain terms - when writing or editing a CONTEXT.md, or when recording or editing an ADR.
195 other projects use a version of this, 147 of them edited.
Adopted by
Most recently taken up by
- anorth/agent-skillsedited, first seen Nov 8, 2026
- chrysogonus/power-agentsedited, first seen Nov 8, 2026
- The-Vibe-Company/quivredited, first seen Nov 8, 2026
- AJschoons/robowrightedited, first seen Nov 8, 2026
- tornikegomareli/Skillsedited, first seen Nov 8, 2026
- miklschmidt/archboardedited, first seen Nov 8, 2026
Used with
Projects with it also use setup-ts-deep-modules, decision-mapping and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
liufeng1976Skillsetup-ts-deep-modules
Wire dependency-cruiser into a TypeScript repo so each package is a deep module — implementation hidden in subfolders, reachable only through its entry-point files. User-invoked.
Also in 43 projects that use this
FabienDehopreSkilldecision-mapping
Turn a loose idea into a sequenced map of investigation tickets, then drive them to resolution one at a time.
Also in 8 projects that use this
LesaniSkillwriting-beats
Shape an article as a journey of beats, choose-your-own-adventure style. The user picks a starting beat from the raw material, you write only that beat, then offer options for where to pivot next, beat by beat, until the article reaches a natural end. Use when the user has raw material and wants to assemble it as a narrative rather than an argument.
Also in 62 projects that use this
RoentekSkillloop-me
Grill me about specs for the workflows I want to build, within this workspace.
Also in 56 projects that use this
AWSSkillwizard
Generate an interactive bash wizard that walks a human through steps only they can perform. Use when provisioning infrastructure, setting up credentials or CI secrets, walking an unfamiliar third-party dashboard, or running a one-off migration or cutover. Don't invoke this for steps the agent can perform itself.
Also in 134 projects that use this
LesaniSkillwriting-shape
Take a markdown file of raw material and shape it into an article through a conversational session — drafting candidate openings, growing the piece paragraph by paragraph, arguing about format (lists, tables, callouts, quotes) at each step. Use when the user has a pile of notes, fragments, or a rough draft and wants help turning it into something publishable.
Also in 60 projects that use this
- +1 more from Lesani
Other versions195 projects use a version of this.
Word for word · 0
None found.
Edited · 147
- mattpocock/skills★ 309k22% same
- QuivrHQ/quivr★ 40k24% same
- The-Vibe-Company/quivr★ 40k24% same
- windmill-labs/windmill★ 18k19% same
- GreyDGL/PentestGPT★ 16k22% same
- formbricks/formbricks★ 13k22% same
- ArcReel/ArcReel★ 6.3k22% same
- withcoral/coral★ 4.9k22% same
- bestofjs/bestofjs★ 3.1k22% same
- CelestoAI/SmolVM★ 1.2k22% same
137 more not listed
Wrote their own version · 48
- vinvcn/mattpocock-skills-zh-CN★ 5.5ksame name
- rohitg00/pro-workflow★ 2.9ksame name
- stevesolun/ctx★ 583same name
- devcxl/mattpocock-skills-zh★ 522same name
- Mathews-Tom/armory★ 340same name
- proflead/codex-skills-library★ 153same name
- etr/groundwork★ 45same name
- nimadorostkar/Claude-Skills-collection★ 33same name
- WenWuZhiDao/mattpocock-skills-zh★ 27same name
- oribarilan/97★ 25same name
38 more not listed
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 repository25 other files it gives its agents.
- AGENTS.mdAGENTS.md
- humanizer-zhSkill
- backend-patternsSkill
- frontend-patternsSkill
- security-reviewSkill
- fastapiSkill
- python-projectSkill
- ts-backendSkill
- ts-frontendSkill
- readmeSkill
- codebase-designSkill
- code-reviewSkill
- coding-standardsSkill
- fixSkill
- grillingSkill
- living-docs-governanceSkill
- planSkill
- prototypeSkill
- publish-ticketsSkill
- resilienceSkill
- session-handoffSkill
- specSkill
- systematic-debuggingSkill
- tddSkill
- verificationSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. 1 is common, 8 are distinctive, and 8 are very specific to this project.
1
Common
Most of the 183 edited versions we read keep these.
8
Distinctive
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 24
Create files lazily — only when there is something to write.
- Very specific: line 28
create or edit the applicable CONTEXT.md.
- Very specific: line 29
create or edit the applicable CONTEXT-MAP.md, but only to add, rename, or relocate a context — and only after the user approves that …
- Very specific: line 30
create or edit files under the applicable docs/adr/.
- Common: line 39
When the user uses a term that conflicts with the glossary, call it out immediately: "Your glossary defines this as X, but you seem to mean …
- Distinctive: line 40
When a term is vague or overloaded, propose a precise canonical term rather than accepting the fuzz.
- Distinctive: line 41
When domain relationships are discussed, stress-test them with concrete edge-case scenarios that force the boundaries between concepts to …
- Distinctive: line 42
When the user states how something works, check whether the code agrees.
- Very specific: line 48
Update the applicable CONTEXT.md inline when a term is resolved — do not batch glossary updates.
- Very specific: line 50
Keep CONTEXT.md a glossary and nothing else: no implementation details, no task status, no specifications, no plans, no session notes.
- Very specific: line 62
If any of the three is missing, skip the ADR.
- Distinctive: line 68
When the conversation ends or hands off, report:
- Very specific: line 84
Never write implementation details, task status, or specifications into CONTEXT.md.
- Distinctive: line 85
Never create an ADR that fails any part of the three-part gate, or that the user has not confirmed.
- Distinctive: line 86
Never touch paths outside the declared glossary, map, and ADR targets.
- Very specific: line 87
When an existing CONTEXT.md contains non-glossary content, do not delete it on your own initiative — flag it and ask.
- Distinctive: line 88
Never resolve a domain conflict by redefining the term inside a spec or plan — resolve it here first, then let the owning stage consume the …
“Common” is measured: kept by at least 6 in 10 of the 183 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: challenge terms, invent edge-case scenarios, and write the glossary and decisions down the moment they crystallize. Reading CONTEXT.md for vocabulary is not this skill — that is a one-line habit any skill can do. This skill is for changing the model, not consuming it.
Domain modeling changes the model only: glossary terms and ADRs. Requirements, sequencing, and implementation are separate stages with their own skills when loaded (spec, plan, tdd); do not draft those artifacts here.
File targets and allowed mutations
Single-context repo (the default):
/
├── CONTEXT.md ← the glossary
└── docs/adr/ ← durable decisionsMultiple contexts: if a CONTEXT-MAP.md exists at the root, it points to where each context's glossary and ADRs live. Infer which context the current topic belongs to; ask when unclear.
Create files lazily — only when there is something to write.
The allowed worktree mutations, and no others:
- create or edit the applicable
CONTEXT.md; - create or edit the applicable
CONTEXT-MAP.md, but only to add, rename, or relocate a context — and only after the user approves that structural change; - create or edit files under the applicable
docs/adr/; - reverse your own edits to these paths when a decision changes mid-session.
Any other change — source code, specs, plans, tests, configuration, or other people's content inside these files — is out of scope. When the discussion surfaces such work, name it for its owning stage and stop.
Workflow
1. Challenge the language
- When the user uses a term that conflicts with the glossary, call it out immediately: "Your glossary defines this as X, but you seem to mean Y. Which is it?"
- When a term is vague or overloaded, propose a precise canonical term rather than accepting the fuzz.
- When domain relationships are discussed, stress-test them with concrete edge-case scenarios that force the boundaries between concepts to be stated.
- When the user states how something works, check whether the code agrees; surface the contradiction instead of recording it as truth.
Completion criterion: every term in play is either already canonical, sharpened to a single meaning, or explicitly unresolved.
2. Record vocabulary the moment it resolves
Update the applicable CONTEXT.md inline when a term is resolved — do not batch glossary updates. Use Context Format.
Keep CONTEXT.md a glossary and nothing else: no implementation details, no task status, no specifications, no plans, no session notes. Include only terms specific to this project's domain; general programming concepts do not belong.
Completion criterion: each resolved term has a glossary entry with a tight definition and its avoided synonyms.
3. Offer ADRs sparingly
Offer to create an ADR only when all three are true:
- Hard to reverse — the cost of changing course later is meaningful;
- Surprising without context — a future reader will wonder why it was done this way;
- The result of a real trade-off — genuine alternatives existed and one was picked for specific reasons.
If any of the three is missing, skip the ADR. Use ADR Format and sequential numbering under the applicable docs/adr/. A decision the user has not confirmed is not a decision: put it to them and wait.
Completion criterion: every recorded ADR passes the three-part gate, and ADR candidates that fail it are simply dropped.
4. Report the mutations in a handoff
When the conversation ends or hands off, report:
Producer: domain-modeling (domain language)
Glossary mutations: <files created or edited, terms added or sharpened>
ADR mutations: <files created or edited, decisions recorded, numbering used>
Unresolved terms: <terms still in conflict or fuzzy, with the open question>
Out of scope: <spec, plan, or code work the discussion surfaced, named for its owning stage>Return the handoff and stop. Later domain changes invalidate affected entries and ADRs: supersede an ADR explicitly (status or successor link), never silently.
Completion criterion: the handoff lists every file this skill touched, and nothing it did not.
Guardrails
- Never write implementation details, task status, or specifications into
CONTEXT.md. - Never create an ADR that fails any part of the three-part gate, or that the user has not confirmed.
- Never touch paths outside the declared glossary, map, and ADR targets.
- When an existing
CONTEXT.mdcontains non-glossary content, do not delete it on your own initiative — flag it and ask. - Never resolve a domain conflict by redefining the term inside a spec or plan — resolve it here first, then let the owning stage consume the canonical term.
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.

