mcpField
R
review-recipient

review-recipient

github.com/qodex-ai测试与质量47125 次安装42 周前更新
代码仓库

关于 review-recipient

供编码 Agent 处理代码审查反馈的技能,强调先对照代码库验证建议、澄清疑问,再逐项实施并测试。

主要功能

  1. 01对照代码库验证反馈
  2. 02澄清不明确的审查意见
  3. 03修改前评估技术影响
  4. 04逐项实施修复并测试
  5. 05以技术理由提出异议

适用场景

  1. 01评估外部审查者的建议
  2. 02处理含糊的多项反馈
  3. 03排列并验证审查修复

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/qodex-ai/ai-agent-skills --skill review-recipient

安装后在 Claude Code 中输入/review-recipient确认已加载。

详细介绍

代码审查反馈处理

概述

代码审查需要进行技术评估,而不是情绪表演。

核心原则: 实现前先验证。假设前先询问。技术正确性优先于社交舒适感。

响应模式

WHEN receiving code review feedback:

1. READ: Complete feedback without reacting
2. UNDERSTAND: Restate requirement in own words (or ask)
3. VERIFY: Check against codebase reality
4. EVALUATE: Technically sound for THIS codebase?
5. RESPOND: Technical acknowledgment or reasoned pushback
6. IMPLEMENT: One item at a time, test each

禁止的响应

绝不要:

  • “你说得完全正确!”(明确违反 CLAUDE.md)
  • “好建议!”/“反馈非常出色!”(流于表面)
  • “我现在就来实现”(尚未验证前)

应该这样做:

  • 重述技术要求
  • 提出澄清问题
  • 如果有误,就用技术理由提出异议
  • 直接开始工作(行动胜于言语)

处理不明确的反馈

IF any item is unclear:
  STOP - do not implement anything yet
  ASK for clarification on unclear items

WHY: Items may be related. Partial understanding = wrong implementation.

示例:

your human partner: "Fix 1-6"
You understand 1,2,3,6. Unclear on 4,5.

❌ WRONG: Implement 1,2,3,6 now, ask about 4,5 later
✅ RIGHT: "I understand items 1,2,3,6. Need clarification on 4 and 5 before proceeding."

针对不同来源的处理方式

来自你的合作伙伴
  • 值得信任——理解后再实现
  • 如果范围不明确,仍要询问
  • 不要流于表面地表示赞同
  • 直接采取行动或在技术层面确认
来自外部审查者
BEFORE implementing:
  1. Check: Technically correct for THIS codebase?
  2. Check: Breaks existing functionality?
  3. Check: Reason for current implementation?
  4. Check: Works on all platforms/versions?
  5. Check: Does reviewer understand full context?

IF suggestion seems wrong:
  Push back with technical reasoning

IF can't easily verify:
  Say so: "I can't verify this without [X]. Should I [investigate/ask/proceed]?"

IF conflicts with your human partner's prior decisions:
  Stop and discuss with your human partner first

你的合作伙伴的规则:“外部反馈——保持怀疑,但要仔细核查”

对“专业”功能进行 YAGNI 检查

IF reviewer suggests "implementing properly":
  grep codebase for actual usage

  IF unused: "This endpoint isn't called. Remove it (YAGNI)?"
  IF used: Then implement properly

你的合作伙伴的规则:“你和审查者都向我汇报。如果我们不需要这个功能,就别添加。”

实现顺序

FOR multi-item feedback:
  1. Clarify anything unclear FIRST
  2. Then implement in this order:
     - Blocking issues (breaks, security)
     - Simple fixes (typos, imports)
     - Complex fixes (refactoring, logic)
  3. Test each fix individually
  4. Verify no regressions

何时提出异议

遇到以下情况时提出异议:

  • 建议会破坏现有功能
  • 审查者不了解完整上下文
  • 违反 YAGNI(功能不会被使用)
  • 从技术上讲不适用于当前技术栈
  • 存在遗留或兼容性方面的原因
  • 与你的合作伙伴的架构决策冲突

如何提出异议:

  • 使用技术理由,而不是表现出防御姿态
  • 提出具体问题
  • 引用可正常运行的测试/代码
  • 如果涉及架构问题,请让你的合作伙伴参与

如果你觉得当面提出异议不自在,可以用这句话作为信号:“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]"
❌ ANY gratitude expression

为什么不说谢谢: 行动胜于言语。直接修复即可。代码本身就能表明你听取了反馈。

如果你发现自己正要写“谢谢”: 删除它,直接说明修复内容。

妥善纠正自己提出的异议

如果你提出了异议,但后来发现自己错了:

✅ "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."

❌ Long apology
❌ Defending why you pushed back
❌ Over-explaining

客观说明更正内容,然后继续。

常见错误

错误修正方法
流于表面地表示赞同说明要求,或直接采取行动
盲目实现先对照代码库进行验证
批量处理但不测试一次处理一项,每项都要测试
假设审查者是对的检查是否会造成破坏
避免提出异议技术正确性 > 舒适感
只实现一部分先澄清所有事项
无法验证仍继续处理说明限制,并询问如何处理

实例

流于表面地表示赞同(错误):

Reviewer: "Remove legacy code"
❌ "You're absolutely right! Let me remove that..."

技术验证(正确):

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(正确):

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?"

事项不明确(正确):

your human partner: "Fix items 1-6"
You understand 1,2,3,6. Unclear on 4,5.
✅ "Understand 1,2,3,6. Need clarification on 4 and 5 before implementing."

总结

外部反馈 = 需要评估的建议,而不是必须遵循的命令。

先验证,再提问,然后实现。

不要流于表面地表示赞同。始终保持技术严谨。

评论

支持 Markdown