What problem does it solve?
This Skill addresses the challenge of debugging errors that manifest deep in the call stack, ensuring fixes target the original trigger rather than just symptoms, preventing recurring bugs and wasted effort.
Core Features & Use Cases
- Systematic Backward Tracing: Guides tracing bugs backward through the call stack to identify the original source of invalid data or incorrect behavior.
- Instrumentation for Insights: Provides techniques for adding diagnostic instrumentation (e.g., stack traces, debug logs) when manual tracing is insufficient.
- Polluter Identification: Includes a script (
find-polluter.sh) to help identify which specific test or code block is polluting the environment.
- Use Case: When a
git init command unexpectedly runs in the source code directory, use this skill to trace back through the call chain to find where an empty projectDir originated and fix it at that source, not just where the git init command was called.
Quick Start
Apply the root-cause-tracing skill to investigate why the processData function is receiving an unexpected null value deep in its execution.