agent_trace

agent_trace is a skill for Claude Code, Codex from antoinebou12/uml-mcp. It costs 84 tokens per session (1,642 once invoked), scanned A, original, MIT.

A skill for turning an agent run into a time-ordered trace. The trace can show language-model calls, tool calls, searches, sub-agents, errors, retries, token use, and cost.

In plain words
What is it for?
Use it to describe and render an agent run as a timeline or interactive trace, then validate the trace data before generating HTML or SVG.
Why use it?
It gives you a structured way to inspect what an agent did and where time, failures, or retries occurred.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Good fit Use it to describe and render an agent run as a timeline or interactive trace, then validate the trace data before generating HTML or SVG.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/antoinebou12/uml-mcp/agent_trace
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add antoinebou12/uml-mcp --skill agent_trace
Clone the repo
git clone --depth 1 https://github.com/antoinebou12/uml-mcp

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for agent_trace

README.md
[![agentmods](https://agentmods.dev/badge/skills/antoinebou12/uml-mcp/agent_trace/github.svg)](https://agentmods.dev/skills/antoinebou12/uml-mcp/agent_trace)
Your own site
<a href="https://agentmods.dev/skills/antoinebou12/uml-mcp/agent_trace"><img src="https://agentmods.dev/badge/skills/antoinebou12/uml-mcp/agent_trace/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for agent_trace

Your own site · 80×15
<a href="https://agentmods.dev/skills/antoinebou12/uml-mcp/agent_trace"><img src="https://agentmods.dev/badge/skills/antoinebou12/uml-mcp/agent_trace.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,642 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00084 $0.01642
Opus 5.5 $0.00034 $0.00657
Sonnet 5.5 $0.00017 $0.00328
Haiku 4.5 $0.00008 $0.00164

Measured today against content hash 12511621ce34, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

agent_trace scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.skill/skills/agent_trace/SKILL.md · 51 lines

How it starts

The opening of the file, as written. The whole thing — 51 lines — stays where its author put it; the contents beside it link to each section on GitHub.

agent_trace diagram (uml-mcp plugin trace)

diagram_type: agent_trace
Backend: plugin:trace (bundled with uml-mcp, on by default)
Output formats: html, svg

Agent run trace: steps (user, llm, tool, retrieval, subagent, guardrail, memory, reply, error) as a waterfall on a time axis with tokens, cost, errors and retries; the html page adds a flow view, folding, step details and the critical path. JSON steps or OpenTelemetry GenAI spans; html or svg

Load the workflow skill uml-mcp-diagrams and the focused guide skill://uml-mcp-guides/agent-trace/SKILL.md. This file is notation only; it does not add an MCP tool.

Example prompt

Show this agent run as a trace: the user question, a retrieval, two tool calls (one retried), the LLM calls and the reply, with tokens and cost.

Notation tips

  • steps: id, parent, kind (user, llm, tool, retrieval, subagent, guardrail, memory, reply, error), name, start_ms, end_ms (relative to the run start).
  • Optional per step: tokens (in, out, cached), cost_usd, model, tool, input, output, docs (title, score, source), status (ok, error, retry), note.
  • Nest steps with parent (a sub-agent's calls under it); end_ms must not be before start_ms and ids are unique.
  • OpenTelemetry works too: spans with span_id, parent_span_id, name, start, end (ISO 8601 or epoch numbers) and GenAI attributes (gen_ai.operation.name, gen_ai.request.model, gen_ai.usage.input_tokens, gen_ai.usage.output_tokens, gen_ai.tool.name).
  • svg is the waterfall with a summary header; html adds a flow view, folding, step details and the critical path.

Styling

Pass theme (auto, dark or light) to generate_uml / generate_uml_image, or set it in the source. auto follows the reader's system in the HTML page and is dark in static SVG and PNG.

Interactive page

In the HTML page (and the MCP App viewer):

Read the full file on GitHub · 51 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · +13 lines 12511621ce34
  2. 26d ago First seen · 38 lines · 84 tokens per session scan A 667220653426

Subscribe to this mod's changes

agent_trace is a skill published in the GitHub repository antoinebou12/uml-mcp (111 stars, last pushed today), licensed MIT. It adds 84 tokens to every session and 1,642 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-08.

Related

agent_trace compared with skills from other repositories

agent_trace next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agent_traceantoinebou12/uml-mcpSkill111todayMITA84Claude Code, Codex
detailed-designpan94u/forgeSkill412d agononeA27Claude Code
writing-skillstakaakit/superpowers-umlSkill132mo agononeA20Claude Code
brainstormingtakaakit/superpowers-umlSkill132mo agononeA37Claude Code
finishing-a-development-branchtakaakit/superpowers-umlSkill132mo agononeA27Claude Code
systematic-debuggingtakaakit/superpowers-umlSkill132mo agononeA21Claude Code
test-driven-developmenttakaakit/superpowers-umlSkill132mo agononeA17Claude Code