What problem does it solve?
This Skill eliminates inconsistent domain layer implementation in the rust-ddd-book-manager project by enforcing the repository's established DDD conventions, ensuring domain purity and proper layer separation between crates.
Core Features & Use Cases
- Pattern-Aligned Implementation: Guides you to add or modify aggregates, value objects, entities, and repository traits that exactly match the existing book and user aggregate patterns used in the project.
- Rule Enforcement: Automatically enforces core DDD rules including separation of persistence hydration and input validation, encapsulation of state changes within entities, and mandatory audit/permission checks for all entity updates.
- Use Case: When adding a new book reservation aggregate to the project, this Skill ensures the implementation follows all existing domain conventions without introducing forbidden cross-crate dependencies.
Quick Start
Use the domain-layer skill to implement a new book checkout event aggregate in the domain crate that adheres to the repository's existing entity and value object patterns.