
Trace diagram
Draws a Grafana Tempo trace as an interactive sequence diagram, without diagnosing it
Trace diagram is an open-source agent skill for developer tools. It is available on Claude Code.
- Scripts
- None
- Platforms
- Claude Code
- GitHub stars
- 13
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Trace diagram
This skill turns the spans of a single trace id into a self-contained, interactive sequence diagram rendered with archify. It collects the trace through a bundled Python collector that reads Grafana Tempo, optionally joining warn and error log lines from Loki as notes on the diagram, then runs a second script to produce the HTML output.
The workflow is deliberately limited to showing evidence. The agent reports the services in call order, the root span, span counts, error-status spans, trace duration and the first recorded failure, using only recorded timestamps, and it is told not to speculate about causes. Investigating why a request failed is handled by a separate debugging skill.
It expects a 16- or 32-character hex trace id or a W3C traceparent, a configured Grafana instance with Tempo and optionally Loki datasources, and Python 3.8+ plus Node for archify. The skill is read-only and only runs the two bundled scripts.
When your agent uses it
Draw a trace as an interactive, self-contained sequence diagram (archify) from its Grafana Tempo spans, without investigating it. Use when the user wants to see, share or export the call sequence of a trace id - who called whom, where the time went, which span failed first - and does not ask why it failed. Evidence only. Read-only.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
- Instructions only, no scripts(see the files on GitHub)
- Asks for: Bash(python3 *collect-trace.py*), Bash(python3 *trace-diagram.py*), Read, Bash(python *collect-trace.py*), Bash(py -3 *collect-trace.py*), Bash(python *trace-diagram.py*), Bash(py -3 *trace-diagram.py*)(see the files on GitHub)
- License: MIT(see the files on GitHub)
From a static check of its 1 file (4 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the sherlock-holmes plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add whitebeardit/claude-plugins
/plugin install sherlock-holmes@whitebeard-pluginsOr copy only this skill to ~/.claude/skills/trace-diagram:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/whitebeardit/claude-plugins.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/trace-diagram &&
cp -R "$tmp/sherlock-holmes/skills/trace-diagram" ~/.claude/skills/trace-diagram &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/trace-diagram inside it instead.
Copy the skill folder to ~/.agents/skills/trace-diagram to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/whitebeardit/claude-plugins.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/trace-diagram &&
cp -R "$tmp/sherlock-holmes/skills/trace-diagram" ~/.agents/skills/trace-diagram &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/trace-diagram inside it instead.
Copy the skill folder to ~/.cursor/skills/trace-diagram to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/whitebeardit/claude-plugins.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/trace-diagram &&
cp -R "$tmp/sherlock-holmes/skills/trace-diagram" ~/.cursor/skills/trace-diagram &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/trace-diagram inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/whitebeardit/claude-plugins.git --path sherlock-holmes/skills/trace-diagramOr copy the folder to ~/.gemini/skills/trace-diagram yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/trace-diagram:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/whitebeardit/claude-plugins.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/trace-diagram &&
cp -R "$tmp/sherlock-holmes/skills/trace-diagram" ~/.copilot/skills/trace-diagram &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/trace-diagram inside it instead.
Get the folder:
git clone --depth 1 https://github.com/whitebeardit/claude-plugins.gitThen copy claude-plugins/sherlock-holmes/skills/trace-diagram into your agent's skills folder as trace-diagram. Agents that support SKILL.md read one folder per skill.
What it does
- Sequence diagram from spans
- Renders the call sequence of a trace id as a sequence diagram showing which service called which.
- Evidence-only summary
- Reports service order, root span, error spans, duration and first failing span without diagnosing causes.
- Log notes on spans
- Attaches warn and error log lines from Loki to matching spans when that data is available.
- Self-contained HTML output
- Produces an HTML file that can be opened in a browser and shared or exported as PNG or SVG.
- Interactive navigation
- Lets readers search for a participant, trace a route between two participants and play guided chapters.
- Offline fixtures
- Supports bundled fixture cases so the diagram can be drawn without a live Grafana connection.
Good for
- Show the call sequence of a trace id I received from a colleague
- Export a sequence diagram of a slow request for a postmortem document
- See which downstream service a failing request reached first
- Draw a fixture trace to check how the diagram renders
Trace diagram FAQ
What does Trace diagram need to run?
It needs Python 3.8+, a configured Grafana instance with a Tempo datasource, and archify with Node to render the diagram.
Does Trace diagram explain why a request failed?
No. It only draws the trace and reports recorded facts. For a root-cause investigation it points to a separate trace-debug skill.
Does Trace diagram change anything in my system?
No, the skill is described as read-only and runs only the bundled collector and diagram scripts.
What input does Trace diagram accept?
A 16- or 32-character hex trace id or a W3C traceparent, plus optional flags such as --around, --lookback or --fixture.
How do I install Trace diagram in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/trace-diagram to use it in all your projects, or to .claude/skills/trace-diagram in one project. Or install the sherlock-holmes plugin, which includes it: /plugin marketplace add whitebeardit/claude-plugins, then /plugin install sherlock-holmes@whitebeard-plugins.
Does Trace diagram run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Trace diagram?
Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.
What are the best alternatives to Trace diagram?
The closest alternatives to Trace diagram are Trace debug, Otel tracing, Trace debugging, Error sweep and Trace architecture.
Where this comes from
- Description: from the skill's own SKILL.md.
More from whitebeardit/claude-plugins

Read-only AWS cost audit that produces an HTML report and a phased cuts plan
- Open source
- 13 GitHub stars
- Cloud and infrastructure

Maps an AWS bill into fixed cost categories with the biggest lines, read-only
- Open source
- 13 GitHub stars
- Cloud and infrastructure

Checks that your machine and AWS accounts are ready for a cost audit
- Open source
- 13 GitHub stars
- Cloud and infrastructure

Finds idle AWS resources such as unused NAT gateways, volumes and IPs, with evidence
- Open source
- 13 GitHub stars
- Cloud and infrastructure

Lists error spans and log errors for a time window as a numbered table
- Open source
- 13 GitHub stars
- Developer tools

Guides first-run setup of Sherlock Holmes Grafana Loki and Tempo access
- Open source
- 13 GitHub stars
- Developer tools



