What problem does it solve?
This Skill helps developers systematically find the original source of bugs that appear deep within a program's execution stack, preventing the common mistake of only fixing symptoms.
Core Features & Use Cases
- Backward Call Stack Analysis: Trace errors back through function calls to identify the initial trigger.
- Symptom vs. Source Identification: Differentiate between where an error manifests and where it originates.
- Debugging Assistance: Provides strategies and tools like stack trace logging and bisection scripts to pinpoint elusive bugs.
- Use Case: When a
git init command fails deep within a complex test suite, this Skill guides you to trace back through the test setup and execution to find the exact line of code that incorrectly provided an empty directory path, rather than just fixing 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.