What problem does it solve?
This Skill eliminates the risk of inconsistent, boilerplate-heavy infrastructure layer code in Rust DDD projects by enforcing repository-specific patterns for persistence, database mapping, and SeaORM integration, reducing debugging time and architectural drift.
Core Features & Use Cases
- Standardized Repository & Query Service Implementation: Guides consistent creation of SeaORM-backed repository and query service traits that align with domain and application layer contracts, including proper error handling and transaction management.
- Consistent Database Mapping & Macro Usage: Enforces standard patterns for row/aggregate conversion, audit data hydration, upsert operations, and configuration management to avoid ad-hoc, hard-to-maintain database code.
- Use Case: For example, when adding a new book checkout persistence feature, this Skill ensures you follow existing ConnectionPool injection, log_db_error handling, and transaction boundary rules without deviating from project standards.
Quick Start
Use the infrastructure-layer skill to implement a new BookRepository that follows the project's existing SeaORM, transaction, and audit macro patterns.