What problem does it solve?
This skill helps domain teams implement event-sourced aggregates by providing a ready-to-use scaffold that enforces Apply methods, consistent event definitions, and Marten-ready configuration. It reduces boilerplate and ensures patterns align with the project's event-sourcing standards.
Core Features & Use Cases
- Automated aggregate scaffolding: Generate the initial aggregate record, the initial event, and the Marten configuration skeleton.
- Pattern enforcement: Ensures the Apply methods are void with a single event parameter and provides templates for subsequent events.
- Guided implementation: Walks through creating factory methods, behavior methods that return events, and unit-test scaffolding for the new aggregate.
- Use Case: A developer adds a new domain entity (e.g., Author) and uses this skill to generate the Author aggregate boilerplate, ready for event-sourcing integration.
Quick Start
Scaffold a new Author event-sourced aggregate with an AuthorCreated event and Marten configuration.