Skip to content
Back to skills

Systematic Debugging

ASecurity

4-phase root-cause debugging protocol before attempting code edits.

  • 4 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 26, 2026
ai-agentsdebugging

Security analysis

A100/100

Scanned November 26, 2026

npx -y skills add 4LPH7/Hive_Mind --skill systematic-debugging --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Systematic Debugging?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Systematic Debugging
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/4lph7-systematic-debugging/badge)](https://www.skillsdirectory.com/skills/4lph7-systematic-debugging)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: systematic-debugging
description: 4-phase root-cause debugging protocol before attempting code edits.
triggers:
  - debug
  - debugging
  - fix bug
  - investigate crash
  - test failure
  - failing test
  - failing unit test
  - broken
  - error trace
  - reproduce issue
---

# Systematic Debugging Protocol

When encountering any bug, test failure, crash, or unexpected behavior:

## Phase 1: Reproduction & Empirical Observation
- Do NOT guess or edit code immediately.
- Run the failing command or write a minimal reproduction test fixture.
- Capture the exact error, trace, and returncode.

## Phase 2: Root-Cause Isolation
- Trace dataflow backwards from the failure site to input origin.
- Formulate a testable hypothesis for WHY the defect occurs.
- Verify assumptions by inspecting state (logs, print statements, or debugger).

## Phase 3: Minimal Surgical Fix
- Implement the simplest change that resolves the root cause.
- Follow SOLUTION EFFICIENCY: skip -> reuse -> stdlib -> native platform -> minimum code.
- Never add speculative complexity or unnecessary wrappers.

## Phase 4: Regression Verification & Lock
- Run the full test suite to guarantee zero regressions.
- Ensure the newly authored reproduction test fixture passes consistently.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.