What problem does it solve?
This Skill systematically traces bugs backward through the call stack to find the original trigger, preventing superficial fixes and ensuring robust, long-term solutions. It eliminates the frustration of recurring bugs and saves significant debugging time by focusing on the source, not just the symptom.
Core Features & Use Cases
- Backward Tracing: Guides you from observing a symptom to finding its immediate cause, and then tracing further up the call chain to the original trigger.
- Instrumentation: Provides methods for adding stack traces and debug logging (
console.error()) to pinpoint problematic code when manual tracing is difficult.
- Polluter Identification: Offers a bisection script (
find-polluter.sh) to efficiently isolate which specific test or code change introduces pollution or errors.
- Use Case: A
git init command is unexpectedly creating a .git directory in your source code. Use this skill to trace back through the call chain, identify where the incorrect directory path originated (e.g., an uninitialized variable), and fix it at the source, preventing future occurrences.
Quick Start
Use the root-cause-tracing skill to investigate why the 'file-upload-service' is failing with an 'invalid path' error.