开发与测试
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
- Reproduce the failure with the smallest credible command or scenario.
- Capture the observed error and distinguish it from pre-existing noise.
- Trace the failing path to the owning boundary.
- Form explicit hypotheses and test the cheapest discriminating hypothesis first.
- Change code only after evidence supports a cause.
- Add or strengthen a regression test when practical.
- 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.