/java-core:java-migrate [current Java version and target version, e.g. '8 to 17']from java-core
Guides Java version migration from 8 to 11, 11 to 17, or 17 to 21 with interactive checklist and breaking change detection.
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.
Guide the migration of a Java project to a newer Java version. This is an interactive migration assistant.
Check pom.xml (<java.version>, <maven.compiler.source>, <maven.compiler.target>) or build.gradle (sourceCompatibility, javaVersion). Ask for target version if not specified.
Breaking changes to fix:
sun.* and com.sun.* internal API usage → find public alternativesjavax.xml.bind (JAXB), javax.activation, javax.annotation → add as Maven dependencies (jakarta.xml.bind-api, etc.)ClassLoader.getSystemClassLoader().getResourceAsStream() → use getClass().getResourceAsStream()finalize() → deprecated, suggest Cleaner or try-with-resourcesQuick wins to adopt (optional):
var for local variables (Java 10+) where type is obviousList.of(), Map.of(), Set.of() instead of Collections.unmodifiableList(Arrays.asList(...))String new methods: isBlank(), strip(), lines(), repeat()Optional.ifPresentOrElse(), Optional.or()Build changes:
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
Breaking changes to fix:
--add-opens flags (may need library updates)SecurityManager usagesun.misc.Unsafe direct usage → find library replacementsQuick wins to adopt (optional):
instanceof (Java 16+)Breaking changes to fix:
Quick wins to adopt (optional):
getFirst(), getLast() (Java 21)Output a numbered checklist:
Migration: Java [current] → Java [target]
REQUIRED (must fix before compiling):
[ ] 1. [specific change with file/class reference if visible]
[ ] 2. ...
RECOMMENDED (adopt for better code):
[ ] 3. [specific improvement]
[ ] 4. ...
BUILD CHANGES:
[ ] Update pom.xml/build.gradle compiler version
[ ] Update CI/CD Java version
[ ] Update Docker base image (e.g., eclipse-temurin:[target]-jre)
If the project files are accessible: "Want me to scan your codebase for the required changes above?"
/java-review to catch any remaining issues/java-refactor to adopt new idiomsWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub ducpm2303/claude-java-plugins --plugin java-core14 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-Other plugins' skills for the same job