decebals avatar

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-code

Installs 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
1mims-harvard avatartooluniverse-metabolomicsmims-harvard/tooluniverseMetabolomics research — metabolite identification, study analysis, and database searches across HMDB, MetaboLights, Metabolomics Workbench, KEGG. Use for annota358skills.sh installs
2base avatarbuilding-with-base-accountbase/skillsIntegrates Base Account SDK for authentication and payments. Covers Sign in with Base (SIWB), Base Pay, Paymasters, Sub Accounts, Spend Permissions, Prolinks, a357skills.sh installs
3levnikolaevich avatarln-510-quality-coordinatorlevnikolaevich/claude-code-skillsUse when coordinating story quality evaluation with mandatory research, worker summaries, agent review, regression evidence, and bounded refinement.357skills.sh installs
4jasonkneen avatarrequirements-engineeringjasonkneen/kiroTransform vague feature ideas into clear, testable requirements using EARS format. Capture user stories, define acceptance criteria, identify edge cases, and va355skills.sh installs
5rohunvora avatarx-researchrohunvora/x-research-skillGeneral-purpose X/Twitter research agent. Searches X for real-time perspectives, dev discussions, product feedback, cultural takes, breaking news, and expert op355skills.sh installs
6senpi-ai avatarwolf-strategysenpi-ai/senpi-skillsWOLF v1.0 — Event-Driven / Regime-Rotation Hedge Fund. Two books on two wallets, one producer, that both read a shared cross-asset REGIME detector (equities + o354skills.sh installs