跳至正文
OpenAgentSkill
浏览已开放 · 目录记录日期 2026-11-21 · 自动更新和账户服务暂时关闭。
开发与测试

root-cause-debug

Diagnose a bug, regression, failing test, build failure, or incorrect behavior. Use before changing code when the cause has not been demonstrated.

trugurpala · 已有静态检查记录

安装与使用

运行命令前先阅读来源与依赖说明。复制命令不会自动安装或执行。

npx skills add trugurpala/divan --skill root-cause-debug

技能说明


name: root-cause-debug description: Diagnose a bug, regression, failing test, build failure, or incorrect behavior. Use before changing code when the cause has not been demonstrated.

Root-Cause Debugging

  1. Reproduce the failure with the smallest credible command or scenario.
  2. Capture the observed error and distinguish it from pre-existing noise.
  3. Trace the failing path to the owning boundary.
  4. Form explicit hypotheses and test the cheapest discriminating hypothesis first.
  5. Change code only after evidence supports a cause.
  6. Add or strengthen a regression test when practical.
  7. Re-run the reproducer, targeted tests, and relevant broader gates.

Do not shotgun-edit multiple suspected causes. Do not claim a root cause that was not demonstrated.