Skip to main content
skill CX Codex

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

Runs the ralph review loop on a pull request to test changes in an isolated worktree and generate a Markdown report.

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

What review-pr does

This skill extracts a pull request number from your input and launches the ralph.reviewer.yml loop. It triggers ralph run -H ralph.reviewer.yml -p "Review PR #<N>" in the background with a 10-minute timeout (600000 ms), waiting for completion via TaskOutput. All checks run safely inside a dedicated .worktrees/review-<N> directory.

Once the loop finishes, the skill prints .ralph/REVIEW-REPORT.md directly into the chat. If the run fails midway, it locates and outputs whatever partial artifacts were written: .ralph/review-scope.md for scope, .ralph/review-verification.md for test output, or .ralph/review-findings.md for review issues.

The skill operates in read-only mode: it does not alter source code, send GitHub comments, or clean up leftover worktrees on its own. When a worktree folder remains on disk, it warns you and lets you decide what to remove.

What it helps with

  • run an isolated code review loop on a pull request
  • execute test suites inside a dedicated git worktree
  • generate a structured Markdown review report
  • inspect partial review findings when an orchestration run fails

Example prompts for the agent

  • /review-pr 207
  • /review-pr #207
  • Review pull request #207 using /review-pr 207

How to install review-pr

1Skills CLI (Vercel)

npx skills add mikeyobrien/ralph-orchestrator --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 do I install review-pr in Claude Code?

Run npx skills add mikeyobrien/ralph-orchestrator --skill review-pr -a claude-code in your terminal.

What does review-pr do?

It launches ralph.reviewer.yml against a PR number, verifies tests in an isolated worktree, and presents the resulting .ralph/REVIEW-REPORT.md file.

Does review-pr post comments directly to GitHub?

No, it functions strictly in read-only mode. It leaves code untouched, posts nothing to GitHub, and only outputs markdown findings locally.

Source text

SKILL.md · MIT
---
name: review-pr
description: Use when asked to review a PR, run a code review loop, or invoke the ralph reviewer against a pull request number or GitHub URL
metadata:
  internal: true
---

# Review PR

Run the `ralph.reviewer.yml` orchestration loop against a pull request. The loop checks out the PR in an isolated worktree, runs tests, reviews the diff, and produces a structured report.

## Usage

```
/review-pr <PR number or URL>
```

Accepts: `207`, `#207`, or `https://github.com/.../pull/207`

## Execution

### 1. Parse the PR argument

Extract the PR number from the argument. Strip `#` prefix or extract from URL path.

### 2. Run the reviewer loop

```bash
ralph run -H ralph.reviewer.yml -p "Review PR #<N>"
```

**Bash tool settings:**
- `timeout: 600000` (10 minutes)
- `run_in_background: true`

Use `TaskOutput` with `block: true` to wait for completion.

### 3. Display the report

Read and print `.ralph/REVIEW-REPORT.md` to the conversation.

If the report file doesn't exist (loop failed before the synthesizer hat), check for and display whatever intermediate files exist:
1. `.ralph/review-scope.md` — what was scoped
2. `.ralph/review-verification.md` — test results
3. `.ralph/review-findings.md` — review findings

### 4. Verify cleanup

Check that the review worktree was removed:

```bash
ls -d .worktrees/review-<N> 2>/dev/null
```

- If gone: cleanup succeeded, no action needed.
- If still present: **warn the user** but do NOT force-remove. Say what's there and let them decide.

Also note the presence of intermediate files (`.ralph/review-scope.md`, etc.) — they're useful for debugging but the user may want to clean them up later.

## Error Handling

| Situation | Action |
|-----------|--------|
| Ralph exits non-zero | Display error output. Suggest re-running with `RALPH_DIAGNOSTICS=1` |
| Report file missing | Display intermediate files that do exist (scope, verification, findings) |
| PR argument missing | Ask the user for the PR number |
| PR argument unparseable | Ask the user to provide a bare number, `#N`, or full GitHub URL |

## What This Skill Does NOT Do

- Does NOT validate the PR exists (the scoper hat handles that)
- Does NOT modify any source code (read-only review)
- Does NOT post comments to GitHub
- Does NOT own worktree cleanup (verifies only)
- Does NOT enable diagnostics by default

© mikeyobrien · MIT · mikeyobrien/ralph-orchestrator

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 dyoshikawa 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. CX Codex +1 ★ 1,557repo 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 set16

tui-validate This skill screenshots a terminal UI with freeze and judges it against criteria using an LLM. Useful after TUI changes, when you need to catch broken layout. CX Codex +1 ★ 3,189repo stars tui-debug-in-pane Launches ralph in a dedicated tmux split pane to capture live output and isolate interface rendering glitches while keeping the main terminal open. CX Codex +1 ★ 3,189repo stars tmux-terminal This skill uses tmux to send keystrokes, read terminal output, and keep CLI processes running between steps. Use it with interactive TUIs or long-running commands. CX Codex +1 ★ 3,189repo stars test-driven-development This skill walks the agent through RED → GREEN → REFACTOR and makes it write tests before code. Useful when a spec or task needs to become checkable tests. CX Codex +1 ★ 3,189repo stars release-bump Walks ralph-orchestrator through a release: raise the version, build, test, tag. Meant for the moment fixes are committed and publishing is next. CX Codex +1 ★ 3,189repo stars pr-demo Records a terminal session with asciinema and turns it into a GIF or SVG you can drop into a pull request. CX Codex +1 ★ 3,189repo stars playwriter Drives your local Chrome browser with Playwright Page scripts while keeping active logins and cookies. Useful for testing authenticated web dashboards. CX Codex +1 ★ 3,189repo stars pdd pdd turns a rough idea into requirements, research, a design document, and an implementation plan. It is for projects that need decisions recorded before coding. CX Codex +1 ★ 3,189repo 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