Skip to main content
skill CX Codex

review-pr · dyoshikawa — Claude Code skill: what it does, how to install

Audits pull requests for code quality and security without switching your local branch. Runs parallel code and security checks, then diagnoses failed GitHub Actions workflows.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add dyoshikawa/rulesync --skill review-pr -a claude-code
Open on GitHub

What review-pr does

The skill inspects pull requests without touching your local git state. Commands like git checkout, git switch, and gh pr checkout are strictly forbidden. The working tree stays clean. Changes are read remotely using gh pr view, gh pr diff, or dedicated git fetch references. When no PR argument is given, it targets the pull request for the active branch.

Two subagents execute in parallel. The code-reviewer agent examines structure and quality, while security-reviewer flags security flaws. Each identified finding receives a sequential number and a severity grade from low to critical.

After diff evaluation, the skill checks GitHub Actions via gh pr checks. If a run fails, it extracts failure causes from logs and suggests direct fixes. GitHub CLI (gh) must be installed and authenticated for the workflow to run.

What it helps with

  • review pull request changes without checking out the branch locally
  • audit PR diffs for security vulnerabilities
  • categorize review findings with severity ratings from low to critical
  • diagnose failed GitHub Actions workflow runs and suggest fixes

Example prompts for the agent

  • review PR #124
  • check this PR for code quality and security issues
  • audit the PR for the current branch and check Actions status

How to install review-pr

1Skills CLI (Vercel)

npx skills add dyoshikawa/rulesync --skill review-pr -a claude-code

2Manually: put the files in place

~/.claude/skills/review-pr/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/review-pr/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about review-pr

How to install review-pr in Claude Code?

Run npx skills add dyoshikawa/rulesync --skill review-pr -a claude-code in your terminal or place the file into ~/.claude/skills/review-pr/SKILL.md.

What does review-pr do?

It orchestrates parallel code and security evaluations across PR changes, assigns severity levels to issues, and inspects GitHub Actions run logs.

Why does review-pr forbid switching local branches?

It prevents disrupting uncommitted changes and active local work. All PR diffs and metadata are retrieved remotely through read-only gh and git commands.

Source text

SKILL.md · MIT
---
name: review-pr
description: >-
  Review a pull request for code quality and security issues. Use when the user
  wants to review a PR, check PR code changes, or audit a pull request. Triggers
  on: "review PR", "review pull request", "check this PR", "the `review-pr`
  skill".
targets:
  - "*"
---

target_pr = the user's request

If target_pr is not provided, use the PR of the current branch.

## Important: Do Not Switch the Local Branch

- Do NOT check out, switch, or otherwise move the local branch (e.g., `git checkout`, `git switch`, `gh pr checkout`).
- To inspect the PR's changes, use `git` and `gh` commands that read remote state without moving the working tree. For example:
  - `gh pr view $target_pr` to read PR metadata and description.
  - `gh pr diff $target_pr` to read the diff.
  - `gh pr view $target_pr --json files` or `gh api` to list changed files.
  - `git fetch origin pull/<PR_NUMBER>/head:refs/remotes/origin/pr-<PR_NUMBER>` and `git diff origin/main...origin/pr-<PR_NUMBER>` if a local read-only ref is needed.
- When invoking subagents, explicitly instruct them that switching the local branch is forbidden and that they must inspect changes via `git`/`gh` commands only.

Execute the following in parallel:

- Call code-reviewer subagent to review the code changes in $target_pr. Pass along the rule that the local branch must not be switched and that diffs must be obtained via `git`/`gh` commands.
- Call security-reviewer subagent to review the security issues in $target_pr. Pass along the rule that the local branch must not be switched and that diffs must be obtained via `git`/`gh` commands.

Integrate and report the execution results from each subagent. Additionaly, please output PR number in the result so that the user can easily find the PR.

## Reporting Rules

- Assign a severity level to each finding: low, mid, high, or critical.
- Assign a sequential number to each finding (e.g., #1, #2, #3, ...).

## After the Review: Check GitHub Actions Workflows

After completing the content review, check the status of the GitHub Actions workflows for $target_pr (for example, using `gh pr checks` or `gh run list`).

- Report the status of every workflow run to the user, including runs that are still in progress.
- For each failing workflow, also report:
  - The likely cause of the failure (based on the relevant logs or job output).
  - Candidate solutions or next steps to resolve it.

© dyoshikawa · MIT · dyoshikawa/rulesync

Similar skills

All skills for Code review and refactoring →

review-pr by other authors comes first.

review-pr tirth8205 This skill reviews a PR or branch through a code knowledge graph, showing risk, affected flows, and test gaps. Use it when a diff needs structural context. CX Codex +1 1,200installs review-pr NeoLabHQ Reviews an open GitHub pull request and leaves inline comments on the diff. Handy when the work sits in a PR, not in your local tree. CX Codex +1 1,200installs review-pr dbpolito Reviews GitHub pull requests in CI: hunts for defects, reconciles earlier feedback, and posts inline findings. CX Codex +1 2,300installs review-pr mikeyobrien Runs the ralph review loop on a pull request to test changes in an isolated worktree and generate a Markdown report. CX Codex +1 ★ 3,189repo stars review-pr SeifBenayed Walks a branch diff against a checklist: bugs, security, performance, tests. Ends with a verdict — approve, request changes or discuss. CX Codex +1 ★ 116repo stars improve-codebase-architecture Matt Pocock This skill scans a codebase for architectural friction, then builds a visual HTML report with refactoring candidates. Use it before a deeper architecture review. 1,163,035installs tdd Matt Pocock Guides the red-green TDD loop: ensures tests are written first, keep them at public interfaces, and avoid coupling to implementation details. 1,141,062installs triage Matt Pocock This skill moves issues and external PRs through triage states, verification, and agent briefs. It fits maintainers managing an issue queue. 990,453installs codebase-design Matt Pocock This skill helps design modules with small interfaces and hidden complexity. Use it when refactoring code, choosing a seam, or making tests easier to write. 850,344installs code-review Matt Pocock Reviews changes from a chosen reference point against repository standards and the originating spec. Use it for a branch, PR, or work in progress. 789,521installs implement Matt Pocock Implements work from a specification or tickets, following a test-driven flow and ending with review and a commit. Use it when a coding task needs a defined delivery routine. 774,700installs

From the same set36

understand-scrap-issues Fetches up to three recent open GitHub issues labeled maintainer-scrap and extracts their context, background, and next steps before you start coding. CX Codex +1 ★ 1,557repo stars triage-issues Walks open GitHub issues that carry no labels, reads each one, and applies fitting labels from your repository's own set. Handy once the backlog gets noisy and nobody knows where to start. CX Codex +1 ★ 1,557repo stars rulesync-feature-research Maps rulesync features against coding-agent docs: what is supported, where the gaps are, how clients differ. CX Codex +1 ★ 1,557repo stars review-pr-lite Review pull requests for code defects and security risks in a single skill, without delegating to subagents. It also checks GitHub Actions after the review. CX Codex +1 ★ 1,557repo stars resolve-scrap-issues This skill walks the newest GitHub issues labeled maintainer-scrap, validates each one, then either closes it or opens a single pull request that fixes the rest. CX Codex +1 ★ 1,557repo stars research-tool-updates Audits upstream releases of supported AI coding assistants, detects gaps in rulesync feature coverage, and scouts new tools with file configs. CX Codex +1 ★ 1,557repo stars release-dry-run This skill reviews changes since the latest release tag and recommends a MAJOR, MINOR, or PATCH bump. Use it to assess a release before changing the version. CX Codex +1 ★ 1,557repo stars rebase-latest-main A skill that walks the agent through fetching origin/main, rebasing the current branch and resolving conflicts. Handy when your branch has drifted behind main. CX Codex +1 ★ 1,557repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor