maister:aggregate-designer

Analyze concurrent command conflicts to design domain-driven design aggregate boundaries.

40|39|Updated Apr 1, 2026
One-click install
npx skills add https://github.com/Architekt-Jutra/architekt-jutra-code --skill maister-aggregate-designer
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: maister:aggregate-designer
Source: https://github.com/Architekt-Jutra/architekt-jutra-code/tree/main/week7/6-jednostkispojnosci-demo/aggregate-designer
Command: npx skills add https://github.com/Architekt-Jutra/architekt-jutra-code --skill maister-aggregate-designer

SYSTEM DOCUMENTATION & REQUIREMENTS

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.

Frequently Asked Questions about maister:aggregate-designer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I design correct consistency boundaries for domain-driven design aggregates?▼

To design correct DDD aggregate boundaries, extract all state-changing commands and analyze their concurrent conflict risks to determine locking requirements and avoid over- or under-scoping consistency units.

How does command conflict analysis work for concurrent state-changing operations?▼

Command conflict analysis works by performing pairwise comparisons of state-changing commands to identify concurrent execution risks, surfacing edge cases like time-range overlaps and parameter-dependent conflicts that require locking.

When do I need to analyze aggregate locking strategies for booking systems?▼

You need to analyze aggregate locking strategies for booking systems when state-changing commands may execute simultaneously, requiring you to select optimistic or pessimistic locking based on expected traffic volume and concurrency patterns.

What is the best way to handle time-range conflict traps in resource scheduling aggregates?▼

The best way to handle time-range conflict traps in resource scheduling aggregates is using a guided wizard to detect edge cases automatically, ensuring you define per-room or per-slot aggregates that avoid locking non-overlapping reservations.

Can I use this aggregate design wizard for inventory management systems with high concurrency?▼

Yes, you can use this aggregate design wizard for inventory management systems with high concurrency, as it applies to workflows with simultaneously executing state-changing commands and tailors locking strategies to expected traffic volume.

Why does aggregate design require analyzing transitivity requirements and parameter-dependent conflicts?▼

Aggregate design requires analyzing transitivity requirements and parameter-dependent conflicts because missing these edge cases during manual boundary decisions can lead to concurrency bugs, incorrect locking units, and compromised system consistency.