From superpowers
Evaluates code review feedback before implementing, with structured verification and YAGNI checks. Guards against performative agreement and unclear requests.
How this skill is triggered — by the user, by Claude, or both
Slash command
/superpowers:receiving-code-reviewThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Code review 需要技术评估,而不是情绪化的表演。
Code review 需要技术评估,而不是情绪化的表演。
核心原则: 在实施之前进行验证。在假设之前进行询问。技术正确性优于社交舒适度。
当收到 code review 反馈时:
1. 阅读: 完整阅读反馈,不要急于反应
2. 理解: 用自己的话重述需求(或询问)
3. 验证: 对照 codebase 现状进行检查
4. 评估: 对这个 codebase 来说技术上合理吗?
5. 响应: 技术确认或有理有据的反驳
6. 实施: 一次一项,测试每一项
绝不 (NEVER):
改为 (INSTEAD):
如果任何项目不清楚:
停止 - 暂时不要实施任何东西
对不清楚的项目寻求澄清
原因: 项目可能相关。部分理解 = 错误的实施。
示例:
your human partner: "Fix 1-6"
你要理解 1,2,3,6。对 4,5 不清楚。
❌ 错: 现在实施 1,2,3,6,稍后问 4,5
✅ 对: "I understand items 1,2,3,6. Need clarification on 4 and 5 before proceeding."
在实施之前:
1. 检查: 对这个 codebase 来说技术上正确吗?
2. 检查: 会破坏现有功能吗?
3. 检查: 当前实施的原因?
4. 检查: 在所有平台/版本上都能工作吗?
5. 检查: Reviewer 是否了解完整的上下文?
如果建议看起来是错的:
用技术理由反驳
如果无法轻松验证:
说出来: "I can't verify this without [X]. Should I [investigate/ask/proceed]?"
如果与你的人类伙伴之前的决定冲突:
停止并先和你的人类伙伴讨论
你的人类伙伴的规则: "外部反馈 - 保持怀疑,但要仔细检查"
如果 reviewer 建议 "implementing properly" (正确实施):
grep codebase 查找实际用法
如果未使用: "This endpoint isn't called. Remove it (YAGNI)?"
如果已使用: 那么正确实施
你的人类伙伴的规则: "你和 reviewer 都向我汇报。如果我们不需要这个功能,不要添加它。"
对于多项反馈:
1. 首先澄清任何不清楚的地方
2. 然后按此顺序实施:
- 阻塞性问题 (破坏, 安全)
- 简单修复 (拼写错误, 导入)
- 复杂修复 (重构, 逻辑)
3. 单独测试每个修复
4. 验证无回归
反驳当:
如何反驳:
如果不方便大声反驳,发出信号: "Strange things are afoot at the Circle K"
当反馈是正确时:
✅ "Fixed. [Brief description of what changed]"
✅ "Good catch - [specific issue]. Fixed in [location]."
✅ [Just fix it and show in the code]
❌ "You're absolutely right!"
❌ "Great point!"
❌ "Thanks for catching that!"
❌ "Thanks for [anything]"
❌ 任何感谢表达
为什么不要感谢: 行动胜于言语。直接修复它。代码本身表明你听取了反馈。
如果你发现自己正要写 "Thanks": 删除它。陈述修复。
如果你反驳了但错了:
✅ "You were right - I checked [X] and it does [Y]. Implementing now."
✅ "Verified this and you're correct. My initial understanding was wrong because [reason]. Fixing."
❌ 长篇道歉
❌ 辩解你为什么反驳
❌ 过度解释
实事求是地陈述更正并继续。
| 错误 | 修复 |
|---|---|
| 表演性同意 | 陈述需求或直接行动 |
| 盲目实施 | 先对照 codebase 验证 |
| 批量处理不测试 | 一次一个,测试每个 |
| 假设 reviewer 是对的 | 检查是否破坏东西 |
| 避免反驳 | 技术正确性 > 舒适度 |
| 部分实施 | 先澄清所有项目 |
| 无法验证,仍然继续 | 陈述局限性,寻求指导 |
表演性同意 (Bad):
Reviewer: "Remove legacy code"
❌ "You're absolutely right! Let me remove that..."
技术验证 (Good):
Reviewer: "Remove legacy code"
✅ "Checking... build target is 10.15+, this API needs 13+. Need legacy for backward compat. Current impl has wrong bundle ID - fix it or drop pre-13 support?"
YAGNI (Good):
Reviewer: "Implement proper metrics tracking with database, date filters, CSV export"
✅ "Grepped codebase - nothing calls this endpoint. Remove it (YAGNI)? Or is there usage I'm missing?"
不清楚的项目 (Good):
your human partner: "Fix items 1-6"
你看懂了 1,2,3,6。不清楚 4,5。
✅ "Understand 1,2,3,6. Need clarification on 4 and 5 before implementing."
当回复 GitHub 上的行内 review 评论时,在评论 thread (gh api repos/{owner}/{repo}/pulls/{pr}/comments/{id}/replies) 中回复,而不是作为顶层 PR 评论。
外部反馈 = 待评估的建议,而不是要遵循的命令。
验证。质疑。然后实施。
无表演性同意。始终保持技术严谨。
npx claudepluginhub aaione/superpowers-zh --plugin superpowersGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.