128-java-generics

Community

Master Java generics for safer, cleaner code

Authorjabrena
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Java generics are powerful but error-prone; this skill helps teams review and refactor code to enforce type safety, remove raw types, and improve API design with PECS, bounded types, and modern features like Records and sealed types.

Core Features & Use Cases

  • Assess and fix generics usage across codebases to eliminate unchecked warnings and ClassCastExceptions.
  • Rework APIs to use appropriate wildcards (PECS) and bounded type parameters for flexible yet safe interfaces.
  • Align code with modern Java features (Records, sealed types, pattern matching) to create expressive, maintainable generics APIs.

Quick Start

Run the multi-step generics refinement process on your codebase to produce a safer, more maintainable generics surface.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: 128-java-generics
Download link: https://github.com/jabrena/cursor-rules-java/archive/main.zip#128-java-generics

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.