Reviews, improves, and refactors Java code for generics quality: avoiding raw types, applying PECS wildcards, bounded type parameters, diamond operator, type erasure, heap pollution prevention, and integration with Records, sealed types, and pattern matching.
Ships in 128-java-generics. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Review and improve Java code using comprehensive generics best practices that enforce compile-time type safety and enable flexible, reusable APIs.
What is covered in this Skill?
? extends for producers, ? super for consumers@SafeVarargs for heap pollution preventionComparator<? super T>, Function<? super T, ? extends R>TypeReference/TypeTokenT, E, K/V, ?), typesafe heterogeneous containersScope: The reference is organized by examples (good/bad code patterns) for each core area. Apply recommendations based on applicable examples.
Before applying any generics changes, ensure the project compiles. If compilation fails, stop immediately — do not proceed until resolved. After applying improvements, run full verification.
./mvnw compile or mvn compile before applying any change./mvnw clean verify or mvn clean verify after applying improvementsRun ./mvnw compile or mvn compile and stop immediately if compilation fails.
Read references/128-java-generics.md and identify raw types, unsafe casts, wildcard misuse, and API variance opportunities.
Implement selected generic type and API improvements while preserving behavior.
Run ./mvnw clean verify or mvn clean verify after applying improvements.
For detailed guidance, examples, and constraints, see references/128-java-generics.md.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/128-java-generics:128-java-genericsfrom 128-java-generics
npx claudepluginhub jabrena/plinth --plugin 128-java-genericsOther plugins' skills for the same job