| name | receiving-code-review |
| description | Process incoming code review feedback with technical rigor. Trigger: When receiving review comments, feedback, or suggestions on your code. |
| license | Apache 2.0 |
| metadata | {"version":"1.0","type":"behavioral","skills":["verification-protocol"]} |
Receiving Code Review
Process review feedback with technical rigor โ verify before implementing, push back when wrong, never respond with performative agreement.
When to Use
- Receiving review comments on a PR or implementation
- A reviewer (human or agent) provides feedback on your code
- Processing a list of suggested changes or issues
Don't use for:
- Giving code review feedback (use code-review)
- Choosing between options before a decision is made (use brainstorming)
Critical Patterns
โ
REQUIRED [CRITICAL]: Verify Before Implementing
Read every item, then verify each against the codebase before touching code. Never assume the reviewer is correct.
# Reviewer says: "You're not handling the null case on line 42"
# โ WRONG โ implement without checking
Fixed the null case on line 42.
# โ
CORRECT โ verify first
Checked line 42: input is validated at the API boundary (middleware/validate.ts:18),
null cannot reach this function. Reviewer assumption is incorrect.
โ
REQUIRED: Push Back With Technical Reasoning
When a suggestion is wrong, YAGNI, or violates project constraints โ say so with evidence. Don't implement it to avoid conflict.
# โ WRONG โ performative agreement
"Great point! You're absolutely right, I'll add that abstraction."
# โ
CORRECT โ technical pushback
"This abstraction isn't warranted yet โ only one call site exists.
If a second use case emerges, refactoring is straightforward.
YAGNI applies here."
โ NEVER: Respond With Performative Agreement
These phrases are forbidden regardless of whether the reviewer is right or wrong:
- "Great point!"
- "You're absolutely right!"
- "Thanks for catching that!"
- "I'll fix that right away!"
Replace with: read โ verify โ implement or push back.
โ
REQUIRED: Clarify Ambiguous Feedback Before Acting
If a comment is unclear, ask one specific question before implementing anything.
# โ WRONG โ guess and implement
Comment: "This could be more efficient"
Action: Rewrote the function with a different algorithm.
# โ
CORRECT โ clarify first
"Are you referring to time complexity (currently O(nยฒ)) or memory usage?
That determines whether to sort first or use a Map."
โ
REQUIRED: Batch All Clarifications Before Starting
Read all feedback items first. Collect all ambiguities. Ask once โ not per item.
# โ WRONG โ ask per item
Implements item 1 โ asks about item 2 โ implements โ asks about item 3...
# โ
CORRECT โ batch questions
"Before I start: items 2 and 5 need clarification:
- Item 2: 'more efficient' โ time or memory?
- Item 5: 'extract this' โ new file or same module?"
Decision Tree
Received review feedback?
โ Read ALL items before touching any code
Item is clear and verifiably correct?
โ Verify against codebase โ Implement โ Run verification-protocol
Item is unclear?
โ Add to clarification batch. Ask once before starting.
Item is incorrect (verifiable in codebase)?
โ Push back with evidence. Reference file + line.
Item is YAGNI or out of scope?
โ Push back with rationale. No implementation needed.
Item is a style preference not tied to project conventions?
โ Flag as subjective. Implement only if it aligns with project standards.
All items addressed?
โ Run full verification before claiming review complete.
Conventions
Verification order
- Read all feedback
- Verify each item against codebase
- Batch clarifications if any
- Implement verified correct items
- Push back on incorrect/YAGNI items
- Run verification-protocol before marking done
Pushback format
State the claim โ provide evidence โ conclude:
"Line 42 is not null-unsafe: input is validated at middleware/validate.ts:18 before reaching this function. No change needed."
Example
Receiving 3 feedback items on a PR:
## Review received
1. "Missing null check on userId" โ line 34
2. "Extract this into a helper" โ lines 50-60
3. "Add retry logic for the API call"
## Processing
**Item 1** โ Checked line 34: userId comes from authenticated session (guaranteed non-null by auth middleware).
Pushback: "userId is set by auth middleware on every request โ null is not reachable here."
**Item 2** โ Lines 50-60 are used in one place only. Extraction adds indirection with no reuse benefit.
Pushback: "Single call site. YAGNI โ will extract when a second use case appears."
**Item 3** โ Valid. API call has no retry logic. Network failures would surface as unhandled errors.
Implementing: exponential backoff, max 3 retries, surface final error to caller.
## Verification
Ran: npm test โ 24/24 passed โ
Edge Cases
Reviewer has more context than you: If pushback is based on incomplete knowledge (reviewer knows a constraint you don't), ask before concluding. "Is there a reason null can appear here that I'm missing?"
Multiple reviewers with conflicting feedback: Flag the conflict explicitly. Don't pick a side silently. "Items 3 and 7 conflict โ which takes priority?"
Critical issues (security, data loss): Implement immediately without waiting for full batch clarification. Flag as critical and address first.
Reviewer insists after pushback: Implement if they provide new evidence or context. Hold position if pushback is repeated without new reasoning.