Debugging

Investigate root causes before fixing bugs across multi-layer systems.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/BoneTheDeveloper/Electronic-Contact-Contact-Book --skill debugging-bonethedeveloper
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Debugging
Source: https://github.com/BoneTheDeveloper/Electronic-Contact-Contact-Book/tree/main/.claude/skills/debugging
Command: npx skills add https://github.com/BoneTheDeveloper/Electronic-Contact-Contact-Book --skill debugging-bonethedeveloper

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Systematically debugging reduces wasted effort by enforcing root-cause investigations before applying fixes, preventing patchwork solutions and repeated failures.

Core Features & Use Cases

  • Four-phase debugging framework (Root Cause Investigation, Pattern Analysis, Hypothesis & Testing, Implementation) to guide methodical problem solving.
  • Comprehensive guidance on tracing data flow, adding instrumentation, and applying defense-in-depth validations across boundaries.
  • Use Case: when a bug surfaces across modules, follow the four phases to reproduce, identify the root cause, implement a robust fix, and verify across stack and tests.

Quick Start

Begin by reproducing the issue, gathering evidence, and applying Phases 1 through 4 to locate and fix the root cause.

Frequently Asked Questions about Debugging

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find a root cause before applying a bug fix?

Root-cause debugging enforces systematic investigation before fixes, preventing patchwork solutions. You reproduce the issue, gather evidence, and apply four phases: root cause investigation, pattern analysis, hypothesis testing, and implementation.

What is the best way to debug bugs across multi-layer systems?

Debugging multi-layer systems requires tracing data flow and adding instrumentation across boundaries. A four-phase framework guides you to reproduce the issue, identify the root cause across modules, implement a robust fix, and verify across the stack.

Why do my bug fixes keep failing or causing repeated issues?

Repeated failures happen when fixes bypass root-cause investigation. Systematic debugging stops guesswork by enforcing pattern analysis and hypothesis testing before implementation, applying defense-in-depth validations to prevent regressions.

How do I verify a bug fix after implementing the patch?

Verification involves applying defense-in-depth validations across boundaries and running tests across the stack. After completing the hypothesis testing and implementation phases, you validate the fix systematically to ensure the unexpected behavior is resolved.

Can I use systematic debugging for test failures and performance issues?

Systematic debugging handles test failures, unexpected behavior, and performance issues. By applying the four-phase framework, you trace data flow, analyze patterns, test hypotheses, and implement fixes for these varied problems across multi-layer systems.

When should I not use a four-phase debugging framework?

The four-phase debugging framework requires thorough root-cause investigation and pattern analysis. Avoid it for trivial, one-line typos where the root cause is already visually obvious and gathering evidence would add unnecessary overhead.