/sherlock-holmes:trace-diagram <trace-id> [--around <time>] [--lookback <dur>] [--fixture <dir>]from Sherlock Holmes
Draws an interactive sequence diagram from Grafana Tempo trace spans. Use to visualize call sequences, timing, and first-failure spans without diagnosing root cause.
Ships in Sherlock Holmes. 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.
Draw the trace given in $ARGUMENTS (first token: a 16- or 32-hex trace id or a W3C traceparent;
the rest are collector flags such as --around, --lookback or --fixture <dir>). This skill does
not diagnose. If the user wants to know why the request failed, point them at
/sherlock-holmes:trace-debug <trace-id>; the investigation draws the same diagram as part of its
report.
The bundled fixtures live at ${CLAUDE_PLUGIN_ROOT}/evals/fixtures/<case>/ (cases
01-downstream-503, 03-error-only-in-tempo, 04-contradictory-logs, 05-incomplete-trace,
06-intermediate-service-error; 02-db-timeout-retries has no trace in Tempo and therefore no
diagram). Resolve --fixture under ${CLAUDE_PLUGIN_ROOT}, never relative to the working directory.
Python command. The commands below start with python3. If the shell answers "command not
found", or python3 opens the Microsoft Store (Windows, where the python.org installer provides
python and py instead), run the same command with python in place of python3 - or py -3 -
and change nothing else; keep using that one for the rest of the session. If none of the three
exists, stop and tell the user: install Python 3.8+ (on Windows from python.org, ticking "Add
python.exe to PATH"), then fully close and reopen the editor or terminal that runs Claude Code, since
it reads PATH only when it starts.
This installation was configured with:
${user_config.grafana_url}${user_config.grafana_loki_uid}${user_config.grafana_tempo_uid}${user_config.loki_selector}${user_config.loki_trace_filter}${user_config.loki_trace_field}Pass each value that is real as the matching flag (--grafana-url, --grafana-loki-uid,
--grafana-tempo-uid, --selector, --trace-filter, --trace-field); skip blanks and unreplaced
${...} placeholders. Never put a credential on the command line.
python3 "${CLAUDE_PLUGIN_ROOT}/skills/trace-debug/scripts/collect-trace.py" --trace-id <trace-id> --format prompt [config flags] [flags]
One command in exactly that shape: no cd, &&, pipes or redirection. The diagram needs only the
spans, so if the cut reports a Loki problem but tempo=found, continue; the log lines are an extra
(warn/error lines joined to spans become notes on the diagram). If the cut says Tempo did not return
the trace, stop: there is nothing to draw, and say so. On an access error (401/403, "no access
configured"), run python3 "${CLAUDE_PLUGIN_ROOT}/skills/trace-debug/scripts/collect-trace.py" doctor
and report the configuration problem instead. Never run the collector more than twice.
Take the path printed after FULL JSON: and run, at most once:
python3 "${CLAUDE_PLUGIN_ROOT}/skills/trace-debug/scripts/trace-diagram.py" --input <that path>
In the user's language, at most eight lines:
diagram: line exactly as printed (path, message count, "evidence only");/ finds a participant, R traces a route between two
participants, P plays the guided chapters, Export gives PNG/SVG.If the diagram was not generated, give the one-line reason and, when it is archify or Node missing,
the install line npx skills add tt-a1i/archify -g (or ARCHIFY_BIN=<path to archify.mjs>). Do not
speculate about causes and do not propose fixes to the system under investigation.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
4 skills in this plugin
/error-sweepList the errors of a time window - without a trace id - as a fixed, numbered table of facts from Grafana Tempo (spans with error status) and Grafana Loki (error lines grouped by a masked message signature), then let the user choose what to see - the sequence diagram of an example trace, or a full investigation with trace-debug. Use when the user asks whether there were errors in a period ("any errors in the last 2 hours?", "what failed in payment-service yesterday afternoon?", "sweep the logs for errors"). Deterministic - no model judges severity or cause. Read-only. The table is the answer - show it to the user exactly as printed, in full, without summarizing, reordering or commenting on it./setupGuided first-run setup for Sherlock Holmes, in one conversation - checks Grafana access with the doctor, discovers the Loki and Tempo datasource UIDs, proposes the Loki stream selector from the labels your Loki really has, hands over the exact /config values, optionally installs archify for the trace diagram, and verifies the result. Use right after installing the plugin, whenever the doctor reports a configuration problem, or when the user asks how to configure or set up Sherlock Holmes. Changes nothing in production.npx claudepluginhub whitebeardit/claude-plugins --plugin sherlock-holmesOther plugins' skills for the same job