What problem does it solve?
This Skill helps you efficiently pinpoint the original trigger of bugs that manifest deep within the call stack, preventing superficial fixes and ensuring lasting solutions. It guides you to trace invalid data or incorrect behavior back to its source.
Core Features & Use Cases
- Backward Tracing: Systematically guides you through the call chain, asking 'What called this?' until the original trigger is found.
- Instrumentation Guidance: Advises on adding diagnostic logging and stack traces to uncover hidden data flows and execution paths.
- Pollution Detection: Provides a script to bisect tests and identify which specific test file causes unwanted side effects or state pollution.
- Defense-in-Depth: Encourages adding validation at multiple layers to prevent recurrence of the same bug.
- Use Case: When a test unexpectedly creates a
.git directory in the wrong location, use this skill to trace back through the execution flow, identify the exact line of code causing the misconfiguration, and implement a robust fix.
Quick Start
I have an error deep in the call stack, and I suspect an invalid parameter is being passed. Use the root-cause-tracing skill to help me find where the bad value originates.