domain-driven-design
/domain-driven-design
Model software around the business domain using bounded contexts, aggregates, and ubiquitous language. Use when the user mentions "domain modeling", "bounded context", "aggregate root", "ubiquitous language", "anti-corruption layer", "context mapping", "domain events", "strategic design", "the code doesnt match the business", or "how do we split this big system". Also trigger when breaking a monolith into services, defining service boundaries, or aligning code structure with business processes. Covers entities vs value objects, domain events, and context mapping strategies. For architecture la
- Author
- FlameMida ↗
- Repository
- spec-dev ↗
- Licence
- MIT
- Last repository change
- 27.10.2026
Assessment and security
- Files in this package
- 7
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 27.10.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
Model software around the business domain using bounded contexts, aggregates, and ubiquitous language. Use when the user mentions "domain modeling", "bounded context", "aggregate root", "ubiquitous language", "anti-corruption layer", "context mapping", "domain events", "strategic design", "the code doesnt match the business", or "how do we split this big system". Also trigger when breaking a monolith into services, defining service boundaries, or aligning code structure with business processes. Covers entities vs value objects, domain events, and context mapping strategies. For architecture la
Triggers from the description
Original author description
Model software around the business domain using bounded contexts, aggregates, and ubiquitous language. Use when the user mentions "domain modeling", "bounded context", "aggregate root", "ubiquitous language", "anti-corruption layer", "context mapping", "domain events", "strategic design", "the code doesnt match the business", or "how do we split this big system". Also trigger when breaking a monolith into services, defining service boundaries, or aligning code structure with business processes. Covers entities vs value objects, domain events, and context mapping strategies. For architecture la
How it works
- Review Criteria
- Decision Routes
- Decisions That Must Be Explicit
- Review Output
SKILL.md preview
--- name: domain-driven-design description: 'Model software around the business domain using bounded contexts, aggregates, and ubiquitous language. Use when the user mentions "domain modeling", "bounded context", "aggregate root", "ubiquitous language", "anti-corruption layer", "context mapping", "domain events", "strategic design", "the code doesnt match the business", or "how do we split this big system". Also trigger when breaking a monolith into services, defining service boundaries, or aligning code structure with business processes. Covers entities vs value objects, domain events, and context mapping strategies. For architecture layers, see clean-architecture. For complexity, see software-design-philosophy.' license: MIT metadata: author: wondelai version: "1.4.0" --- # Domain-Driven Design Decisions Start from the approved spec, the project's established architecture and concrete business scenarios. These references supply decision criteria, not authority to replace an accepted design or invent domain rules. Surface a real conflict with its sources before changing the affected boundary. ## Review Criteria Review applicable business rules and observed failure paths. Report the mismatch, evidence and smallest useful change; do not assign a numerical score. Simple CRUD does not need rich entities, events, factories or extra interfaces to pass review. ## Decision Routes | Decision | What to establish | Reference | |---|---|---| | Terms and meanings | Definition, context and conflicting usage; distinguish confirmed terms from hypotheses | [Ubiquitous language](ubiquitous-language.md) | | Context boundaries | Model differences, ownership, upstream/downstream obligations and integration cost | [Bounded contexts](bounded-contexts.md) | | Entity, value object, aggregate | Identity, lifecycle, business invariants and the required consistency window | [Building blocks](building-blocks.md) | | Events and asynchronous work | Actual consumers, acceptable delay, publication failure and duplicate handling | [Domain events](domain-events.md) | | Persistence and creation | Consumer-owned interfaces, transaction ownership, creation versus reconstitution | [Repositories and factories](repositories-factories.md) | | Modeling investment | Business differentiation, rule complexity and replacement cost | [Strategic design](strategic-design.md) | | Dependency placement | Approved layer/package boundaries and the actual consumer of a port | [Architecture](../architecture/SKILL.md) | Read the relevant route when making that decision. Do not load every tutorial or add every listed pattern to each task. ## Decisions That Must Be Explicit - Identify the state that must change together, the invariant protected and what a caller observes after failure. An object having its own ID does not establish an independent transaction boundary. - When existing aggregate boundaries conflict with required atomicity, revisit the boundaries and transaction design. Do not silently weaken the requirement to eventual consistency. - Keep pure domain rules free of infrastructure types. Interface ownership follows the actual consumer and approved architecture; repositories are not universally required to live in a package named `domain`. - A test double can demonstrate local behavior but cannot prove storage constraints, transaction isolation or delivery guarantees. Name the real integration evidence needed for those claims. - Existing data and public behavior constrain refactoring. A stricter new constructor must not silently reject historical records or replay creation side effects during loading. ## Review Output For each applicable issue, provide the violated rule or scenario, current implementation evidence, impact and proposed boundary/change. State unanswered domain questions separately. Reuse approved terminology and ADR decisions; document locations and authorization follow the parent skill's shared conventions.
Files in this package (7)
- SKILL.md 4 KB
- bounded-contexts.md 3 KB
- building-blocks.md 3 KB
- domain-events.md 3 KB
- repositories-factories.md 4 KB
- strategic-design.md 2 KB
- ubiquitous-language.md 2 KB
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · FlameMida/spec-dev | 85 | 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 2bc26b5b07e8 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 1 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 95architecture-domain-driven-design
Use this skill when the user says 'DDD', 'domain-driven design', 'bounded context', 'aggregate', 'aggregate root', 'ubiquitous language', 'context map', 'anti-corruption layer', 'event storming', 'value object'. Applies strategic DDD (subdomains, bounded contexts, context maps)… - 100domain-model
Create or review a domain model — bounded contexts, entities, value objects, aggregates, domain events, relationships. Use when: domain model, bounded context, ubiquitous language, context map, domain design, domain analysis, domain events, aggregate, entities, DDD analysis. - 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… - 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-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,… - 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",…