What problem does it solve?
This Skill helps you find the original trigger for bugs that appear deep within your code's execution, preventing you from fixing only symptoms and ensuring robust solutions.
Core Features & Use Cases
- Backward Call Stack Tracing: Systematically traces errors backward through the call chain to pinpoint the initial cause.
- Instrumentation for Debugging: Provides methods to add temporary logging and stack traces when manual tracing is difficult.
- Polluter Identification: Includes a script to help identify which specific test is causing unwanted side effects or creating files.
- Use Case: When a
git init command fails deep inside a complex test suite, this Skill helps you trace back through the test execution to find the exact test and the specific condition that led to the failure, rather than just patching the git init command itself.
Quick Start
Use the root-cause-tracing skill to find which test is creating a '.git' directory by running the find-polluter script with '.git' as the target and 'src/**/*.test.ts' as the test pattern.