trace-incident

trace-incident is a skill for Claude Code from matheusPavaneli/workbench. It costs 44 tokens per session (843 once invoked), scanned A, original, MIT.

A production-incident investigation workflow that traces a reported symptom to its likely cause and records a timeline and hotfix plan. A production incident is a problem affecting the live system or its users.

In plain words
What is it for?
It helps document what happened, trace the relevant code path, collect file-and-line evidence, judge confidence in the diagnosis, and write a minimal hotfix plan.
Why use it?
It prevents rushed fixes based on guesses and separates immediate steps that limit damage from changes that remove the underlying cause.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the workbench plugin — 10 skills, 2 hooks shipped together

Good fit It helps document what happened, trace the relevant code path, collect file-and-line evidence, judge confidence in the diagnosis, and write a minimal hotfix plan.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/matheuspavaneli/workbench/trace-incident
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 matheusPavaneli/workbench --skill trace-incident
Clone the repo
git clone --depth 1 https://github.com/matheusPavaneli/workbench

Made for: Claude Code.

Or install workbench, the plugin that ships this one along with the rest of its 10 skills, 2 hooks.

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 trace-incident

README.md
[![agentmods](https://agentmods.dev/badge/skills/matheuspavaneli/workbench/trace-incident/github.svg)](https://agentmods.dev/skills/matheuspavaneli/workbench/trace-incident)
Your own site
<a href="https://agentmods.dev/skills/matheuspavaneli/workbench/trace-incident"><img src="https://agentmods.dev/badge/skills/matheuspavaneli/workbench/trace-incident/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 trace-incident

Your own site · 80×15
<a href="https://agentmods.dev/skills/matheuspavaneli/workbench/trace-incident"><img src="https://agentmods.dev/badge/skills/matheuspavaneli/workbench/trace-incident.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 843 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.00044 $0.00843
Opus 5.5 $0.00018 $0.00337
Sonnet 5.5 $0.00009 $0.00169
Haiku 4.5 $0.00004 $0.00084

Measured 21d ago against content hash 797fffe6c65b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

trace-incident 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 21d ago.

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.

skills/trace-incident/SKILL.md · 70 lines

How it starts

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

trace-incident

wb <args>    # wb not on PATH: python <this skill's directory>/../../lib/wb.py <args>

The entry is a symptom — an error, an alert, a user report — not a ticket. Speed matters, which is exactly why the discipline does not loosen: a hotfix built on a guess extends the incident.

Steps

  1. Write down the symptom first, before touching code. What is observed, since when, affecting whom, and how it was noticed. This becomes the timeline in .workflow/incident-<slug>/incident.md, and it is what stops the investigation drifting to a more interesting problem than the real one.

  2. Separate stopping the bleeding from fixing the cause. They are two changes. Decide explicitly which one you are doing now. A rollback, a flag flip or a config change often beats a code fix as the immediate step — say so if it does. A mitigation that is not code needs no sdd.json: record it as a timeline entry in incident.md — what was done, when, by whom, and the effect. route incident-<slug> lists it as the mitigate step.

  3. Trace it, do not guess it. Follow the symptom to the code path with the strongest search available: ../../shared/code-search.md. Then read the actual lines. Every step of the chain from symptom to cause needs a file:line you have read.

  4. Label the confidence. A plausible cause you cannot demonstrate is a hypothesis, and calling it one is not weakness — it is the difference between a fix and a second incident. Say what would confirm it: a log line, a metric, a reproduction.

  5. Plan the smallest fix. .workflow/incident-<slug>/sdd.json, persona incident-responder, shape in ../plan-change/references/sdd.md. Nothing tidied, nothing renamed, nothing upgraded. rollback states the user-visible state during and after, not just "revert the commit".

  6. Audit it anyway. sdd audit incident-<slug>. Urgency is when a wrong citation is most likely and most expensive. A missing handover is reported as pending, not failed: it is owed before the PR, not before the hotfix, and pr check --key refuses until it is written.

Read the full file on GitHub · 70 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. 21d ago Changed 797fffe6c65b
  2. 23d ago Changed · +6 lines 58f61a29efce
  3. 1mo ago First seen · 64 lines · 44 tokens per session scan A cfc3b833287a

Subscribe to this mod's changes

trace-incident is a skill published in the GitHub repository matheusPavaneli/workbench (1 stars, last pushed 21d ago), licensed MIT. It adds 44 tokens to every session and 843 once invoked, about $0.0002 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-08-31.