Claude Code Debug Mode
Description
Cursor-style Debug Mode skill for coding agents. Hypothesis-driven debugging with runtime log instrumentation and human-in-the-loop verification.
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
Debug Mode Skill (Claude Code + Codex + Gemini CLI)
A hypothesis-driven debugging skill for [Claude Code](https://docs.anthropic.com/en/docs/claude-code), Codex, and [Gemini CLI](https://github.com/google-gemini/gemini-cli). Instead of blindly guessing fixes, it instruments your code with runtime logs, generates multiple hypotheses, and iteratively narrows down the root cause — with you in the loop.
Inspired by [Cursor's Debug Mode](https://www.cursor.com/blog/introducing-debug-mode).
How It Works
Bug Report → Hypotheses → Instrument Code → Reproduce → Analyze Logs → Fix → Verify → Clean Up
- Understand — Gathers context about the bug (expected vs actual behavior, repro steps)
- Hypothesize — Generates 3–5 testable hypotheses about root causes
- Instrument — Adds targeted debug logging wrapped in
#region DEBUGblocks - Reproduce — You trigger the bug while logs are collected to
.claude/debug.log - Diagnose — Maps log output to hypotheses, confirms or rules out each one
- Fix — Writes a minimal, targeted fix (not a refactor)
- Verify — You confirm the fix works; if not, the cycle repeats
- Clean up — Removes all instrumentation, leaving a clean diff
Install
One-liner (Claude Code)
# macOS / Linux / Windows (Git Bash / MSYS2)
mkdir -p ~/.claude/skills && git clone https://github.com/doraemonkeys/claude-code-debug-mode.git ~/.claude/skills/claude-code-debug-mode
# Claude Code discovers skills only ONE directory level under ~/.claude/skills/
# (it does not recurse), but this repo keeps SKILL.md inside debug-mode/. Lift that
# folder up one level, otherwise the skill silently won't load:
mv ~/.claude/skills/claude-code-debug-mode/debug-mode ~/.claude/skills/debug-mode
rm -rf ~/.claude/skills/claude-code-debug-mode
**Why the extra step (Claude only):** Codex and Gemini scan `skills/` recursively, so they find `claude-code-debug-mode/debug-mode/SKILL.md` on their own. Claude Code look
Related Skills
Algorithmic Art
Create generative art using p5.js with seeded randomness, flow fields, and particle systems
Design Brand Guidelines
Apply Anthropic's official brand colors and typography to artifacts
Design Canvas Design
Create beautiful visual art in PNG and PDF documents using design philosophy
Design Frontend Design
Create distinctive, production-grade frontend interfaces with high design quality
Design Slack Gif Creator
Create animated GIFs optimized for Slack's size constraints
Design Theme Factory
Style artifacts with professional themes including 10 pre-set color/font combinations
Design Related Agents
Codemod Runner
Writes and runs codemod scripts that replace hardcoded visual values with token references in ui/src/index.css
Designguru
Expert Design Guidance & Analysis Specialist who provides professional UI/UX insights, design system guidance,
Html Css
| Web standards for semantic markup, maintainable styling, and accessibility. | - | [wshobson/agents](https://