Receiving code review

From event4u-app/agent-config · View interactive version

Receiving code review is an AI agent skill from the GitHub repository event4u-app/agent-config. When processing code review feedback (bot or human) before changing anything — triages, verifies and pushes back with technical reasoning — even when the user just says 'fix the comments'.

How to use this skill

Skill file

receiving-code-review

When to use

or from human reviewers) and the next step is to address them

to "fix it" or "handle it"

just wrote

the rest of the comment

Do NOT use when:

that is not framed as review feedback

automatically — just run the linter

Goal

Treat review feedback as suggestions to evaluate, not orders to

execute. Separate correct feedback from reviewer confusion. Push back

with technical reasoning when the suggestion is wrong for this

codebase. Never agree performatively.

The Iron Law

NO IMPLEMENTATION UNTIL THE FEEDBACK IS UNDERSTOOD AND VERIFIED.

A "fix" implemented against a misread comment is worse than no fix —

it ships the wrong behavior under the label of "addressed feedback".

Procedure

1. Read the full comment set before touching code

Read every open comment on the PR first. Comments often relate to

each other — fixing comment #3 in isolation can conflict with comment

#5. Group them:

regress another behavior

2. Restate each comment in your own words

For every comment, write (internally or to the user): *"The reviewer

is asking me to X because Y."*

If you cannot complete that sentence confidently → the comment is

unclear. Ask for clarification before implementing anything. Do

not implement the clear ones first and ask later — they may be linked.

3. Verify each claim against the code

For each comment classified as blocking/important:

read the actual runtime value — see CODE0)

it does

for a reason

CODE0,

call `retrieve(types=["historical-patterns"],

keys=<files in the review>, limit=3)`. A registered historical pattern

may confirm the reviewer's concern (accept). For architectural rationale

("why is the current shape intentional?"), check the ADR index

CODE0 — push back

with the cited ADR number.

4. Decide: accept, push back, or escalate

| Situation | Response | Reproduced by |

|---|---|---|

| Reviewer is right, fix is local, no caller impact | Implement, reference the comment in the commit message | verify: <cmd> -> <exit or /re/> that was red before the fix |

| Reviewer is right but fix affects other callers | Note the downstream effects in the reply, then implement | verify: clause, as above |

| Reviewer is wrong — based on misreading the code | Reply with evidence (specific line / test / value), do not change code | verify: clause showing the alleged defect absent, or not reproduced |

| Reviewer suggests a feature the codebase does not use (YAGNI) | Reply asking whether the feature is actually needed, do not build speculatively | not reproduced |

| Reviewer and user / architecture disagree | Escalate to the user before implementing either path | verify: clause or not reproduced |

Reproduced by records the step-3 reproduction in the verify-clause

expectation grammar (<cmd> -> 0, <cmd> -> /regex/), or the literal

not reproduced. An accepted blocking comment with no entry in that column

stays open — the fix has nothing showing it addressed the reported defect.

This is enforcement: instruction-only: no gate reads the column.

5. Reply in the right place, with the right tone

not as a top-level PR comment

$x->isNull()" beats "I think that's fine"

noticing". The existing language-and-tone rule already bans this —

actions are the acknowledgement

move on. No long apology

6. Implement in priority order, one at a time

  1. Blocking issues first
  2. Important issues next
  3. Minor issues last (or bundle them into a single commit)
  4. Wrong / YAGNI: no code change, only a reply with reasoning

Run the relevant tests and linters between each group — do not

batch four changes and then run tests once. See

CODE0.

Output format

When reporting back to the user after handling review:

  1. Triage table — comment → classification → decision
  2. Implemented changes — bullet per change with file + commit ref
  3. Pushed back — bullet per rejected comment with the evidence
  4. Outstanding — anything awaiting clarification, with the

specific question

Gotchas

They frequently flag false positives on patterns the codebase uses

deliberately. Verify like you would a human comment.

a polite way of saying "change it to X". Ask if unclear instead of

guessing the register.

reply silently marks it handled — reviewers may not notice the lack

of substance.

child PR. Check both before touching code.

is still a regression. Run tests even when "the change is trivial".

sending. The code change itself is the acknowledgement.

Do NOT

flattery variant — actions acknowledge, words do not

later when the items are linked

explicit architectural decision without raising it

cannot re-review selectively

reply with reasoning

Anti-patterns

comment (wrong file, missed case)

without checking whether the reinterpretation still matches intent

comes back

When to hand over to another skill / command

(handles both bot + human reviewers in one pass)

CODE0

CODE0

CODE0

Validation checklist

Before considering review handling done:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.