$npx -y skills add sivaprasadreddy/sivalabs-agent-skills --skill spring-bootBuild Spring Boot 4.x applications following the best practices. Use this skill: * When developing Spring Boot applications using Spring MVC, Spring Data JPA, Spring Modulith, Spring Security * To create recommended Spring Boot package structure * To implement REST APIs, entities
| 1 | # Spring Boot Skill |
| 2 | |
| 3 | Apply the practices below when developing Spring Boot applications. Read the linked reference only when working on that area. |
| 4 | |
| 5 | ## Maven pom.xml Configuration |
| 6 | |
| 7 | Read [references/spring-boot-maven-config.md](references/spring-boot-maven-config.md) for Maven `pom.xml` configuration with supporting plugins and configurations to improve code quality, and testing. |
| 8 | |
| 9 | ## Package structure |
| 10 | |
| 11 | Read [references/code-organization.md](references/code-organization.md) for domain-driven, module-based package layout and naming conventions. |
| 12 | |
| 13 | ## Spring Data JPA |
| 14 | |
| 15 | Implement the repository and entity layer using [references/spring-data-jpa.md](references/spring-data-jpa.md). |
| 16 | |
| 17 | ## Service layer |
| 18 | |
| 19 | Implement business logic in the service layer using [references/spring-service-layer.md](references/spring-service-layer.md). |
| 20 | |
| 21 | ## Spring MVC REST APIs |
| 22 | |
| 23 | Implement REST APIs with Spring MVC using [references/spring-webmvc-rest-api.md](references/spring-webmvc-rest-api.md). |
| 24 | |
| 25 | ## Spring Modulith |
| 26 | |
| 27 | Build a modular monolith with Spring Modulith using [references/spring-modulith.md](references/spring-modulith.md). |
| 28 | |
| 29 | ## Thymeleaf |
| 30 | |
| 31 | If Thymeleaf is used for view templates, refer [references/thymeleaf.md](references/thymeleaf.md) |
| 32 | |
| 33 | ## REST API Testing |
| 34 | |
| 35 | If building a REST API using Spring WebMVC, test Spring Boot REST APIs using [references/spring-boot-rest-api-testing.md](references/spring-boot-rest-api-testing.md). |
| 36 | |
| 37 | ### Web App Controller Testing |
| 38 | If building a web application using view rendering controllers, test the controller layer using [references/spring-boot-webapp-testing-with-mockmvctester.md](references/spring-boot-webapp-testing-with-mockmvctester.md). |
| 39 | |
| 40 | ### Write ArchUnit Tests |
| 41 | To write tests for testing the architecture using ArchUnit, refer [references/archunit.md](references/archunit.md) |
| 42 | |
| 43 | ### Spring Boot Docker Compose Support |
| 44 | To use Docker Compose support for local development, refer [references/spring-boot-docker-compose.md](references/spring-boot-docker-compose.md). |
| 45 | |
| 46 | ## Taskfile |
| 47 | |
| 48 | Use [references/taskfile.md](references/taskfile.md) for easier commands execution. |