debug
Structured debugging with mandatory evidence gathering before any fix attempt.
Skill by griffinhilly
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/griffinhilly-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.
About
Reviews
Write a reviewNo 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/debug
What's inside
- Skill name
debug- Description
- Structured debugging with mandatory evidence gathering before any fix attempt. 4-phase protocol (Observe → Hypothesize → Reproduce → Fix) with hard gates between phases.
- License
- MIT
- Instructions
- 90 lines in SKILL.md · view on GitHub
Files (2)
- SKILL.md
- phase-gates.md
SKILL.md (first lines)
# Structured Debugging Systematic root-cause investigation. The goal is to find the actual cause before attempting any fix. ## Input Bug to investigate: `$ARGUMENTS` If no arguments, ask: "What's broken? Describe the symptom — what you expected vs what happened." ## The Rule **No fix attempt before Phase 1 evidence is written down. Fixing without evidence is guessing.** ## Phase 1: OBSERVE — Gather Evidence **Gate: Cannot proceed to Phase 2 without a written evidence summary.** Do not hypothesize yet. Collect data: 1. **Read the error.** Full message, stack trace, exit code. Not a summary — the actual text. 2. **Reproduce.** Run the failing operation. Confirm it fails consistently. Note exact conditions. 3. **Inspect each layer.** For data pipelines, use `~/.claude/guides/pipeline-diagnostic.md` — walk stages in order, stop at the first stage showing incorrect data. For code bugs, trace the call path from entry point to failure. 4. **Check recent changes.** What changed since it last worked? `git log`, `git diff`, recent session-search results. 5. **Record the evidence:** ``` EVIDENCE SUMMARY — [bug description] Error: [exact message] Reproduced: [yes/no, conditions] First failing layer: [stage name] Data at failure point: [actual values] Recent changes: [what changed] ``` ### Red Flags (return to Phase 1) If you catch yourself thinking any of these, you skipped Phase 1: - "Quick fix for now, investigate later" - "Just try changing X and see if it works" - "It's probably X, let me fix that" - "I don't fully understand but this might work" - Proposing solutions before inspecting data at the failure point ## Phase 2: HYPOTHESIZE — Candidate Causes **Gate: Cannot proceed to Phase 3 without 3+ ranked hypotheses.** Generate at least 3 candidate root causes: - Rank by likelihood given the evidence - For each, state what evidence would confirm or rule it out - Prefer hypotheses that explain ALL observed symptoms over those explaining only one - If the failure is at a layer boundary (data passes between stages), check both the producer and consumer ## Phase 3: REPRODUCE — Prove the Cause **Gate: Cannot proceed to Phase 4 without a confirmed root cause.** Test hypotheses one at a time, cheapest first: | Bug type | Reproduction method | |----------|-------------------| | Data bug | Query that shows bad data at the identified stage | | Logic bug | Minimal script or test that triggers the wrong behavior | | Pipeline bug | Run the failing stage in isolation with known-good input | | Integration bug | Trace the exact request/response at the boundary | If hypothesis is confirmed → proceed to Phase 4. If hypothesis is ruled out → test the next one. If all hypotheses ruled out → return to Phase 1 with new evidence from the tests. ## Phase 4: FIX — Confirmed Root Cause Only 1. **Fix the confirmed cause.** Nothing else. No "while I'm here" changes. 2. **Write a test** that would have caught this bug. 3. **Check for siblings.** Grep for the same pattern elsewhere in the codebase. Are there other instances of the same mistake? 4. **Update MEMORY.md** if the gotcha is non-obvious or likely to recur. 5. **Verify the fix.** Run the reproduction from Phase 3. Does it pass now? Do other tests still pass? ## Three-Fix Escalation If Phase 4 has been attempted 3 times and the bug persists, **STOP**. Don't try a fourth fix. The approach or architecture is wrong. Escalate to the user: "This has survived 3 fix attempts. The root cause may be architectural, not local. Here's what I've tried and why each failed: [summary]. I recommend reconsidering [specific aspect]." ## After Fixing Run `/verify` on the affected output to catch any secondary effects. Then suggest `/learn gotcha` to capture the lesson if it's reusable across projects.
From griffinhilly/claude-code-synthesis, MIT.
More from griffinhilly/claude-code-synthesis
- 0.575score
autoresearch
griffinhilly
Bounded autonomous optimization loop with rollback.
SkillCFreshness: C★ 67Claude Code +9 - 0.575score
check-resolvable
griffinhilly
Audit ~/.claude/ for orphans — skills, commands, guides, and tools that exist on disk but have no path from CLAUDE.md / RESOLVER.md / other reachable files.
SkillCFreshness: C★ 67Claude Code +9 - 0.575score
distill
griffinhilly
Diff an agent draft against the user-corrected final, extract patterns from the corrections, and propose candidate rules for skill files.
SkillCFreshness: C★ 67Claude Code +9 - 0.575score
wrapup
griffinhilly
End-of-session closer.
SkillCFreshness: C★ 67Claude Code +9 - 0.575score
verify
griffinhilly
Verify outputs after pipeline steps, implementations, or any multi-step work.
SkillCFreshness: C★ 67Claude Code +9 - 0.572score
review
griffinhilly
Review completed work against success criteria and flag issues
SkillCFreshness: C★ 67Claude Code +9 - 0.572score
implement
griffinhilly
Execute a pre-defined plan using implementation agents (no design changes)
SkillCFreshness: C★ 67Claude Code +9 - 0.510score
ship
griffinhilly
Pre-commit readiness check.
SkillDFreshness: D★ 67Claude Code +9 - 0.507score
finalize
griffinhilly
End-of-session COMP update — record decisions, progress, and state changes
SkillDFreshness: D★ 67Claude Code +9 - 0.507score
research
griffinhilly
Launch a research-only agent that investigates a topic and returns findings (no implementation)
SkillDFreshness: D★ 67Claude Code +9 - 0.507score
retro
griffinhilly
Periodic retrospective — assess what Claude did well, what went poorly, and what to improve
SkillDFreshness: D★ 67Claude Code +9 - 0.507score
comp
griffinhilly
Create or update all 4 COMP files (CLAUDE.md, ORIENT.md, MEMORY.md, PLAN.md) for a directory
SkillDFreshness: D★ 67Claude Code +9
Signals
- Stars
- 67
- Forks
- 6
- Open issues
- 1
- Last commit (this folder)
- Apr 1, 2026 (7 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from griffinhilly
- 0.575score
autoresearch
griffinhilly
Bounded autonomous optimization loop with rollback.
SkillCFreshness: C★ 67Claude Code +9 - 0.575score
check-resolvable
griffinhilly
Audit ~/.claude/ for orphans — skills, commands, guides, and tools that exist on disk but have no path from CLAUDE.md / RESOLVER.md / other reachable files.
SkillCFreshness: C★ 67Claude Code +9 - 0.575score
distill
griffinhilly
Diff an agent draft against the user-corrected final, extract patterns from the corrections, and propose candidate rules for skill files.
SkillCFreshness: C★ 67Claude Code +9 - 0.575score
wrapup
griffinhilly
End-of-session closer.
SkillCFreshness: C★ 67Claude Code +9 - 0.575score
verify
griffinhilly
Verify outputs after pipeline steps, implementations, or any multi-step work.
SkillCFreshness: C★ 67Claude Code +9 - 0.572score
review
griffinhilly
Review completed work against success criteria and flag issues
SkillCFreshness: C★ 67Claude Code +9
Cite this page
debug skill. Agent Mart. https://agentmart.dev/skills/griffinhilly-debug (last updated 2026-10-24)