agentleFS
caidanwcaidanw/skills/pr-review-triage/SKILL.md

pr-review-triage

Skill9 starsChanged 4 months agoMITView on GitHub

Pull PR review comments and triage them — separate substantive feedback from bikeshedding, stale comments, misreads, AI slop, and other noise. Use this skill whenever the user asks to "review my PR comments", "triage feedback", "go through my PR", or wants help deciding what to address vs push back on. Make sure to use this skill anytime the user mentions PR comments or code review feedback, even if they don't explicitly say "triage". Pulls comments via the `gh` CLI, classifies each, and proposes an action with a draft response. Do NOT use for writing PR descriptions, reviewing someone else's PR, or applying the changes — this skill triages and drafts only.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 3 are distinctive, and 1 is 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.

  • 1

    Very specific

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

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

    Default source: GitHub via the gh CLI.

    line 10
  2. Distinctive:

    If the user gives a PR number or URL, use it.

    line 12
  3. Distinctive:

    If push back or clarify: draft response — direct, no apologetic preamble, no "great point!", no "you're absolutely right"

    line 59
  4. Distinctive:

    Do not apply code changes or post responses.

    line 65

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

Pull review comments on a PR and triage each one. Figure out what's substantive, what's bikeshedding, and what's noise.

Get the comments

Default source: GitHub via the gh CLI.

If the user gives a PR number or URL, use it. Otherwise list their open PRs and ask which one.

gh pr view <number-or-url> --json reviews,reviewThreads,comments
gh api repos/{owner}/{repo}/pulls/{number}/comments

Pull both review-level comments and inline thread comments. For each, capture: author, body, file + line (if inline), thread resolution status, and the commit SHA the comment was made against. Where possible, note whether the code at that line has changed since the comment was posted.

Classify each comment

Apply labels. Multiple can apply.

Substantive

  • bug — real correctness, security, or data-integrity issue
  • design — concrete maintainability/readability point with specific reasoning
  • domain — surfaces context the author may be missing (constraint, prior decision, downstream impact)

Noise

  • bikeshed — style/naming/formatting preference, especially where a linter or formatter would settle it
  • stale — code at that line has changed since the comment; may no longer apply
  • misread — reviewer misunderstood what the code does
  • vague — "feels off", "have you considered", no concrete issue
  • ai-slop — pattern-matched suggestion that ignores context (often verbose, hedged, generic, or restates the diff)
  • scope-creep — asks for changes outside the PR's stated goal
  • unfounded — performance/security concern with no measurement or threat model

A comment is noise unless it survives this question: if I made the change they're asking for, would the code be meaningfully better, or just different?

The classification is a draft, not a verdict. The user knows their reviewer, codebase, and team norms — defer to their judgment when they push back.

Triage action

For each comment, recommend one:

  • Address — make the change
  • Push back — explain why not
  • Defer — file an issue, out of scope for this PR
  • Clarify — ask the reviewer for the missing context (concrete example, threat model, measurement)
  • Ignore — already resolved or stale; mark resolved without responding

Output

Per comment:

  • Reviewer + location (file:line or "review-level")
  • Comment quote (trimmed if long)
  • Labels
  • Recommended action + one-line reasoning
  • If push back or clarify: draft response — direct, no apologetic preamble, no "great point!", no "you're absolutely right"

Group by recommended action so the user can work Address items first, then send drafts.

End with a tally: e.g. "12 comments → 4 address, 5 push back, 2 defer, 1 ignore."

Do not apply code changes or post responses. This skill triages and drafts only.

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.