
Spring Boot Patterns
This one gives Claude the Spring Boot patterns you actually want: versioned REST endpoints, constructor injection with Lombok, proper service/repository layers, and DTOs that don't leak your entities. It handles the stuff that matters like transaction boundaries (read-only by default, write when needed), MapStruct for clean conversions, and a global exception handler that returns proper status codes. The examples show real structure decisions, not toy code. Use it when you're scaffolding controllers or need to remember whether existsById is actually better than findById for checks. It won't teach you Spring Boot from scratch, but it'll keep your codebase from turning into a mess of business logic in controllers and entities flying around as JSON.
- skills.sh installs
- 358
- GitHub stars
- 771
- last updated
- Feb 8, 2026
Install
$ npx -y skills add decebals/claude-code-java --skill spring-boot-patterns --agent claude-codeInstalls into .claude/skills of the current project.
Files
Spring Boot Patterns Skill
Best practices and patterns for Spring Boot applications.
When to Use
- User says "create controller" / "add service" / "Spring Boot help"
- Reviewing Spring Boot code
- Setting up new Spring Boot project structure
Project Structure
src/main/java/com/example/myapp/
├── MyAppApplication.java # @SpringBootApplication
├── config/ # Configuration classes
│ ├── SecurityConfig.java
│ └── WebConfig.java
├── controller/ # REST controllers
│ └── UserController.java
├── service/ # Business logic
│ ├── UserService.java
│ └── impl/
│ └── UserServiceImpl.java
├── repository/ # Data access
│ └── UserRepository.java
├── model/ # Entities
│ └── User.java
├── dto/ # Data transfer objects
│ ├── request/
│ │ └── CreateUserRequest.java
│ └── response/
│ └── UserResponse.java
├── exception/ # Custom exceptions
│ ├── ResourceNotFoundException.java
│ └── GlobalExceptionHandler.java
└── util/ # Utilities
└── DateUtils.java
Sponsors
Details
- Repository
- github.com/decebals/claude-code-java
- Categories
- Backend & APIs, Code Review & Quality, Debugging, Java & JVM
- License
- MIT
- First seen
- Jun 11, 2026
More from decebals/claude-code-java
All 18- Java Migration357
- Security Audit347
- Performance Smell Detection341
- Test Quality336
- Api Contract Review315
- Maven Dependency Audit308
- Logging Patterns300
- Jpa Patterns297
- Changelog Generator251
- Git Commit249
- Issue Triage240
- Java Code Review1.1K
- Clean Code427
- Concurrency Review384
- Solid Principles384
- Architecture Review374
- Design Patterns372