ddd-domain-model-first
Installation
SKILL.md
Domain Model First Development
Start with domain behavior you can test without infrastructure. Add delivery and persistence after the model earns them.
Workflow
-
Write domain examples as tests using ubiquitous language.
-
Implement value objects, entities, aggregates, and domain services until the domain tests pass.
-
Add in-memory repositories for use-case tests.
-
Implement use cases as application orchestration over aggregate roots and ports.
-
Add infrastructure adapters last and verify they satisfy the same port contracts.
Rules
- Do not let ORM annotations or API DTOs define the domain model.