agentleFS
ku5icku5ic/claude-kit/skills/pr-review/SKILL.md

pr-review

Skill2 starsChanged 15 days agoMITView on GitHub

Turn this session's review findings on someone else's PR into a draft review with inline comments

198 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use expert-reset, updates and 10 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.
  • jtenniswoodSkill

    expert-reset

    Reimagine this repository from first principles using the current product and user experience as the target. Use when the user says "/expert-reset", asks how the project should be rebuilt if starting again, wants bold architecture or component-structure recommendations, or wants a research-only reset plan unconstrained by current implementation details.

    Also in 3 projects that use this

  • jtenniswoodSkill

    updates

    Summarize user-facing project updates from the last 7 days, ordered by importance and written as one-sentence "Feature: description" entries. Use when the user says "/updates", asks what changed recently, or wants a concise list of recent features, device support, fixes that users will notice, or other product value.

    Also in 3 projects that use this

  • openchamberSkill

    clack-cli-patterns

    Use when creating or modifying OpenChamber CLI commands, prompts, terminal output, non-TTY behavior, `--quiet`, or `--json` behavior.

    Also in 3 projects that use this

  • openchamberSkill

    drag-to-reorder

    Use when implementing or modifying OpenChamber sortable or drag-to-reorder behavior, especially `@dnd-kit`, touch/mobile interactions, variable-width items, or wrapping layouts.

    Also in 3 projects that use this

  • CES-LtdSkill

    oss-pr

    Use when creating a pull request, after committing changes, or when user invokes /oss-pr. Covers branch management, quality checks, commit, push, and PR creation.

    Also in 3 projects that use this

  • CES-LtdSkill

    pr-automation

    PR Automation Orchestrator: poll open PRs, check CI, run review, fix, and merge eligible PRs. Use when: (1) Invoked by daemon via scripts/pr-automation.sh, (2) User says "/pr-automation".

    Also in 3 projects that use this

  • +6 more from openchamber

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 181 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the PR's head SHA, branch, title, body, and files.

    line 40
  2. Very specific:

    Write "${head}:${file}"; the zsh traps are skills/bash-patterns/reference/quoting.md.

    line 44
  3. Very specific:

    Write it to the path kit scratch-dir pr-review <n> prints.

    line 68

“Common” is measured: kept by at least 6 in 10 of the 181 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

/pr-review

Turn this session's review findings on someone else's PR into a draft review file with inline comments plus one summary comment.

This kind never runs a review, checks out the PR, or runs its checks. It runs last, after /code-review, /verify, and /code-challenge.

Tone and shape: skills/kit-rules/reference/output.md section 4, which wins over this file; the sections this file defines stay.

Loading this skill isn't enough. Before the step a row names, read its file.

BeforeRead
Deciding which findings earn a commentreference/review-scope.md

Inputs

  1. Findings, first match wins: the report path in $ARGUMENTS; else every review point this session produced, from /code-review, /verify, /code-challenge, or plain discussion, merged. None at all: stop and name the reviews to run, /code-review <n>, then /verify and /code-challenge as the change calls for.
  2. The PR: from $ARGUMENTS, else from the findings. Neither names it: ask. <repo> comes from the URL, or the repository path in skills/code-host-patterns. Every call takes it, so a PR from another repo resolves there and not in the cwd's repo.

Pin the head

  1. Read the PR's head SHA, branch, title, body, and files.
  2. git fetch <remote> "<head ref>" with the host's head ref from skills/code-host-patterns, where <remote> is the one git remote -v shows for <repo>, else the repository's clone URL. The + lets a later run follow a force-push.
  3. git rev-parse refs/pr/<n> must equal the head SHA. Mismatch: stop and say so. Every later read uses that SHA.

Write "${head}:${file}"; the zsh traps are skills/bash-patterns/reference/quoting.md.

Verify each point

For every finding, before drafting:

  1. Name its decisive claim and trace it to the source at the head SHA: git show <sha>:<file>, a sibling file, a library's docs or source. Start from the finding's Evidence: line when it has one.
  2. Draft a confirmed point. Phrase an unconfirmed one, like library behavior nobody checked, as a question. Drop a disproved one and say so in one line of the reply.
  3. Merge duplicates.

Anchor each point

  • Line: an inline comment on the new side, on a line inside the diff. Take the line number from git show <sha>:<file>, never from hunk offsets, since a new or renamed file shows as "new file" in a pathspec-limited git diff. Confirm the line falls inside a hunk of the PR's diff.
  • File: a point about a file's location or name is a file-level comment.
  • None: a point with no line, like cases to try, goes in the summary comment.

Write each comment

Shape and tone: skills/kit-rules/reference/output.md section 4. No @mention, no praise, no summary of the change.

The summary comment opens with one line pointing at the inline comments, then one bullet per direct answer to a question the PR description asks, then the unanchored points. With nothing beyond the pointer, omit the summary section.

Write the draft file

Write it to the path kit scratch-dir pr-review <n> prints. Inline comments go most important first.

<draft header from `skills/pr-publish/SKILL.md`>

## Summary comment (main thread)

<summary body>

## Inline comments

### [<path>:<line>](<link to the line at the head>)

<body>

### [<path> (file)](<link to the file at the head>)

<body>

The links take the shape skills/code-host-patterns gives. Reply with the file path, the comment count, the dropped points with the reason, and one next action: review the file, then /pr-publish <n>. Post nothing.

Review loop

The user edits the file or asks for changes; apply them with Edit. Deleting a section skips that comment. The file is ready for publish once the user says it's approved.

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.