Java Spring Boot

Best practices for Java 21 web services and Spring Boot 3 applications. Use when writing or reviewing Java code in a Spring Boot project — controllers, services, configuration, data access, tests. For bootstrapping a brand-new project, see java-spring-boot-coldstart instead.

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add roby2358/skills --skill java-spring-boot
Manual install
git clone --depth 1 https://github.com/roby2358/skills.git /tmp/skills
mkdir -p ~/.claude/skills
cp -r /tmp/skills/java-spring-boot ~/.claude/skills/java-spring-boot

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Java Spring Boot

Pragmatic guidance for code that's already running. Half is modern Java 21; half is Spring Boot 3 idiom.

---

## Java 21 for web services

### Warm up: things that bite

- **One public class per file; filename matches class name.** `OrderService.java` contains `public class OrderService`. Inner classes are fine; sibling top-level classes go in their own files.

- **Naming is load-bearing.** `PascalCase` for classes, records, interfaces, enums. `camelCase` for methods and fields. `UPPER_SNAKE_CASE` for `static final` constants. `lowercase.dotted` for packages. Spring, Jackson, and JPA all infer behavior from these.

- **`==` vs `.equals()`.** `==` compares references; `.equals()` compares value. For `String`, **always** `.equals()` — or `Objects.equals(a, b)` if either side might be null. Same trap with boxed numbers: `Integer a = 200, b = 200; a == b` is `false`.

- **Declare with the interface, instantiate the concrete.** `List<Order> orders = new ArrayList<>();` not `ArrayList<Order> orders = ...`. Decouples callers from the implementation choice.

- **Try-with-resources for anything `AutoCloseable`.** Files, JDBC connections, HTTP clients. The resource is closed even when the body throws.

  ```java
  try (var in = Files.newBufferedReader(path)) {
      return in.readLine();
  }
  ```
Read the full skill on GitHub

Details

Skill name
java-spring-boot
Path
java-spring-boot/SKILL.md
Repo updated
14 November 2026

FAQ

What does the Java Spring Boot skill do?

Best practices for Java 21 web services and Spring Boot 3 applications. Use when writing or reviewing Java code in a Spring Boot project — controllers, services, configuration, data access, tests. For bootstrapping a brand-new project, see java-spring-boot-coldstart instead.

How do I install the Java Spring Boot skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add roby2358/skills --skill java-spring-boot. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Java Spring Boot popular?

It lives in roby2358/skills, which has 5 GitHub stars and 0 forks.

Related skills

Coding

5

roby2358/skills

Project-specific coding conventions and constraints. Use when writing, modifying, or refactoring any code, implementing features, writing tests, or building MCP servers in this project.

Software Development

Game Design

5

roby2358/skills

Design principles for tactics and strategy games. Use when designing new mechanics, tuning existing systems, adding units or abilities, adjusting difficulty, or making any game design decision. Triggers on discussions about game balance, unit roles, terrain, pacing, spawning, healing, combat, win/loss conditions, or UI for conveying game state.

Frontend & Design

Game Productize

5

roby2358/skills

Audit a browser game for ship-readiness and produce a tiered gap list: a SHIP.md in the game repo plus pjpd tasks. Finds what gets forgotten between "the game works" and "a stranger can play it": title/menus/end screens, save and resume, audio and settings, onboarding, the mobile "sorry" screen, localization readiness, error recovery, hosting on the author's site and on portals (itch.io, Newgrounds), credits, asset licenses, and AI disclosure. Use when the user says "productize", "/game-productize", "get this game ready to ship/release/publish/launch", "what's missing before I launch", "prep f

Documents & Office Files

Java Spring Boot Coldstart

5

roby2358/skills

Bootstrap and build Java 21 Spring Boot 3 services for a team with mixed Java experience. Covers REST APIs, SQS messaging via Spring Cloud AWS, Spring Security 6 (JWT resource server), and JUnit 5 + Mockito testing. Maven, no Lombok. Use when creating a new Spring Boot project, adding REST endpoints/SQS listeners/security config, or writing tests against Spring components.

Software Development

Java Service Standards

9

sandbaseai/workbuddy-skill

Use when creating or changing Java service code, especially Spring applications, controllers, services, persistence adapters, configuration, or tests; align with the repository's architecture while enforcing safe contracts, errors, logging, transactions, and verification.

Software Development

Java Vibe

5

roby2358/skills

Onboarding guide for Python programmers moving to Java 21 + Spring Boot 3. Half "getting into the Java groove" (syntax, types, collections, tooling), half "getting into Spring Boot" (annotations, DI, controllers, config). Use when writing Java for the first time, translating Python instincts into Java idioms, or explaining Java concepts to a Python-fluent user. For code in a running project, see java-spring-boot. For bootstrapping a new project, see java-spring-boot-coldstart.

Software Development

Browse the most popular Claude skills, all software development skills, or write your own with the skills generator.