debug

debug is a skill for Claude Code from yuri-semenenko/ai-engineering-workspace. It costs 83 tokens per session (1,966 once invoked), scanned A, original, MIT.

A step-by-step method for finding the actual cause of a software failure. It starts with a repeatable example, tests possible explanations, and verifies the fix.

In plain words
What is it for?
It helps investigate crashes, failing tests, broken commands, and other problems whose cause is not yet known.
Why use it?
It prevents developers from applying patches that hide symptoms while leaving the underlying bug in place.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions subagents.

Good fit It helps investigate crashes, failing tests, broken commands, and other problems whose cause is not yet known.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yuri-semenenko/ai-engineering-workspace/debug
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 yuri-semenenko/ai-engineering-workspace --skill debug
Clone the repo
git clone --depth 1 https://github.com/yuri-semenenko/ai-engineering-workspace

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 debug

README.md
[![agentmods](https://agentmods.dev/badge/skills/yuri-semenenko/ai-engineering-workspace/debug/github.svg)](https://agentmods.dev/skills/yuri-semenenko/ai-engineering-workspace/debug)
Your own site
<a href="https://agentmods.dev/skills/yuri-semenenko/ai-engineering-workspace/debug"><img src="https://agentmods.dev/badge/skills/yuri-semenenko/ai-engineering-workspace/debug/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

Your own site · 80×15
<a href="https://agentmods.dev/skills/yuri-semenenko/ai-engineering-workspace/debug"><img src="https://agentmods.dev/badge/skills/yuri-semenenko/ai-engineering-workspace/debug.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,966 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.00083 $0.01966
Opus 5.5 $0.00033 $0.00786
Sonnet 5.5 $0.00017 $0.00393
Haiku 4.5 $0.00008 $0.00197

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

Security

Grade A, and why

debug 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 23d 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.

Makes network callslowCapability

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

1. **Reproduce and build a feedback loop.** Get a deterministic, minimal reproduction first — exact inputs, environment, failing path. Then turn it into the cheapest signal you can rerun on demand: the rate of feedback i
claude-code/.claude/skills/debug/SKILL.md · 76 lines

How it starts

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

Debug

Drive a broken system to its root cause with explicit, falsifiable reasoning, then fix the cause rather than the symptom. Optimized for a Staff Engineer who values root-cause over patching, minimal change, and the rule: if you can't explain why the fix works, you haven't found the bug yet.

Do not jump to a fix. The job is to understand first. A fix that makes the symptom disappear without a confirmed cause is a deferred bug, not a resolved one.

Phases

Work through these in order and state which phase you're in. Don't skip ahead — most bad fixes come from hypothesizing before observing, or fixing before reproducing.

  1. Reproduce and build a feedback loop. Get a deterministic, minimal reproduction first — exact inputs, environment, failing path. Then turn it into the cheapest signal you can rerun on demand: the rate of feedback is the speed limit on the whole investigation. Take the first rung that fits — a failing unit/integration test, an HTTP probe (curl), a one-shot CLI snapshot, a headless-browser script, a replay of a captured trace or log, a throwaway harness, git bisect, a property/fuzz case — then tighten it until it is faster, sharper (fails for one reason), and deterministic. Gate before moving on: name one command you have already run that is red-capable, deterministic, fast, and agent-runnable. No such command means no reliable signal — say so and treat any fix as unconfirmed.
  2. Observe. Read the actual evidence — error message, stack trace, logs, failing assertion — before theorizing. Separate what you know (observed) from what you assume. Quote the real error; do not paraphrase from memory.
  3. Isolate and minimize the case. Shrink to the smallest input and shortest code path that still triggers the bug. Binary-search the code path or input (git bisect, disabling halves, narrowing the dataset, deleting unrelated setup), add tracing at boundaries. A minimal reproducer is often the diagnosis: each thing you remove without the bug disappearing is a thing that was not the cause.
  4. Hypothesize. Form 1-3 explicit, falsifiable hypotheses ranked by likelihood. Each must predict something observable and state what would disprove it. Distinguish the proximate cause (the line that threw) from the root cause (why the bad state existed at all).
  5. Test the hypothesis. Run the cheapest disproving experiment first. Confirm the cause before touching the fix. Change one variable at a time.
  6. Fix at the root. Minimal change that addresses the confirmed cause. Resist masking — a swallowed error, a defensive null-check that hides why the value was null, a retry wrapped around a logic bug. Do not refactor while debugging; that is a separate change.
  7. Verify genuinely. The original reproduction now passes, the fix matches the confirmed hypothesis, and a regression test fails without the fix: seen red before the fix was written, or with the fix taken out in an isolated copy, never in the working tree, as the testing-checklist bug-fix protocol describes. If neither is possible, say the red state was not observed. Check you didn't just move the bug or break an adjacent path. Remove any temporary instrumentation. If verification fails, go back to phase 4, not to another variant of the fix. When two fixes that rest on the same premise fail the same check, the premise is the suspect: state it in one sentence and test it as a hypothesis before a third attempt. That questions an assumption, not the design; a redesign stays a separate change.
  8. Prevent (if systemic). Ask whether a type, invariant, test, or lint rule would have caught this class of bug. Surface it; don't force it.

Read the full file on GitHub · 76 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. 23d ago Changed e2efceecf5b2
  2. 1mo ago Changed · +83 tokens per session d60ce158adf2
  3. 3mo ago First seen · 76 lines · 0 tokens per session scan A 28874e5975d4

Subscribe to this mod's changes

debug is a skill published in the GitHub repository yuri-semenenko/ai-engineering-workspace (4 stars, last pushed 3d ago), licensed MIT. It adds 83 tokens to every session and 1,966 once invoked, about $0.0003 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-08-31.

Related

debug compared with skills from other repositories

debug next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
debugyuri-semenenko/ai-engineering-workspaceSkill43d agoMITA83Claude Code
spk-run-blocked-recoveryPriivacy-ai/spec-kittySkill1.7k13d agoMITA31Claude Code, Codex
spk-admin-setup-doctorPriivacy-ai/spec-kittySkill1.7k13d agoMITA31Claude Code, Codex
022-root-cause-analysisjabrena/plinthSkill4702d agoApache-2.0A85Claude Code, Codex
126-java-exception-handlingjabrena/plinthSkill4702d agoApache-2.0A144Claude Code, Codex
skill-performancejaviarmesto/ALDC-AL-Development-CollectionSkill1162d agoMITA37Claude Code
extracting-code-structureSebastienDegodez/copilot-instructionsSkill19929d agoApache-2.0A39Claude Code, Codex