Skip to content
Agentmart
Submit a tool

deep-debug

Debug sub-mode for Phase 3 — Investigate → Analyze → Hypothesize → Implement, with the iron rule that no fix ships before root-cause investigation.

Skill by Sungmin-Cho

IndexedMIT★ 10
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/sungmin-cho-deep-debug

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Debug sub-mode for Phase 3 — Investigate → Analyze → Hypothesize → Implement, with the iron rule that no fix ships before root-cause investigation. Triggers on `/deep-debug`, "systematic debug", "root cause investigation", "디버그 모드", "근본 원인 분석", `verification_cmd` 실패 시 자동 진입, or "fix this".

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/deep-debug

What's inside

Skill name
deep-debug
Description
Debug sub-mode for Phase 3 — Investigate → Analyze → Hypothesize → Implement, with the iron rule that no fix ships before root-cause investigation. Triggers on `/deep-debug`, "systematic debug", "root cause investigation", "디버그 모드", "근본 원인 분석", `verification_cmd` 실패 시 자동 진입, or "fix this".
License
MIT
Instructions
143 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

## Inputs (skill args)

| 인자 | 의미 |
|---|---|
| (없음) | Debug sub-mode 진입 — 현재 실패 컨텍스트로부터 root cause 분석 |

빈 args / 매칭되지 않는 토큰 → 본문의 default 분기로 진입.

## Prerequisites


# Systematic Debugging

You are entering **Debug Sub-Mode** within a Deep Work implementation session.

## Language

Read(`${CLAUDE_PLUGIN_ROOT}/skills/shared/references/user-language.md`) and follow it.

## Iron Rule

🚫 **NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST.**

Do NOT:
- Guess at fixes based on the error message alone
- Try random changes to see if they work
- Apply a fix without understanding WHY the bug exists
- Move on after a fix without verifying the root cause theory

## Trigger Conditions

This command activates automatically when:
- `verification_cmd` fails after the GREEN phase (unexpected regression)
- A previously passing test starts failing
- The user explicitly calls `/deep-debug`

## Phase 1: Investigate

1. **Read the error carefully**:
   ```
   에러 분석:
      테스트: [failing test name]
      에러 메시지: [exact error]
      스택 트레이스: [relevant lines]
   ```

2. **Reproduce consistently**: Run the failing command 2 more times to confirm it's not flaky

3. **Check recent changes**: What was the last edit before the failure?
   ```bash
   git diff HEAD
   git log --oneline -5
   ```

4. **Gather evidence**: Read related files, check imports, trace data flow

## Phase 2: Analyze

1. **Find a working reference**: Is there similar code that works? Compare patterns.

2. **Identify the difference**: What's different between the working and broken state?

3. **Trace data flow**: Follow the data from input to the failure point:
   ```
   데이터 흐름:
      입력: [source] → [transform1] → [transform2] → ❌ [failure point]
      예상: [expected value at failure point]
      실제: [actual value at failure point]
   ```

## Phase 3: Hypothesize

1. **Form ONE hypothesis**: Based on evidence, not guessing
   ```
   가설:
      원인: [specific root cause]
      근거: [evidence supporting this hypothesis]
      검증 방법: [how to test this hypothesis]
   ```

2. **Test the hypothesis minimally**: Verify with the smallest possible change or check

3. **If hypothesis is wrong**: Return to Phase 2 with new data. Do NOT try another random fix.

## Phase 4: Implement Fix

1. **Apply the minimal fix** based on verified root cause
2. **Run the failing test** — it should now pass
3. **Run the full test suite** — no regressions
4. **Record the root cause**:

Write to `$WORK_DIR/debug-log/RC-NNN.md`:
```markdown
# Root Cause: [Title]

## 증상
- 실패한 테스트: [test name]
- 에러 메시지: [message]

## 근본 원인
[Explanation of why the bug existed]

## 수정 내용
[What was changed and why]

## 교훈
[What to watch for in the future]

## 관련 Slice
- SLICE-NNN: [goal]
```

5. **Update receipt**: Set `debug.root_cause_note` to the RC file path

## Escalation

If 3 fix attempts fail (3 different hypotheses tested and invalidated):

```

From Sungmin-Cho/deep-work, MIT.

More from Sungmin-Cho/deep-work

Signals

Stars
10
Forks
2
Open issues
1
Last commit (this folder)
Aug 13, 2026 (2 months ago)
Last release
Sep 20, 2026 (1 month ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from Sungmin-Cho

Cite this page

deep-debug skill. Agent Mart. https://agentmart.dev/skills/sungmin-cho-deep-debug (last updated 2026-10-24)