debugging-investigator

debugging-investigator is a skill for Claude Code, Codex from cmdr-chara/codex-toolkit. It costs 68 tokens per session (1,792 once invoked), scanned A, original, MIT.

A method for finding the cause of a software failure through reproduction, evidence gathering, controlled tests, and tracing what happened across components.

In plain words
What is it for?
Use it to investigate bugs and incidents, compare possible causes, recommend the smallest fix, and define a regression test.
Why use it?
It reduces guesswork when a program crashes, produces a wrong result, hangs, leaks resources, or behaves inconsistently.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/cmdr-chara/codex-toolkit/debugging-investigator
Any agent
npx skills add cmdr-chara/codex-toolkit --skill debugging-investigator
Clone the repo
git clone --depth 1 https://github.com/cmdr-chara/codex-toolkit

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 debugging-investigator

README.md
[![agentmods](https://agentmods.dev/badge/skills/cmdr-chara/codex-toolkit/debugging-investigator.svg)](https://agentmods.dev/skills/cmdr-chara/codex-toolkit/debugging-investigator)
Your own site
<a href="https://agentmods.dev/skills/cmdr-chara/codex-toolkit/debugging-investigator"><img src="https://agentmods.dev/badge/skills/cmdr-chara/codex-toolkit/debugging-investigator.svg" alt="Measured on agentmods" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,792 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00068 $0.01792
Opus 5 $0.00034 $0.00896
Sonnet 5 $0.00014 $0.00358
Haiku 4.5 $0.00007 $0.00179

Measured 3d ago against content hash 6b24162a4eab, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

debugging-investigator 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 3d 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/debugging-investigator/SKILL.md · 202 lines

How it starts

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

Debugging Investigator

Convert symptoms into a defensible causal explanation. Evidence precedes edits.

Trigger boundary

Use this skill for:

  • a reproducible or reported crash, incorrect result, regression, hang, leak, race, flaky test, or production incident;
  • a failure that crosses components and needs trace/causal analysis;
  • ranking competing explanations and designing discriminating experiments;
  • recommending a minimal fix and regression coverage after cause is established.

Do not trigger for:

  • a known framework/dependency migration—use codebase-evolution-controller;
  • preventive architecture mapping without a symptom—use repository-intelligence;
  • implementing an already-understood bug fix unless investigation evidence must be reconstructed;
  • deciding whether the final integrated release can ship.

Required inputs

Collect:

  1. exact observed behavior and expected behavior;
  2. first/last known versions, timestamp, environment, frequency, and affected scope;
  3. reproduction steps, request/input identifiers, logs/traces/crash/test output;
  4. repository state and recent relevant changes;
  5. safety constraints for production data, traffic, secrets, and instrumentation;
  6. what has already been tried and its result.

Normalize relative terms. Replace “after the last deploy” with exact candidate, deployment, and time when available.

Safety baseline

  • Preserve the working tree and production state; do not reset, clean, or mutate data to make reproduction easier.
  • Redact secrets, personal data, tokens, and customer payloads from evidence.
  • Use read-only inspection and isolated fixtures before live experiments.
  • Add instrumentation behind the narrowest safe scope and remove or document it after use.
  • Do not disable security, authorization, integrity checks, rate limits, or safeguards merely to reach the symptom.
  • Never claim root cause from temporal correlation alone.

Workflow

1. Write the failure statement

Use:

Given <preconditions/input>, in <environment/version>,
when <action/event> occurs,
the system produces <observed result>,
but the contract requires <expected result>.
Frequency/scope:
First/last known:
User/operational impact:

Read the full file on GitHub · 202 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 3d ago First seen · 202 lines · 68 tokens per session scan A 6b24162a4eab

Subscribe to this mod's changes

debugging-investigator is a skill published in the GitHub repository cmdr-chara/codex-toolkit (2 stars, last pushed 6d ago), licensed MIT. It adds 68 tokens to every session and 1,792 once invoked, about $0.0003 per session on Opus 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.