001-commands-inventory
Use when you need to generate a checklist document with embedded commands inventory, following the embedded template exactly and producing…
Use when you need to review, improve, or refactor Java code for generics quality — including avoiding raw types, applying the PECS (Producer Extends Consumer Super) principle for wildcards, using bounded type parameters, designing effective generic methods, leveraging the
$ npx -y skills add jabrena/plinth --skill 128-java-generics --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/128-java-genericsContext preview
The summary Claude sees to decide when to auto-load this skill.
Use when you need to review, improve, or refactor Java code for generics quality — including avoiding raw types, applying the PECS (Producer Extends Consumer Super) principle for wildcards, using bounded type parameters, designing effective generic methods, leveraging the
name: 128-java-generics description: Use when you need to review, improve, or refactor Java code for generics quality — including avoiding raw types, applying the PECS (Producer Extends Consumer Super) principle for wildcards, using bounded type parameters, designing effective generic methods, leveraging the diamond operator, understanding type erasure implications, handling generic inheritance correctly, preventing heap pollution with @SafeVarargs, and integrating generics with modern Java features like Records, sealed types, and pattern matching. This should trigger for requests such as Improve the code with Generics; Apply Generics; Refactor the code with Generics; Improve generic type safety in Java APIs; Fix raw types and unchecked casts in Java code. Part of Plinth Toolkit license: Apache-2.0 metadata: author: Juan Antonio Breña Moral version: 0.18.0
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?**
**Scope:** 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.
1. **Compile project before generics changes**
Run `./mvnw compile` or `mvn compile` and stop immediately if compilation fails.
2. **Read generics reference and assess type safety**
Read `references/128-java-generics.md` and identify raw types, unsafe casts, wildcard misuse, and API variance opportunities.
3. **Apply generics refactorings**
Implement selected generic type and API improvements while preserving behavior.
4. **Verify with full build**
Run `./mvnw clean verify` or `mvn clean verify` after applying improvements.
For detailed guidance, examples, and constraints, see [references/128-java-generics.md](references/128-java-generics.md).
Languages: Español · 中文 Help this project grow: Become a sponsor
Use when you need to generate a checklist document with embedded commands inventory, following the embedded template exactly and producing…
Use when you need to generate a checklist document with embedded agents inventory, following the embedded template exactly and producing…
Use when you need to generate a checklist document with Java system prompts from skills.xml, following the embedded section template and producing…
Use when you need to install the embedded project commands into command directories (.github/commands, .claude/commands, .cursor/command, .codex/commands),…
Use when you need to install the embedded robot agents into .github/agents, .claude/agents, .cursor/agents, or .codex/agents, selecting the destination…
Guides the creation of agile epics with comprehensive definition including business value, success criteria, and breakdown into user stories. Use when the user…