Loading...
Loading...
Compare original and translation side by side
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收到代码评审反馈时:
1. 阅读:完整看完反馈再做出反应
2. 理解:用自己的话重述需求(或直接询问)
3. 验证:对照代码库实际情况进行检查
4. 评估:该建议对当前代码库是否技术可行?
5. 回应:给出技术层面的确认或有理有据的反驳
6. 落实:逐项执行,每项都要测试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."若任何内容表述模糊:
停止行动——暂时不要落实任何内容
针对模糊部分请求澄清
原因:各项内容可能相互关联。理解不全面会导致错误落实。你的人类搭档:"修复1-6项"
你理解1、2、3、6项,但对4、5项存疑。
❌ 错误做法:先落实1、2、3、6项,之后再询问4、5项
✅ 正确做法:"我理解1、2、3、6项,在开始前需要你澄清4和5项的内容。"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落实前:
1. 检查:该建议对当前代码库是否技术正确?
2. 检查:是否会破坏现有功能?
3. 检查:当前实现的原因是什么?
4. 检查:是否在所有平台/版本上都能正常运行?
5. 检查:评审者是否了解完整背景?
若建议存在错误:
用技术理由反驳
若无法轻易验证:
如实说明:"没有[X]我无法验证这一点。我应该[调查/询问/继续]?"
若与人类搭档之前的决定冲突:
先停止行动,与人类搭档讨论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若评审者建议“规范实现”:
在代码库中搜索该功能的实际使用情况
若未被使用:"这个端点没有被调用。是否移除它(YAGNI)?"
若已被使用:再进行规范实现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针对多项目反馈:
1. 首先澄清所有模糊内容
2. 然后按以下顺序落实:
- 阻塞性问题(功能崩溃、安全问题)
- 简单修复(拼写错误、导入问题)
- 复杂修复(重构、逻辑调整)
3. 单独测试每一项修复
4. 验证没有回归问题✅ "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✅ "你是对的——我检查了[X],确实存在[Y]问题。现在开始落实。"
✅ "验证后确认你是正确的。我最初理解错误是因为[原因]。正在修复。"
❌ 冗长的道歉
❌ 为自己的反驳辩护
❌ 过度解释| Mistake | Fix |
|---|---|
| Performative agreement | State requirement or just act |
| Blind implementation | Verify against codebase first |
| Batch without testing | One at a time, test each |
| Assuming reviewer is right | Check if breaks things |
| Avoiding pushback | Technical correctness > comfort |
| Partial implementation | Clarify all items first |
| Can't verify, proceed anyway | State limitation, ask for direction |
| 错误 | 修正方式 |
|---|---|
| 敷衍附和 | 重述需求或直接行动 |
| 盲目落实 | 先对照代码库验证 |
| 批量处理不测试 | 逐项执行,每项都测试 |
| 默认评审者正确 | 检查是否会破坏功能 |
| 回避反驳 | 技术正确性优先于情面 |
| 部分落实 | 先澄清所有内容 |
| 无法验证仍继续行动 | 说明限制,请求指导 |
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?"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."评审者:"移除遗留代码"
❌ "你说得完全正确!我这就去移除..."评审者:"移除遗留代码"
✅ "正在检查...构建目标是10.15+,这个API需要13+。为了向后兼容需要保留遗留代码。当前实现的Bundle ID有误——是修复它还是放弃对13之前版本的支持?"评审者:"用数据库、日期筛选、CSV导出实现规范的指标追踪"
✅ "在代码库中搜索后发现——没有任何调用这个端点的内容。是否移除它(YAGNI)?还是有我没发现的使用场景?"你的人类搭档:"修复1-6项"
你理解1、2、3、6项,但对4、5项存疑。
✅ "我理解1、2、3、6项,在开始前需要你澄清4和5项的内容。"gh api repos/{owner}/{repo}/pulls/{pr}/comments/{id}/repliesgh api repos/{owner}/{repo}/pulls/{pr}/comments/{id}/replies