Skip to content
Back to skills

Code Debug

ASecurity

Find the root cause of a bug or failing test. Spawns 1 debugger subagent that reproduces, ladders hypotheses, isolates with evidence, and applies the minimal fix. Use when a test fails, code-build reports blocked, or "X stopped working". Does NOT design features (that's code-plan).

  • 6 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 6, 2026
ai-agentscode-review

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 10, 2026

npx -y skills add alexeyshishin/as-skill --skill code-debug --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Code Debug?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Code Debug
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/alexeyshishin-code-debug/badge)](https://www.skillsdirectory.com/skills/alexeyshishin-code-debug)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: code-debug
description: Find the root cause of a bug or failing test. Spawns 1 debugger subagent that reproduces, ladders hypotheses, isolates with evidence, and applies the minimal fix. Use when a test fails, code-build reports blocked, or "X stopped working". Does NOT design features (that's code-plan).
---

# Skill: code-debug

ORCHESTRATOR. One debugger subagent. It diagnoses before it touches anything.

## Invocation
run the code-debug skill with `"<error text / failing test / what broke>"` (optionally a `<slug>` to tie it
to a feature build)

## Steps
1. **Gather the symptom**: the error/stack/failing-test name from the user, plus the build
   report `swarm-report/<slug>-build.md` if a slug was given.
2. **Spawn 1 debugger** — follow `references/delegation.md` for the host you run on. Prompt:
   > Answer TERSE. Read `<absolute path of references/agents/code-debugger.md>` and follow it exactly.
   > Symptom: <verbatim error / failing test>. Feature slug (if any): <slug>.
3. **Report** the debugger's return verbatim: root cause, evidence, fix, and the
   re-run output, plus `spawn_mode: parallel|sequential|inline`.
4. **Route the outcome:**
   - `fixed` → suggest the code-review skill for `<slug>` to check the fix.
   - `root_cause_found` (found but not fixed) or `stuck` → show the hypothesis ladder;
     the user decides the fix, or re-run code-build for `<slug>` with the root cause as input.
   - `cannot_reproduce` → ask the user for exact repro steps; do not guess-patch.

## Where it sits in the loop
code-plan → code-build → code-review. If a test fails or review says `rework` → code-debug →
back to code-build. The Stop test-gate hook blocks "done" until tests actually run.

Files in this skill

  • README.md2 KB
  • SKILL.md1.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.