What problem does it solve?
When errors surface deep in execution, symptoms are often fixed instead of the original cause; this Skill guides you to systematically trace backward through call chains, identify the first invalid input or state, and remediate at the source to prevent recurrence.
Core Features & Use Cases
- Systematic backward tracing through call chains to locate the original trigger of a runtime error.
- Instrumentation patterns and tips for tests, including pre-operation logging of directory, environment, and stack to reveal which test or code path produced pollution.
- Defense-in-depth recommendations: input validation at layers, NODE_ENV guards, and pre-call stack logging to both prevent and rapidly diagnose regressions.
- Use case: find which test created a repository in the source tree by tracing an empty cwd through session creation, adding a pre-git-init stack log, and then fixing the failing initializer.
Quick Start
Add a pre-operation console.error that logs the directory, process.cwd(), relevant environment variables, and new Error().stack before the failing operation to capture the call chain and identify the originating call.