mcpbeat

Debugging

mrgoonie/debugging

Systematic debugging frameworks for finding and fixing bugs - includes root cause analysis, defense-in-depth validation, and verification protocols

10k tokens
context cost
the whole folder, loaded on every use
11
files
ships runnable scripts
0
copies elsewhere
how many repositories repackaged it
2189
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/mrgoonie/claudekit-skills --skill debugging

What comes with it

13 316 bytes besides the instruction
root-cause-tracing/find-polluter.sh
systematic-debugging/CREATION-LOG.md
systematic-debugging/test-academic.md
systematic-debugging/test-pressure-1.md
systematic-debugging/test-pressure-2.md
systematic-debugging/test-pressure-3.md

The instruction itself

9 sections, as written by the author

Debugging Skills

A collection of systematic debugging methodologies that ensure thorough investigation before attempting fixes.

Available Sub-Skills

Systematic Debugging

Location: systematic-debugging/SKILL.md

Four-phase debugging framework: Root Cause Investigation → Pattern Analysis → Hypothesis Testing → Implementation. The iron law: NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST.

Root Cause Tracing

Location: root-cause-tracing/SKILL.md

Trace bugs backward through the call stack to find the original trigger. Don't fix symptoms - find where invalid data originated and fix at the source.

Defense-in-Depth Validation

Location: defense-in-depth/SKILL.md

Validate at every layer data passes through to make bugs structurally impossible. Four layers: Entry Point → Business Logic → Environment Guards → Debug Instrumentation.

Verification Before Completion

Location: verification-before-completion/SKILL.md

Run verification commands and confirm output before claiming success. The iron law: NO COMPLETION CLAIMS WITHOUT FRESH VERIFICATION EVIDENCE.

When to Use

  • Bug in production → Start with systematic-debugging
  • Error deep in stack trace → Use root-cause-tracing
  • Fixing a bug → Apply defense-in-depth after finding root cause
  • About to claim "done" → Use verification-before-completion

Quick Dispatch

| Symptom | Sub-Skill |

|---------|-----------|

| Test failure, unexpected behavior | systematic-debugging |

| Error appears in wrong location | root-cause-tracing |

| Same bug keeps recurring | defense-in-depth |

| Need to confirm fix works | verification-before-completion |

Core Philosophy

> "Systematic debugging is FASTER than guess-and-check thrashing."

From real debugging sessions:

  • Systematic approach: 15-30 minutes to fix
  • Random fixes approach: 2-3 hours of thrashing
  • First-time fix rate: 95% vs 40%

How to use it

Copy the folder

Take mrgoonie/debugging from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.