Guide · Agent skill
How to use the trace agent skill for evidence-driven tracing
Updated · written with AI from the project's own documentation and checked against our catalogue data
The trace skill changes how an agent handles 'why did this happen?' questions. Instead of jumping straight to a fix, the agent restates what was observed, proposes several competing explanations, gathers evidence for and against each, ranks them, and suggests the cheapest test that would separate the leading explanations. This guide is for developers, engineers running postmortems, and analysts who want a reasoned explanation first. By the end you will know what the skill does, how to install it, how to trigger it, and when to choose a different approach.
Quick start
- 1Download the ZIP. Get the trace skill ZIP from this page.
- 2Unzip into a skills folder. Extract it into ~/.claude/skills/ for all projects, or into a project's .claude/skills/ folder.
- 3Check the plugin and team mode. Make sure the oh-my-claudecode plugin is installed in Claude Code and built-in team mode is available.
- 4Describe the observation. State what happened, when, and what evidence you have, and say you want the cause explained before any change.
- 5Run the trace. Use /oh-my-claudecode:trace with your observation, or ask in plain language for a ranked explanation.
- 6Review the ranking. Read the ranked hypotheses, the evidence against each, and the critical unknown.
- 7Run the discriminating probe. Carry out the recommended probe to settle the leading explanation before deciding on a fix.
What is an agent skill and what does trace make the agent do?
An agent skill is a folder containing a SKILL.md file with instructions that Claude loads when a task matches the skill. The trace skill is the orchestration layer for ambiguous, causal questions where the goal is to explain why an observed result happened, not to rewrite code.
When the skill runs, the lead agent works through a fixed contract: it restates the observation, generates competing hypotheses, gathers evidence for each in parallel, runs a rebuttal round, and returns a ranked synthesis. Its output keeps observation, hypotheses, evidence for, evidence against and gaps, the current best explanation, the critical unknown, and a discriminating probe as separate items.
- Restates the observed result precisely before analysis starts
- Runs three tracer lanes by default: code path, config or environment, and measurement or assumption mismatch
- Tries to falsify its own favourite explanation
- Ranks evidence by strength, from controlled reproductions down to speculation
- Ends with a probe that would collapse the remaining uncertainty
Install the trace skill
The skill is distributed as a ZIP from the page you are reading. Download the ZIP and unzip it into one of two locations. Use ~/.claude/skills/ to make it available in all your projects, or a project's .claude/skills/ folder to limit it to one repository.
You can also upload it in the Claude apps under Settings → Capabilities → Skills. The source notes that the skill is designed to run inside Claude's built-in team mode, which sits on top of the oh-my-claudecode toolkit, so the oh-my-claudecode plugin must be installed in Claude Code.
- Download the trace ZIP from this page
- Unzip it into ~/.claude/skills/ for personal use, or into .claude/skills/ inside a project
- Or upload the ZIP in the Claude apps under Settings → Capabilities → Skills
- Confirm the oh-my-claudecode plugin is installed in Claude Code
Check what you need before you start
Trace depends on a few things. Team mode is the key one: the skill is built to coordinate several parallel agents, so you need Claude's built-in team mode available. The agent also needs real material to inspect, because it cannot reason about a bug it cannot see.
- oh-my-claudecode plugin installed in Claude Code
- Claude built-in team mode (multiple parallel agents)
- Access to the relevant codebase, logs, configs or trace artifacts
- The skill runs no scripts and uses no network access, according to the source
How do you trigger the trace skill with a natural request?
The skill's documented entry point is the command /oh-my-claudecode:trace, which takes an observation as its argument. You can also describe the problem in plain language, such as asking why latency rose after a change or why a benchmark result looks wrong, and say you want the cause explained before anything is changed.
Phrase the request around the observation and the question. Name the symptom, what changed, and what evidence exists. The skill is most useful when you explicitly say you do not want a fix yet.
- /oh-my-claudecode:trace "p95 latency doubled after the cache change"
- "Trace back the likely causes of this output. Don't change any code yet."
- "Why did the nightly job drop 30% of rows? Explain before fixing."
- "Here is last week's postmortem data. Rank the competing causes against the evidence."
/oh-my-claudecode:trace "<observation to trace>"Examples of useful traces
The source lists the kinds of problems the skill fits: runtime bugs and regressions, performance, latency and resource behaviour, architecture premortems and postmortems, scientific or experimental results, and config or routing behaviour. Each works best when the observation is specific and the evidence is available.
- A regression where tests pass locally but fail in production, with logs and config diffs to inspect
- A latency spike with trace events or metrics, where the question is queueing, code path or configuration
- A postmortem asking which of several contributing causes best fits the logs
- A benchmark that improved unexpectedly, where the analyst needs confounders checked before trusting it
Safety notes: scripts, network and what the agent can read
According to the source, the trace skill runs no scripts and uses no network. It works by reading material you give it access to: code, tests, configs, docs, logs, outputs, benchmark artifacts, and existing trace artifacts through the trace_timeline and trace_summary tools mentioned in its instructions.
Because the agent reads your files and logs, only point it at material you are comfortable having analysed. Review the ranked output as a reasoned hypothesis, not a verdict.
- No scripts are run by the skill, per the source
- No network use, per the source
- The agent can only inspect what you make available to it
- Treat results as ranked likelihoods, not confirmed root causes
Tips for getting better traces
Give the agent a precise observation, not a guess at the answer. Include the evidence you already have, such as logs, timestamps, configs and the exact output. If two causes seem equally likely, ask for the critical unknown and the discriminating probe first, then run that probe yourself before changing code.
- State the observation as a measurable fact, with numbers and timing where you have them
- Include the artifacts the agent should read, such as logs and configs
- Ask it to keep the probe separate from any fix
- Re-run with new evidence when the critical unknown is answered
What people use it for
- Explaining a performance regression by ranking code, config and measurement explanations
- Running a postmortem that weighs several contributing causes against the logs
- Checking whether a surprising benchmark result reflects the system or the measurement method
- Premortem review of an architecture change by testing where it could fail
Frequently asked questions
How do I install the trace skill?
Download the trace ZIP from this page and unzip it into ~/.claude/skills/ for all projects, or into a project's .claude/skills/ folder. You can also upload the ZIP in the Claude apps under Settings → Capabilities → Skills.
What do I need to use the trace skill?
You need the oh-my-claudecode plugin installed in Claude Code, Claude's built-in team mode for running multiple parallel agents, and access to the codebase, logs, configs or trace artifacts the agent should inspect.
Is the trace skill free?
The source lists the licence as MIT and does not mention pricing. Check the licence and the oh-my-claudecode project for the terms that apply to you.
Does the trace skill fix bugs for me?
No. The skill is designed to explain why something happened and avoids jumping to implementation. It returns ranked explanations and a probe to run next, so a separate fix step comes after.
Does the trace skill run scripts or use the internet?
According to the source, it runs no scripts and uses no network. It reads the files and artifacts you make available to it.
When should I not use trace?
Skip it for simple, well-defined bugs where the fix is obvious, since the multi-hypothesis process adds overhead. Also skip it when you need an immediate code change, or when you expect a guaranteed root cause, because the skill reports likelihoods and gaps.
New agent skills, repos and AI tools — every week
The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.
Our verdict
Use the trace skill when you need a reasoned, evidence-ranked explanation for an ambiguous regression, latency problem, postmortem or surprising result before touching code. Pick something else for simple bugs with obvious fixes, for urgent changes, or if you need a guaranteed root cause, and be aware it depends on the oh-my-claudecode plugin and team mode.
Download the skill