This is a comprehensive refactoring assistant for cleaning up Java generics across your codebase. It walks you through eliminating raw types, applying PECS (Producer Extends Consumer Super) for wildcards, fixing unsafe casts, and integrating generics with modern Java features like Records and sealed types. The workflow is strict: it forces a compile check before touching anything, then guides you through the reference material with good/bad code examples, then verifies everything still builds. Honestly, the mandatory compile gates are smart because generics refactoring can spiral into type errors fast. Best used when you have legacy code that compiles but is littered with warnings, or when you're tightening up API boundaries and want proper variance.
npx skills add https://github.com/jabrena/cursor-rules-java --skill 128-java-generics