java-springboot
Skill4 starsChanged 40 days agoMITView on GitHub
Comprehensive best practices for developing high-quality Spring Boot applications with production-ready patterns. Trigger: When developing Spring Boot applications, need best practices, or working with Spring framework.
5 other projects use a version of this.
Adopted by
Most recently taken up by
- xpppppppppp/agent-skillstheir own version, first seen Nov 1, 2026
- github/awesome-copilottheir own version, first seen Oct 25, 2026
- robiparvez/claude-code-guidelinestheir own version, first seen Aug 7, 2026
- Adhamxon/claude-code-skillstheir own version, first seen Jul 30, 2026
- LucasMatuszewski/claude-code-course-jsystems-2026-07their own version, first seen Jul 10, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- github/awesome-copilot★ 41ksame name
- Adhamxon/claude-code-skills★ 2same name
- robiparvez/claude-code-guidelines★ 2same name
- LucasMatuszewski/claude-code-course-jsystems-2026-07★ 0same name
- xpppppppppp/agent-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository18 other files it gives its agents.
- api-designSkill
- changelog-maintenanceSkill
- code-mentorSkill
- create-readmeSkill
- database-designSkill
- dockerSkill
- frontend-design-anti-slopSkill
- frontend-engineeringSkill
- git-commitSkill
- github-essentialsSkill
- java-junitSkill
- java-springboot-testingSkill
- latexSkill
- solution-designSkill
- ui-componentsSkill
- update-readmeSkill
- vault-tech-noteSkill
- web-mvcSkill
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 83
When you need up-to-date information on Spring Boot:
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
When to Use
- Developing Spring Boot applications
- Need best practices for Spring Boot
- Configuring Spring Boot projects
- Working with Spring framework components
Core Principles
- Constructor Injection — Always use it for testability. Never
@Autowiredon fields. - DTOs — Never expose JPA entities to the API layer. Use records or projection interfaces.
- Package by Feature — Group by domain (order/, user/), not by layer (controller/, service/).
- Validation — Use Bean Validation (
@Valid,@NotBlank) on request DTOs. - Transactions — Keep them short and at the service layer with
@Transactional. - Logging — Use parameterized logging (
{}), never string concatenation. - Security — Never hardcode secrets. Use env vars and
@ConfigurationProperties. - Testing — Use the narrowest test slice that gives you confidence.
- Configuration — Externalize everything via
application.ymland@ConfigurationProperties. - Monitoring — Add Actuator and health checks to every service.
Reference Index
| Topic | Reference |
| Build tool, starters, package structure | references/project-setup.md |
| Constructor injection, Lombok, stereotypes | references/dependency-injection.md |
| application.yml, @ConfigurationProperties, profiles, secrets | references/configuration.md |
| REST controllers, DTOs, validation, exception handler | references/web-layer.md |
| Business logic, @Transactional | references/service-layer.md |
| Repositories, queries, projections | references/data-layer.md |
| SLF4J logging patterns | references/logging.md |
| Spring Security, JWT, password encoding | references/security.md |
| Async, caching, API versioning, pagination | references/advanced.md |
| Actuator, health indicators | references/monitoring.md |
| Test slice quick reference | references/testing.md |
Commands
# Run Spring Boot application
mvn spring-boot:run
# Run with specific profile
mvn spring-boot:run -Dspring-boot.run.profiles=dev
# Build project
mvn clean package
# Run tests
mvn test
# Run specific test
mvn test -Dtest=OrderServiceTestTesting
For comprehensive testing guidance (test slices, MockMvcTester, Testcontainers, AssertJ), see the java-springboot-testing skill.
Quick Reference
| Test Type | Annotation | Use For |
| Unit | @ExtendWith(MockitoExtension.class) | Service logic |
| Web | @WebMvcTest | Controllers |
| Data | @DataJpaTest | Repositories |
| Integration | @SpringBootTest | Full flow |
| Slice | @RestClientTest | REST clients |
Context7 Integration
When you need up-to-date information on Spring Boot:
- Resolve the libraryId — Use
context7_resolve-library-idwith:libraryName: "spring boot" or "spring framework"query: what you're going to do (e.g., "configuration properties", "custom health check")
- Query the docs — Use
context7_query-docswith:libraryId: the ID from the previous step (e.g., "/spring/spring-boot")query: your specific question
Before answering about Spring Boot APIs, configurations, or best practices, consult Context7 to get up-to-date information.
Resources
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

