model-domain
Skill1 starsChanged 19 days agoMITView on GitHub
Use when a task designs, models or specifies a domain that has rules. Finds the bounded contexts first, then the aggregates, value objects and events, and writes a Domain model block. Triggers: domain model, ddd, bounded context, aggregate
2 other projects use a version of this.
Adopted by
Most recently taken up by
- danielvm-git/bigpowerstheir own version, first seen Nov 6, 2026
- shady2k/skillstheir own version, first seen Oct 11, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- danielvm-git/bigpowers★ 297same name
- shady2k/skills★ 6same 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 repository36 other files it gives its agents.
- AGENTS.mdAGENTS.md
- apply-architectureSkill
- assess-threatsSkill
- bootstrapSkill
- chart-routeSkill
- clarify-intentSkill
- code-reviewSkill
- domain-glossarySkill
- improve-agentsSkill
- investigate-bugSkill
- learnSkill
- make-diagramSkill
- migrate-dataSkill
- plan-workSkill
- profile-performanceSkill
- recover-workSkill
- releaseSkill
- review-blast-radiusSkill
- review-specSkill
- review-standardsSkill
- setup-dkstackSkill
- setup-editorconfigSkill
- setup-labelsSkill
- setup-quality-gatesSkill
- setup-repo-protectionSkill
- setup-supply-chainSkill
- setup-versioningSkill
- start-issueSkill
- tdd-loopSkill
- triageSkill
- ui-designSkill
- ui-reviewSkill
- verify-claimSkill
- write-adrSkill
- write-prSkill
- writing-checkSkill
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 10 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use when you design or specify a domain.
- Very specific: line 13
Run domain-glossary. Read CONTEXT.md and use its terms.
- Distinctive: line 15
Write the context map for the contexts that the task touches.
- Distinctive: line 19
Write the Domain model block.
- Distinctive: line 20
When a boundary is hard to reverse and meets the ADR test, use write-adr.
- Distinctive: line 22
Do steps 3 and 4 before steps 5 to 7.
- Very specific: line 34
Write none for a part that the task does not need.
- Distinctive: line 38
If you can start subagents, use one code reader to map the model that exists, before step 3.
- Distinctive: line 45
Start each subagent with the setting below.
- Distinctive: line 51
If you cannot start subagents, do the steps one at a time in the order of this skill.
- Distinctive: line 55
Do not add a repository, a factory or another pattern that the page does not give.
- Distinctive: line 56
Do not put the model in code before the owner agrees on the contexts.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Model domain
Use when you design or specify a domain. A person or an agent can start this skill. It applies domain modeling. Do not copy that page. It runs domain-glossary as a building block.
Steps
- Decide whether to model. Skip this skill for a CRUD change. Skip this skill for a change that uses the model and does not change it. Then only
domain-glossaryapplies. Follow the when to model rules. - Run
domain-glossary. ReadCONTEXT.mdand use its terms. If a term has two meanings, ask the owner. - Find the bounded contexts that the task touches. The owner decides each boundary.
- Write the context map for the contexts that the task touches. For each relation, name the upstream context, the downstream context and where the data is translated.
- For each context, find the aggregates. State the invariants of each aggregate and its root.
- Find the value objects and the rules that each one checks.
- Find the domain events. Name each in the past tense.
- Write the Domain model block. Put the block in the issue.
- When a boundary is hard to reverse and meets the ADR test, use write-adr.
Do steps 3 and 4 before steps 5 to 7. Do not model an aggregate before you know its context.
Domain model
## Domain model
Contexts: <the contexts that the task touches, and the relation of each pair>
Aggregates: <each aggregate, its root and its invariants>
Value objects: <each value object and its rules>
Events: <each event, who raises it and who receives it>Write none for a part that the task does not need.
Subagents
If you can start subagents, use one code reader to map the model that exists, before step 3. The reader does not draw boundaries or write the block. Give it a brief that is complete without your context:
- The task, and the paths where the domain code is.
- What to report: the contexts, aggregates, value objects and events that the code has now, each with file and line. Also each place where one word has two meanings.
- A word limit, for example 400 words.
- This line: "Report to me only. Do not change files, commit, push, post, approve or merge."
Start each subagent with the setting below. The subagent guide maps each tier to a model.
- Code reader: tier medium, effort medium.
The report is a claim. Check each file and line that you use. The owner decides each boundary.
If you cannot start subagents, do the steps one at a time in the order of this skill.
Boundaries
- Do not add a repository, a factory or another pattern that the page does not give. See yagni.md.
- Do not put the model in code before the owner agrees on the contexts.
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.

