agentleFS
abipalliabipalli/agent-skills/skills/re-review/SKILL.md

re-review

Skill1 starsChanged 19 days agoApache-2.0View on GitHub

Re-review a GitHub PR after the author pushed updates: check each prior comment was addressed and what remains before merge. Use for \"re-review\", \"were my comments addressed\".

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

21 rules. About 0 are common, 15 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈15

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Use this skill to check a PR after the author has pushed updates or replied to review comments.

    line 12
  2. Distinctive:

    Prefer facts from GitHub and the current code over the PR description.

    line 19
  3. Distinctive:

    Do not resolve another reviewer's thread unless the user explicitly asks.

    line 22
  4. Distinctive:

    If a thread is partially addressed, ambiguous, or answered only with intent, leave it unresolved and list what still needs checking.

    line 23
  5. Distinctive:

    Keep the final answer concise and action-oriented: resolved, outstanding, new findings, and recommended next action.

    line 25
  6. Very specific:

    If the user supplied a PR URL, PR number, or owner/repo#number, use it.

    line 39
  7. Distinctive:

    If the target is still ambiguous, ask for the exact PR.

    line 46
  8. Distinctive:

    Read the current version of the referenced file and nearby code.

    line 117
  9. Very specific:

    Only mark addressed threads as resolved.

    line 126
  10. Distinctive:

    If resolution fails, continue the review and report the failure with the thread URL.

    line 141
  11. Very specific:

    If the reviewed scope includes Rust-relevant files (.rs, Cargo.toml, Cargo.lock, build scripts, Rust tests, generated bindings used by …

    line 149
  12. Distinctive:

    Use the Rust pass to look for fresh idiom, invariant, ownership, error-handling, async, dependency, and Cargo findings introduced or still …

    line 156
  13. Very specific:

    When you produce findings that may be handed to /submit-review, write the suggested comment text like a human reviewer would write it on …

    line 177
  14. Distinctive:

    Start each suggested comment with exactly one lowercase prefix:

    line 181
  15. Distinctive:

    Use 1-2 short paragraphs of natural prose.

    line 187
  16. Distinctive:

    After the prefix, start from the specific behavior in the current code, then state the risk and the requested change.

    line 188
  17. Distinctive:

    Do not add report-style labels after the prefix, such as "Impact:" or "Fix:".

    line 190
  18. Distinctive:

    Avoid restating the whole PR context.

    line 195
  19. Distinctive:

    Use this exact shape:

    line 216
  20. Very specific:

    Do not submit review comments from this skill.

    line 260
  21. Very specific:

    Do not merge from this skill.

    line 262

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

Re-review

Use this skill to check a PR after the author has pushed updates or replied to review comments. Resolve your own review threads only when the fix is verified, then report outstanding items and any new findings in a form that can feed /submit-review or /merge.

Operating Model

  • Prefer facts from GitHub and the current code over the PR description.
  • Resolve only review threads that include comments from the authenticated user and are clearly addressed in the current PR state.
  • Do not resolve another reviewer's thread unless the user explicitly asks.
  • If a thread is partially addressed, ambiguous, or answered only with intent, leave it unresolved and list what still needs checking.
  • Keep the final answer concise and action-oriented: resolved, outstanding, new findings, and recommended next action.

Required Tools

  • gh CLI authenticated with permission to read the PR and resolve review threads
  • git for branch and file context
  • Network access to GitHub

Workflow

1. Resolve The Target PR

If the user supplied a PR URL, PR number, or owner/repo#number, use it. If not, try the current branch:

gh pr view --json number,url,title,headRefName,baseRefName,headRefOid

If the target is still ambiguous, ask for the exact PR.

Capture the authenticated reviewer:

gh api user --jq .login

2. Gather PR State

Fetch metadata, the latest diff, review history, and review threads:

gh pr view <selector> \
  --json number,url,title,state,isDraft,author,headRefName,baseRefName,headRefOid,commits,comments,reviews,reviewDecision,statusCheckRollup
gh pr diff <selector>

Fetch inline review threads with GraphQL, paginating when hasNextPage is true:

gh api graphql \
  -f owner=<owner> \
  -f repo=<repo> \
  -F number=<number> \
  -f query='
query($owner:String!, $repo:String!, $number:Int!) {
  repository(owner:$owner, name:$repo) {
    pullRequest(number:$number) {
      reviewThreads(first: 100) {
        pageInfo { hasNextPage endCursor }
        nodes {
          id
          isResolved
          isOutdated
          path
          line
          comments(first: 50) {
            nodes {
              id
              databaseId
              author { login }
              body
              createdAt
              url
              path
              line
              diffHunk
              outdated
            }
          }
        }
      }
    }
  }
}'

Identify:

  • Unresolved review threads containing comments authored by the authenticated user.
  • New commits and PR comments since the authenticated user's latest review, if one exists.
  • Open review threads from other reviewers that may block merge. Summarize them but do not resolve them.

3. Verify Whether Prior Comments Were Addressed

For each unresolved thread containing your comment:

  1. Read the current version of the referenced file and nearby code.
  2. Compare the original concern, any author replies, and the current diff.
  3. Classify the thread as:
    • addressed: the current code or reply clearly resolves the concern.
    • outstanding: the concern still applies.
    • needs confirmation: the response may be acceptable, but a human decision or domain context is required.
  4. Record a one-sentence reason for the classification.

Only mark addressed threads as resolved.

Resolve a verified thread with:

gh api graphql \
  -f threadId=<thread-id> \
  -f query='
mutation($threadId:ID!) {
  resolveReviewThread(input:{threadId:$threadId}) {
    thread { id isResolved }
  }
}'

If resolution fails, continue the review and report the failure with the thread URL.

4. Re-review New Updates

Review changes made since the authenticated user's latest review. If no previous review by the authenticated user exists, review the whole PR diff.

If the reviewed scope includes Rust-relevant files (.rs, Cargo.toml, Cargo.lock, build scripts, Rust tests, generated bindings used by changed Rust code), run the rust-review skill again against the same PR, branch, commit range, or patch before finalizing new findings. Do this even if a prior review already included a Rust pass, because the purpose of re-review is to inspect the current PR state after updates.

Use the Rust pass to look for fresh idiom, invariant, ownership, error-handling, async, dependency, and Cargo findings introduced or still exposed by the current diff. Reconcile its output with prior review threads so you do not repeat a resolved or still-open duplicate. Fold any surviving Rust findings into New Findings For Submit Review using this skill's review comment style: Must Fix maps to Critical or Warning depending on merge impact; Suggestions and Nits map to Suggestion unless they reveal a concrete blocking failure mode.

Focus on:

  • Whether the fixes introduced regressions or incomplete behavior.
  • Whether new commits changed risk areas that were not previously reviewed.
  • Whether tests were added or updated for the fixed behavior when that matters.
  • Whether any remaining comments are duplicates of already-resolved concerns.

Apply the same calibration bar as deep-code-review: only raise issues with a concrete failure mode, material risk, or useful clarifying question.

Review Comment Style

When you produce findings that may be handed to /submit-review, write the suggested comment text like a human reviewer would write it on GitHub. These rules match deep-code-review's references/github-comments.md:

  • Start each suggested comment with exactly one lowercase prefix:
    • issue: for bugs, correctness problems, security risks, broken contracts, missing required tests, or anything that should block/strongly delay merge.
    • suggestion: for non-blocking improvements that are still worth considering.
    • nit: for small readability, naming, or cleanup comments that are safe to ignore.
  • Use 1-2 short paragraphs of natural prose.
  • After the prefix, start from the specific behavior in the current code, then state the risk and the requested change.
  • Do not add report-style labels after the prefix, such as "Impact:" or "Fix:". The prefix is enough structure; the rest should read like a normal review comment.
  • Be clear about certainty. Use direct language for definite bugs; use "I think" or "Can we" for reasonable reviewer judgment calls.
  • Avoid restating the whole PR context. The comment should make sense at the inline location and be easy for the author to act on.

Good suggested comment text:

issue: This still lets the old value through when the retry path succeeds after
the deadline, so the caller can observe a stale result. Can we return the
timeout once the context is done instead of accepting the late retry?

Avoid:

issue: stale result can be returned.
Impact: caller sees incorrect state.
Fix: return timeout after context cancellation.

Output

Use this exact shape:

# Re-review Summary

**Verdict:** [Ready to merge / Needs another review / Needs discussion]
**PR:** <title or number> - <url>

## Resolved Threads
1. <thread URL or file:line> - <what was addressed and why it was resolved>

If none were resolved, say "None."

## Outstanding Prior Comments
1. <thread URL or file:line> - <what still remains and what would address it>

If none remain, say "None."

## New Findings For Submit Review
1. [Critical|Warning|Suggestion] <file:line> - <issue, impact, and suggested
   human-readable comment text>

If there are no new findings, say "None."

## Other Open Threads
1. <reviewer/thread URL or file:line> - <brief status>

Omit this section when there are no relevant open threads from other reviewers.

## Recommended Next Action
[Run `/merge` / Run `/submit-review` with the listed findings / Ask the author
for clarification / Wait for checks]

Decision Rules

  • Recommend /merge only when your prior comments are resolved, no new findings remain, the PR is not a draft, and there is no obvious blocking status from checks or review state.
  • Recommend /submit-review when there are new findings or unresolved prior comments that should be posted as review comments.
  • Recommend discussion when the remaining question is product, architecture, migration, ownership, or reviewer judgment rather than a straightforward code fix.
  • Do not submit review comments from this skill. Leave that to submit-review.
  • Do not merge from this skill. Leave that to merge.

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.