ddd-tactical
Domain-Driven Design (DDD): Tactical Building Blocks & Review
Tactical DDD focuses on the technical implementation of rich domain models within a single Bounded Context.
"The heart of DDD is the Domain Model itself." — Martin Fowler.
🧱 Key Building Blocks (Mandatory Review)
- Aggregate Root (AR): The cluster entry point. Only the AR should be referenced from outside.
- Value Object (VO): Immutable, identity-less objects defined by state (e.g.,
Money,Email). Always prefer VOs over primitives. - Domain Event: A record of something significant that happened in the domain (e.g.,
OrderPaid).
⭐ Domain Model Scoring Rubric (0-10)
Rate your domain design based on these criteria:
- Immutability (2 pts): Are Value Objects used correctly instead of primitives?
- Invariants (2 pts): Does the Aggregate Root enforce business rules before any state change?
- Encapsulation (2 pts): Are internal aggregate parts hidden from the outside?
More from kinhluan/skills
scheduling-algorithms
Job scheduling algorithms for parallel and distributed systems
7ddd-core
Professional Strategic Domain-Driven Design (DDD) Hub. Use this skill for Event Storming, identifying Subdomains, defining Bounded Contexts, and mapping Domain Models to the heart of your architecture.
6c4-level3-component
Specialized in Component diagrams (Level 3) with folder structure mapping. Use this skill when the user needs to zoom into a single container to identify internal components, their responsibilities, and how they map to actual code folders (src/services, internal/).
6security-analysis
Security vulnerability analysis and auditing procedures
6docker-containerization
Docker containerization best practices and patterns
6ddd-patterns
Advanced Domain-Driven Design (DDD) Integration Patterns. Use this skill for implementing CQRS, Event Sourcing, the Outbox Pattern, and Anti-Corruption Layers (ACL) in distributed systems.
6