kaizen:root-cause-tracing

Trace errors back through call chains to locate original triggers.

1|Updated Mar 15, 2026
One-click install
npx skills add https://github.com/kennyolofsson23-netizen/claude-code-config --skill kaizen-root-cause-tracing-kennyolofsson23-netizen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kaizen:root-cause-tracing
Source: https://github.com/kennyolofsson23-netizen/claude-code-config/tree/main/skills/kaizen/root-cause-tracing
Command: npx skills add https://github.com/kennyolofsson23-netizen/claude-code-config --skill kaizen-root-cause-tracing-kennyolofsson23-netizen

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

When errors appear deep in execution, the visible symptom is often not the original fault; this Skill helps engineers systematically trace backward through call chains, identify the original trigger, and fix the source rather than the symptom.

Core Features & Use Cases

  • Backtrace-focused debugging: Follow caller chains from the failure point to the initiating call so you can find where invalid data or incorrect behavior originated.
  • Lightweight instrumentation & stack capture: Add targeted pre-operation logging and capture Error stacks to reveal test file names, line numbers, and caller contexts.
  • Test bisection and polluter detection: Run per-test bisection to discover which test or setup step pollutes state or creates files unexpectedly.
  • Use case: Diagnose a git init creating a .git in the repository root by tracing an empty cwd through session and workspace initialization, then add validation and layered guards to prevent recurrence.

Quick Start

Ask the assistant to trace a failing git init back through the test suite, add stack-capture logging before the operation, and propose validation layers to fix the original trigger.

Frequently Asked Questions about kaizen:root-cause-tracing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I trace a stack trace back to the original trigger when debugging runtime failures?

To trace stack traces back to the original trigger, follow caller chains from the failure point to the initiating call. Add lightweight instrumentation and capture Error stacks to reveal test file names, line numbers, and caller contexts.

What is test bisection and how does it find state pollution in a CI run?

Test bisection is a debugging technique that runs per-test isolation to discover which test or setup step pollutes state. By capturing stacks and bisecting the test suite, you can locate the exact test that creates unexpected files or invalid data.

How do I debug a failing git init that creates a .git directory in the repository root?

Debug a failing git init by tracing an empty cwd back through session and workspace initialization. Add stack-capture logging before the operation to identify the caller context, then add validation and layered guards to fix the original trigger.

When should I use root-cause tracing instead of patching the visible symptom of an error?

Use root-cause tracing when errors appear deep in execution and the visible symptom is distant from the original fault. Trace backward through call chains to fix the source of invalid data or incorrect behavior rather than patching the downstream symptom.

How do I add defense-in-depth protections after finding the original trigger of a bug?

After finding the original trigger through backtrace debugging, add defense-in-depth protections by validating caller inputs and implementing layered guards. This prevents recurrence by blocking invalid data at multiple layers before it reaches the failure point.