agentleFS
jonathascostajonathascosta/claude-code-workflow/.claude/skills/pr-recheck/SKILL.md

pr-recheck

Skill2 starsChanged 14 days agoMITView on GitHub

Check an author's answers to a pull request review - read the replies and the new commits, verify each review thread against the code, rerun the tests, look for new defects in what changed, say whether the pull request can be approved, and resolve the verified threads after the user's ok. Use when the user says the author replied, fixed or addressed the comments, or asks to review a pull request again.

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. rockdai/agent-scripts★ 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 repository13 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 3 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read-only on the repository: Never check out the PR, switch branches, stash, reset or pull.

    line 13
  2. Very specific:

    Run gh through the Bash tool, not PowerShell.

    line 17
  3. Distinctive:

    Stop early and tell the user when the PR is already merged or closed, or when nothing changed since the last round (same head, no new …

    line 32
  4. Very specific:

    If the old head is still reachable locally, git diff <old head> <new head> is the incremental change.

    line 36
  5. Distinctive:

    If the branch was rebased or squashed and the old head is gone, there is no incremental diff: say so, and treat the whole PR as changed.

    line 37
  6. Distinctive:

    Verify every finding against the code before showing it, drop what someone already raised, and check that each line is inside the diff.

    line 61
  7. Very specific:

    Resolve threads: Only threads with verdict resolved or answered.

    line 74
  8. Very specific:

    Approve: Only when the user says to approve that PR, in those words: gh pr review $N -R $R --approve.

    line 90

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

PR recheck

Second and later rounds on the pull request in $ARGUMENTS: the author answered a review, and the user wants to know what is really fixed and whether they can approve. For a PR nobody has reviewed yet, use pr-review.

Rules that hold for the whole recheck

  • Read-only on the repository. Never check out the PR, switch branches, stash, reset or pull. Read with git show <ref>:<path>; run code only on a git archive copy in the scratchpad.
  • Nothing reaches GitHub without an explicit ok in this conversation: no reply, no new comment, no resolved thread, no approval. Each of those is a separate ok. "Resolve them" is not "approve".
  • A reply is a claim, not evidence. "Fixed", "done" and "addressed" are checked against the code at the head, every time.
  • Talk to the user in their language; everything written for GitHub is in the language project.md sets for artifacts, English unless it says otherwise.
  • Run gh through the Bash tool, not PowerShell.
  • A thread is named <PR>-t<n> (for example 123-t4), a proposed comment <PR>-<id> (for example 123-2). Never show a bare number when more than one PR is in play.

1. Gather

With R=<owner>/<repo>, N=<number>, and the review file F=~/.claude/pr-reviews/<owner>__<repo>/pr<N>.json if a first round was done with pr-review:

gh pr view $N -R $R --json state,mergedAt,reviewDecision,headRefOid,commits,reviews,statusCheckRollup
python .claude/skills/pr-recheck/scripts/threads.py list <pr-url>          # every thread, with its name and state
python .claude/skills/pr-recheck/scripts/threads.py list <pr-url> --open   # only the unresolved ones
gh api repos/$R/issues/$N/comments --paginate     # replies posted outside the threads
git fetch origin <base> +pull/$N/head:refs/remotes/origin/pr-$N-r<round>

Stop early and tell the user when the PR is already merged or closed, or when nothing changed since the last round (same head, no new replies).

Work out what changed since the head that was reviewed (head in the review file, or the commit of the previous review):

  • If the old head is still reachable locally, git diff <old head> <new head> is the incremental change.
  • If the branch was rebased or squashed and the old head is gone, there is no incremental diff: say so, and treat the whole PR as changed.

2. Verify each thread

Scope: every thread the user started, plus other reviewers' threads the author claims to have fixed (the user usually wants to know whether the PR as a whole is ready). For each one, open the code at the new head and give a verdict:

VerdictMeaning
resolvedThe code at the head does what the thread asked, or the author's reason for not changing is sound.
partlySomething was done but the failure scenario in the thread can still happen. Say what is left.
not resolvedNo change, or the change does not touch the problem.
answeredA question that needed no code change, and the answer holds up.

Cite the path:line at the head that shows it. Check the fix itself for side effects: a fix in one place often moves the problem (for example, the fix is made in one component and the component that reads its output still has the old rule).

Rerun the tests on a fresh git archive copy of the new head and report the numbers. If a test was added for the fix, read it: say when it only checks the text of the code rather than its behaviour.

3. Look at what else changed

New commits can bring new defects. Review the incremental diff:

  • small (roughly under 150 changed lines): read it yourself;
  • larger, or the whole PR was rewritten: launch atlas and spock as in pr-review, giving Atlas the full list of existing threads and replies so it does not repeat them and can give a verdict per thread, and giving Spock only the location of the diff.

Verify every finding against the code before showing it, drop what someone already raised, and check that each line is inside the diff.

4. Report to the user

  1. The verdict first: can the user approve, and if not, what is in the way.
  2. One table per PR: thread name, who opened it, verdict, the evidence in a few words. Keep cells short.
  3. New findings, if any, as proposed comments in code fences, in the same style as pr-review (short, humble questions in English, exact path:line). Append them to the review file with the next ids, status proposed. Proposed comments from an earlier round that were never posted stay in the file: before setting the file's head to the new head, open each one's line in the new head and correct its line number, or mark it dropped if the code it was about is gone. Only then update head. Say which are still pending; they are never posted without being named.
  4. Checks that are failing, and whether the cause is visible from the diff.
  5. What you could not verify (code that was not run, a deployed dashboard that was not opened).
  6. What you can do next, each needing its own ok: resolve the verified threads, post the new comments, approve.

5. Act, only after the ok

Resolve threads. Only threads with verdict resolved or answered. By default only the ones the user started: the script refuses the others unless --others is given, which is used only when the user asks for another reviewer's threads explicitly. A partly thread stays open.

python .claude/skills/pr-recheck/scripts/threads.py resolve <pr-url> t3,t7 --count <n>           # dry run
python .claude/skills/pr-recheck/scripts/threads.py resolve <pr-url> t3,t7 --count <n> --apply

<n> is the number of threads that list printed when the verdicts were given. The script refuses if the pull request now has a different number of threads, because the names may no longer point at the same threads; list them again in that case.

Post new comments. With the pr-review script and the review file:

python .claude/skills/pr-review/scripts/post_review.py "$F" --only 3            # dry run first
python .claude/skills/pr-review/scripts/post_review.py "$F" --only 3 --post

Approve. Only when the user says to approve that PR, in those words: gh pr review $N -R $R --approve. Never as a side effect of "post" or "resolve".

Afterwards, tell the user exactly what was done, by name, and what stays open.

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.