其他

Root Cause Tracing

obra/superpowers-skills

Systematically trace bugs backward through call stack to find original trigger

  • 0 次安装
  • 756 星标

安装命令

npx skills add https://github.com/obra/superpowers-skills --skill 'Root Cause Tracing'

SKILL.md

Root Cause Tracing

Overview

Bugs often manifest deep in the call stack (git init in wrong directory, file created in wrong location, database opened with wrong path). Your instinct is to fix where the error appears, but that's treating a symptom.

Core principle: Trace backward through the call chain until you find the original trigger, then fix at the source.

When to Use

digraph when_to_use {
    "Bug appears deep in stack?" [shape=diamond];
    "Can trace backwards?" [shape=diamond];
    "Fix at symptom point" [shape=box];
    "Trace to original trigger" [shape=box];
    "BETTER: Also add defense-in-depth" [shape=box];