Skip to content
Back to skills

Review Pull Request

ASecurity

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`.

  • 5 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added December 1, 2026
developmentcode-reviewgit

Security analysis

A100/100

Scanned December 1, 2026

npx -y skills add Electron-libre/cardinal --skill review-pull-request --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Review Pull Request?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Review Pull Request
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/electron-libre-review-pull-request/badge)](https://www.skillsdirectory.com/skills/electron-libre-review-pull-request)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.