What problem does it solve? Spring Boot codebases often accumulate architectural drift: fat controllers, entities leaking into API contracts, unclear transaction boundaries, and inconsistent error responses. This Skill enforces a consistent, reviewable architecture for every new REST endpoint or change to controllers, services, mappers, validation, and error handling. ## Core Features & Use Cases - Layered Architecture Enforcement: Defines clear boundaries between REST controllers, transport objects, application services, aggregate services, domain models, mappers, and repositories, with rules for what may cross each boundary. - RFC 9457 Error Contract: Provides a single error catalog pattern with ProblemDetail responses, contention handling (409 vs 503 with Retry-After), and correct delegation of security denials to the filter chain. - Transaction and Idempotency Guidance: Establishes where the transaction boundary sits, the two service levels, after-commit external effects, and single-phase versus two-phase idempotency claim shapes. - Use Case: When adding a new REST endpoint to a Spring Boot 3 or 4 project, use this Skill to place each type in the right layer, wire the transaction boundary correctly, and produce a contract-compliant error response. ## Quick Start Ask the AI to implement a new REST endpoint for your Spring Boot project following the spring-boot-patterns architecture rules.