spring-boot-skill
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "spring-boot-skill" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-c42eea3a823c431946c8b0d2a23ae7c547db5c421154bf384bbe97dc1d6c2c12. Verify the upstream source and version against https://github.com/sivaprasadreddy/sivalabs-agent-skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Skill guide for building Spring Boot 4.x applications following best practices. Intended for use with Spring MVC, Spring Data JPA, Spring Modulith, and Spring Security. Covers recommended package structure, implementing REST APIs, entities/repositories and service layers, modular monolith architecture, building web views with Thymeleaf, writing tests for REST and web apps, creating ArchUnit architecture tests, configuring recommended Maven plugins and settings, using Spring Boot’s Docker Compose support for local development, and creating a Taskfile to simplify common tasks.
Introduction source: third_party · sivaprasadreddy · 0.0.1 Reference
SkillPi interpretation
- Tasks
- Apply the practices below when developing Spring Boot applications. Read the linked reference only when working on that area.
- Software, accounts and paid services
- Prefer SQL fixtures with `@Sql("classpath:/test-data.sql")` before every test method. When setting up data programmatically, prefer exposed Services or ModuleAPI classes over Repositories, `JdbcTemplate`, or `JdbcClient`. Unless absolutely necessary, avoid using `JdbcTemplate`, `JdbcClient`, or `TransactionTemplate` to execute SQL for test data setup, which couples tests to internal implementation details. Read references/test-data-setup.md when creating or changing test fixtures.
- Testing
- Not tested
Browse files
Frontmatter
name: spring-boot-skill
description: >
Build 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/repositories, service layer, modular monoliths
* To use Thymeleaf view templates for building web applications
* To write tests for REST APIs and Web applications
* To write ArchUnit tests for testing architecture
* To configure the recommended plugins and configurations to improve code quality, and testing while using Maven.
* To use Spring Boot's Docker Compose support for local development
* To create Taskfile for easier execution of common tasks while working with a Spring Boot applicationSpring Boot Skill
Apply the practices below when developing Spring Boot applications. Read the linked reference only when working on that area.
Maven pom.xml Configuration
Read references/spring-boot-maven-config.md for Maven pom.xml configuration with supporting plugins and configurations to improve code quality, and testing.
Package structure
Read references/code-organization.md for domain-driven, module-based package layout and naming conventions.
Spring Data JPA
Implement the repository and entity layer using references/spring-data-jpa.md.
Service layer
Implement business logic in the service layer using references/spring-service-layer.md.
Spring MVC REST APIs
Implement REST APIs with Spring MVC using references/spring-webmvc-rest-api.md.
Spring Modulith
Build a modular monolith with Spring Modulith using references/spring-modulith.md.
Thymeleaf
If Thymeleaf is used for view templates, refer references/thymeleaf.md
Testing
Write tests at complementary levels — unit, sliced Spring tests, and at least one end-to-end/smoke test; the levels are not either/or. Most framework-touching tests belong at the fast sliced level (@SpringBootTest(classes = …) or a slice annotation); keep full-context @SpringBootTest for a smoke test plus a request-level end-to-end. For why the levels are complementary and how to keep a large suite fast (context caching, one container for the suite), read references/testing-strategy.md.
| What you're testing | Level | Reference |
|---|---|---|
| Business/domain logic, no framework | Unit (no Spring context) | testing-unit-mocking.md |
| JPA / JDBC / JdbcClient / Spring Data JDBC / jOOQ queries | Persistence slice + Testcontainers | testing-slices-persistence.md |
| Controller, JSON serialization, or a REST client | Web slice (@WebMvcTest/@JsonTest/@RestClientTest) |
testing-slices-web.md |
| A few components together, external HTTP (WireMock), or a startup/request-level smoke test | Sliced @SpringBootTest(classes = …) or smoke test |
testing-integration.md |
Full REST API over a real port, full BaseIT suite (RestTestClient) |
End-to-end | spring-boot-rest-api-testing.md |
A view-rendering controller (MockMvcTester) |
Web slice | spring-boot-webapp-testing-with-mockmvctester.md |
Wiring a container (@ServiceConnection / dynamic properties) |
— | testcontainers-wiring.md |
All persistence and integration tests use Testcontainers with a real database (never in-memory H2); see references/testcontainers-wiring.md for @ServiceConnection vs dynamic-property wiring.
Test Data Setup
Prefer SQL fixtures with @Sql("classpath:/test-data.sql") before every test method.
When setting up data programmatically, prefer exposed Services or ModuleAPI classes over Repositories, JdbcTemplate, or JdbcClient.
Unless absolutely necessary, avoid using JdbcTemplate, JdbcClient, or TransactionTemplate
to execute SQL for test data setup, which couples tests to internal implementation details.
Read references/test-data-setup.md when creating or changing test fixtures.
Write ArchUnit Tests
To write tests for testing the architecture using ArchUnit, refer references/archunit.md
Spring Boot Docker Compose Support
To use Docker Compose support for local development, refer references/spring-boot-docker-compose.md.
Taskfile
Use references/taskfile.md for easier commands execution.
Current listing version
0.0.1
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- Spring Boot 全栈开发最佳实践指南,涵盖架构设计、测试策略、工具链集成等核心工程能力
Highlights
- 触发场景描述详尽且边界清晰,覆盖 Spring MVC/JPA/Modulith/Security/测试等九大高频开发需求
Highlights
- 模块化文档结构清晰,每节配有权威参考链接;Testing 部分提供可操作的层级化测试矩阵
Highlights
- 严格遵循 Spring Boot 官方推荐实践(如 Testcontainers 替代 H2、分层测试策略),规避常见陷阱
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Prefer SQL fixtures with `@Sql("classpath:/test-data.sql")` before every test method. When setting up data programmatically, prefer exposed Services or ModuleAPI classes over Repositories, `JdbcTemplate`, or `JdbcClient`. Unless absolutely necessary, avoid using `JdbcTemplate`, `JdbcClient`, or `TransactionTemplate` to execute SQL for test data setup, which couples tests to internal implementation details. Read references/test-data-setup.md when creating or changing test fixtures.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.