systematic-debugging by vudovn/antigravity-kit
npx skills add https://github.com/vudovn/antigravity-kit --skill systematic-debugging来源:obra/superpowers
此技能提供了一种结构化的调试方法,可防止随机猜测,并确保在解决问题前充分理解问题。
在修复之前,可靠地复现问题。
## 复现步骤
1. [复现的确切步骤]
2. [下一步]
3. [预期结果与实际结果]
## 复现率
- [ ] 总是 (100%)
- [ ] 经常 (50-90%)
- [ ] 有时 (10-50%)
- [ ] 罕见 (<10%)
缩小问题根源范围。
## 隔离问题
- 这个问题是什么时候开始出现的?
- 最近有什么变化?
- 在所有环境中都会发生吗?
- 能否用最简代码复现?
- 触发问题的最小改动是什么?
找到根本原因,而不仅仅是表面症状。
## 根本原因分析
### 5个为什么
1. 为什么:[第一次观察到的现象]
2. 为什么:[更深层的原因]
3. 为什么:[更深层的原因]
4. 为什么:[接近根本原因]
5. 为什么:[根本原因]
修复并验证问题是否真正解决。
## 修复验证
- [ ] 错误不再复现
- [ ] 相关功能仍然正常工作
- [ ] 没有引入新问题
- [ ] 添加了测试以防止回归
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
## 开始之前
- [ ] 可以稳定复现
- [ ] 拥有最小复现案例
- [ ] 理解预期行为
## 调查期间
- [ ] 检查最近的更改 (git log)
- [ ] 检查日志中的错误
- [ ] 必要时添加日志记录
- [ ] 使用调试器/断点
## 修复之后
- [ ] 记录了根本原因
- [ ] 验证了修复
- [ ] 添加了回归测试
- [ ] 检查了类似代码
# 最近更改
git log --oneline -20
git diff HEAD~5
# 搜索模式
grep -r "errorPattern" --include="*.ts"
# 检查日志
pm2 logs app-name --err --lines 100
❌ 随机更改 - "也许我改一下这个..." ❌ 忽视证据 - "那不可能是原因" ❌ 假设 - "肯定是 X" 但没有证据 ❌ 不先复现 - 盲目修复 ❌ 止于症状 - 未找到根本原因
每周安装量
114
代码仓库
GitHub 星标数
6.7K
首次出现
2026年1月21日
安全审计
已安装于
gemini-cli95
codex93
opencode88
cursor84
github-copilot83
amp74
Source: obra/superpowers
This skill provides a structured approach to debugging that prevents random guessing and ensures problems are properly understood before solving.
Before fixing, reliably reproduce the issue.
## Reproduction Steps
1. [Exact step to reproduce]
2. [Next step]
3. [Expected vs actual result]
## Reproduction Rate
- [ ] Always (100%)
- [ ] Often (50-90%)
- [ ] Sometimes (10-50%)
- [ ] Rare (<10%)
Narrow down the source.
## Isolation Questions
- When did this start happening?
- What changed recently?
- Does it happen in all environments?
- Can we reproduce with minimal code?
- What's the smallest change that triggers it?
Find the root cause, not just symptoms.
## Root Cause Analysis
### The 5 Whys
1. Why: [First observation]
2. Why: [Deeper reason]
3. Why: [Still deeper]
4. Why: [Getting closer]
5. Why: [Root cause]
Fix and verify it's truly fixed.
## Fix Verification
- [ ] Bug no longer reproduces
- [ ] Related functionality still works
- [ ] No new issues introduced
- [ ] Test added to prevent regression
## Before Starting
- [ ] Can reproduce consistently
- [ ] Have minimal reproduction case
- [ ] Understand expected behavior
## During Investigation
- [ ] Check recent changes (git log)
- [ ] Check logs for errors
- [ ] Add logging if needed
- [ ] Use debugger/breakpoints
## After Fix
- [ ] Root cause documented
- [ ] Fix verified
- [ ] Regression test added
- [ ] Similar code checked
# Recent changes
git log --oneline -20
git diff HEAD~5
# Search for pattern
grep -r "errorPattern" --include="*.ts"
# Check logs
pm2 logs app-name --err --lines 100
❌ Random changes - "Maybe if I change this..." ❌ Ignoring evidence - "That can't be the cause" ❌ Assuming - "It must be X" without proof ❌ Not reproducing first - Fixing blindly ❌ Stopping at symptoms - Not finding root cause
Weekly Installs
114
Repository
GitHub Stars
6.7K
First Seen
Jan 21, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
gemini-cli95
codex93
opencode88
cursor84
github-copilot83
amp74
冲刺回顾模板:敏捷团队回顾会议指南与模板(开始-停止-继续/愤怒-悲伤-高兴/4Ls)
10,400 周安装