Debug Mode Skill — Development skill for Claude Code
Debug Mode for Claude Code — hypothesis-driven, instrumented debugging with automatic bug reproduction and mandatory regression tests.
How to install Debug Mode Skill
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open franzenzenhofer/debug-mode-skill and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Debug Mode Skill does
Debug Mode for Claude Code — hypothesis-driven, instrumented debugging with automatic bug reproduction and mandatory regression tests.
Alternatives in Development
- Octo Debug — Systematic debugging with methodical problem investigation 2.8k ★
- Lazy Bird — Universal development automation for ANY project 224 ★
- Bug Race — Use when a bug has already survived at least one debugging attempt and you have 2-3 genuinely distinct root-ca 130 ★
README
Debug Mode for Claude Code
**Stop guessing. Start debugging.**
A [Claude Code skill](https://docs.anthropic.com/en/docs/claude-code/skills) that brings hypothesis-driven, instrumented debugging to the terminal. Instead of guessing and patching, Claude Code will systematically reproduce your bug, add tagged logs, analyze runtime behavior, fix the root cause, and write a regression test.
The Problem
AI coding assistants guess at fixes. They see an error, pattern-match to a solution, and hope it works. When it doesn't, they guess again. This is expensive, slow, and produces fragile code.
The Solution
Debug Mode forces a disciplined loop:
Hypothesize → Reproduce → Instrument → Analyze → Reset → Fix → Verify
Every fix is backed by evidence. Every bug gets a regression test. No guessing.
How It Works
The 9-Phase Loop
| Phase | What Happens |
|---|---|
| 0. Safety | Create git branch + stash uncommitted work |
| 1. Discover | Scan project for test infra, scripts, recent changes |
| 2. Hypothesize | Generate 3-5 ranked theories with evidence criteria |
| 3. Reproduce | Write repro script/test and commit it |
| 4. Instrument | Add [DEBUG-MODE] tagged logs (dirtying the working tree) |
| 5. Analyze | Run reproduction, capture logs to file, grep intelligently |
| 6. Reset | git restore . — perfectly removes all debug logs |
| 7. Fix | Implement fix at root cause (not symptom) |
| 8. Verify | Red-to-green check using the committed repro |
The Commit-Then-Instrument Pattern
This is the key insight. LLMs are bad at surgically removing debug logs — they leave hanging brackets, break indentation, and corrupt syntax. Debug Mode solves this:
- Write reproduction test/script
- Commit it (
git commit -m "chore: add failing reproduction") - Add
[DEBUG-MODE]logs everywhere (dirty the working tree) - Analyze the logs
git restore .— instantly removes ALL instrumentat
Related Skills
Methodical Debug
Please take a methodical, hypothesis-driven approach to debugging this issue:
Project Debug
Hypothesis-driven troubleshooting: structured debug from symptom to root cause
Investigator
Root-cause debugging specialist that diagnoses issues through systematic investigation before proposing any fi
Launch And Go
Launch-and-go mode. Runs the 10-item pre-flight checklist, stamps the per-project bug log, orchestrates subage
Debug Pro
Resolve existing defects through adaptive evidence gathering, exact reproduction, causal confirmation, bounded
Triage Review
Batch-triage every open needs-triage + needs-reproduction issue, Memtrace-first. Route by classification — def
Related Agents
System Tester
Bug reproduction and fix validation in Debug Mode. Must not modify source code. Subagent only.
Hard Packet
Opus implementation agent for work that needs design judgment, root-cause debugging, or tests that need though
Research QA
Only for research-root tasks already in automatic mode. Quality engineer; independently verify requirements an