create-unit-of-work
Installation
SKILL.md
Unit of Work Generator
Creates Unit of Work pattern infrastructure for transactional consistency across multiple aggregates.
When to Use
| Scenario | Example |
|---|---|
| Multi-aggregate transactions | Order + Payment + Inventory in single transaction |
| Batch persistence | Flush multiple entity changes at once |
| Change tracking | Detect dirty entities for selective updates |
| Domain event collection | Collect and dispatch events after successful commit |
| Repository coordination | Ensure all repositories share the same transaction |