From java-core
Diagnoses and fixes Java compile errors, runtime exceptions, and stack traces from javac, Maven, or Gradle. Useful when users report 'fix this error', 'won't compile', or 'debug this'.
How this skill is triggered — by the user, by Claude, or both
Slash command
/java-core:java-fixThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Diagnose the Java error or stack trace I've provided and propose a fix. Be specific — do not give generic advice.
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 codenpx claudepluginhub ducpm2303/claude-java-plugins --plugin java-coreDiagnoses and fixes test failures, build errors, runtime errors, environment issues, and more by categorizing errors and applying targeted strategies with minimal context.
Quickly diagnoses and fixes simple errors from stack traces and messages, including syntax errors, import issues, build failures, failing tests, and lint errors.
Enforces a structured bug-fix workflow: reproduce, isolate, apply smallest fix, and verify. Helps investigate errors, debug crashes, and make failing tests pass.