What problem does it solve?
This Skill helps you systematically debug issues that manifest deep within a program's execution by tracing errors back to their original trigger point, rather than just fixing the symptom.
Core Features & Use Cases
- Backward Call Stack Tracing: Follows the execution path in reverse to pinpoint the origin of bugs.
- Instrumentation for Debugging: Provides methods to add logging and stack traces when manual tracing is difficult.
- Test Pollution Identification: Includes a script to find which specific test is causing unintended side effects or state pollution.
- Use Case: When a
git init command fails deep within a complex test suite, this skill helps you trace back through the test execution to find which test case incorrectly set up the environment, leading to the failure.
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.