# Review PR Lite

Review a pull request for code quality and security issues without using subagents.

- Repository: https://github.com/dyoshikawa/rulesync (1577 stars)
- Category: Security
- License: MIT
- Last updated: 2026-11-01
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add dyoshikawa/rulesync --skill review-pr-lite -g -a claude-code -y`
Codex: `npx skills add dyoshikawa/rulesync --skill review-pr-lite -g -a codex -y`
Cursor: `npx skills add dyoshikawa/rulesync --skill review-pr-lite -g -a cursor -y`
Gemini CLI: `npx skills add dyoshikawa/rulesync --skill review-pr-lite -g -a gemini-cli -y`

## Description

Review a pull request for code quality and security issues without using subagents. Use when the user wants a lighter-weight PR review in a single skill.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

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.

## Step 1: Gather PR Context

Run the following in parallel:

- Get the PR description and metadata via `gh pr view $target_pr` (do not check out the PR locally).
- Get the PR diff via `gh pr diff $target_pr`.
- If needed, inspect changed files individually for deeper context using `gh` / `git` commands (e.g., `gh api`, `git show`), without switching the local branch.

## Step 2: Review the Changes

Review the PR directly in this skill without calling any subagents.

Focus on both of the following:

1. **Code Review**
   - Bugs or behavioral regressions
   - Incorrect assumptions or edge cases
   - Missing or weak tests
   - Maintainability issues that could cause near-term problems

2. **Security Review**
   - Injection risks
   - Auth/authz mistakes
   - Secrets exposure
   - Unsafe file, network, shell, or deserialization behavior
   - Dependency or configuration changes that could weaken security

## Step 3: Report Findings

Integrate all findings into one review result. Please output the PR number in the result so that the user can easily find the PR.

## Reporting Rules

The rest: https://github.com/dyoshikawa/rulesync/blob/HEAD/.rulesync/skills/review-pr-lite/SKILL.md
