domain-driven-design
/domain-driven-design
Apply DDD pragmatically: bounded contexts, ubiquitous language, and aggregates sized to invariants. Use when modeling a complex domain or when code and business people describe the same thing differently.
- Author
- Amey-Thakur ↗
- Repository
- AI-SKILLS ↗
- Licence
- MIT
- Last repository change
- 05.09.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 05.09.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Apply DDD pragmatically: bounded contexts, ubiquitous language, and aggregates sized to invariants. Use when modeling a complex domain or when code and business people describe the same thing differently.
Original author description
Apply DDD pragmatically: bounded contexts, ubiquitous language, and aggregates sized to invariants. Use when modeling a complex domain or when code and business people describe the same thing differently.
How it works
- Method
- Boundaries
SKILL.md preview
---
name: domain-driven-design
description: "Apply DDD pragmatically: bounded contexts, ubiquitous language, and aggregates sized to invariants. Use when modeling a complex domain or when code and business people describe the same thing differently."
---
# Domain-driven design
DDD's durable core is small: name things the way the business names
them, draw boundaries where the language changes meaning, and cluster
data around the rules that must stay consistent. The tactical
machinery is optional; the strategic modeling is where the value is.
## Method
1. **Build a ubiquitous language, and use it everywhere.**
The terms the domain experts use become the terms in
code, APIs, and conversation: no translation layer
between "what the business calls it" and "what the class
is named" (see naming-things). When a developer says
"record" and the expert says "policy" for the same
thing, bugs breed in the gap; close it by adopting the
expert's word in the code.
2. **Find bounded contexts where the language shifts.** The
same word means different things in different parts of
the business ("customer" in sales vs support vs
billing): each coherent meaning is a bounded context
with its own model, and the boundaries between contexts
are exactly where you draw module or service lines (see
microservices-boundaries, monolith-first). One universal
model for the whole enterprise is the anti-pattern:
it satisfies no context fully.
3. **Map the relationships between contexts.** How contexts
integrate (shared events, published APIs, an
anti-corruption layer translating another context's
model into yours: see event-driven-architecture,
api-gateway-pattern) and the power dynamics (upstream/
downstream): a context map makes the system's real
structure visible and prevents one context's model from
silently corrupting another's.
4. **Size aggregates around invariants.** An aggregate is
the cluster of objects that must stay consistent
together, with one entry point (the root); it is the
transactional and consistency boundary (see
event-sourcing, transactions-isolation). Keep aggregates
small: a huge aggregate is a lock-contention and
scaling problem, and cross-aggregate consistency is
eventual (via events/sagas: see saga-pattern), so put
only the truly-must-be-atomic together.
5. **Reach for tactical patterns only when they pay.**
Entities (identity over time), value objects (immutable,
compared by value: see python-dataclasses' twin),
domain events, repositories, domain services: use the
ones that clarify, skip the ceremony that does not.
Rich domain models (behavior with the data) beat
anemic ones (data structs plus a service doing
everything) for genuinely complex logic; for CRUD, the
simple approach wins (see premature-abstraction).
6. **Model collaboratively, iterate on it.** The domain
model comes from conversations with domain experts
(event storming, examples: see customer-interviews'
listening ethic applied internally), not from a
developer guessing; and it evolves as understanding
deepens. A model handed down once and frozen drifts
from the business it was meant to capture.
## Boundaries
- DDD's cost is justified by domain complexity; for
simple or generic domains (a standard CRUD app, a thin
integration) the full apparatus is overhead, and
ubiquitous language plus sensible modules suffice.
- Tactical patterns without strategic design (aggregates
and repositories over a model with no bounded contexts
or shared language) is cargo-cult DDD: the ceremony
without the insight.
- Bounded contexts inform but do not dictate service
boundaries; a context can be a module in a monolith
(see monolith-first) before it is ever a service.
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · Amey-Thakur/AI-SKILLS | 100 | MIT |
| kookr-ai/kookr | 100 | Apache-2.0 |
| yonatangross/orchestkit | 100 | MIT |
| yonatangross/orchestkit | 100 | MIT |
| joeblackwaslike/agent-skills | 100 | MIT |
| rrezartprebreza/spring-boot-skills | 100 | MIT |
| rrezartprebreza/spring-boot-skills | 100 | MIT |
| reddygopalkrishna/developer-agent-skills | 100 | MIT |
| bdfinst/agentic-dev-team | 100 | MIT |
Database snapshot: 13.11.2026 · package version 0f73f975e6c3 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 2 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100domain-modeling
Domain-Driven Design: aggregates, bounded contexts, ubiquitous language, value objects, domain events, repository pattern, anti-corruption layer. When to use DDD vs simple CRUD. Entity vs value object distinction. TypeScript implementations with invariant enforcement. Use when… - 90ddd
Coach strategic and tactical domain-driven design for a model, a spec, or a legacy system. Use for /ddd, or when subdomains, bounded contexts, ubiquitous language, aggregates, or domain events decide the design. - 100ddd-architect
Comprehensive Domain-Driven Design analysis and architecture generation — use when designing bounded contexts, defining aggregates, creating context maps, or decomposing systems into microservices or modular monolith. Triggers: DDD, domain-driven design, bounded context,… - 100fai-domain-driven-design
Apply Domain-Driven Design to AI system architecture — bounded contexts, aggregates, ubiquitous language, and context maps. Use this skill when modeling a complex domain, untangling a tangled codebase, or aligning teams on boundaries — even if the user only says "how should we… - 100ddd
Domain-Driven Design patterns. Bounded contexts, aggregates, entities, value objects, domain events, repositories, and application services. Strategic and tactical DDD for complex business domains. USE WHEN: user mentions "DDD", "Domain-Driven Design", "bounded context",… - 100domain-modeling
Use when the code's vocabulary does not match the business's. Establishes a ubiquitous language, models domain concepts as explicit types, and identifies bounded contexts. Trigger on "we call it a customer here and an account there", "this model is used by everything", "what are…