systematic-debugging

systematic-debugging is a skill for Claude Code, Codex from fmind/dot. It costs 45 tokens per session (1,078 once invoked), scanned A, original, MIT.

A step-by-step method for finding the root cause of unknown bugs, failed builds, login problems, intermittent test failures, and slow-running software.

In plain words
What is it for?
Use it to investigate errors, flaky tests, authentication failures, build failures, and runtime performance regressions before changing code.
Why use it?
It replaces guesswork with evidence: reproduce the problem, narrow it down, compare it with a working case, and test one explanation at a time.

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/fmind/dot/systematic-debugging
Any agent
npx skills add fmind/dot --skill systematic-debugging
Clone the repo
git clone --depth 1 https://github.com/fmind/dot

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/fmind/dot/systematic-debugging.svg)](https://agentmods.dev/skills/fmind/dot/systematic-debugging)
Your own site
<a href="https://agentmods.dev/skills/fmind/dot/systematic-debugging"><img src="https://agentmods.dev/badge/skills/fmind/dot/systematic-debugging.svg" alt="Measured on agentmods" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,078 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.00045 $0.01078
Opus 5 $0.00023 $0.00539
Sonnet 5 $0.00009 $0.00216
Haiku 4.5 $0.00005 $0.00108

Measured yesterday against content hash a6cd4ee3db9c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

systematic-debugging 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 yesterday.

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/systematic-debugging/SKILL.md · 42 lines

How it starts

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

Systematic Debugging

Replace guess-and-check with an evidence loop that localizes where and why behavior diverges; test-driven-development implements the fix and incident-response owns live outages.

Workflow

  1. Preserve evidence: Capture the exact error, stack trace, command, inputs, versions, environment differences, timing, and recent changes before touching anything.
  2. Reproduce: Find the shortest reliable command or sequence; for intermittent failures record the frequency and vary one dimension at a time.
  3. Reduce: Minimize input, fixture, process count, and component path while keeping the same failure, preferably as a focused test or disposable harness.
  4. Localize: Trace bad state backward across calls, processes, network boundaries, configuration, and generated artifacts; at each boundary compare what entered with what left.
  5. Find a working comparator: Locate the nearest known-good test, code path, version, environment, or commit and list every relevant difference before choosing one.
  6. Form one hypothesis: State X causes the failure because Y evidence predicts Z observation and define a minimal probe that could falsify it.
  7. Run the probe: Change one variable in a reversible fixture or add narrow instrumentation; record whether the prediction held and discard failed hypotheses instead of layering fixes.
  8. Name the root cause: Explain the triggering condition, the faulty assumption or invariant, the propagation path, and why existing controls missed it; never blame timing, the environment, or a third party until that path and the missing resilience are understood.
  9. Fix only when authorized: Write a failing regression test, implement the smallest root-cause fix, and verify the symptom plus the wider gate.
  10. Report: Return symptom and impact, minimal reproduction, evidence and ruled-out hypotheses, root cause and propagation path, the authorized fix or recommended correction, regression proof, and residual uncertainty with the next probe.

Read the full file on GitHub · 42 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. yesterday First seen · 42 lines · 45 tokens per session scan A a6cd4ee3db9c

Subscribe to this mod's changes

systematic-debugging is a skill published in the GitHub repository fmind/dot (4 stars, last pushed yesterday), licensed MIT. It adds 45 tokens to every session and 1,078 once invoked, about $0.0002 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-09-03.