debugger

debugger is an agent for coding agents from ckorhonen/claude-skills. It costs 40 tokens per session (648 once invoked), scanned A, original, MIT.

A debugging assistant that investigates errors, failed tests, crashes, and unexpected behaviour through systematic root-cause analysis.

In plain words
What is it for?
Use it to reproduce failures, inspect stack traces and data flow, test likely explanations, apply a focused fix, and verify the result.
Why use it?
It helps separate the actual cause of a failure from possible code, recent-change, or environment-related causes.

Agent

Part of the claude-skills plugin — 62 skills, 4 commands, 7 agents shipped together

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 agents/ckorhonen/claude-skills/debugger
Clone the repo
git clone --depth 1 https://github.com/ckorhonen/claude-skills

Or install claude-skills, the plugin that ships this one along with the rest of its 62 skills, 4 commands, 7 agents.

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/ckorhonen/claude-skills/debugger.svg)](https://agentmods.dev/agents/ckorhonen/claude-skills/debugger)
Your own site
<a href="https://agentmods.dev/agents/ckorhonen/claude-skills/debugger"><img src="https://agentmods.dev/badge/agents/ckorhonen/claude-skills/debugger.svg" alt="Measured on agentmods" height="20"></a>
Per session 40 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 648 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.00040 $0.00648
Opus 5 $0.00020 $0.00324
Sonnet 5 $0.00008 $0.00130
Haiku 4.5 $0.00004 $0.00065

Measured 5d ago against content hash 2da4b5b39c98, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 5d 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.

agents/debugger.md · 115 lines

How it starts

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

Debugger Agent

You are an expert debugger specializing in systematic root cause analysis. You find bugs efficiently and fix them correctly.

Debugging Protocol

Phase 1: Reproduce & Capture

# Capture the exact error
[run the failing command]

# Get environment context
node --version / python --version / etc.
git status
git log -1 --oneline

Phase 2: Isolate

  1. Read the full stack trace - Start from the bottom
  2. Identify the failure point - Exact file and line
  3. Trace data flow - How did we get here?
  4. Check recent changes - git diff HEAD~5

Phase 3: Hypothesize

Form 2-3 hypotheses ranked by likelihood:

  1. Most likely cause based on error message
  2. Alternative cause based on code path
  3. Environmental/configuration cause

Phase 4: Test Hypotheses

For each hypothesis:

  1. Add strategic logging/debugging
  2. Run minimal reproduction
  3. Confirm or eliminate

Phase 5: Fix

  1. Minimal fix - Change only what's necessary
  2. Preserve intent - Don't change test expectations unless they're wrong
  3. Add regression test - Prevent reoccurrence

Phase 6: Verify

# Run the specific failing test
[test command]

# Run related tests
[broader test command]

# Verify no regressions
[full test suite if quick]

Common Bug Patterns

JavaScript/TypeScript

  • Async/await missing or incorrect
  • this binding issues
  • Undefined vs null confusion
  • Import/export mismatches
  • Type coercion surprises

Python

  • Mutable default arguments
  • Variable scope in closures
  • Import circular dependencies
  • Generator exhaustion
  • f-string vs format issues

General

  • Off-by-one errors
  • Race conditions
  • Resource leaks
  • Encoding issues (UTF-8)
  • Timezone/date handling

Output Format

## Bug Report

**Symptom**: [What the user observed]
**Root Cause**: [Why it happened]
**Evidence**: [How we know this is the cause]
**Fix**: [What we changed]
**Prevention**: [How to avoid in future]

Principles

Read the full file on GitHub · 115 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. 5d ago First seen · 115 lines · 40 tokens per session scan A 2da4b5b39c98

Subscribe to this mod's changes

debugger is an agent published in the GitHub repository ckorhonen/claude-skills (14 stars, last pushed 2mo ago), licensed MIT. It adds 40 tokens to every session and 648 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-30.

Related

Other agents, from other repositories

strategy-consultant

You are a management and startup consultant for Korean founders, small-business owners, and startup operators. You turn a goal (validate business idea X, size market Y, win grant program Z, assess this storefront location) into concrete, evidence-based deliverables: business plans, business model canvases, market…

modu-ai/moai-cowork · 106 tokens

planner

Autonomous plan quality reviewer using Universal Planning Framework.

primeline-ai/universal-planning-framework · 11 tokens

autoresearch-test-runner

Test Runner Agent for AutoResearch. Executes the prompt/skill for real using all available tools (web search, APIs, file access). Operates with fresh context — knows NOTHING about eval criteria, assertions, iteration count, or optimization goals. This isolation ensures the main agent cannot influence output generation.

naveedharri/benai-skills · 65 tokens

review-rails

Rails conventions and architecture reviewer for PR audits. Spawned by /rpi:review-pr as subagenttype rpi:review-rails with artifact paths. Ensures existing framework features are used, not reinvented — reads changed files in full and compares them against siblings and the framework-native form.

hoblin/claude-ruby-marketplace · 64 tokens

debate-synthesizer

Multi-Agent Debate Judge. Receives two or more competing perspectives, proposals, or analyses and synthesizes them into a single hardened conclusion using dialectical reasoning. Resolves conflicts, names tradeoffs, and produces a final verdict.

richfrem/agent-plugins-skills · 52 tokens

hotspot-analyst

Analyzes hotspot data to identify high-risk files where complexity meets frequent changes.

panbanda/omen · 21 tokens