/java-core:java-fix [paste error message or stack trace]from java-core
Diagnoses Java compile errors, runtime exceptions, and stack traces with specific root-cause analysis and fix proposals.
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.
Diagnose the Java error or stack trace I've provided and propose a fix. Be specific — do not give generic advice.
Compile errors (javac / Maven / Gradle output):
cannot find symbol → missing import, misspelled name, or wrong scopeincompatible types → type mismatch; check generics, autoboxing, wideningmethod X is not applicable → wrong number or types of argumentsvariable X might not have been initialized → missing initialisation on all code pathsreached end of file while parsing → unmatched { or }class X is public, should be declared in a file named X.java → filename mismatchRuntime exceptions (stack traces):
NullPointerException → identify the line; determine which reference is null; suggest a null check or OptionalClassCastException → show the actual vs expected type; fix the cast or use instanceof firstArrayIndexOutOfBoundsException → check loop bounds and array lengthStackOverflowError → identify the recursive call; check base caseConcurrentModificationException → iterating and modifying a collection simultaneously; suggest iterator.remove() or a copyIllegalArgumentException / IllegalStateException → read the message; check the API contractRead the full error message carefully. The root cause is usually the last "Caused by:" in a stack trace. Show the user:
Show:
If the fix requires reading a file not currently shown, ask for it: "Can you share the contents of ClassName.java? I need to see [specific thing]."
Add one short note on how to avoid this class of error in the future (e.g., "Use Objects.requireNonNull() at method entry to catch nulls early").
After applying the fix:
mvn compile -q or ./gradlew build -q/java-test to verify behaviour is preserved/java-review on the surrounding codeWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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