What does this skill do?

The Java Code Standards Skill reviews and generates Java 17+ code in accordance with clear conventions for Spring Boot and Quarkus. It automatically detects the framework from the build file, applies rules for naming conventions, immutability, `Optional`, streams, dependency injection, and reactive patterns, and returns the corrected code grouped by area with the identified code smells.

Java Code Review
Check classes, records, and services against the conventions of the detected framework and correct any deviations.
Nomenclature and Immutability
Use PascalCase for types, camelCase for methods, UPPER_SNAKE_CASE for constants, and final fields without setters.
Project Structure
Organize project packages and layouts according to shared conventions and those specific to Spring or Quarkus.
Reactive Patterns in Quarkus
Check the use of Uni, Mutiny, and reactive patterns, detecting code smells such as improper use of @Singleton or mixing with RESTEasy.

Usage examples

🔍 Check Spring service
Review this Spring Boot MarketService class and correct any deviations from the naming conventions and immutability guidelines.
☕ Check the Quarkus endpoint
Revisa este endpoint reactivo de Quarkus con Uni<Market> y dime si hay code smells en el uso de @Singleton o RESTEasy.
📦 Packing boxes
Help me organize the packages for a Spring Boot microservice according to the conventions of this skill.
🔧 Optional and streams
Take a look at this method that returns an `Optional` and uses streams; apply the conventions for chaining and readability to it.

Features

Automatic framework detection Identify Spring Boot or Quarkus from the build file and apply the corresponding conventions.
Nomenclature and Immutability Rules Use PascalCase, camelCase, and UPPER_SNAKE_CASE, and promote records and fields to final without setters.
Optional and readable streams Provides guidance on using `Optional` in `find*` methods, `map`/`flatMap` chaining, and short, expressive streams.
Code smells specific to Quarkus Detects misuse of @Singleton, mixing of RESTEasy and other Quarkus-specific anti-patterns.
Output grouped by area Returns recommendations organized by naming conventions, immutability, DI, reactivity, exceptions, logging, tests, and more.

Frequently asked questions

The skill examines the build file (pom.xml or build.gradle) for Quarkus or Spring Boot dependencies and applies the conventions specific to the corresponding framework.
The skill is designed for Java 17 and later, including records, sealed classes, and pattern matching. The shared conventions also apply to earlier versions, but the modern features are specific to Java 17 and later.
No. This skill is a guide to coding conventions that applies when reviewing or generating Java code directly in Claude, without the need for external MCPs.
Yes. The skill provides a solid and consistent foundation, but you can modify SKILL.md to tailor the rules to the specific preferences of your team or project.
Java Coding Standards — Spring Boot and Quarkus Best Practices with Claude AI

¿Prefieres escuchar el contenido? Genera la narración de audio con un clic.