What problem does it solve?
This Skill eliminates the time-wasting cycle of random fixes and symptom patching by enforcing a rigorous four-phase debugging framework. It ensures you always find the root cause of any technical issue, preventing new bugs and costly rework, even under intense pressure, making your debugging process efficient and effective.
Core Features & Use Cases
- Root Cause Investigation: Guides you to read errors, reproduce consistently, check changes, and gather evidence in multi-component systems.
- Pattern Analysis: Helps identify differences between working and broken code, and understand dependencies.
- Hypothesis & Testing: Teaches forming single, testable hypotheses and making minimal changes to verify.
- Root Cause Implementation: Mandates creating failing tests, implementing single fixes, and questioning architecture if multiple fixes fail.
- Use Case: A critical production bug appears. Instead of guessing, use this Skill to systematically trace the error, gather diagnostic evidence, form a precise hypothesis, and implement a verified fix that addresses the true underlying problem.
Quick Start
Example: Basic Timing Measurement (for initial profiling)
import time
def measure_time():
start = time.time()
result = sum(range(1000000))
elapsed = time.time() - start
print(f"Execution time: {elapsed:.4f} seconds")
return result
measure_time()