/software-design:j5ik2o-ddd-cross-aggregate-constraintsfrom software-design
Guides reasoning about cross-aggregate constraints in DDD: distinguishes true invariants from policies, detects Saga misuse, and decides on consistency models for CQRS/Event Sourcing.
Ships in software-design. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A cross-aggregate constraint is usually a requirements question before it is a technical question.
Restate the rule in business language and ask whether it must be immediately true.
If it is a true invariant, consider merging the aggregate boundary or changing the command owner.
If it is a policy, use events, reservations, or compensating actions; use a saga only for multi-step orchestration and compensation, not for synchronous existence checks.
In CQRS/ES, avoid command decisions based on stale read models unless the business accepts that staleness.
Document the inconsistency window and repair mechanism.
Same aggregate: use when the rule is a true invariant.
Reservation aggregate: use when scarce resources need temporary holds.
Policy or saga: use when the reaction can be eventual; reject saga for rules that must block the first command synchronously.
Read-model check: use only when stale decisions are acceptable.
For non-trivial implementation, review, or refactoring work, read references/details.md before giving final guidance. It contains the detailed rules, examples, smells, and migration notes that do not belong in the short invocation body.
Return the business interpretation, chosen consistency model, rejected options, and exact failure/retry behavior.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub j5ik2o/ai-tools --plugin software-design29 skills in this plugin
/j5ik2o-breach-encapsulation-namingUse when designing or reviewing domain-model accessors that expose internal state for persistence, serialization, tests, or framework integration. Applies the breachEncapsulationOf naming pattern so unavoidable getters are visibly treated as encapsulation breaches, not casual domain APIs. Trigger for getter naming conventions, persistence-only getters, serialization accessors, Tell Don't Ask pressure, or requests to prevent getter misuse./j5ik2o-clean-architectureUse only when the user explicitly asks for Clean Architecture design, implementation, or review. Applies a domain, use case, interface adapter, and infrastructure layer model, with persistence and RPC adapters outside the domain and use-case rules. Do not trigger for generic architecture advice, hexagonal architecture, onion architecture, or ordinary design review unless Clean Architecture is named./j5ik2o-cqrs-aggregate-modelingUse when CQRS changes aggregate boundaries or state shape. Helps reduce oversized command aggregates by moving read concerns to read models, keeping only command-decision state in aggregates, and using events for state transitions. Trigger for large aggregates, heavy command updates, aggregates containing query-only data, or boundary redesign during CQRS adoption.Other plugins' skills for the same job