/microscope:analyze-jfrfrom microscope
Analyzes JVM profiles from Jeffrey Microscope — CPU, wall-clock, allocation, lock contention, GC, safepoints, JIT, threads, native memory, container throttling. Works from the catalogue or a .jfr file.
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.
Read when SKILL.md points to them.
Jeffrey holds profiles: one analysed JFR recording or heap dump each. Nearly every tool reads.
The few that do not create a profile or a cache, start work on the connector or in your editor, or stop
work that was started — recordings_ turns a recording file into a profile, and
operations_cancel stops an import that was a mistake — and none of them changes an analysed
profile.
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: jfr_listTables, not jfr_list_tables.
profileIdEvery tool takes one, except profiles_list and the recordings_, connector_ and operations_
families, which are how a profileId comes to exist. profiles_list pages: a hundred profiles per
call, with nextCursor and hasMore in the answer, so a catalogue past that size needs a second
call carrying the cursor before "it is not there" is true.
The user named a file (target/app.jfr, anything with a recording extension) — it may not be
in Jeffrey yet. Call recordings_analyzeFile with the absolute path;
recordings_analyzeFile returns the existing profile for a file with the same name and size as one
already imported; after re-recording to the same path, pass force=true. The Jeffrey process opens
that path, so
the file has to be on the machine Jeffrey runs on — a container or a remote Jeffrey cannot see your
working directory. A small recording is analysed inside the call and comes back with its
profileId. A large one comes back with a status of RUNNING and an operationId — and no
recordingId, because the copy may not have finished — and operations_status(operationId)
follows the copy and the analysis until the profileId appears. Poll that rather than calling
recordings_analyzeFile a second time to see whether it is done. operations_cancel(operationId) stops an import started by
mistake. Operation ids live for an hour in Jeffrey's memory and do not survive a restart.
The recording is on the connector — the user asked about an environment rather than a file
("production", "staging", "what recorded in the last hour"), and nothing local matches. Switch to
the analyze-connector skill: it finds the session on the connector, pulls it in and comes
back here with a profileId.
Otherwise — profiles_list, pick the profile, then profiles_summary to learn what it can
answer before asking for it. That one call carries what profiles_get, profiles_features and
profiles_samplerHealth each carry a part of: disabledFeatures names what the profile lacks
(traces exist only if the app ran Jeffrey's instrumentation; HEAP_DUMP there means no dump),
eventTypes lists every recorded event type with its totals, and topFindings carries the
auto-analysis findings when they have been computed.
A profile whose event source column reads HEAP_DUMP is a heap dump: switch to the
analyze-heap skill, because flamegraphs and traces do not apply to it.
Orientation is cheap; analysis is not. profiles_summary is one compact call, while one flamegraph
or trace export runs to tens of thousands of characters and a sweep of every family costs a dozen
calls whose findings mostly go unread. So the user decides what is worth that, not habit:
/orders slow", "what is allocating", "are the GC
pauses long" — go straight to that area through the routing table below. Do only that area, and
do not show the menu.profiles_summary, put its investigationAreas to the user as below, and stop. Wait for the
user's choice before any other call. A fired rule in topFindings and a capabilityGaps entry
the question needs are worth one line each above the menu, because they are already paid for;
neither is a reason to start work unasked.investigationAreasJeffrey builds the menu, so do not assemble one yourself. Each entry has an area, its group
(CODE, WAITING, JVM, OVERALL for a recording), a title, the question it answers, and its
availability:
AVAILABLE — offer it, with its weight and, when suggested is true, its evidence (the
rule that fired, or the share of samples that points there). nextTools are the calls that open
it, ready to send.NEEDS_PREPARATION — its data is there but has to be built first; its nextTools are that
build (heap_prepare, slow). Only a heap dump's areas are ever in this state.NOT_RECORDED — do not offer it. Name these in one line beneath the menu, with their remedy
(event=cpu, wall=10ms, alloc=512k, lock=10ms, …) so the next recording can capture them.A menu of the heap groups (HEAP_CONTENTS, HEAP_RETENTION, HEAP_WASTE) means a heap dump: switch
to analyze-heap, which puts that menu the same way. An empty investigationAreas means a
perf-counters snapshot, which no tool reads yet: give the user its uiLink.
Put it as a structured question when your client has one. In Claude Code that is
AskUserQuestion: one multi-select question per group that has an AVAILABLE area, in group order,
header the group in a word (Code, Waiting, JVM, Overall), one option per area with the title as
its label and the description weight · question — with · suggested: <evidence> when suggested,
and · covered when the ledger already has it. A group with a single available area joins another
group's question when that one has room, since a question needs two options. Everything else — the
fired rules, the gaps the question needs, the not-recorded line — is text above the question.
Above the question, a Pages table — the click-through view of the profile, before anything is
analysed. One row per area with data (AVAILABLE or NEEDS_PREPARATION), in this order:
Before you send it, check the first row: when the profile has traces it is Traces, and a ★ row comes second at the earliest. The ★ is evidence; it never moves a row above Traces.
Each row has its title, what its page shows in a few words, and [↗ open](<its uiLink>) — for a
profile with traces and a suggested lock area, it starts:
| Page | Shows | |
|---|---|---|
| Traces | Slow requests, span by span | [↗ open](<its uiLink>) |
| ★ Lock contention | Which locks held threads back | [↗ open](<its uiLink>) |
``` A profile without traces says so
in the not-recorded line, Traces named first with its `remedy`. Then
`moreFlamegraphs` in one line — "Also graphable:" and each as `[<label> ↗](<its uiLink>)` with its
samples, the rest as "N more". Only for an open question: when the user named an area, go straight
there and link only the page the answer was read off.
**Without a structured question tool** (Codex, Gemini CLI), write the menu as a table grouped by
group — area, weight, what it answers, why it is suggested, `[↗ open](<its uiLink>)` — then the
not-recorded line, and stop.
Every Code area opens on its flamegraph: CPU hotspots and Wall-clock time on the graph alone,
Allocation and Lock contention on the graph and then their table — hand the graph to the analyst, as
for CPU, and read the table here. The flamegraph comes first even when the question is where "our" code
spends its time: `code_hotspots` and `code_method` rank the code by the packages read off a checked-out
repository (the `code-insight` skill), and with no source in the working directory there are none to
pass — never guess them from the frames. **`moreFlamegraphs`** are the recorded types with stacks no area
opens (a second sampler, native allocation, method traces, custom events), in the Pages table's last
line; a pick of one, under Other, sends its `export` unchanged.
The user may pick several; take them in the order they gave, sending each area's `nextTools`
unchanged. **Traces** is offered whenever the profile has traces, apart from the HTTP and gRPC
dashboards under **Requests and calls**; a pick of it opens with `traces_overview`, and
`references/latency.md` has the rest. A pick that comes back `NOT_RECORDED` after all is reported as not assessed, and the next
pick goes on.
**Weight** is what an answer puts into this conversation: **LIGHT** one or two compact records,
**MEDIUM** a dashboard or a ranking, **HEAVY** a long document — a flamegraph, a trace, a dump —
delegated to the analyst when the client has one. It is not `jeffrey/cost`, which is what Jeffrey
spends to compute the answer.
### After every answer, offer — do not run
Close each answer with at most two follow-ups taken from its `followUp.nextTools` — each carries its
`weight` and its `why` — and wait. In Claude Code put them as one `AskUserQuestion` with an option
per follow-up, **Implement fixes** when a finding is in this repository (see *Implement fixes*
below), and a "Stop here" option; elsewhere, one line each. A follow-up the user did not ask
for is not run, however well the evidence points at it: "the allocation flamegraph would name the
call sites (HEAVY)" is the sentence, not the export.
### Keep a ledger
Across the conversation keep a short block, updated after every answer:
- **Covered** — each area answered: its one-line result, then `[↗ open](<its uiLink>)`;
- **In progress** — areas handed to an analyst and not back yet;
- **Open leads** — follow-ups offered and not yet taken;
- **Not assessed** — areas the recording cannot answer, and picks that turned out `NOT_RECORDED`.
Write it as that list, a bold label leading each line, and leave out a line with nothing in it. Not
as a table: a table's first row is its header, and a ledger has none to give it, so the labels end
up in rows under a blank one.
When the user asks what else there is, show the menu again with the covered areas marked. The
ledger is yours: nothing in it is sent to a tool, and the `report` skill builds its findings and its
**Not assessed** section from it.
## Route from the summary — never open with a flamegraph
A flamegraph of a recording that spent its time waiting reports the application as idle, and a
graph of a five-minute average hides a thirty-second spike. So the first export is decided by what
`profiles_summary` says, not by habit. When the question names an area, or once the user has picked
from the menu, read three things from it and route:
| What the summary shows | Go to |
|---|---|
| `capabilityGaps` names something the question needs | Say so first; a question the recording cannot answer is reported as **not assessed**, never as a negative result — the `report` skill has the shape |
| `topFindings` carries a rule that fired | The finding's `nextTool` — a ready call, `{tool, arguments, why}` — for the figures behind the rule; a fired rule is a lead, not a diagnosis |
| The question is about slow requests — "this endpoint is slow", "which requests are slower than the rest", "why do some calls take so long" — and `TRACES` is not in `disabledFeatures` | `traces_operations`, then `traces_slowestTraces` → `traces_traceExport` of a slow request before any dashboard — `references/latency.md`. The dashboards (`http_overview`, `jdbc_overview`, `blocking_overview`) rule a cause in or out beside a slow trace, never instead of one, and are the route only when traces are disabled |
| Execution or CPU-time samples dominate `eventTypes` | `flamegraph_export` of that type, after `timeline_hotWindows` when the shape over time matters |
| Threads spent the time waiting rather than running | `blocking_` and `io_` — the waiting a CPU graph cannot see |
| The question is what allocates, and the application's repository is checked out here | `memory_allocations` for the types, then `code_hotspots` on the allocation event with `useWeight: true` and the checkout's `framePrefixes` for which of its methods the bytes are charged to — both answered before any follow-up is offered (the `code-insight` skill) |
| The question is how long one method takes per call | `methodtracing_timing`; on `NOT_RECORDED`, say the recording cannot give it and how to record it (`jdk.MethodTiming` with a filter on the method — `profile-run`) before any stand-in, each labelled: a statement's or span's duration, or the method's share of the samples |
| Allocation samples are large, or GC is in `topFindings`, or the question is whether GC hurts | `jvm_gc` for whether it hurts, measured against the recording; a fraction of a percent is the answer, with no flag or setting to change — not even an optional one. Then the allocation flamegraph for why, when it does hurt |
| A memory warning is in `topFindings` (usage near 100%, a container limit) | `jvm_configuration` (`GC_HEAP_CONFIGURATION`) and `jvm_container` before reading it — a pre-touched heap reads as full; `references/jvm.md` |
| `jdk.OldObjectSample` is recorded, or the heap grows across the recording | `memory_leakCandidates`; a heap dump and `analyze-heap` for what retains it |
| Two profiles of the same workload | `compare-jfr` |
| The question is about exceptions, errors or timeouts in the application's code | `analyze-exceptions` |
| `topFindings` is empty and `capabilityGaps` names `autoAnalysis` | The rules did not run, so their silence is a gap and not a clean result. `jvm_autoAnalysis` with `compute: true` runs them; the other families answer either way. Empty with no such gap means the rules ran and cleared the recording |
When the summary points at more than one route and the user asked about only one, run that one and
offer the others as follow-ups — they are independent, so nothing is lost by waiting.
## Where the detail is
The route names a family; how to read it is in a file of its own beside this one. Read the one the
route goes to before its first call, and not the others:
| The route goes to | Read first |
|---|---|
| a family not named above, or every tool of one | `references/families.md` |
| a flamegraph — which event type, which window | `references/flamegraphs.md` |
| a slow endpoint, request or outbound call — traces, HTTP, JDBC, gRPC, trace attributes | `references/latency.md` |
| GC, safepoints, JIT, threads, native memory, the container, flags, exceptions, the host | `references/jvm.md` |
| waiting on I/O or locks, allocation by type, leak candidates | `references/waiting-and-memory.md` |
## 2. Read every answer the way it tells you to
Every answer is a typed record in `structuredContent` (the text beside it is the same record as
JSON, or the Markdown document with a footer), and every one reads the same way:
- **Times** are UTC epoch milliseconds (`…EpochMs`) — a window from one answer is passed to the next
tool unchanged as `startEpochMs`/`endEpochMs`; durations carry their unit (`…Ms`, `…Nanos`).
- **`status`** says when there is nothing to show — `NOT_RECORDED`, `NOT_COMPUTED`, `NO_TRACES`,
`EMPTY` — with a `reason`; that is an answer to report, not an error to retry. An id Jeffrey does
not know comes back as a tool error naming it.
- **`followUp.nextTools`** are the next calls with this answer's ids, windows and cursors filled
in — send them as they are; **`followUp.guidance`** is advice that is not a call.
- **`hasMore` + `nextCursor`** continue a list: pass `nextCursor` back as `cursor` with the same
arguments. Enum values are upper case (`SUMMARY`, `SERVER`), in answers and arguments alike — except
`profiles_viewLink`'s `view`, which takes Microscope's own lowercase page paths.
- **`uiLink`** opens the same view in Microscope, and a row that names its own thing — a trace, an
operation, an exemplar — carries its own. Put each beside the name it opens (*Link what you name*
below); never fetch it or read it back. Nothing is exported to a file.
`flamegraph_export`, `traces_traceExport` and `traces_operationExport` return Markdown documents
that open with their own reading instructions — what `self` versus `total` means, what the frame
tags mean, what was pruned, and how to analyse that event type. Follow that preamble rather than
generic flamegraph conventions; Jeffrey's accounting is stated there in the version that matches
the code that produced it.
## Hand the reading to the analyst
An export can run to 120,000 characters, and answering a question well often takes several. A
**`jfr-analyst`** agent runs a sequence and returns only the findings — the hottest frames with
their shares, the causes named. Everything it read stays in its own context. The Claude Code plugin
ships it as `microscope:jfr-analyst`; in Codex it is the custom agent from
`codex/agents/jfr-analyst.toml`. If your client has no such agent, read the exports here and
keep the sequence short.
**Two or more exports are never read here.** When the question needs more than one — two areas the
user named or picked, a flamegraph and a trace, a deep chase down one path — send one
`jfr-analyst` call per export, all in a single message so they run at once, each with the
`profileId`, the one question and the event type it reads. Read nothing they will read. An area
nobody chose is not sent to an analyst to be safe.
Read an export here, in this conversation, only when there is exactly one and its result will be
discussed turn by turn. The analyst returns a report; it cannot answer a follow-up about a document
the conversation never saw.
Whatever it reports, keep here: mapping frames onto the checkout, the recommendation, and every
question to the user. The analyst has no file tools and never proposes changes.
A client may save an answer too long for it to a file rather than show it. The analyst cannot open
one: it returns such files under **Saved, not read**, with the call behind each. Read each of them
here with your own file tools before you write the answer — the one case an export is read in this
conversation beside an analyst's — and never take the analyst's silence about one as a finding.
When nobody here can open it — your read of the saved file is refused as well — the question is not
lost, and you do not stop to ask. A question about where the application's code spends its time, with
its repository checked out here, is answered by `code_hotspots` with the checkout's `framePrefixes` (see
the `code-insight` skill): a small answer that ranks your methods by the cost charged to them, and whose
`calledFrom` names the code behind a wrapper. Answer from it, say the graph itself was not read, and link
it. Then `Glob` for the files of the classes it names — the check *Implement fixes* below needs — and
close the same way whatever you could answer: when a finding names code this repository holds, offer
**Implement fixes** by that name, never "I can read it and suggest changes".
## Grounding claims
The exports carry call paths and figures. A frame may also carry a line, as `Class.method:214`, and
it is printed only when every sample at that frame agreed on it — a frame without one was sampled
across several lines or has no line information at all. Cite the path and the numbers the document
shows.
Read the real source before naming a file, method or line — never infer them from a frame name. Two
ways to reach it:
- If the repository is open in this session, read it with your own file tools.
- If the reader has IntelliJ open with the Jeffrey plugin, `ide_resolve` answers where a class and
method actually live — the file, the line, and whether the position is decompiled, imprecise or
older than the recording. It resolves nested classes, Kotlin facades and inherited methods that a
grep for the frame name gets wrong, and it does not move the reader's editor. `ide_windows` shows
which checkouts are open and which is on the commit the recording was built from.
The `optimize-code` skill carries the full profile-to-code-change workflow.
## Write it up
The `report` skill defines the shape of a finding — symptom, the tool call and its figures,
interpretation, recommendation, confidence — and the rules that decide whether the report is
usable: every number names the call that produced it, shares say what they are a share of, counts
become rates against the recording length, sampled and rule-based evidence is capped at medium
confidence, and what the profile could not answer goes in its own **Not assessed** section rather
than passing as a clean result. Follow it for anything the user reads.
## Implement fixes
You are usually running inside the repository of the application that was profiled, so a finding
can become a change to its code. When it can, offer that as an option labelled exactly
**Implement fixes** — not "I can propose a change" in passing — beside the follow-ups that close the
answer. In Claude Code close with `AskUserQuestion` whenever this option is on offer, a named area's
answer included: the follow-ups, **Implement fixes**, and "Stop here". Elsewhere, one line that
starts "Implement fixes:". Offer it, never take it: nothing is edited until the user picks it.
Before you send a reply whose findings name code this repository holds, check its close: the option
reads **Implement fixes**, word for word. "Fix `count()`: I can propose changes" is the same offer
without its name, and the user cannot pick it.
Offer it only when both hold, or it is noise — and when they do not, leave it out without a word:
no "Implement fixes: not on offer", no sentence on why there is nothing to fix. Run both checks before
you write the offer: one that says it has not yet checked whether the class is here is not offered.
- the working directory is a repository — a `.git` there (`Glob`), or `git rev-parse
--show-toplevel` answering;
- at least one finding names something that repository holds — the class of the hot frame, the
throw site, a leak suspect's class or the field that holds its accumulation point (its
`gcRootPath` names the field, or the thread and `stackFrame` that hold it), the configuration file
(`logback.xml`, `application.yml`, a pool's settings): `Grep` or `Glob` for it finds a file there,
not only JDK, framework or library code.
Then say how the code relates to the profile in the option's description: `profiles_get`'s
`recordingCommit` against `git rev-parse HEAD` — "profiled at abc1234, HEAD is def5678" when they
differ, "commit not recorded" when `recordingCommit` is null (a heap dump carries none). That
qualifies the offer; it never removes it.
The option's description names what it would change, at most two findings by place
(say, logback.xml's caller data, the pricing class's line formatter, or the audit log's unbounded
list). When the user asks what else there
is, or the analysis winds down, the ledger's **Covered** findings that pass the same check become
one multi-select **Implement fixes for:** question.
Picked, it hands over to the `optimize-code` skill with what this conversation already established —
the profile id, each finding's frame or setting, its figures and its link — so it starts at reading
the source rather than choosing evidence again, and keeps its own gate: the proposed change per
finding first, then which to apply, and only the accepted ones are edited. A setting (a JVM flag, a
pool size) is proposed as a value to change, not as an edit to code. After the build and the tests,
offer **Re-profile and compare** — `profile-run` records the changed code, `compare-jfr` puts it
against this profile — so the fix is measured rather than assumed. A heap finding is measured by a
second dump taken under the same load and put against this one with `heap_diff`, the earlier dump as
the baseline.
## Link what you name
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 `↗`.**
- Take the link from the answer the thing came from. A row with its own `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.
- No link in hand for one of the profile's pages (GC, JIT, threads, the heap views, …) →
`profiles_viewLink`, one cheap call; the profile itself → `profiles_link`.
- Never build, edit or guess a URL, and never fetch one: the link is for the user, and one typed by
hand opens the wrong page or none.
- An area not yet analysed is not a thing and needs no link, and a result no page shows — a raw SQL
query — has none; say so rather than inventing one.
- A tool's name is never link text. The link is the page, by its name — `[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.
## When something fails
- `Profile … is not a heap dump` → it is a JFR recording; stay with `jfr_`, `flamegraph_`, `traces_`.
- `The recording path must be absolute` → pass the full path, not a repository-relative one.
- `No such recording file` but the file is right there → Jeffrey is looking on *its own*
filesystem. Copy or mount the recording where Jeffrey can reach it, or upload it in the UI.
- No `recordings_` tool advertised → the installation trimmed the tool list with
`jeffrey.microscope.mcp.families`. Upload and analyse in the Jeffrey UI, then work from
`profiles_list`.
- Every call fails to connect → Jeffrey is not running at the configured address. Point the client
at the real `…/api/mcp` endpoint: in Claude Code, `/plugin` → `microscope` → **Jeffrey MCP
endpoint**; in Codex, the `[mcp_servers.jeffrey]` block in `~/.codex/config.toml`. The URL is
`/api/mcp` on the address you open Jeffrey's UI on.
- The server answers 404 → it was started with `jeffrey.microscope.mcp.enabled=false` (it is on
by default), or the configured URL does not end in `/api/mcp`, the one path it serves.
Related skills: `analyze-heap` for a heap dump, `compare-jfr` when there is a before and an after
to weigh against each other, `jfr-sql` for raw SQL against the profile, `optimize-code` to go from a
hotspot to an edit in this repository, `report` for the shape every finding is written in.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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./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./heap-sqlLoad before the first heap_executeQuery call, whichever skill is driving the analysis: the schema of a Jeffrey heap-dump index (class, instance, outbound_ref, class_instance_field, string_content, gc_root, dominator, retained_size) and the traps that return a wrong answer without an error — the string table is the name pool, not the String contents; outbound_ref.field_id counts the whole field layout; retained sizes need the current tree. Use for what the purpose-built heap tools do not answer: what objects' fields or strings hold across a class, a count or join they do not shape.Other plugins' skills for the same job