From conventions
Use when writing, reviewing, or modifying Java code. Applies general programming principles and design conventions. Does not cover formatting or indentation.
How this skill is triggered — by the user, by Claude, or both
Slash command
/conventions:java-coding-conventionsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
- Classes are immutable by default. Use setters only if absolutely necessary.
final.List.of, Map.of). Store and return collections as unmodifiable when they don't need mutation.Optional<T> for values that may be absent.@Nullable.@NullMarked.RuntimeException subclasses). No checked exceptions.var for local variables.static where possible.PI, UTF_8, singletonMap, format, assertEquals).List.of, Map.of, Duration.ofSeconds)PascalCase classes, camelCase methods/variables, UPPER_SNAKE_CASE constants.npx claudepluginhub joke/claude-plugins --plugin conventionsEnforces Java 17+ coding standards for Spring Boot services: naming, immutability, Optional, streams, exceptions, generics, and project layout.
Provides best practices for modern Java (17+) code: null safety with Optional and annotations, immutability via records, concurrency with CompletableFuture and virtual threads, sealed classes.
Enforces Java coding standards for Spring Boot and Quarkus services: naming, immutability, Optional, streams, exceptions, generics, CDI, reactive patterns, and project layout.