What problem does it solve?
This skill helps teams detect when domain concepts are ambiguous, overloaded, or growing brittle, and provides systematic guidance to decompose, type, and validate those concepts so design and implementation remain maintainable and correct.
Core Features & Use Cases
- Context boundary discovery: techniques to enumerate actors, clarify actor goals, and split concepts when the same term has different meanings across actors.
- Reconstruction & refactor tactics: signatures for spotting fat models, flag-driven state, and stamp-coupling and steps to split types into discriminated unions and value objects.
- Aggregate and service guidance: heuristics for aggregate boundaries, lock-competition tests, modifiedEntities pattern, and recommendations for domain service purity (DDD Trilemma).
- Use case: apply when adding a new feature that blurs actor responsibilities, when boolean flags proliferate, or when spec tables show combinatorial complexity.
Quick Start
Use the domain-modeling skill to analyze a feature spec, identify context boundaries, and propose domain types, aggregates, and validation rules.