本文へスキップ
Kitbay
スキル

principle-fix-root-causes

2026年11月11日 更新16,006GitHubスター

A short principle skill from Cursor's pstack harness for Claude Code, run only when invoked, about fixing a bug where it starts rather than where it shows up.

スキルの内容

A short principle skill from Cursor's pstack harness for Claude Code, run only when invoked, about fixing a bug where it starts rather than where it shows up. The agent reproduces the problem first, keeps asking why until it reaches a wrong decision in the code, adds instrumentation and reads the real error and state instead of guessing, and decides whether the state that triggered the symptom is legitimate: if so, the code that broke on it gets fixed; if not, it finds what produced that state. It suspects persisted state when failures follow a restart, fixes every instance of the same fault, and proposes a cheap signal that would have shown the cause sooner.

できること

  • Trace a symptom back to the first wrong decision
  • Decide whether a guard is a real fix
  • Fix every instance of the same fault
  • Suggest an always-on signal for faster diagnosis