java-diagnostics
Skill by github
Guides symptom-first runtime diagnostics for JVM applications using JDK tools and profilers. Built for developers and operators who troubleshoot high CPU, memory leaks, slow startup, deadlocks and GC pauses.
Install java-diagnostics
Built from the published package, never by AI.
git clone --depth 1 https://github.com/github/awesome-copilot /tmp/awesome-copilot && mkdir -p ~/.claude/skills && cp -r /tmp/awesome-copilot/skills/java-diagnostics ~/.claude/skills/java-diagnosticsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/github/awesome-copilot /tmp/awesome-copilot && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/awesome-copilot/skills/java-diagnostics ~/.gemini/antigravity-cli/skills/java-diagnosticsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
Java Diagnostics is an agent skill for troubleshooting runtime problems in JVM applications. It uses JDK tools such as jcmd, jstack, jmap, jstat, JFR, GC logs, async-profiler, Native Memory Tracking and Eclipse MAT. It starts from the symptom, such as high CPU, memory leaks or OutOfMemoryError, slow startup, deadlocks, long GC pauses, native memory growth or slow requests, and picks the lightest tool that answers the question.
The skill sorts commands into three permission tiers. Read-only commands may run after the exact command is stated. Recording and attach steps, such as JFR, async-profiler and NMT, need user consent with stated overhead. Heap dumps and commands that print JVM arguments or system properties need explicit consent. It is aimed at developers and operators who diagnose Java applications, and it prefers reproducing problems on dev or staging.
Written from the project's SKILL.md and checked against it.
What it can do
- Symptom-based tool selectionMaps symptoms such as high CPU or GC pauses to a first step and a follow-up tool.
- Thread dump analysisUses jstack and jcmd Thread.print to find hot threads and deadlocks.
- Heap and leak investigationUses class histograms, heap dumps and Eclipse MAT to look for memory leaks.
- GC log and jstat reviewReads GC logs and jstat output to diagnose long GC pauses.
- JFR recording guidanceExplains how to use Java Flight Recorder to capture runtime events.
- async-profiler guidanceCovers CPU, wall-clock and native memory profiling with async-profiler.
- Native memory trackingCovers enabling NMT and comparing native memory baselines when RSS grows.
- Container diagnosticsCovers attaching tools inside containers and cgroup memory limits.
What you need
- A running Java application or JVM process
- JDK tools such as jcmd, jstack, jmap and jstat
- Ability to run tools as the same OS user as the target JVM
Try asking
- Diagnose high CPU in my Java app using thread dumps
- Help me find a memory leak causing OutOfMemoryError
- Explain why my JVM has long GC pauses and what to check
Good to know
- Tier 2 and Tier 3 commands need user consent before running.
- Tier 2 and Tier 3 commands should not run on production unless explicitly instructed.
- Heap dumps contain secrets and must not be shared or uploaded.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/java-diagnostics/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md7 KB -
references/async-profiler.md3 KB -
references/containers.md2 KB -
references/gc.md2 KB -
references/heap.md3 KB
Show all 9 files
-
references/jcmd-basics.md2 KB -
references/jfr.md2 KB -
references/native-memory.md2 KB -
references/thread-dumps.md3 KB
Alternatives to java-diagnostics
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
java-diagnostics: common questions
Can this skill run diagnostics on production?
Tier 2 and Tier 3 commands should not run against production unless the user explicitly instructs it. The source prefers reproducing problems on dev or staging.
Are heap dumps safe to share?
No. The source says heap dumps contain passwords, tokens and personal data, and redaction is not a reliable safeguard. Analyze them locally and delete them afterwards.
Does it cover debugger-based investigation?
No. The source points to the separate java-debugging skill for debugger-based investigation.
How do I install java-diagnostics?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is java-diagnostics free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is java-diagnostics safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to java-diagnostics?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
