debugging

debugging is a skill for Claude Code, Codex from ApexIQ/skillsmith. It costs 25 tokens per session (518 once invoked), scanned A, original, MIT.

A step-by-step method for finding and fixing software bugs. It covers reproducing the problem, locating its cause, applying a fix, and checking that other code still works.

In plain words
What is it for?
Use it to diagnose bugs, create a small failing test, implement a fix, run the full test suite, and document the cause.
Why use it?
It replaces guesswork with evidence from failing tests, logs, debugging tools, and recent code changes.

Skill for Claude CodeCodex

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

Good fit Use it to diagnose bugs, create a small failing test, implement a fix, run the full test suite, and document the cause.

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

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 debugging

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/apexiq/skillsmith/debugging"><img src="https://agentmods.dev/badge/skills/apexiq/skillsmith/debugging.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 518 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.00025 $0.00518
Opus 5.5 $0.00010 $0.00207
Sonnet 5.5 $0.00005 $0.00104
Haiku 4.5 $0.00003 $0.00052

Measured 1mo ago against content hash cd4311eab203, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

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.

.agent/skills/debugging/SKILL.md · 65 lines

What it actually says

🐛 Debugging

Philosophy: A bug is a gift. It reveals a gap in your tests or understanding.

Workflow

1. Reproduce

  • First, reproduce the bug reliably. If you can't reproduce it, you can't fix it.
  • Get exact steps, input, and environment.
  • Create a minimal test case that fails.

2. Isolate

  • Narrow down the scope: Frontend or Backend? Which function?
  • Use logging or debugger to inspect state at key points.
  • Binary Search: Comment out half the code. Does bug persist? Narrow down.

3. Diagnose

  • Ask: "What did I expect? What actually happened?"
  • Check recent changes (git log, git blame).
  • Inspect data entering and leaving suspect functions.

4. Fix & Verify

  • Write a test that fails due to the bug. (TDD for bugs!)
  • Implement the fix.
  • Run the test. It MUST pass.
  • Run full test suite to check for regressions.

5. Document

  • Add a comment explaining why the bug occurred.
  • If subtle, add to "Known Gotchas" in documentation.

Common Bug Patterns

Symptom Likely Cause
Works locally, fails in CI Environment differences, missing env vars
Works sometimes Race condition, timing issue
Returns null/undefined Missing null check, async timing
Wrong data displayed API mismatch, caching issue

Examples

1. Bug: "Submit button does nothing."
2. Isolate: Is onClick firing? -> Add console.log.
3. Diagnose: Handler fires, but API returns 500.
4. Root Cause: Endpoint expects different payload format.
5. Fix: Update request payload. Add test.

Guidelines

  • Never guess. Always verify with logs or debugger.
  • Don't just patch symptoms. Find the root cause.
  • If bug took >30 mins to find, add a test to prevent recurrence.
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 · 65 lines · 25 tokens per session scan A cd4311eab203

Subscribe to this mod's changes

debugging is a skill published in the GitHub repository ApexIQ/skillsmith (5 stars, last pushed 6mo ago), licensed MIT. It adds 25 tokens to every session and 518 once invoked, about $0.0001 per session on Opus 5.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.

Related

Other skills, from other repositories

graph-query

Query the code graph for callers, dependencies and the blast radius of a change. Use before changing the signature or behaviour of a function, class or module that other code uses, when the user asks "find callers", "what uses this" or "check dependencies", and when exploring an unfamiliar codebase.

23blocks-OS/ai-maestro-plugins · 64 tokens

dev-debug

Systematic debugging - reproduce, isolate the root cause, fix, pin it with a regression test. Use it first whenever the user reports a bug, a crash, an error message, a wrong result or a failing test (a failing CI pipeline is ops-ci-fix), before reading code to guess at the cause.

christopherlouet/claude-base · 67 tokens

debug-device-over-vusb

Debug the user's app on a real Kobiton device attached to this machine over virtualUSB, driven by natural language. Installs the pinned virtualUSB client on first use (macOS: cached bundle; Windows: verified installer handed to the user), finds vUSB-ready private devices with listDevices({virtualUsb: true}), connects…

kobiton/automate · 176 tokens

dev-error-handling

Error handling strategy. Trigger when the user wants to implement error handling, exceptions, or error boundaries.

christopherlouet/claude-base · 25 tokens

learner

Post-debugging knowledge extraction — captures non-obvious, codebase-specific learnings that pass quality gates. Invoke after resolving tricky bugs or discovering surprising behavior.

XeldarAlz/everything-claude-unity · 34 tokens

ops-ci-fix

Autonomous diagnosis and repair of failing CI/CD pipelines. Scan GitHub Actions workflows, identify failure causes, and apply fixes. Trigger when CI is broken, tests fail in CI, or workflows are stuck.

christopherlouet/claude-base · 46 tokens