systematic-debugging

Identify software bug root causes with phased hypothesis testing and trace.jsonl logging.

4|Updated Apr 5, 2026
One-click install
npx skills add https://github.com/Mrlyk/superharness --skill systematic-debugging-mrlyk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: systematic-debugging
Source: https://github.com/Mrlyk/superharness/tree/main/skills/systematic-debugging
Command: npx skills add https://github.com/Mrlyk/superharness --skill systematic-debugging-mrlyk

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Systematic Debugging enforces a disciplined investigation before any code change to prevent wasted time, recurring failures, and hidden regressions. It prevents guesswork and symptom-only fixes by ensuring the root cause is identified, documented, and verified with tests before implementation.

Core Features & Use Cases

  • Phase-driven process: Four mandatory phases (Root Cause Investigation, Pattern Analysis, Hypothesis & Testing, Implementation) that must be completed in order.
  • Trace logging and audit trail: Standardized trace.jsonl events for investigation_start, evidence_gathered, root_cause_identified, fix_applied, and fix_verified to provide observability and reproducibility.
  • Multi-component diagnostics: Guidance to instrument component boundaries, capture environment and data flow, and trace back through call stacks using the provided tracing technique.
  • Test-first remediation: Requires creating minimal failing tests before applying fixes and recommends using related skills for TDD and verification.
  • Use cases: Fixing failing unit or integration tests, investigating production bugs, diagnosing build or CI failures, and resolving performance regressions in complex systems.

Quick Start

Use systematic-debugging to investigate the failing unit test 'user-auth.test.ts' and produce a root cause report with trace.jsonl entries.

Frequently Asked Questions about systematic-debugging

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

FAQPage Schema
How do I find the root cause of a failing unit test before changing code?

To find the root cause of a failing unit test, you must complete a four-phase systematic debugging process: Root Cause Investigation, Pattern Analysis, Hypothesis & Testing, and Implementation. This prevents guesswork by requiring evidence gathering and minimal failing tests before any fix is applied.

What is the best way to debug integration failures in multi-component systems?

The best way to debug integration failures in multi-component systems is through multi-component diagnostics. This approach instruments component boundaries, captures environment and data flow, and traces back through call stacks to identify the exact failure point before implementing changes.

How do I investigate production bugs and prevent recurring regressions?

To investigate production bugs and prevent recurring regressions, enforce a disciplined investigation phase before applying fixes. This requires systematic evidence gathering, reproducible repro steps, and trace logging to an audit trail, ensuring the root cause is verified with tests rather than just treating symptoms.

Does this systematic debugging approach require creating failing tests before applying fixes?

Yes, this systematic debugging approach requires creating minimal failing tests before applying fixes. This test-first remediation strategy ensures the root cause is accurately identified and verified, preventing hidden regressions and wasted time on symptom-only patches.

How do I trace and diagnose performance regressions across complex systems?

To trace and diagnose performance regressions across complex systems, use standardized trace logging to record events like investigation_start, evidence_gathered, and root_cause_identified. This provides observability and reproducibility through a structured audit trail.

Why should I use a phased debugging process for build and CI failures?

You should use a phased debugging process for build and CI failures to prevent wasted time and hidden regressions. By completing mandatory phases for root cause investigation, pattern analysis, hypothesis testing, and implementation in order, you ensure fixes are verified rather than guessed.