debugging-and-error-recovery

debugging-and-error-recovery is a skill for Claude Code, Codex from borhen68/SkillEngine. It costs 69 tokens per session (3,084 once invoked), scanned A, original, MIT.

A guide for investigating software problems by reproducing them, isolating their cause, fixing the underlying issue, and checking for regressions.

In plain words
What is it for?
Handling failed tests, broken builds, unexpected behavior, bug reports, and errors that appear after a code change.
Why use it?
It discourages guesswork and symptom-only fixes that can hide the real problem or create new bugs.

Skill for Claude CodeCodex

Part of the skillengine plugin — 28 skills, 8 commands, 5 agents, 1 hook 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 skills/borhen68/skillengine/debugging-and-error-recovery
Any agent
npx skills add borhen68/SkillEngine --skill debugging-and-error-recovery
Clone the repo
git clone --depth 1 https://github.com/borhen68/SkillEngine

Made for: Claude Code, Codex.

Or install skillengine, the plugin that ships this one along with the rest of its 28 skills, 8 commands, 5 agents, 1 hook.

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-and-error-recovery

README.md
[![agentmods](https://agentmods.dev/badge/skills/borhen68/skillengine/debugging-and-error-recovery.svg)](https://agentmods.dev/skills/borhen68/skillengine/debugging-and-error-recovery)
Your own site
<a href="https://agentmods.dev/skills/borhen68/skillengine/debugging-and-error-recovery"><img src="https://agentmods.dev/badge/skills/borhen68/skillengine/debugging-and-error-recovery.svg" alt="Measured on agentmods" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,084 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.00069 $0.03084
Opus 5 $0.00034 $0.01542
Sonnet 5 $0.00014 $0.00617
Haiku 4.5 $0.00007 $0.00308

Measured 3d ago against content hash 6caf9f495ce1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

debugging-and-error-recovery 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 3d 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/debugging-and-error-recovery/SKILL.md · 348 lines

How it starts

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

Debugging and Error Recovery

Overview

The most expensive debugging session is the one that never happens because someone guessed the fix, shipped it, and created three new bugs in the process. Debugging is not intuition — it's a systematic process of elimination. The best engineers aren't the ones who never write bugs; they're the ones who can find and fix any bug in bounded time.

The debugging contract: When something breaks, stop adding features immediately. Preserve evidence. Reproduce the failure. Isolate the minimum trigger. Fix the root cause, not the symptom. Guard against regression. Every skipped step is a debt that compounds.

Real-world impact: Teams that follow structured debugging resolve incidents 3x faster than teams that guess. The "quick fix" that bypasses root-cause analysis returns as a production outage — usually at 3 AM, usually worse than the original problem.

When to Use

  • Tests fail after a code change
  • The build breaks
  • Runtime behavior doesn't match expectations
  • A bug report arrives
  • An error appears in logs or console
  • Something worked before and stopped working

The Stop-the-Line Rule

When anything unexpected happens:

1. STOP adding features or making changes
2. PRESERVE evidence (error output, logs, repro steps)
3. DIAGNOSE using the triage checklist
4. FIX the root cause
5. GUARD against recurrence
6. RESUME only after verification passes

Don't push past a failing test or broken build to work on the next feature. Errors compound. A bug in Step 3 that goes unfixed makes Steps 4-10 wrong.

Iron Rules

These target the debugging failure modes specific to AI agents. Each is absolute — no time pressure overrides them.

  1. No fix before a reproduction. A plausible diagnosis is a hypothesis, not a finding. If you can't make the failure happen on demand, you can't know your fix works — you can only hope.
  2. Change one variable at a time. If you changed three things and the bug disappeared, you don't have a fix — you have two unnecessary changes and an unverified guess. Revert and isolate.
  3. Never suppress the signal. Wrapping in try/catch, increasing a timeout, adding a retry, or loosening a check to make an error disappear is symptom suppression, not a fix. Each of these is only valid when you can state why the underlying cause makes it the correct response.
  4. "It works now" without "because" is not fixed. If you can't explain in one sentence why it broke, the bug is still there — you've just stopped seeing it. Prove causality: revert the fix, confirm the failure returns, re-apply.
  5. Re-run the original failure, verbatim. "This should fix it" is a prediction. The exit gate is the original failing command rerun with output showing it now passes — plus the full suite for regressions.

Read the full file on GitHub · 348 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. 3d ago First seen · 348 lines · 69 tokens per session scan A 6caf9f495ce1

Subscribe to this mod's changes

debugging-and-error-recovery is a skill published in the GitHub repository borhen68/SkillEngine (17 stars, last pushed 2mo ago), licensed MIT. It adds 69 tokens to every session and 3,084 once invoked, about $0.0003 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 skills, from other repositories

doubt-driven-development

在每个非平凡决策成立前,用全新上下文进行对抗式审查。当正确性比速度更重要、处理不熟悉代码、风险较高(生产、安全敏感逻辑、不可逆操作),或任何自信输出现在验证比之后调试更便宜时使用。.

vinvcn/addyosmani-agent-skills-zh · 72 tokens

test-driven-development

用测试驱动开发。用于实现任何逻辑、修复任何 bug,或改变任何行为。用于需要证明代码能工作、收到 bug 报告,或即将修改现有功能时。.

vinvcn/addyosmani-agent-skills-zh · 48 tokens

ci-cd-and-automation

自动化 CI/CD pipeline 设置。用于设置或修改构建和部署 pipeline 时;用于需要自动化质量门禁、在 CI 中配置 test runners,或建立部署策略时。.

vinvcn/addyosmani-agent-skills-zh · 46 tokens

code-review-and-quality

执行多维度代码审查。用于合并任何变更之前;用于审查自己、其他 agent 或人类编写的代码;用于在代码进入主分支前从多个维度评估代码质量。.

vinvcn/addyosmani-agent-skills-zh · 53 tokens

code-simplification

为清晰度简化代码。用于在不改变行为的前提下重构代码以提升清晰度;用于代码能运行但比应有状态更难阅读、维护或扩展时;用于审查已累积不必要复杂度的代码时。.

vinvcn/addyosmani-agent-skills-zh · 64 tokens

context-engineering

优化 agent 上下文设置。当开始新会话、agent 输出质量下降、在任务之间切换,或需要为项目配置规则文件和上下文时使用。.

vinvcn/addyosmani-agent-skills-zh · 40 tokens