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.