structured-debugging

Guide hypothesis-driven debugging with iterative testing and data collection.

Updated May 5, 2026
One-click install
npx skills add https://github.com/hkjang/qwen-code --skill structured-debugging-hkjang
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: structured-debugging
Source: https://github.com/hkjang/qwen-code/tree/main/.qwen/skills/structured-debugging
Command: npx skills add https://github.com/hkjang/qwen-code --skill structured-debugging-hkjang

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill provides a structured methodology for debugging hard-to-solve issues, improving efficiency and reducing time spent on troubleshooting.

Core Features & Use Cases

  • Hypothesis-Driven Debugging: A disciplined approach to debugging that narrows down the problem space through iterative hypothesis testing.
  • Instrumentation and Data Collection: Add targeted debug logs and assertions to confirm or reject hypotheses.
  • Documenting Findings: Keep a record of each debugging attempt and its outcomes to avoid losing context and repeating mistakes.
  • Avoiding Common Failure Modes: Guides users to avoid common pitfalls such as jumping to conclusions without evidence and blaming external systems prematurely.
  • Persistent State Management: Identifies and addresses issues related to persistent state that can lead to "impossible" bugs.
  • Use Case: Ideal for developers facing non-trivial bugs, unexpected behavior, or flaky tests in complex systems.

Quick Start

To start debugging, write down your hypothesis, design instrumentation, verify data collection, run the test, and document your findings. Iterate as needed until the root cause is identified.

Frequently Asked Questions about structured-debugging

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

FAQPage Schema
What is hypothesis-driven debugging and how does it resolve complex software issues?

Hypothesis-driven debugging resolves complex software issues by formulating hypotheses, designing targeted instrumentation to collect data, verifying results, and iteratively documenting findings to pinpoint the root cause without losing context.

How do I debug flaky tests and unexpected behavior in complex systems?

Debug flaky tests in complex systems by following a structured methodology that emphasizes data collection, iterative problem-solving, and avoiding common failure modes like jumping to conclusions without evidence.

How do I track debugging attempts to avoid losing context on difficult bugs?

Track debugging attempts by documenting each hypothesis, its targeted instrumentation, and the resulting outcomes to maintain a persistent record, preventing repeated mistakes and context loss during complex software troubleshooting.

Does this structured troubleshooting approach work for persistent state management bugs?

Yes, structured troubleshooting works for persistent state management bugs by specifically identifying and addressing persistent state issues that lead to impossible bugs, using targeted debug logs and assertions to confirm hypotheses.

What are common failure modes to avoid when diagnosing unexpected software behavior?

Common failure modes in diagnosing unexpected behavior include jumping to conclusions without evidence, prematurely blaming external systems, and neglecting persistent state issues, which structured analysis actively helps you avoid.

What is the best way to start debugging a non-trivial bug?

The best way to start debugging a non-trivial bug is to write down a hypothesis, design specific instrumentation, verify the collected data, run the test, document findings, and iterate until the root cause is identified.