What problem does it solve?
Designing correct consistency boundaries (aggregates) for domain-driven design is error-prone, requiring careful analysis of command conflicts, locking requirements, and edge cases like time-range overlaps or transitivity that can lead to over- or under-scoped locking units and concurrency bugs.
Core Features & Use Cases
- Guided Step-by-Step Workflow: Walks designers through command extraction, pairwise conflict analysis, boundary decisions, and locking strategy selection with targeted questions at each phase.
- Edge Case Detection: Automatically surfaces common pitfalls like time-range conflict traps, parameter-dependent conflicts, and transitivity requirements that are easy to miss in manual design.
- Use Case: A team building a resource booking system can use this wizard to correctly define per-room or per-slot aggregates, avoid unnecessary locking of non-overlapping reservations, and select the right optimistic or pessimistic locking strategy based on expected traffic volume.
Quick Start
Invoke the aggregate-designer skill to guide you through designing consistency units for your domain, starting with extracting all state-changing commands and analyzing their concurrent conflict risks.