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.
npx skills add mikeyobrien/ralph-orchestrator --skill review-pr -a claude-codeWhat 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-code2Manually: put the files in place
~/.claude/skills/review-pr/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/review-pr/
1Skills CLI (Vercel)
npx skills add mikeyobrien/ralph-orchestrator --skill review-pr -a codex2Manually: put the files in place
.agents/skills/review-pr/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add mikeyobrien/ralph-orchestrator --skill review-pr -a cursor2Manually: put the files in place
.cursor/skills/review-pr/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install mikeyobrien/ralph-orchestrator review-pr2Manually: put the files in place
.github/skills/review-pr/SKILL.md1Skills CLI (Vercel)
npx skills add mikeyobrien/ralph-orchestrator --skill review-pr -a gemini-cli2Platform CLI
gemini skills install https://github.com/mikeyobrien/ralph-orchestrator --path .claude/skills/review-prManually: put the files in place
.devin/skills/review-pr/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add mikeyobrien/ralph-orchestrator --skill review-pr -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
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.