Install any skill in seconds. Free to start, no credit card required.
Get Started Free →wondelai/domain-driven-design
Model software around the business domain using bounded contexts, aggregates, and ubiquitous language.
Passed 21 of 22 test cases with the skill, and 17 of 22 without it.
and 2 more in the full report
4 fixed17 passed either way1 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 4 test cases the skill fixed. Same model, same prompt, with and without the skill.
Two engineering teams building the Reservation context and Billing context in a hotel booking system need to share a common `MonetaryAmount` and `DateRange` concept. Neither team wants an Anti-Corruption Layer interface between them for these simple shared types. What context mapping pattern describes a small, explicitly governed model shared between two consenting teams?
| Checked | Without skill | With skill |
|---|---|---|
| identifies the shared kernel pattern | Passed | Passed |
| advises keeping the shared model minimal and explicitly governed | Missed | Passed |
The instructions your model reads when the skill loads.
Framework for tackling software complexity by modeling code around the business domain. The greatest risk in software is not technical failure -- it is building a model that does not reflect how the business actually works.
The model is the code; the code is the model. Software should embody a deep, shared understanding of the business domain. When domain experts and developers speak the same language and that language is directly expressed in the codebase, complexity becomes manageable and the system evolves gracefully as the business changes.
Goal: 10/10. Score a domain model by awarding 1 point per satisfied row of the Quick Diagnostic (7 rows) plus up to 3 points for depth: +1 if the Core Domain has a genuinely rich model (not just CRUD), +1 if invariants live inside aggregates rather than in services, +1 if the ubiquitous language is consistent across conversation, code, and tests. Bands: 9-10 = expert-readable names, explicit context boundaries with ACLs, small aggregates, behavior-rich entities, events for cross-aggregate flow, an identified Core Domain; 5-6 = some domain language but leaky boundaries or anemic objects; <=3 = technical naming, one model for everything, logic scattered in services. Report the score and the specific diagnostic rows failing.
Core concept: A shared, rigorous language between developers and domain experts, used consistently in conversation, documentation, and code. When the language changes, the code changes -- and awkward naming in code feeds back into refining the language.
Why it works: Ambiguity is the root cause of most modeling failures. When a developer says "order" and an expert means "purchase request," bugs are inevitable; a ubiquitous language forces every name in code to map to a concept the business recognizes and validates.
Key insights:
DataProcessor vs. ClaimAdjudicator) hides domain logic from the experts who could correct itCode applications:
| Context | Pattern | Example |
|---|---|---|
| Class/method naming | Name after domain concepts and verbs | LoanApplication, policy.underwrite() -- not RequestHandler, process() |
| Module structure | Organize by domain concept | shipping/, billing/ -- not controllers/, services/ |
| Code review | Reject technical-only names | Flag Manager, Helper, Processor, Utils as naming smells |
See: references/ubiquitous-language.md when running modeling sessions or maintaining a glossary -- covers how the language evolves and feeds back into code.
Core concept: A bounded context is an explicit boundary within which a particular domain model applies. The same word ("Customer") can mean different things in different contexts; context maps define the relationships and translation strategies between them.
test cases passed, vs 17 / 22 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.