review-java
Installation
SKILL.md
Skill: Review Java
Purpose
Review only the language and runtime conventions of Java code. Do not define the scope (diff vs codebase) and do not run security/architecture analysis; the scope and cognitive skills handle those. Emit a findings list in the standard format for aggregation. Concentrate on concurrency and thread safety, exceptions and try-with-resources, API and version compatibility, collections and streams, NIO and correct closing, modules (JPMS) where they apply, and testability.
Core Objective
Primary goal: produce a Java language/runtime findings list covering concurrency, exceptions, resource management, API compatibility, collections/streams, NIO and testability across the given code scope.
Success criteria (all of them must hold):
- ✅ Java scope only: only Java language and runtime conventions were reviewed; no scope selection, security or architecture analysis was performed
- ✅ All six Java dimensions covered: concurrency/thread safety, exceptions/resources, API/version compatibility, collections/streams, NIO/closing and testability were assessed where relevant
- ✅ Findings format compatible: every finding carries every element findings-list §5.1 requires, with category
language-java - ✅ file:line references: every finding points at a specific file location with a line number
- ✅ Non-Java code excluded: Java-specific rules are not applied to non-Java files unless they are explicitly in scope