What problem does it solve?
This Skill implements tactical Domain-Driven Design by translating a product manager's glossary and the architect's bounded contexts into behavior-rich, testable domain model code that enforces business invariants instead of creating anemic data containers.
Core Features & Use Cases
- Aggregate and VO Design: Design small, behaviorful aggregates and immutable value objects with domain-named guards and errors.
- Domain Events & Repository Ports: Define past-tense domain events and domain-owned repository ports while keeping infrastructure implementations separate.
- TDD-driven Implementation: Drive implementation via vertical-slice red-green-refactor tests that read like business specs and conform to existing project conventions.
- Use Case: Use when converting a PM glossary into executable domain code, implementing Phase 3 tactics delegated by an orchestrator, or when integrating new domain behavior into an existing codebase without introducing new frameworks.
Quick Start
Ask the ddd-developer to explore the repository, detect the language and test framework, grill the aggregate boundaries, and produce one red-green-refactor test plus the minimal domain code to satisfy it.