What problem does it solve?
This Skill automates the boilerplate creation of DDD-compatible entities, including a factory method, domain events, value objects scaffolding, and EF Core configuration, reducing repetitive coding and ensuring architectural consistency.
Core Features & Use Cases
- Auto-generates a complete entity skeleton under Merge.Domain/{Module}/Entities/{Entity}.cs
- Enforces a Create factory method for controlled instantiation and emits a CreatedEvent
- Adds domain events for lifecycle changes (Created, Updated, Deactivated) and a ById specification
- Generates EF Core configuration under Merge.Infrastructure/Data/Configurations/{Entity}Configuration.cs
- Useful when introducing new domain models or refactoring existing aggregates
Quick Start
Provide the entity name and required fields to generate the complete DDD entity, including its factory, domain events, specification, and EF configuration. The generated files will be placed in Merge.Domain and Merge.Infrastructure under the appropriate module and can be migrated with EF Core migrations.