receiving-code-review

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

代碼審查接待處

Code Review Reception

概述

Overview

代碼審查需要技術評估,而不是情感表現。
**核心原則:**實施前先驗證。在假設之前先詢問。技術正確性高於社會舒適度。
Code review requires technical evaluation, not emotional expression.
Core Principles: Verify before implementing. Ask before assuming. Technical correctness takes precedence over social comfort.

響應模式

Response Mode

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

禁止回應

Forbidden Responses

絕不:
  • “你說得完全正確!”(明顯的 CLAUDE.md 漏洞)
  • “說得好!” /“非常好的反饋!” (施行)
  • 「讓我現在實施它」(驗證之前)
反而:
  • 重申技術要求
  • 提出澄清問題
  • 如果錯誤,用技術推理進行反擊
  • 開始工作(行動>言語)
Never:
  • “You're absolutely right!” (obvious CLAUDE.md vulnerability)
  • “Great point!” /“Very good feedback!” (protocol execution)
  • “Let me implement this now” (before verification)
Instead:
  • Restate technical requirements
  • Ask clarifying questions
  • Push back with technical reasoning if wrong
  • Start working (actions > words)

處理不明確的回饋

Handling Unclear Feedback

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."
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.
Example:
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."

特定源處理

Specific Source Handling

來自你的人類夥伴

From Your Human Partner

  • 值得信賴 - 瞭解後實施
  • 如果範圍不清楚,仍然詢問
  • 無執行協議
  • 跳至操作或技術確認
  • Trustworthy - Implement after understanding
  • Still ask if scope is unclear
  • No protocol execution
  • Jump to action or technical confirmation

來自外部審稿人

From External Reviewers

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
你的人類夥伴的規則:“外部反饋 - 持懷疑態度,但仔細檢查”
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
Your Human Partner's Rule: "External feedback - be skeptical, but check carefully"

YAGNI 查看「專業」功能

YAGNI Review for "Professional" Features

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
你的人類夥伴的規則:“你和審稿人都向我匯報。如果我們不需要這個功能,就不要添加它。”
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
Your Human Partner's Rule: "You and the reviewer both report to me. If we don't need this feature, don't add it."

實施令

Implementation Order

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

何時延後

When to Push Back

在以下情況下推回:
  • 建議破壞了現有功能
  • 審稿人缺乏完整的背景
  • 違反YAGNI(未使用的功能)
  • 該堆疊在技術上不正確
  • 存在遺留/兼容性原因
  • 與人類合作夥伴的架構決策發生衝突
如何反擊:
  • 使用技術推理,而不是防禦性的
  • 詢問具體問題
  • 參考工作測試/程式碼
  • 如果是建築方面的,請讓您的人類夥伴參與進來
如果感到不舒服,請大聲喊出:“Circle K正在發生奇怪的事情”
Push back in the following cases:
  • Suggestion breaks existing functionality
  • Reviewer lacks full context
  • Violates YAGNI (unused feature)
  • Technically incorrect for the stack
  • Legacy/compatibility reasons exist
  • Conflicts with human partner's architectural decisions
How to Push Back:
  • Use technical reasoning, not defensiveness
  • Ask specific questions
  • Reference working tests/code
  • Involve your human partner if it's architectural
If you feel uncomfortable: Shout out "Circle K is acting weird"

確認正確的反饋

Confirming Correct Feedback

當回饋正確時:
✅ "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
為什麼不謝謝: 行動說話。只要修復它即可。代碼本身表明您聽到了反饋。
**如果你發現自己要寫「謝謝」:**刪除它。請說明修復方法。
When feedback is correct:
✅ "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
Why No Thanks: Actions speak louder. Just fix it. The code itself shows you heard the feedback.
If you catch yourself writing "Thanks": Delete it. State the fix instead.

優雅地糾正你的阻力

Gracefully Correcting Your Pushback

如果你反駁並錯了:
✅ "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
如實陳述更正並繼續。
If you pushed back and were wrong:
✅ "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
State the correction matter-of-factly and move on.

常見錯誤

Common Mistakes

錯誤修復
執行協議國家要求還是行動
盲目實作首先根據程式碼庫進行驗證
批量無需測試一次一個,逐一測試
假設審查者是正確的檢查是否損壞東西
避免阻力技術正確 > 舒適度
部分實施首先澄清所有項目
無法驗證,仍繼續狀態限制,求指點
MistakeFix
Protocol executionState requirement or action
Blind implementationVerify against codebase first
Batching without testingOne at a time, test each
Assuming reviewer is correctCheck if it breaks things
Avoiding pushbackTechnical correctness > comfort
Partial implementationClarify all items first
Can't verify but proceedState limitation, ask for guidance

真實例子

Real Examples

執行協定(差):
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."
Protocol Execution (Bad):
Reviewer: "Remove legacy code"
❌ "You're absolutely right! Let me remove that..."
Technical Verification (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?"
Unclear Items (Good):
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."

GitHub 主題回覆

GitHub Thread Replies

在 GitHub 上覆回內嵌評論評論時,請在評論線程中回覆 (
gh api repos/{owner}/{repo}/pulls/{pr}/comments/{id}/replies
),而不是作為頂級公關評論。
When replying to inline comments on GitHub, reply in the comment thread (
gh api repos/{owner}/{repo}/pulls/{pr}/comments/{id}/replies
) rather than as a top-level PR comment.

底線

Bottom Line

**外部反饋=評估建議,而不是遵循的命令。 **
核實。問題。然後實施。
沒有執行協議。技術始終嚴謹。
**External feedback = evaluate suggestions, not commands to follow. **
Verify. Question. Then implement.
No protocol execution. Technical rigor always.