Skip to content
Back to skills

Systematic Debugging

ASecurity

Use 4-phase root cause analysis (Observe, Hypothesize, Verify, Fix); avoid unverified patches.

  • 34 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 2, 2026
ai-agentsdebugging

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 2, 2026

npx -y skills add KbWen/agent-virtual-office --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/kbwen-systematic-debugging/badge)](https://www.skillsdirectory.com/skills/kbwen-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: Use 4-phase root cause analysis (Observe, Hypothesize, Verify, Fix); avoid unverified patches.
---

# Systematic Debugging

## Overview

The core of systematic debugging is: **understand first, then fix**. When encountering a bug, clarify symptoms, reproduction conditions, and blast radius. Draw hypotheses, verify them with experiments to isolate the root cause, and only then submit a minimal, verifiable fix.

## Ironclad Rules

1. **No random patching**: Do not submit fixes without root cause evidence.
2. **Change one variable at a time**: Prevent unexplainable results from touching multiple areas at once.
3. **Fixes MUST include evidence**: Include reproduction steps, verification, and regression results.

## When to Use

- Hotfix incident response.
- Flaky tests.
- Cross-module anomalies that aren't intuitively obvious.
- Any "fixed but I don't know why" risk scenarios.

## Four-Phase Process

### Phase 1: Observe

- Precisely record error messages, timestamps, and input conditions.
- Create a Minimal Reproducible Example (MRE).
- Mark the blast radius (affected modules/users).

### Phase 2: Hypothesize

- Propose 1–3 testable root cause hypotheses.
- Design "falsifiable" checks for each hypothesis.
- Prioritize high-probability, low-cost verifiable items.

### Phase 3: Verify

- Run experiments and retain output logs.
- Adjust only one variable to confirm causality.
- Remove falsified hypotheses to converge on the most likely root cause.

### Phase 4: Fix

- Implement a Minimal Fix.
- Add a Regression Test.
- Verify: The original error disappears AND existing behavior is not broken.

## Common Mistakes

- Modifying code before reproducing the issue.
- Modifying too many files at once, failing to locate the effective fix point.
- Treating "accidental passes" as root cause resolved.
- Lacking regression tests, causing similar issues to happen again.

Files in this skill

  • SKILL.md1.9 KB
  • agents/openai.yaml969 B

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.

Comments

Loading comments…

Newsletter

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