spring-service
Implements the service layer of a use case (UC-XXX) in a Spring Boot application: @Service classes with constructor injection, @Transactional boundaries, the business rules with UC-XXX BR-YYY markers, domain exceptions for every rejection the API or UI turns into a message, and Bean Validation on the inputs. Calls the persistence layer only through the repository or port its Handover names, and supports both a flat single module and a hexagonal multi-module layout (domain record, business service, outbound port). Use when the user asks to "implement the service layer", "write the business logic", "enforce the business rules", "create a Spring service", "add transactions", or mentions @Service, @Transactional, domain exceptions, or the business module of a hexagonal Spring Boot project. Normally run by /use-case-implement after the persistence layer; it can also be run directly.
Pinned to revision dbb4e27b6d25, so it is the text this page describes rather than whatever the author pushed since.
Files
- skills/spring-service/SKILL.md
- skills/spring-service/references/layer.md
- skills/spring-service/references/markers.md
- skills/spring-service/references/module-layout.md
Every link opens the file at its source, pinned to the revision this page describes.