domain-modeler
Skill7 starsChanged 4 days agoMITView on GitHub
Builds a domain model from the code and the user's words, with a GLOSSARY.md (one name per concept) and docs/domain.md (entities, aggregates, bounded contexts). Use when asked for DDD, a ubiquitous language, a glossary, invariants or domain events.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- wamalalawrence/agent-skillstheir own version, first seen Oct 13, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- wamalalawrence/agent-skills★ 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 repository71 other files it gives its agents.
- docs/llms.txtllms.txt
- a11y-fixerSkill
- ad-copy-generatorSkill
- agent-guardrailsSkill
- agent-memory-keeperSkill
- ai-slop-detectorSkill
- api-to-sdkSkill
- app-store-optimizerSkill
- architecture-doctorSkill
- brand-voice-guideSkill
- bug-detectiveSkill
- bus-factorSkill
- changelog-from-gitSkill
- codebase-explainerSkill
- codebase-time-machineSkill
- codebase-valuationSkill
- commit-craftSkill
- commit-roastSkill
- competitor-spySkill
- content-repurposerSkill
- copy-paste-detectorSkill
- cost-cutterSkill
- dead-code-funeralSkill
- demo-recorderSkill
- dependency-doctorSkill
- dependency-weigh-inSkill
- dev-wrappedSkill
- dockerize-anythingSkill
- durable-agent-workflowsSkill
- e2e-flow-testerSkill
- email-campaign-writerSkill
- env-secrets-guardSkill
- gh-actions-auditorSkill
- github-portfolioSkill
- hook-generatorSkill
- incident-commanderSkill
- influencer-outreachSkill
- instagram-growth-managerSkill
- issue-triageSkill
- landing-page-roasterSkill
- launch-post-writerSkill
- meeting-notes-to-ticketsSkill
- merge-conflict-resolverSkill
- migration-wizardSkill
- name-checkerSkill
- plan-grillerSkill
- pre-commit-setupSkill
- prompt-injection-scannerSkill
- pr-reviewer-proSkill
- readme-glow-upSkill
- repo-cardSkill
- repo-dietSkill
- roast-my-githubSkill
- screenshot-to-componentSkill
- seo-blog-writerSkill
- skill-creator-proSkill
- skill-finderSkill
- skills-doctorSkill
- social-analytics-reporterSkill
- social-media-calendarSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 40
Use the user's words for names, not textbook ones.
- Distinctive: line 70
Ask the user what the code already shows.
≈ “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
Domain Modeler
Get the names and rules right before the code, so the code says what the business says. Ground every entry in the code and the user's words. A model nobody's code follows is decoration.
1. Decide how deep to go
Read the README, the models or schema and the feature request. If the app is forms over tables with one team and rules that fit in validators, say "DDD is overkill here", do steps 2, 3 and 5 for the glossary only, and stop. Go further when rules span several objects, one word means different things to two teams, a status field has many contested transitions, or money or concurrent edits are involved. references/domain-doc.md has the full checklist.
2. Scan the names the code already uses
python3 scripts/domain_terms.py src/ # terms, synonym groups, multi-defined names, near-duplicates
python3 scripts/domain_terms.py . --exclude 'legacy/*' --top 80
python3 scripts/domain_terms.py . --json # every declaration with file, line, kind, wordsIt reads declarations only: class, interface, type, struct, record and enum names, enum values, CREATE TABLE, CREATE TYPE ... AS ENUM, Prisma models, and table names in __tablename__, db_table, @Entity("..."), @Table(name = ...), [Table("...")] and create_table. Names are split into words, technical suffixes and prefixes are dropped (Service, Controller, Repository, Dto, Impl, Handler, Model, Entity, Request, Base, Abstract, the I of IOrderRepository), plurals become singular, and names with words like Http, Api, Json or Redis are skipped. Test folders, vendored and build folders are skipped.
Exit codes: 0 report · 1 glossary violations (with --glossary) · 2 nothing to scan or unreadable glossary.
The output is candidates, not truth. customer / client / user in one group may be one concept under three names, or three real concepts. Two Order classes may be two bounded contexts or a copy that drifted.
3. Read, then ask only what the code can't answer
For each synonym group and multi-defined term, open the declarations and compare fields, callers and the tables they map to. Same fields and same callers usually means one concept. Different fields, lifecycles or owners usually means two. Write what the code settles in a few lines ("ClientAccount and Customer share email and tax_id; billing/ calls one, checkout/ the other").
Then ask the user, one question at a time, each with a recommended answer they can accept with "yes":
Q2. checkout/models.py:20 Order has prices and a customer; fulfilment/order.go:4 Order has lines
and a warehouse, no prices. Recommend: two contexts, keep "Order" in checkout and call the
fulfilment one "PickList", because warehouse staff already say pick list. OK?Use the user's words for names, not textbook ones. Ask what a term means to the people who use it, what it is not, when one is created and when it ends, and which rules must always hold.
4. Model
Work through the tests in the reference: entity or value object (identity and lifecycle, or defined by its values), aggregates (start from an invariant, name the root that enforces it, reference other aggregates by ID), bounded contexts (where one word means different things, and who translates), and domain events (past tense, raised by the aggregate that changed, who reacts). For each invariant, say whether the code enforces it today and where (file:line), or that it doesn't.
5. Write the documents
Write GLOSSARY.md and, if you went past the glossary, docs/domain.md, in the formats in the reference. Use an existing glossary or docs folder if the repo has one. Each glossary entry has: the name as the code should spell it, a one- or two-line definition in the user's words, Not: (what it is easily confused with), Avoid: (synonyms to stop using), and where it lives in code. Then check the code against it:
python3 scripts/domain_terms.py src/ --glossary GLOSSARY.md # exit 1 lists file:line, avoided word, the term to useOffer this as a CI step if the user wants the glossary enforced. Exempt third-party or frozen names with an Allow: line, not by dropping the Avoid: word.
6. Propose renames, don't apply them
List renames as a table: current name, new name, files affected, and risk. Mark separately anything that leaves the codebase: database tables and columns (need a migration), public API fields, event names other services consume, and serialized data. Apply nothing until the user picks which renames to do.
Report
Depth chosen and why; the synonym groups and multi-defined names with your verdict and its evidence; the questions asked and the answers; the files written; the --glossary result; the rename table.
Do not
- Invent terms, rules or contexts the code and the user don't support. Mark guesses as assumptions.
- Build aggregates, repositories and event buses for a CRUD app.
- Merge two concepts because their names are synonyms, or split one because the script grouped words differently. Check fields and callers.
- Rename code, tables, API fields or events without the user choosing the renames.
- Ask the user what the code already shows.
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.

