Review the open pull request of the branch checked out in this worktree, then fix and push what the review finds. Use when the user asks to review the pull request of an issue or of this branch, or a session starts with `/review-pull-request`.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Review Pull Request?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/electron-libre-review-pull-request)
---
name: review-pull-request
description: Review the open pull request of the branch checked out in this worktree, then fix and push what the review finds. Use when the user asks to review the pull request of an issue or of this branch, or a session starts with `/review-pull-request`.
---
# Review a pull request
The argument is an issue stem, a pull request number, or nothing (the current branch). This skill reviews and fixes;
the merge is `skill:merge-pull-request`'s.
## 1. Check where it runs
Read the pull request with `gh pr view <argument> --json number,url,state,isDraft,headRefName,headRefOid,baseRefName`
(an issue stem names its branch). Stop and tell the user what fails when:
- `gh` is missing or not logged in, or no pull request matches;
- its `state` is not `OPEN` (merged or closed: nothing to do);
- its `headRefName` is not the branch checked out in this worktree (`git branch --show-current`): the skill runs in
the worktree that has it; never create, enter or leave a worktree, nor check the branch out here;
- the work tree has uncommitted changes or untracked files (`git status --porcelain` prints a line).
Then `git fetch`. When the host holds commits the local branch lacks (pushed from elsewhere), bring them in with
`git pull --ff-only`; a branch that diverged from its remote is a stop.
## 2. Review
Invoke `/code-review medium <number>` with the Skill tool and wait for its findings. For each one on the change of the
pull request: fix it, or say why not. A finding outside the pull request becomes an issue (`skill:create-issue`, or the
project's tracker when it turned that skill off) only when a real case shows it; otherwise list it `not filed: <why>` in the report. A finding you cannot settle is a stop.
Commit the fixes on the branch as any change of the project: `cardinal run project-check`, then `/code-review low
<target>` with `<target>` the line `cardinal run review-target` prints (the commit gate refuses an unreviewed diff),
then a message from `skill:commit-message`. Push with `git push`: never a force push, never a rebase or an amend of
the pushed branch.
## 3. Report
A table `finding | fate` (fixed in `<commit>`, not fixed and why, not filed and why), the commits pushed, and the
next step: `/merge-pull-request` in this worktree.