What problem does it solve?
This Skill solves the common problem of incorrectly scoped consistency units (aggregates) in domain-driven design, which lead to either excessive locking contention that hurts system performance or insufficient locking that allows invariant violations in concurrent environments.
Core Features & Use Cases
- Guided Step-by-Step Workflow: Walks users through 9 structured phases from command extraction to final locking strategy, handling edge cases like time-range conflict traps and transitivity of command conflicts.
- Conflict Analysis & Boundary Optimization: Generates pairwise conflict matrices to identify which commands must be locked together, and uses business process sequencing and volume probes to avoid over-locking non-conflicting commands.
- Use Case: A team building a hotel booking system can use this wizard to correctly decide whether to use per-room aggregates (for low traffic) or per-time-slot aggregates (for high traffic) to avoid unnecessary lock contention between non-overlapping reservations.
Quick Start
Invoke the aggregate-designer skill and provide your domain's list of state-changing commands to start the guided aggregate design process.