首页/ AI 技能 / @skilllib/skill-2014279395974787073
Skill站外收录 @skilllib/skill-2014279395974787073

superpowers-debug

通过系统化流程定位并解决软件问题,包括精确复现故障、缩小问题范围、提出假设、插入诊断手段、实施最小修复,并添加回归测试以防止复发,适用于处理运行时错误、测试失败或性能退化等场景。

0.0 (0) 225 次安装 原作者 编程导航
收录于 2026-01-22
效率工具 AI 技能

Skills.MD

# Debug Skill ## When to use this skill - runtime errors, flaky tests, wrong outputs - “it used to work” regressions - performance or timeout problems (initial triage) ## Debug workflow (do not skip steps) 1. **Reproduce** - Capture exact error, inputs, environment, command. 2. **Minimize** - Reduce to smallest repro (one file, one function, smallest dataset). 3. **Hypotheses (2–5)** - Rank by likelihood. 4. **Instrument** - Add temporary logging/assertions or use existing diagnostics. 5. **Fix** - Smallest change that removes root cause. 6. **Prevent** - Add regression test or permanent guard/validation. 7. **Verify** - Run the failing case + relevant suites. ## Reporting format - Symptom - Repro steps - Root cause - Fix - Regression protection - Verification

评论 0

还没有评论,来抢沙发。