process-systematic-debugging

Diagnose bugs through a five-phase reproduce, isolate, hypothesize, verify, and fix protocol.

Updated Dec 24, 2025
One-click install
npx skills add https://github.com/JoyJoin-Tech-Limited/JoyJoin_app_v0.1 --skill process-systematic-debugging-joyjoin-tech-limited
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: process-systematic-debugging
Source: https://github.com/JoyJoin-Tech-Limited/JoyJoin_app_v0.1/tree/main/.github/skills/process-systematic-debugging
Command: npx skills add https://github.com/JoyJoin-Tech-Limited/JoyJoin_app_v0.1 --skill process-systematic-debugging-joyjoin-tech-limited

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? It replaces fix-and-hope debugging with a structured root-cause analysis protocol, ensuring non-obvious, intermittent, or cross-layer bugs are isolated and verified before any code change is applied. ## Core Features & Use Cases - Five-Phase Protocol: Guides debugging through reproduce, isolate, hypothesize, verify, and fix-and-validate stages with explicit exit criteria for each phase. - Hypothesis Discipline: Requires 2-3 testable hypotheses with mechanism, evidence, and fix scope before any fix is attempted. - Debug Agent Integration: The debug agent loads this protocol automatically and pauses for user confirmation after presenting a hypothesis and evidence summary. - Use Case: When an API endpoint fails intermittently for 5% of requests, use this Skill to reproduce the failure under load, isolate it to a null-archetype aggregation query, verify the hypothesis with targeted logging, and ship a narrow fix with a regression test. ## Quick Start Ask the AI to systematically debug an intermittent bug and find its root cause before proposing any fix.

Frequently Asked Questions about process-systematic-debugging

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

FAQPage Schema
How do I debug an intermittent bug that is hard to reproduce?▼

Start by documenting exact reproduction steps, frequency, and environment, then add structured logging at every layer boundary. If the bug remains unreproducible, narrow the scope or gather more context rather than applying speculative fixes.

What is a systematic root cause analysis process for software bugs?▼

A systematic protocol follows five phases: reproduce the bug deterministically, isolate the narrowest triggering code path, form 2-3 testable hypotheses, verify the root cause with logging or failing tests, then apply the narrowest safe fix with a regression test.

How do I debug a bug that spans frontend, API, and database layers?▼

Use binary search across the stack by adding logging at each layer boundary from client to API to service to database. Identify the last known good state via git history and create a minimal reproduction that strips unrelated code.

When should I not use a structured debugging protocol?▼

Skip the full protocol when the bug is a clear typo with an obvious fix, or when it was already isolated and needs only a one-line change. For general code quality feedback rather than bug diagnosis, use a code review process instead.

Why does my bug disappear when I add logging?▼

This is a Heisenbug where console logging changes timing and masks race conditions. Switch to non-invasive tracing such as database query logs, network timestamps, or external request recording instead of inline console.log statements.

How do I choose between multiple equally likely bug hypotheses?▼

Design a single experiment or test that distinguishes between the hypotheses. If that is impossible, pick the hypothesis with the narrowest fix scope and test it first, documenting why rejected hypotheses were ruled out.