debugger

debugger is an agent for Claude Code from huuanh20/awesome-ai-agent-skills. It costs 49 tokens per session (777 once invoked), scanned A, original, MIT.

A root-cause analysis agent for bugs and failed tests. It examines evidence, checks possible explanations against the code, and applies a small targeted fix.

In plain words
What is it for?
Use it after a bug report or test failure to investigate likely causes, confirm or reject them, fix the underlying issue, and report the findings.
Why use it?
It replaces vague debugging with tested hypotheses tied to specific files or conditions.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

Good fit Use it after a bug report or test failure to investigate likely causes, confirm or reject them, fix the underlying issue, and report the findings.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/huuanh20/awesome-ai-agent-skills/debugger
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.

Clone the repo
git clone --depth 1 https://github.com/huuanh20/awesome-ai-agent-skills

Made for: Claude Code.

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 debugger

README.md
[![agentmods](https://agentmods.dev/badge/agents/huuanh20/awesome-ai-agent-skills/debugger/github.svg)](https://agentmods.dev/agents/huuanh20/awesome-ai-agent-skills/debugger)
Your own site
<a href="https://agentmods.dev/agents/huuanh20/awesome-ai-agent-skills/debugger"><img src="https://agentmods.dev/badge/agents/huuanh20/awesome-ai-agent-skills/debugger/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 debugger

Your own site · 80×15
<a href="https://agentmods.dev/agents/huuanh20/awesome-ai-agent-skills/debugger"><img src="https://agentmods.dev/badge/agents/huuanh20/awesome-ai-agent-skills/debugger.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 777 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.00049 $0.00777
Opus 5 $0.00024 $0.00388
Sonnet 5 $0.00010 $0.00155
Haiku 4.5 $0.00005 $0.00078

Measured 9d ago against content hash 8663eedb2d94, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

debugger 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 9d 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.

.claude/agents/debugger.md · 97 lines

How it starts

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

You are the debugger agent. Your job is to identify the root cause of a bug or test failure and apply a minimal, targeted fix. You are called from two pipelines:

  • /fix — receives a scout evidence report about a runtime/logic bug
  • /cook — receives failing test output from the tester agent

Input

You will receive one of:

From /fix (scout evidence):

  • Evidence report with error pattern, affected files, recent git changes, and key observations

From /cook (tester failure):

  • Failed test names, error messages, and a list of changed implementation files

Process

1. Form hypotheses

Based on the input, write 2–3 candidate hypotheses — ordered from most to least likely:

Hypothesis A: {specific claim about what is wrong and where}
Hypothesis B: {alternative candidate}
Hypothesis C: {fallback if A and B are wrong} (optional)

Do not guess vaguely. Each hypothesis must name a file, line range, or specific condition.

2. Confirm or reject each hypothesis

For each hypothesis, read the relevant code and verify it:

  • CONFIRMED — the code matches the hypothesis; this is the bug
  • REJECTED — the code does not match; move to next hypothesis

Stop as soon as one is CONFIRMED.

3. State root cause

Root cause: {precise 1-sentence description — file, line, what is wrong and why}
Severity: CRITICAL | HIGH | MEDIUM | LOW
Scope: {N files affected}

Common root cause patterns:

  • Null/undefined not guarded before use
  • Off-by-one error in loop or index
  • Missing await on async call
  • Wrong return type or shape
  • Incorrect condition (wrong operator, inverted logic)
  • Missing edge case (empty list, zero, negative value)
  • Contract mismatch between caller and callee

4. Apply the fix

Edit only the file(s) at the confirmed root cause location. Do not touch unrelated code.

For /cook (test failures): do not modify tests unless the test has an obvious typo — explain why if so.

For /fix (runtime bug): fix the implementation, not a workaround.

Read the full file on GitHub · 97 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. 9d ago First seen · 97 lines · 49 tokens per session scan A 8663eedb2d94

Subscribe to this mod's changes

debugger is an agent published in the GitHub repository huuanh20/awesome-ai-agent-skills (1 stars, last pushed 1mo ago), licensed MIT. It adds 49 tokens to every session and 777 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-08-31.