/java-core:java-review [paste code or select in editor]from java-core
Reviews Java code for bugs, naming issues, code smells, and version-appropriate idioms. Activated by code review requests.
Ships in java-core. 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.
None: SKILL.md is the whole skill.
Review the Java code I've selected or provided. Follow these steps:
Check the project for pom.xml (look for <java.version> or <maven.compiler.source>) or build.gradle (look for sourceCompatibility). If not found, ask: "What Java version are you targeting? (8, 11, 17, 21, or other)"
Optional<T> (Java 8+) for values that may be absentInputStream, Connection, PreparedStatement; suggest try-with-resourcesPascalCasecamelCaseSCREAMING_SNAKE_CASEi, j, k)usr → user, mgr → manager)For each suggestion involving a version-gated feature, state: "Requires Java X+"
Closeable resourcesvar where the type is obvious from the right-hand sideinstanceof chainsRespond with:
Be concise. Each issue: one sentence description + one-line fix example.
After completing this review, offer these follow-up actions based on findings:
/java-refactor/java-testjava-security-reviewer agentjava-performance-reviewer agent/java-docsWhat SKILL.md sets; muted values are Claude Code's defaults
14 skills in this plugin
/java-adr/java-adr — Architecture Decision RecordsCreates, lists, and manages Architecture Decision Records for Java projects. Use when user asks to "create an ADR", "document this decision", "write an architecture decision", "add ADR", "list decisions", "show ADRs", or "record this architectural choice"./java-api-reviewStep 1 — HTTP method and status code correctnessReviews Java REST API design including HTTP methods, status codes, naming, and versioning. Use when user asks to "review my API", "check REST design", "is this good REST", "review endpoints", "API design review", "check my controller", or "review HTTP API"./java-npx claudepluginhub ducpm2303/claude-java-plugins --plugin java-coreOther plugins' skills for the same job