agentleFS
rkalievrkaliev/eng-kit/skills/receiving-code-review/SKILL.md

receiving-code-review

Skill1 starsChanged 13 days agoMITView on GitHub

Use when receiving code review feedback from a person, a reviewer agent or a PR, or when the user corrects your work, before implementing any suggestion, especially if it seems unclear or technically questionable

188 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use chinese-git-workflow, chinese-code-review and 7 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • Leodorareluctant259Skill

    chinese-git-workflow

    适配国内 Git 平台和团队习惯的工作流规范——Gitee、Coding、极狐 GitLab 全覆盖

    Also in 9 projects that use this

  • Leodorareluctant259Skill

    chinese-code-review

    中文代码审查规范——在保持专业严谨的同时,用符合国内团队文化的方式给出有效反馈

    Also in 8 projects that use this

  • obraSkill

    diagnosing-superpowers

    Use when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.

    Also in 22 projects that use this

  • OpenAISkill

    finishing-a-development-branch

    Use when implementation is complete, all tests pass, and you need to decide how to integrate the work

    Also in 155 projects that use this

  • OpenAISkill

    using-superpowers

    Use when starting any conversation - establishes how to find and use skills, requiring skill invocation before ANY response including clarifying questions

    Also in 126 projects that use this

  • +3 more from Leodorareluctant259
  • +1 more from openai

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 5 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 180 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read: all the feedback before reacting.

    line 13
  2. Very specific:

    After a Yes, don't fix Minor findings or missed earlier items, since each fix needs another round: add them to the task file's Follow-ups …

    line 26
  3. Distinctive:

    If a conflict is architectural, involve the user.

    line 39
  4. Distinctive:

    When a finding or a correction from the user shows a gap that will recur (not a one-off slip), propose closing it once, at the strongest …

    line 43
  5. Distinctive:

    No performative agreement: no "You're absolutely right!", "Great catch!" or thanks.

    line 52
  6. Distinctive:

    If your pushback turns out wrong: "Checked: you're correct, X does Y.

    line 54

“Common” is measured: kept by at least 6 in 10 of the 180 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Receiving code review

Review feedback is a set of technical claims to verify, not orders to obey or praise to perform. Technical correctness matters more than social comfort.

Process

  1. Read all the feedback before reacting.
  2. Restate each item as a concrete requirement. If any item is unclear, ask about it before implementing anything. Items are often related, and partial understanding leads to the wrong fix.
  3. Verify each claim against the code: reproduce it, grep for real usage, check the pinned library version and the target platforms.
  4. Evaluate: is it correct for this codebase? Does it break existing behavior? Is there a reason for the current implementation (compatibility, a legal requirement, a device quirk)? Does it contradict an earlier decision by the user?
  5. Respond with a technical acknowledgment or with reasoned pushback.
  6. Implement one item at a time, in this order: blocking issues (breakage, security, money), simple fixes, complex fixes. Test each one and check for regressions.
  7. Account for every item. Feedback comes in three places: inline threads, the review's own body (where reviewers and bots often put nitpicks and findings outside the diff) and top-level comments. Each item ends either fixed (with where) or answered (with why not). None is skipped silently. Answer an inline finding in its thread, and the items of a review body in one reply that numbers them in the review's order. "Will fix later" doesn't close an item: fix it now, or decline it here and add it to the task file's Follow-ups (once that file is gone, to the final report). Nitpicks on an approval still count. Don't call the review resolved while a blocking item is open or before a re-review has closed it, and don't reply again to a thread whose latest message is already yours.
  8. Report coverage, one line per item (GitHub: <kit root>/scripts/pr-state.ts): fixed (<sha>, file:line), replied (<why>) or failed (<why>). A PR is ready only when every item is closed, no changes-requested verdict stands and every required check passed on its current head. Green checks or unchecked feedback aren't enough.

When rounds don't converge

The reviewer's Round line numbers rounds since the last Yes; findings keep their IDs. Stop and ask the user before another fix when one finding is still open after two fix attempts, or when Critical or Important findings are still open after round 3. Give its history and your recommendation, and offer: a named fix, a design rethink, a user ruling, or move it to Follow-ups (never a Critical). Even if the user is away, end with the question.

After a Yes, don't fix Minor findings or missed earlier items, since each fix needs another round: add them to the task file's Follow-ups (once it is gone, the final report).

Pushback is part of the job

Push back, with evidence, when a suggestion:

  • breaks behavior;
  • lacks context;
  • is YAGNI (for example "implement it properly" for an endpoint nothing calls; grep first);
  • is wrong for this stack or version;
  • conflicts with the user's architecture decisions.

Declining a comment needs a concrete reason why the current approach is correct: a test, a spec line, a constraint. "It works" or "I checked" alone is not a reason.

If a conflict is architectural, involve the user. If you can't verify a claim, say what you'd need.

Make it stick

When a finding or a correction from the user shows a gap that will recur (not a one-off slip), propose closing it once, at the strongest level that fits:

  1. a mechanical check: a lint rule, a type, a test, a guard rule or a CI job;
  2. a rule in the project's agent manifest (CLAUDE.md, AGENTS.md) or a path-scoped rule;
  3. a gap in the kit itself: a follow-up to change the skill with writing-skills (RED, then GREEN).

Propose it with the evidence; the user decides. Don't add a rule for what a check already enforces. Add each open proposal to the task file's Follow-ups when you make it; once the task file is gone, list it in the final report to the user.

Tone

  • No performative agreement: no "You're absolutely right!", "Great catch!" or thanks.
  • State the fix instead: "Fixed: parseAmount now rejects negative values (payment.ts:42), test added."
  • If your pushback turns out wrong: "Checked: you're correct, X does Y. Fixing." Then move on.
  • While a blocking point still stands, even in part, lead with it: "Not changed: <what stands and why>; accepted: <what you fix>." Open with agreement ("Agreed", "You're right", "Fair point") only in a reply that names the fix.
  • Fixes pushed to a reviewed PR are a new commit: re-review the new range (requesting-code-review) before you report the PR ready again.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.