pjc-systematic-debugging

Diagnose root causes of bugs through a four-phase evidence-driven investigation workflow.

3|Updated May 20, 2026
One-click install
npx skills add https://github.com/jongcheol-pak/claude-harness-pjc --skill pjc-systematic-debugging-jongcheol-pak
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: pjc-systematic-debugging
Source: https://github.com/jongcheol-pak/claude-harness-pjc/tree/main/plugins/pjc/skills/pjc-systematic-debugging
Command: npx skills add https://github.com/jongcheol-pak/claude-harness-pjc --skill pjc-systematic-debugging-jongcheol-pak

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? It prevents symptom-patching and guesswork fixes by enforcing root-cause investigation before any code change, so bugs stop recurring under different faces. ## Core Features & Use Cases - Four-phase investigation: Read errors and stack traces, reproduce with a feedback loop, inspect recent changes, and gather component-boundary evidence before forming hypotheses. - Hypothesis testing with falsifiable predictions: Write multiple hypotheses with predictions, verify each with minimal diagnostic probes, and record confirmed or rejected results in an investigation log. - Regression-test-first fix: Write a failing test that reproduces the bug before patching, then verify the fix turns it green; a lightweight path handles compiler-pinpointed single-file causes. - Use Case: When a user reports "the app crashes on startup with NullReferenceException", the skill guides reading the full stack trace, reproducing reliably, testing hypotheses, and only then implementing a minimal fix with a regression test. ## Quick Start Describe the bug or paste the error message and ask to debug it systematically, for example: "Debug why the login test fails intermittently in CI."

Frequently Asked Questions about pjc-systematic-debugging

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

FAQPage Schema
How do I debug a bug systematically instead of guessing?▼

Follow a four-phase process: read the full error and stack trace, reproduce reliably with a feedback loop, form multiple falsifiable hypotheses, and verify each with minimal probes. Only implement a fix after the root cause is confirmed by evidence.

How to write a regression test before fixing a bug?▼

Write a failing test that reproduces the bug first (RED), then apply the minimal fix until it passes (GREEN). If the bug is a compile failure where RED is impossible, fix compilation first and use the passing build as the initial verification.

When can I skip the full debugging investigation process?▼

A lightweight path applies only when the compiler or stack trace explicitly pinpoints the file, line, and cause, and the fix is a small single-file change. If multi-file impact emerges or the initial diagnosis proves wrong, escalate back to the full process.

What should I do when a bug cannot be reproduced?▼

Test hypotheses about environment differences (OS, runtime version, timezone, locale, permissions), timing dependencies (races, first-run), data dependencies, and external system states. If reproduction stays impossible and no hypothesis verifies, halt and report to the user.

Why does the same bug keep recurring after multiple fixes?▼

Recurrence after three or more fixes, or fixes breaking other areas, signals an architecture problem rather than a failed hypothesis. Stop patching symptoms and report the architectural suspicion to decide on refactoring together.