agentleFS
jcesarperezjcesarperez/review-powers/skills/review-pr-feedback/SKILL.md

review-pr-feedback

Skill22 starsChanged 21 days agoMITView on GitHub

Work a PR's review feedback end to end, from verdicts to replies.

2 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. dotnet/SqlClient★ 1ksame name
    2. MrCipherSmith/goodai-base★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository3 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    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. Very specific:

    Start with ${CLAUDE_SKILL_DIR}/scripts/feeds.sh <PR>: it saves every feed with its thread state to a scratch directory, says whether your …

    line 15
  2. Distinctive:

    Add a view only where prose would leave the reader rebuilding a shape or a flow.

    line 65
  3. Distinctive:

    When something fails, find out whether you caused it before you own it: a pre-existing failure is reported, not fixed silently and not …

    line 131

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “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

Review PR feedback

Review feedback is not a to-do list. This skill sorts it against the real code, hands the user a verdict they can argue with, and only then acts.

Know what you actually read

Start with ${CLAUDE_SKILL_DIR}/scripts/feeds.sh <PR>: it saves every feed with its thread state to a scratch directory, says whether your tree is the PR's head commit, and prints a count per feed, zero included. Read the files you need.

Feedback hides on more feeds than the one you opened, so account for the feeds, not just the findings — an unread feed and an empty one look identical in a report, and only one of them is honest. The same doubt covers the tree you are standing in: a file:line from the wrong commit is fiction.

Verify, don't believe

A finding is a claim, not a fact. Read the code it points at — and, when it is about a symbol the diff merely uses, the code behind that. Settle it from what you read, or say unverified and what would settle it. Prefer an observation over an argument: run the test, inspect the artifact, query the database.

Apply this symmetrically. Human and AI reviewers are both wrong sometimes; what differs is scope, not credibility — an agent is likelier to ask for work past the PR's boundary.

Correct and worth doing are two questions

Answer them separately for each finding. A correct finding can be too costly, out of the PR's scope, or too trivial to spend a commit on — and a cheap fix inverts that last one: once fixing costs less than litigating, correctness alone carries it.

The finding worth most is the one the reviewer understated — a real mechanism whose consequence is worse than the sentence describing it. Verification is how you find those.

Explain it to someone who doesn't know the code

The user decides from the report and rarely opens the code. Skip preambles and keep prose brief and plain: what goes wrong and why, in everyday words. Names in backticks point at the code; they don't explain it. A term they would have to look up gets a few words or stays out.

Lead each finding with one concrete case, then why it happens. An abstract point needs numbers: "3 shirts in M + 1 in L, merged by product → the warehouse ships 4 in M". A finding that is already one input and one wrong result is its own case, and a sentence is enough. A case that unfolds in steps (a rollout, retries, a race) gets a few lines in text:

Old pods still serve while the migration drops `quote.status`.
  during rollout:  old code selects it → 500 on every quote read
  safe:            stop reading it now, drop it next release

Add a view only where prose would leave the reader rebuilding a shape or a flow. Pick the smallest one that makes the point, next to the sentence it supports:

  • What changes in something that already exists, a shape (route, fields with type and nullability, table columns) or the fix you propose, as a diff, never raw JSON:

     GET /api/v1/orders/{orderId}
       response Order
         id: uuid
    +    shipments: Shipment[]  (required)
    -    legacyTotal: decimal?
  • Changed control flow as a call tree or pseudocode in text, the new step marked.
  • An interaction across services as a mermaid sequenceDiagram, when prose would need more than two sentences.
  • Which files changed as a shallow file tree, only when that matters.

Usually one kind of view, sometimes two. Use your judgement and don't overwhelm the user.

The gate

Open with the PR's linked title as a heading and, under it, one line on what the change does, in a user's words. Then one line on what you read: the feeds, and whether your tree is the PR's head. Present the verdicts in the conversation and stop.

Order findings by what ignoring each would cost, worst first, not in the reviewer's order: the user may stop reading anywhere. Start each with a tag for what it is about: Bug, Product, Tests, Design, Docs, Security, Deploy, Conventions, Localization, Scope, Nit, or a better word when none fits. One tag; when two fit, pick by what goes wrong if it's ignored. Nothing is edited, committed, pushed, replied to, resolved or re-requested before the user answers.

Give them the argument, not just the conclusion: the strongest counterpoint and a value-versus-cost read, ending on what you'd do (→ take, → reject, → partly). The user's call on which findings to take is the decision this skill exists to serve — a run that fixes everything the reviewer asked has skipped its own point.

Close with What I'd do: your verdict in one sentence (which findings hold, which matters most), then the plan one answer approves, through to the re-review: the fixes, the replies, the threads you will resolve, and who you will ask to look again and how. One bullet per step, no reason already given above. End with one line inviting a change: "Go ahead, or tell me what to do instead (by finding number)."

Their answer can reframe a premise ("we're pre-GA, deleting data is fine") rather than accept or reject. That is a new fact — rerun the reasoning under it, since the finding may now hold for a different reason, or stop holding at all.

Present this as normal conversation text, not a dialog/question-tool prompt. The user's reply may reframe the premise entirely, carry nuance across several findings, or argue back — none of which a fixed-option dialog can hold.

Prove each fix the way it would fail

Match the evidence to the failure mode, and prove it where the output actually lands — which is often somewhere the edit never mentions, like the generated artifact carrying contract text you changed at the source.

When something fails, find out whether you caused it before you own it: a pre-existing failure is reported, not fixed silently and not treated as a blocker. Name which part is red, every time you report a run.

A stacked child branch is part of this job, not a follow-up: rebase it, re-run it, and check whether the parent's fix changed something the child asserts.

Reply to every finding, including rejected ones

An unanswered finding reads as ignored. Concise, kind, non-pedantic: what you did and why, pointing at the commit — or, for a rejection, what the code actually does. ${CLAUDE_SKILL_DIR}/scripts/reply.sh posts replies, resolves threads, re-requests reviews and updates the description (no arguments prints its usage); it comes after the gate, never before.

The loop closes when the reviewer looks again. Resolve the threads your pushed fixes settle, and leave the rejected ones open so the reviewer can answer your reply. Then ask each reviewer whose findings you acted on to review again. A bot answers only to the trigger the repo documents; where none is documented, say so rather than guess.

State every deviation plainly, to the reviewer and to the user: where you did something other than what was asked, say so, say why, and invite the correction. This holds for deviations from the user's instruction too. A confident summary covering an unproven claim or a quiet deviation is the one outcome this skill cannot recover from.

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.