Upgrade a Java project to a newer JDK (11 to 17, 17 to 21, 21 to 25) and adopt the new language and library features. Detects the current Java version from the build files, then loads only the matching per-version guide. Use when the user asks to upgrade Java, modernize Java code, or adopt records, sealed classes, pattern matching, virtual threads or other new Java features.
安装
npx skills add github/awesome-copilot --skill java-upgradenpx skills add github/awesome-copilot --skill java-upgrade -a claude-code -gnpx skills add github/awesome-copilot --skill java-upgrade -a codex -ggemini skills install https://github.com/github/awesome-copilot.git --path skills/java-upgradegh skill install github/awesome-copilot java-upgradegit clone --depth 1 https://github.com/github/awesome-copilot /tmp/github__awesome-copilot
mkdir -p ~/.claude/skills ~/.agents/skills
cp -R /tmp/github__awesome-copilot/skills/java-upgrade ~/.claude/skills/java-upgrade # Claude Code
cp -R /tmp/github__awesome-copilot/skills/java-upgrade ~/.agents/skills/java-upgrade # Codex, Cursor, Gemini CLI, Copilot, OpenCode