systematic-debugging

systematic-debugging is a skill for Claude Code, Codex from JKHeadley/instar. It costs 0 tokens per session (2,153 once invoked), scanned A, original, MIT.

A four-phase method for debugging software, meaning finding and fixing the underlying cause of a problem. It requires identifying the root cause before attempting a fix.

In plain words
What is it for?
Use it when facing unclear bugs, errors, failed tests, unexpected behavior, silent job failures, or differences between environments.
Why use it?
It replaces random code changes and guesswork with a repeatable investigation, which helps avoid temporary fixes and repeated failures.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when facing unclear bugs, errors, failed tests, unexpected behavior, silent job failures, or differences between environments.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jkheadley/instar/systematic-debugging
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 JKHeadley/instar --skill systematic-debugging
Clone the repo
git clone --depth 1 https://github.com/JKHeadley/instar

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/jkheadley/instar/systematic-debugging/github.svg)](https://agentmods.dev/skills/jkheadley/instar/systematic-debugging)
Your own site
<a href="https://agentmods.dev/skills/jkheadley/instar/systematic-debugging"><img src="https://agentmods.dev/badge/skills/jkheadley/instar/systematic-debugging/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 systematic-debugging

Your own site · 80×15
<a href="https://agentmods.dev/skills/jkheadley/instar/systematic-debugging"><img src="https://agentmods.dev/badge/skills/jkheadley/instar/systematic-debugging.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,153 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00000 $0.02153
Opus 5.5 $0.00000 $0.00861
Sonnet 5.5 $0.00000 $0.00431
Haiku 4.5 $0.00000 $0.00215

Measured 1mo ago against content hash 445529828b83, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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/systematic-debugging/SKILL.md · 223 lines

How it starts

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

systematic-debugging — Structured Root Cause Analysis for Agents

When something breaks, the instinct is to start changing code — adding logs, tweaking values, commenting things out. This is probing, not debugging. Probing works sometimes, but it scales poorly and teaches nothing. Structured debugging finds the root cause, fixes it once, and leaves you understanding why.

This skill enforces a 4-phase process. You do NOT skip phases. You do NOT jump to a fix before completing Phase 2. Each phase has a clear deliverable that must exist before the next phase begins.


When to Activate This Skill

Use this skill when:

  • An error occurs and the cause is not immediately obvious (> 30 seconds of uncertainty)
  • A test fails and you don't know exactly why
  • Something that was working has stopped working
  • The user reports unexpected behavior
  • You've already tried one fix and it didn't work (this is the clearest signal — stop guessing, start debugging)
  • A job or scheduled task is failing silently
  • Behavior differs between environments (local vs production, different machines)

Do NOT use this skill for:

  • Typos, missing imports, or syntax errors with clear error messages pointing to the exact line
  • Known issues with documented fixes
  • Configuration that just needs to be set

Phase 1: Identify — What exactly is broken?

Goal: Establish the precise boundary between "works" and "doesn't work."

Steps:

  1. Reproduce the failure. Run the exact command, API call, or user action that triggers the bug. Capture the FULL output — error messages, stack traces, logs, HTTP status codes.

  2. Establish the expected behavior. What SHOULD happen? Check documentation, tests, previous working state, or ask the user. Write it down explicitly.

  3. Narrow the scope. Answer these questions:

    • When did it last work? (Check git log, deployment history, recent changes)
    • What changed since then? (git diff, git log --oneline -10, env var changes, dependency updates)
    • Is it consistent or intermittent?
    • Does it affect all cases or specific inputs?

Read the full file on GitHub · 223 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. 1mo ago First seen · 223 lines · 0 tokens per session scan A 445529828b83

Subscribe to this mod's changes

systematic-debugging is a skill published in the GitHub repository JKHeadley/instar (84 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,153 tokens. 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-30.

Related

Other skills, from other repositories

debugging-typescript-errors

Systematically investigates TypeScript compiler errors, traces the real type mismatch, and applies a minimal verified fix. Use when the user wants to debug TypeScript type errors.

dork-labs/dorkos · 39 tokens

simplify

Use after writing or modifying code to improve its clarity, reuse, simplicity, and efficiency without changing behavior. Not for finding correctness bugs — that is code review.

SebaBoler/vanguard · 35 tokens

typescript-circular-dependency

Detect and resolve TypeScript/JavaScript circular import dependencies. Use when: (1) "Cannot access 'X' before initialization" at runtime, (2) Import returns undefined unexpectedly, (3) "ReferenceError: Cannot access X before initialization", (4) Type errors that disappear when you change import order, (5) Jest/Vitest…

Wania-Kazmi/claude-code-autonomous-agent-workflow · 88 tokens

build-error-resolver

Build and TypeScript error resolution specialist. Use PROACTIVELY when build fails or type errors occur. Fixes build/type errors only with minimal diffs, no architectural edits. Focuses on getting the build green quickly.

Kacper0199/Opencode-Ultrathinker · 50 tokens

migrate-oxlint

Guide for migrating a project from ESLint to Oxlint. Use when asked to migrate, convert, or switch a JavaScript/TypeScript project's linter from ESLint to Oxlint.

oxc-project/oxc · 44 tokens

browser-edge-cases

SOP for debugging browser automation failures on complex websites. Use when browser tools fail on specific sites like LinkedIn, Twitter/X, SPAs, or sites with Shadow DOM.

aden-hive/hive · 40 tokens