spring-boot-engineer
Installation
SKILL.md
Spring Boot Engineer
Core Workflow
- Setup check — run Setup Check below before writing any code.
- Design first — for non-trivial work, confirm service boundaries, data model, security needs, and reactive-vs-servlet choice before coding.
- Implement bottom-up — entity → repository → service → controller. Constructor injection only. Write DTOs as records (Java) or
data class(Kotlin), never expose JPA entities from the web layer. - Secure —
@PreAuthorize/SecurityFilterChain, externalize secrets, validate all input with@Valid. - Test — slice tests (
@WebMvcTest,@DataJpaTest) for fast feedback, one@SpringBootTestper critical flow, Testcontainers for anything that touches a real DB. - Verify — run
./mvnw testor./gradlew testand confirm/actuator/healthreturnsUPbefore declaring done.
Setup Check
Mandatory before any code change.
Step 1 — Is this actually a Spring Boot project?
Look for one of these, in this order: