/microscope:helpfrom microscope
Orientation skill that lists what a Jeffrey Microscope can investigate (CPU, allocation, locks, heap dumps, etc.), which recording each area needs, and which skill handles it. Use before choosing a profile.
Ships in microscope. 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.
An orientation, not an analysis. It answers "what can I ask?" with what this Jeffrey serves and what is here now, then hands the user to the skill that does the work. It runs nothing slow and builds nothing.
Tool names below omit the prefix your client puts in front of them — mcp__plugin_microscope_jeffrey__ in Claude Code with the microscope plugin, mcp__jeffrey__ in Codex or wherever the server is registered by hand as jeffrey, mcp_jeffrey_ in Gemini CLI; the rest of the name is exact camelCase.
Recordings that already exist: JFR files from the JDK or async-profiler, pprof and OpenTelemetry profiles (flamegraphs only), and HPROF heap dumps. It never attaches to a running process — the profile-run skill records this project first, and analyze-connector pulls what a deployed application recorded. Every answer carries a link to the same view in Microscope.
These are the areas profiles_summary offers as its investigationAreas menu. Which of them a given
profile can answer depends on what was recorded — that is server data, so for a real profile take the
menu from profiles_summary (step 3), never from this table.
A recording (JFR, async-profiler, pprof)
| Group | Area | What it answers | Needs recorded |
|---|---|---|---|
| Code | CPU hotspots | Which code burned the CPU | async-profiler event=cpu (or event=ctimer in a container), or JFR's jdk.ExecutionSample / jdk.CPUTimeSample |
| Code | Wall-clock time | Where the time went, running or waiting | async-profiler wall=10ms |
| Code | Allocation | Which types allocate most, then from where | async-profiler alloc=512k, or JFR's jdk.ObjectAllocationSample |
| Code | Lock contention | Which locks and waits held threads back | async-profiler lock=10ms, or JFR's jdk.JavaMonitorEnter and jdk.ThreadPark |
| Waiting | Traces | Which requests were slow, and where each one's time went, span by span | the application instrumented with Jeffrey tracing |
| Waiting | Requests and calls | Which endpoints, outbound calls and traced methods took the time — HTTP and gRPC, server and client | the application instrumented with jeffrey-events; for traced methods jdk.MethodTrace / jdk.MethodTiming with a method filter |
| Waiting | Database | Which statements ran, and whether the pool made requests wait | jeffrey-events JDBC instrumentation |
| Waiting | I/O waiting | Sockets and files, and how long it waited | jdk.SocketRead, jdk.SocketWrite, jdk.FileRead, jdk.FileWrite |
| JVM | GC and pauses | Whether collections and safepoints stopped the application | JFR's GC and safepoint events (default settings) |
| JVM | JIT compilation | Slow compilations and deoptimisation | JFR's compiler events |
| JVM | Threads | Which threads were busiest, and in which states | JFR's thread events |
| JVM | Native memory | Memory outside the Java heap | JFR's native-memory events |
| Overall | Rule findings | What Jeffrey's rules flag across the whole recording | a JFR recording |
| Overall | Container and flags | Throttling, and what the JVM really ran with | JFR's container and configuration events |
| Overall | Leak candidates | Objects that survived collections | jdk.OldObjectSample (JFR's profile settings) |
| Overall | Exceptions | What the application threw, and from where | JFR's exception events (jdk.ExceptionStatistics, jdk.JavaExceptionThrow) |
Each Code area opens on its flamegraph — Allocation and Lock contention with their table beside it.
Any other recorded type with stacks (a second sampler, native allocation, method traces, custom
events) is listed in moreFlamegraphs, beside the menu, each with the export that draws it.
A heap dump (.hprof) — the index and most reports are built by heap_prepare the first time;
an area waiting for it is offered as NEEDS_PREPARATION:
| Group | Areas |
|---|---|
| Contents | Heap overview, Class histogram, Top consumers, Biggest objects |
| Retention | Leak suspects, Dominator tree, Class loader leaks, GC roots and threads |
| Waste | Duplicate strings, Wasteful collections |
Beyond one profile: comparing two recordings (compare-jfr), deciding whether a change regressed (regression-check), SQL over a profile's events (jfr-sql) or a heap dump's index (heap-sql), and turning a hotspot into a change in this repository (optimize-code).
Show what the user can start from, not only what is possible:
profiles_list — the analysed profiles, newest first. Name a few with their kind and recording
window, each linked.connector_ tools are served, connector_status — whether a connector with deployed recordings
is configured and answering. Mention it in one line; finding sessions there is analyze-connector.profiles_summary on it and put its
investigationAreas to the user exactly as the analyze-jfr skill describes — one multi-select
question per group in Claude Code (AskUserQuestion), a table elsewhere. AVAILABLE areas are
offered with their weight; NEEDS_PREPARATION ones with "needs heap_prepare (slow)"; NOT_RECORDED
ones are named in one line beneath, with their remedy, so the next recording can capture them.
Then hand off to the skill that takes the chosen area.Nothing here? Say so, and offer the two ways in: a recording file on this machine
(recordings_analyzeFile with its absolute path, through analyze-jfr or analyze-heap), or
profile-run to record this project now.
| The user wants to… | Skill |
|---|---|
| Read a recording: where the time, CPU, allocations or waits went; GC, JIT, threads, the container | analyze-jfr |
| Understand what an application threw | analyze-exceptions |
| Ask what a profile measured of the code you are reading — is it hot, who calls it, which requests run it, which line issues a query, what the service did at runtime | code-insight |
| Read a heap dump: what holds the memory | analyze-heap |
| Compare two recordings, or check a change for a regression | compare-jfr, regression-check |
| Analyse what a deployed environment recorded | analyze-connector |
| Record this project first | profile-run |
| Fix what a profile found, in this repository | optimize-code |
| Ask a question no dashboard answers | jfr-sql, heap-sql |
| Write the findings up | report |
Whenever a reply names something Microscope can open — the profile, a flamegraph, an operation, a
trace, an endpoint, a statement group, a GC, JIT or thread page, a heap class or object, a
differential, a catalogue row, a ledger entry — make the name a Markdown link marked with ↗:
[trace 7e34c5994dc96208 ↗](<its uiLink>), and in a table a column of [↗ open](<its uiLink>).
Every link carries the mark — every profile named too, the analysed one and its baseline alike, and
a page named in passing ("the exceptions page"), a profile named under Not assessed or Open
leads, and a figure's source given as the page it was read off ([slowest traces ↗](<its uiLink>)) — the
links most often left bare: [checkout candidate ↗](<its uiLink>) — and never the bare URL. The ↗ is what makes it a link the
user sees: a terminal that renders links shows the text alone, clickable, with the URL behind it,
and an unmarked name reads as plain words. That holds in every reply, not only in a written report:
a finding, a ranked list, a follow-up offer, a sentence in passing. Before you send a reply, check
it: every ]( closes a link text that holds ↗.
uiLink — a trace, an
operation, an exemplar — links with that one; otherwise the answer's uiLink is the page that
shows the row. Quote the uiLinkNote beside it when there is one.profiles_viewLink, one cheap call; the profile itself → profiles_link.[GC page ↗](<its uiLink>) — and
a tool stays in backticks beside it, plain. A tool you did not call — a follow-up on offer, a check under
Not assessed — is named that way and not linked at all: `jvm_safepoints` alone, never
[`jvm_safepoints`](<a link>) and never the profile's own link in place of a page you have no link for.profiles_summary says what one profile recorded.heap_prepare, no recordings_analyzeFile, no download — each
is offered and waits for the user.Related skills: analyze-jfr for the menu of one profile and the work after it, analyze-heap for a
heap dump, profile-run when there is nothing to read yet.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub petrbouda/jeffrey --plugin microscope13 skills in this plugin
/analyze-connectorFinds and analyses JVM recordings that live on the connector (the recording volume on an Azure file share, or in a local directory) rather than in a file the user has — the JFR recordings, heap dumps, application logs, GC logs and crash files a deployed application produced. Use whenever the user asks about what an environment recorded or wrote rather than about a file they have: production, staging, a named service, "the last hour", "since the deploy", "what the connector has", "why was prod slow this morning", "why did the pod's JVM die", "the exceptions in the service log". It locates the session, asks which interval matters, pulls in that part of the recording — or the one file that matters — and hands off to analyze-jfr or analyze-heap, or reads the log itself. For a recording file already on this machine, analyze-jfr applies directly./analyze-exceptionsAnalyses the exceptions an application threw in a Jeffrey profile and traces each one to the code in the current repository that caused it — separates the application's throws (libraries included, so timeouts and connection resets stay) from the JVM's own class-loading and linking noise, finds where the application's code entered each throw, reads that source and recommends the smallest fix. Use whenever the user asks to analyse the exceptions or errors of an application, service or recording, why an application throws so much, what an exception storm or a burst of timeouts in a profile is caused by, whether exceptions are used as control flow, or names an exception class seen in a JFR recording or Microscope's Exceptions page./analyze-heapAnalyses a heap dump held by a running Jeffrey Microscope — what is holding the memory, what is leaking, which class loader survived a redeploy, where the waste is — starting from the catalogue or from a .hprof file Jeffrey has not seen yet. Use whenever the user asks what is holding memory, why the heap keeps growing, why the JVM ran out of memory, what is leaking, or mentions retained size, a dominator tree, GC roots, a heap dump or an .hprof file./analyze-jfrAnalyses a JVM profile held by a running Jeffrey Microscope — CPU, wall-clock, allocation, lock contention, trace latency, and the machine underneath: garbage collection, safepoints, JIT compilation, threads, native memory, the container and the JVM's configuration. Starts from the catalogue or from a .jfr file Jeffrey has not seen yet. Use whenever the user asks why something is slow, where the time goes, what is allocating, why GC pauses are long, what is pausing the JVM, what the JIT compiler or deoptimisation is doing, which threads are burning CPU, why memory grows outside the heap, whether the container is throttling, what a JFR recording or flamegraph shows, or mentions a Jeffrey profile, a .jfr file or async-profiler output. For a heap dump or .hprof file, analyze-heap applies instead./code-insightAnswers questions about the code in the current repository from a Jeffrey profile, asked by the names in the source - whether a method or class is hot, who calls it at runtime, which of its lines the time goes to, what it calls into, which exceptions are thrown under it, which requests run it, which of the repository's own methods a profile's cost is charged to, which lines issue a SQL statement or call and how often one request does (N+1), and what the application did at runtime - its operations, statements, attributes and own events - tied back to the code. Use whenever the user asks about the runtime behaviour of code they are reading or editing - "is this method hot", "who calls this in production", "what does this class cost", "which endpoint runs this", "where does our code spend its time", "which line issues this query", "is there an N+1", "what does this service actually do at runtime" - and a profile of that code exists or can be recorded./compare-jfrCompares two JVM profiles held by a running Jeffrey Microscope — a before and an after — using differential flamegraphs, to answer whether a change made the application slower, faster, or allocate more. Use whenever the user asks if a change regressed performance, what got slower or faster between two runs, to compare two recordings, benchmarks or branches, or mentions a baseline, a before/after or a performance regression. For a single profile, analyze-jfr applies instead; for a heap dump, analyze-heap.Other plugins' skills for the same job