debug-it

debug-it is a skill for Claude Code from smallnest/goal-workflow. It costs 98 tokens per session (1,842 once invoked), scanned A, original, MIT.

A structured method for diagnosing bugs and performance slowdowns by reproducing the problem, testing competing explanations, finding the root cause, and adding a regression test. A regression test is a check that ensures a fixed problem does not return.

In plain words
What is it for?
Use it for difficult, intermittent, or slow-running failures: make the bug fail reliably, reduce it to a small case, test ranked hypotheses, instrument the code, apply the root fix, and prove it with a regression test.
Why use it?
Guessing from source code can lead to fixes for symptoms or to changes that cannot be verified. This process creates a tight pass-or-fail loop and uses evidence to narrow the cause.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Part of the goal-workflow-skills plugin — 22 skills shipped together

Good fit Use it for difficult, intermittent, or slow-running failures: make the bug fail reliably, reduce it to a small case, test ranked hypotheses, instrument the code, apply the root fix, and prove it with a regression test.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/smallnest/goal-workflow/debug-it
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 smallnest/goal-workflow --skill debug-it
Clone the repo
git clone --depth 1 https://github.com/smallnest/goal-workflow

Made for: Claude Code.

Or install goal-workflow-skills, the plugin that ships this one along with the rest of its 22 skills.

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 debug-it

README.md
[![agentmods](https://agentmods.dev/badge/skills/smallnest/goal-workflow/debug-it/github.svg)](https://agentmods.dev/skills/smallnest/goal-workflow/debug-it)
Your own site
<a href="https://agentmods.dev/skills/smallnest/goal-workflow/debug-it"><img src="https://agentmods.dev/badge/skills/smallnest/goal-workflow/debug-it/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 debug-it

Your own site · 80×15
<a href="https://agentmods.dev/skills/smallnest/goal-workflow/debug-it"><img src="https://agentmods.dev/badge/skills/smallnest/goal-workflow/debug-it.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 98 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,842 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00098 $0.01842
Opus 5.5 $0.00039 $0.00737
Sonnet 5.5 $0.00020 $0.00368
Haiku 4.5 $0.00010 $0.00184

Measured yesterday against content hash 05bab2a65b1f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

debug-it scanned grade A with 1 finding 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.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/hitl-loop.template.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

2. **HTTP / curl script** against a local dev server.
skills/debug-it/SKILL.md · 143 lines

How it starts

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

Debug It — Disciplined Bug Diagnosis & Root-Cause Fixing

A phased debugging discipline for hard bugs, intermittent failures, and performance regressions. Skip a phase only when explicitly justified by the user or environment.

Before exploring, read GLOSSARY.md and relevant docs/adr/ entries if they exist so hypotheses use the codebase's real domain model.


Redact First

Never print raw secrets, tokens, cookies, or PII in commands, logs, or captured artifacts:

  • Replace credentials with <REDACTED> before quoting.
  • Drive reproduction loops via environment variables ($API_TOKEN), never inline secrets.
  • Quote only the lines of captured headers/traces that carry diagnostic signal.

If redacted output strips the signal needed to diagnose, tell the user explicitly instead of guessing.


Phase 1: Build a Tight Red-Capable Feedback Loop

This is the leverage point. A fast, deterministic pass/fail command that goes red on this exact bug turns debugging into mechanical elimination. Do not read code to build theories before this command exists.

Construction Ladder (try in order, cheapest first)

  1. Failing test at the seam that reaches the bug (unit, integration, or E2E).
  2. HTTP / curl script against a local dev server.
  3. CLI invocation with a fixture input, diffing stdout/exit code against expected output.
  4. Headless browser script (Playwright / CDP) driving the UI and asserting on DOM, console, or network.
  5. Replay a captured trace (saved payload, webhook, event log, or HAR) through the target code path.
  6. Throwaway harness spinning up the smallest isolated slice of the system with mocked external boundaries.
  7. Property / fuzz loop running N randomized inputs when failures happen "sometimes."
  8. Bisection harness for git bisect run when a bug appeared between two known commits/versions.
  9. Differential loop comparing old vs. new versions or two configs on identical inputs.
  10. HITL bash script (last resort when a human must click/authenticate): copy scripts/hitl-loop.template.sh, customize steps, and parse its KEY=VALUE output.

Read the full file on GitHub · 143 lines

Files

What ships with it

1 file 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. yesterday First seen · 143 lines · 98 tokens per session scan A 05bab2a65b1f

Subscribe to this mod's changes

debug-it is a skill published in the GitHub repository smallnest/goal-workflow (304 stars, last pushed 2d ago), licensed MIT. It adds 98 tokens to every session and 1,842 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-12-03.

Related

debug-it compared with skills from other repositories

debug-it next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
debug-itsmallnest/goal-workflowSkill3042d agoMITA98Claude Code
inline-plan-devsentimony/skillsSkill82d agoMITA49Claude Code
agent-browser-debugsentimony/skillsSkill82d agoMITA62Claude Code
debugsentimony/skillsSkill82d agoMITA34Claude Code
vitestsentimony/skillsSkill82d agoMITB70Claude Code
experiment-iterative-coderEvoScientist/EvoSkillsSkill4933d agoApache-2.0A145Claude Code
testing-blocksadobe/skillsSkill343todayApache-2.0A114Claude Code