What problem does it solve?
Developers often struggle to correctly model business concepts in Rust code, deciding between entities, value objects, aggregates, and ensuring invariants and ownership are properly handled.
Core Features & Use Cases
- Guidance Mapping: Directly maps domain concepts (Entity, Value Object, Aggregate, Repository, Domain Event, Service) to appropriate Rust patterns with ownership implications.
- Thinking Prompts: Provides structured questions to assess identity, invariants, and ownership before coding.
- Template Examples: Supplies ready-to-use Rust snippets for value objects, entities, and aggregates, helping enforce encapsulation and validation.
- Traceability: Shows how to trace domain decisions up to business rules and down to concrete implementation steps.
Quick Start
Use the m09-domain skill to design a Rust struct for a new Domain Entity, specifying its ID type and validation rules.