Systematic Debugging
ChrisWiles/claude-code-showcase
Applies a four-phase debugging routine that finds the root cause of a bug or failing test before any fix is written.
A skill your agent uses when a recursive-mode requirement involves debugging a bug, test failure, or unexpected behavior.
$ npx skills add try-works/recursive-mode --skill recursive-debugging -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install try-works/recursive-mode recursive-debugging --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/try-works/recursive-mode.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/recursive-debugging .claude/skills/recursive-debugging && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "recursive-debugging" agent skill from https://github.com/try-works/recursive-mode/tree/main/skills/recursive-debugging into .claude/skills/recursive-debugging/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "recursive-debugging", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/try-works/recursive-mode/tree/main/skills/recursive-debuggingType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add try-works/recursive-mode --skill recursive-debugging -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install try-works/recursive-mode recursive-debugging --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/try-works/recursive-mode.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/recursive-debugging .agents/skills/recursive-debugging && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "recursive-debugging" agent skill from https://github.com/try-works/recursive-mode/tree/main/skills/recursive-debugging into .agents/skills/recursive-debugging/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "recursive-debugging", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add try-works/recursive-mode --skill recursive-debugging -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install try-works/recursive-mode recursive-debugging --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/try-works/recursive-mode.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/recursive-debugging .cursor/skills/recursive-debugging && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "recursive-debugging" agent skill from https://github.com/try-works/recursive-mode/tree/main/skills/recursive-debugging into .cursor/skills/recursive-debugging/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "recursive-debugging", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/try-works/recursive-mode.git --path skills/recursive-debugging--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add try-works/recursive-mode --skill recursive-debugging -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install try-works/recursive-mode recursive-debugging --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/try-works/recursive-mode.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/recursive-debugging .gemini/skills/recursive-debugging && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "recursive-debugging" agent skill from https://github.com/try-works/recursive-mode/tree/main/skills/recursive-debugging into .gemini/skills/recursive-debugging/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "recursive-debugging", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install try-works/recursive-mode recursive-debuggingInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add try-works/recursive-mode --skill recursive-debugging -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/try-works/recursive-mode.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/recursive-debugging .github/skills/recursive-debugging && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "recursive-debugging" agent skill from https://github.com/try-works/recursive-mode/tree/main/skills/recursive-debugging into .github/skills/recursive-debugging/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "recursive-debugging", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add try-works/recursive-mode --skill recursive-debugging -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install try-works/recursive-mode recursive-debugging --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/try-works/recursive-mode.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/recursive-debugging .opencode/skills/recursive-debugging && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "recursive-debugging" agent skill from https://github.com/try-works/recursive-mode/tree/main/skills/recursive-debugging into .opencode/skills/recursive-debugging/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "recursive-debugging", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
recursive-debuggingA skill your agent uses when a recursive-mode requirement involves debugging a bug, test failure, or unexpected behavior.
Recursive Debugging is an agent skill from try-works/recursive-mode. Use when a recursive-mode requirement involves debugging a bug, test failure, or unexpected behavior. Insert Phase 1.5 between Phase 1 and Phase 2 to perform systematic root cause analysis before attempting any fixes. Trigger phrases: "debug", "investigate", "failing tests", "crash", "root cause".
Its SKILL.md is about 3.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `agents/openai.yaml`).
It sits in Development, covering Root cause analysis, Debugging and Failing and flaky tests. The repository describes itself as: Recursive workflow for agentic engineering. Like Factory Missions but properly recursive, free and open source. The licence is Apache-2.0.
2 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit ff75bc7. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are markdown and dot).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Recursive Debugging loads about 3.4k tokens when it runs. Until then it costs about 80 tokens; SKILL.md has 1,021 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from try-works/recursive-mode at commit ff75bc7, republished under its Apache-2.0 licence (© try-works). 1,021 words, ~3,417 tokens.
.claude/skills/recursive-debugging/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.When a requirement involves fixing a bug or investigating unexpected behavior, ad-hoc fixes waste time and create new bugs. Systematic debugging finds the root cause before any fix is attempted.
Core Principle: ALWAYS find root cause before attempting fixes. Symptom fixes are failure.
The Iron Law for recursive-mode debugging:
NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRSTTests are failing after the last change; debug itFix crash on empty inputInvestigate why the API returns wrong dataDo a root cause analysis before making changesMandatory Phase 1.5 when:
Use ESPECIALLY when:
Don't skip when:
Phase 1.5 is inserted between Phase 1 (AS-IS) and Phase 2 (TO-BE Plan) when debugging is required:
Phase 0: 00-requirements.md
->
Phase 1: 01-as-is.md (captures current behavior)
->
Phase 1.5: 01.5-root-cause.md <- NEW (this skill)
->
Phase 2: 02-to-be-plan.md (includes fix plan based on root cause)digraph debugging_phases {
rankdir=TB;
phase1 [label="Step 1:\nRoot Cause Investigation", shape=box, style=filled, fillcolor="#ffcccc"];
phase2 [label="Step 2:\nPattern Analysis", shape=box, style=filled, fillcolor="#ffffcc"];
phase3 [label="Step 3:\nHypothesis & Testing", shape=box, style=filled, fillcolor="#ccffcc"];
phase4 [label="Step 4:\nFix Implementation", shape=box, style=filled, fillcolor="#ccccff"];
phase1 -> phase2 -> phase3 -> phase4;
// Feedback loops
phase3 -> phase1 [label="hypothesis\nfailed", style=dashed];
phase4 -> phase1 [label="fix\nfailed", style=dashed];
}BEFORE attempting ANY fix:
Record in Phase 1.5 artifact:
## Error Analysis
**Error Message:** [verbatim]
**Stack Trace:** [key frames]
**File:Line:** [locations]
**Error Code:** [if applicable]
**Key Insight:** [what the error is telling you]Record in Phase 1.5 artifact:
## Reproduction Verification
**Steps:**
1. [exact step]
2. [exact step]
3. [exact step]
**Reproducible:** Yes / No / Intermittent
**Frequency:** [X out of Y attempts]
**Deterministic:** Yes / NoRecord in Phase 1.5 artifact:
## Recent Changes Analysis
**Git History:** [relevant commits]
**Dependency Changes:** [package.json, requirements.txt, etc.]
**Config Changes:** [relevant files]
**Environment:** [OS, runtime versions]
**Likely Culprit:** [most suspicious change]WHEN system has multiple components (CI -> build -> signing, API -> service -> database):
BEFORE proposing fixes, add diagnostic instrumentation:
For EACH component boundary:
Run once to gather evidence showing WHERE it breaks, THEN analyze evidence.
Record in Phase 1.5 artifact:
## Multi-Layer Evidence
**Layer 1: [Component Name]**
- Input: [data]
- Output: [data]
- Status: WORKING / BROKEN
**Layer 2: [Component Name]**
- Input: [data from Layer 1]
- Output: [data]
- Status: WORKING / BROKEN
**Failure Boundary:** Layer X -> Layer Y
**Root Cause Location:** [specific component]WHEN error is deep in call stack:
Trace backward:
Record in Phase 1.5 artifact:
## Data Flow Trace
**Error Location:** [file:line - function]
**Bad Value:** [what was wrong]
**Call Stack Trace:**
1. [deepest] `functionA()` at fileA:line - received [value]
2. `functionB()` at fileB:line - passed [value]
3. `functionC()` at fileC:line - passed [value]
4. [source] `functionD()` at fileD:line - ORIGIN of bad value
**Root Cause:** [source location] - [explanation]Find the pattern before fixing:
Record in Phase 1.5 artifact:
## Pattern Analysis
**Working Example:** [file:location]
**Broken Code:** [file:location]
**Key Differences:**
| Aspect | Working | Broken |
|--------|---------|--------|
| [X] | [value] | [value] |
| [Y] | [value] | [value] |
**Likely Cause:** [difference that explains the bug]
**Dependencies:** [what the code needs to work]Scientific method:
Record in Phase 1.5 artifact:
## Hypothesis Testing
### Hypothesis 1
**Statement:** [clear hypothesis]
**Rationale:** [why you think this]
**Test:** [minimal change to verify]
**Result:** [confirmed/rejected]
**Evidence:** [output/observation]
### Hypothesis 2 (if needed)
[...]
**Confirmed Root Cause:** [final hypothesis]Fix the root cause, not the symptom:
If debugging uses delegated review, external log inspection, or any other routed model help, re-read:
/.recursive/config/recursive-router.json/.recursive/config/recursive-router-discovered.jsonimmediately before choosing the delegated CLI/model, and follow the current routed policy instead of a hardcoded model assumption.
Record in Phase 1.5 artifact:
## Root Cause Summary
**Root Cause:** [one sentence]
**Location:** [file:line]
**Explanation:** [paragraph explaining why]
**Fix Approach:** [high-level]
**Test Strategy:** [how to verify fix]
## Phase 1.5 Gate
Coverage: [Did we find root cause?]
Approval: [Ready to proceed to Phase 2 with fix plan?]If you catch yourself thinking:
ALL of these mean: STOP. Return to Phase 1.5.
| Excuse | Reality |
|---|---|
| "Issue is simple, don't need process" | Simple issues have root causes too. Process is fast for simple bugs. |
| "Emergency, no time for process" | Systematic debugging is FASTER than guess-and-check thrashing. |
| "Just try this first, then investigate" | First fix sets the pattern. Do it right from the start. |
| "I'll write test after confirming fix" | Untested fixes don't stick. Test first proves it. |
| "Multiple fixes at once saves time" | Can't isolate what worked. Causes new bugs. |
| "I see the problem, let me fix it" | Seeing symptoms != understanding root cause. |
| "One more fix attempt" (after 2+ failures) | 3+ failures = architectural problem. Question pattern, don't fix again. |
Pattern indicating architectural problem:
STOP and question fundamentals:
Document in Phase 1.5:
## Architectural Concern
**Fix Attempts:** [number]
**Pattern:** [what happens with each fix]
**Recommendation:** [architectural change vs. symptom fix]
**Next Steps:** [escalate, refactor, or accept risk]File: /.recursive/run/<run-id>/01.5-root-cause.md
Run: `/.recursive/run/<run-id>/`
Phase: `01.5 Root Cause Analysis`
Status: `DRAFT` | `LOCKED`
Inputs:
- `/.recursive/run/<run-id>/01-as-is.md`
- [relevant addenda]
Outputs:
- `/.recursive/run/<run-id>/01.5-root-cause.md`
Scope note: This document records systematic debugging process and identified root cause.
## TODO
- [ ] Replace every placeholder section with the concrete root-cause evidence for this run.
## Audit Context
Audit Execution Mode: self-audit / subagent
Subagent Availability: available / unavailable
Subagent Capability Probe: [what proved availability or unavailability]
Delegation Decision Basis: [why self-audit or delegation was chosen]
## Error Analysis
[Section 2.1 - verbatim errors, stack traces]
## Reproduction Verification
[Section 2.2 - exact steps, reproducibility]
## Recent Changes Analysis
[Section 2.3 - git history, dependencies]
## Evidence Gathering
[Section 2.4 - multi-layer diagnostics if applicable]
## Data Flow Trace
[Section 2.5 - backward trace to source]
## Pattern Analysis
[Section 3 - working vs broken comparison]
## Hypothesis Testing
[Section 4 - scientific method log]
## Root Cause Summary
**Root Cause:** [one sentence]
**Location:** [file:line]
**Detailed Explanation:** [paragraph]
**Fix Strategy:** [approach for Phase 2]
**Test Plan:** [how to verify]
## Requirement Completion Status
- `R1` | `investigated` | Root cause identified at [location] | Evidence: [section]
## Traceability
- R1 (Bug fix requirement) -> Root cause identified at [location] | Evidence: [section]
## Coverage Gate
- [ ] Error messages analyzed
- [ ] Reproduction verified
- [ ] Recent changes reviewed
- [ ] Data flow traced to source
- [ ] Pattern analysis completed
- [ ] Hypothesis tested and confirmed
- [ ] Root cause documented
- [ ] Fix strategy defined
Coverage: PASS / FAIL
## Approval Gate
- [ ] Root cause identified (not just symptom)
- [ ] Fix approach clear
- [ ] Test strategy defined
- [ ] No "quick fixes" attempted
- [ ] Ready to proceed to Phase 2
Approval: PASS / FAIL
LockedAt: [when locked]
LockHash: [sha256]When Phase 1 (AS-IS) identifies a bug/issue that needs fixing:
01-as-is.md)01.5-root-cause.md) with Status: DRAFTPhase 2 (02-to-be-plan.md) builds on Phase 1.5:
## Root Cause Reference
Root cause identified in `01.5-root-cause.md`:
- Location: [file:line]
- Cause: [summary]
- Full analysis: [reference]
## Fix Plan
Based on root cause analysis:
1. [specific fix steps]
2. [test strategy from Phase 1.5]01.5-root-cause.md artifact© try-works, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file in skills/recursive-debugging of try-works/recursive-mode.
Open the folder on GitHubat commit ff75bc7
We found 2 copies of this SKILL.md (exact, near-identical or edited) in other folders. This page covers the copy in try-works/recursive-mode, which our catalogue first saw on October 7, 2026.
Recursive Debugging next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Recursive Debugging this skilltry-works/recursive-mode | 136 | — | ~3.4k | Automated safety check: Pass | Apache-2.0 | |
| Systematic DebuggingChrisWiles/claude-code-showcase | 6.1k | 3 repos | ~1.2k | Automated safety check: Pass | None | |
| Debugging and Error Recoveryaddyosmani/agent-skills | 102k | 1 repos | ~2.6k | Automated safety check: Pass | MIT | |
| Systematic Debugginged3dai/ed3d-plugins | 250 | 3 repos | ~2.4k | Automated safety check: Pass | None | |
| Debugging And Error Recoveryabashev/vfs-s3 | 106 | 6 repos | ~2.6k | Automated safety check: Pass | Apache-2.0 | |
| Veomni DebugByteDance-Seed/VeOmni | 2.2k | — | ~2.8k | Automated safety check: Pass | Apache-2.0 |
ChrisWiles/claude-code-showcase
Applies a four-phase debugging routine that finds the root cause of a bug or failing test before any fix is written.
addyosmani/agent-skills
Applies a stop-the-line rule and a step-by-step triage when tests fail, builds break or something stops working, aiming at the root cause instead of guesses.
ed3dai/ed3d-plugins
A skill your agent uses when encountering any bug, test failure, or unexpected behavior, before proposing fixes - four-phase framework (root cause investigation, pattern analysis, hypothesis…
abashev/vfs-s3
Guides systematic root-cause debugging. An agent skill from abashev/vfs-s3.
ByteDance-Seed/VeOmni
A skill your agent uses for ANY bug, error, crash, wrong output, loss divergence, gradient explosion, test failure, CUDA error, distributed training hang, checkpoint load failure, or unexpected…
jsmastery-pro/skills
Runs a reproduce, localize, hypothesize, test, fix and verify loop to find a bug's root cause, applies the minimal fix and hands off a regression test.
try-works/recursive-mode
Repository workflow orchestration skill for staged implementation, locked artifacts, late-phase receipts, and durable memory maintenance.
try-works/recursive-mode
A skill your agent uses when recursive-mode work needs a canonical delegated-review or audit handoff.
try-works/recursive-mode
A skill your agent uses when recursive-mode work may benefit from delegated audit, review, or bounded implementation support.
try-works/recursive-mode
A skill your agent uses when implementing any code in recursive-mode Phase 3.
try-works/recursive-mode
A skill your agent uses when starting any recursive-mode requirement to set up an isolated git worktree.
try-works/recursive-mode
Approval-gated, repo-aware requirements/spec authoring for new recursive-mode runs.
Categories
A skill your agent uses when a recursive-mode requirement involves debugging a bug, test failure, or unexpected behavior. Recursive Debugging is an agent skill from try-works/recursive-mode. Use when a recursive-mode requirement involves debugging a bug, test failure, or unexpected behavior.
Recursive Debugging fits situations like: A recursive-mode requirement involves debugging a bug; unexpected behavior.
Run `npx skills add try-works/recursive-mode --skill recursive-debugging -a claude-code`. Or copy the skill folder (skills/recursive-debugging in try-works/recursive-mode) into .claude/skills/recursive-debugging in your project. Claude Code loads it when a task matches its description.
Run `npx skills add try-works/recursive-mode --skill recursive-debugging -a codex`. Or copy the skill folder (skills/recursive-debugging in try-works/recursive-mode) into .agents/skills/recursive-debugging in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add try-works/recursive-mode --skill recursive-debugging -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/recursive-debugging, .gemini/skills/recursive-debugging, .github/skills/recursive-debugging and .opencode/skills/recursive-debugging in your project.
SKILL.md names no scripts, command-line tools or credentials: Recursive Debugging is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Recursive Debugging is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 3.4k tokens (SKILL.md is roughly 14k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Recursive Debugging: Systematic Debugging (ChrisWiles/claude-code-showcase, 6.1k stars), Debugging and Error Recovery (addyosmani/agent-skills, 102k stars), Systematic Debugging (ed3dai/ed3d-plugins, 250 stars) and Debugging And Error Recovery (abashev/vfs-s3, 106 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
try-works (a GitHub user) maintains it in try-works/recursive-mode, which has 136 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on July 24, 2026.
Source: try-works/recursive-mode on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.