Skip to content
Back to skills

Systematic Debugging

ASecurity

Use when a failure has an unclear cause or attempted fixes do not work. Gather evidence and test hypotheses before changing behavior. A known, proven cause does not need a separate investigation phase.

  • 7 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 2, 2026
developmentgodebugging

Security analysis

A100/100

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

Scanned November 29, 2026

npx -y skills add yishan-io/yishan-mono --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/yishan-io-systematic-debugging/badge)](https://www.skillsdirectory.com/skills/yishan-io-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 when a failure has an unclear cause or attempted fixes do not work. Gather evidence and test hypotheses before changing behavior. A known, proven cause does not need a separate investigation phase.
---

# Systematic Debugging

Use evidence to locate the cause before fixing it. Scale the investigation to the uncertainty, not to a fixed checklist.

## Investigate

Read the error and relevant code. Reproduce the failure when practical, or use existing logs, traces, and recorded evidence. Check recent changes when they relate to the failure.

Form a concrete hypothesis and test it with the smallest useful check. Before each test, post one line to the user: Hypothesis, Expected if true, How you will check. After the check, state the result and whether the hypothesis is confirmed or ruled out. If the cause is already proven, proceed to the fix without repeating the investigation.

For failures across components, inspect the relevant boundaries and find the first unexpected value or state. Do not instrument every layer when evidence already localizes the problem. Compare a working path when it helps test the hypothesis.

## Fix and Verify

Create a focused regression test when the behavior is testable. Use `test-driven-development` for a test-first fix. If automation is impractical, state the limitation and use a concrete reproduction or manual check.

Make the smallest change that addresses the cause. Run the reproduction and relevant surrounding checks. Do not combine unrelated speculative fixes.

## Keep the Investigation Bounded

Within the agreed task scope, the active agent can choose hypotheses, adjust tests, and perform local fixes. No separate controller brief is required for each attempt.

Default investigation limit: 3 tested hypotheses, or 20 tool calls, whichever comes first, without a confirmed cause. At the limit, stop. Report what is known, each hypothesis with its evidence and result, and the next useful check, then wait for the user. Do not reset the limit to continue the same approach. The user can raise the limit explicitly.

The same failing check 3 times in a row also ends the investigation, even if the limit is not reached.

Escalate when the next step needs a new architectural decision, material scope expansion, unavailable access, or a user tradeoff. Do not escalate routine test or instrumentation adjustments.

For tracked work, write to the task notes when the cause is confirmed or the limit is reached. Include every hypothesis tested, ruled-out ones too, each with its evidence (command, file path, error text) and result. Do not write a note per hypothesis as you go.

## Optional References

Read these only when relevant:

- `root-cause-tracing.md` for tracing a failure backward through a call chain
- `condition-based-waiting.md` for asynchronous or flaky tests
- `defense-in-depth.md` for preventing recurrence across relevant boundaries

Files in this skill

  • SKILL.md4.3 KB
  • condition-based-waiting.md1.1 KB
  • defense-in-depth.md1.2 KB
  • root-cause-tracing.md1.2 KB

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 development →

Comments

Loading comments…

Newsletter

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