/rex-flow:review-pr <PR or issue number or URL> [quick]from rex-flow
Fetches a GitHub PR or issue, reviews the diff or reads the thread, and drafts a comment for user approval before posting. Supports quick mode for small diffs and full mode with worktree checkout.
Ships in rex-flow. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Review a PR or answer an issue, then draft a comment for the user. Nothing is ever posted without the user's OK.
$ARGUMENTS take the number. A URL with /pull/ is a PR, /issues/ is an issue; for a bare number, gh pr view <N> --json number succeeding means a PR, else it's an issue. When the URL's owner/repo isn't this repo's (gh repo view --json nameWithOwner), pass -R owner/repo to every gh pr and gh issue call (gh api has no -R: its paths below always name <owner>/<repo>) and use Quick mode.gh issue view <N> --json title,body,author,state,labels,comments. Read the thread, and the code it talks about when that helps the answer. Draft a reply (section 3) and skip section 2.gh pr view <N> --json title,body,author,baseRefName,headRefName,headRefOid,additions,deletions,files,comments,reviews,mergeable,mergeStateStatus,statusCheckRollupgh api repos/<owner>/<repo>/pulls/<N>/comments --jq '.[] | "[\(.user.login) on \(.path):\(.line // .original_line)] \(.body)"'gh pr diff <N>
Note what others already raised, so the draft doesn't repeat it, and any failing checks or merge conflicts.Quick mode when the user asked for it (quick in $ARGUMENTS) or the diff is under ~150 changed lines: read the diff, and each changed file at the PR head (gh api "repos/<owner>/<repo>/contents/<path>?ref=<headRefOid>" -H 'Accept: application/vnd.github.raw'; the local checkout may be on another commit), flag real problems and changes unrelated to the PR's goal, then draft.
Full mode otherwise:
<WT> be /tmp/rex-flow-pr-<N>:
git fetch origin <baseRefName> "pull/<N>/head:rex-flow-pr-<N>" && git worktree add <WT> rex-flow-pr-<N>
If the branch or <WT> is left from an earlier run, remove them first (section 5). The diff command is git diff origin/<baseRefName>...rex-flow-pr-<N>, run inside <WT>.${CLAUDE_PLUGIN_ROOT}/skills/review-pr/prompts/external-review.md, replace {{WORKTREE}} (<WT>), {{DIFF_COMMAND}} and {{PR_GOAL}} (the PR title and one sentence from its body), and save it with the Write tool as /tmp/rex-flow-pr-<N>-external.md. Never put the prompt in a shell command.rex-flow:reviewer agents with focus quality and implementation, plus testing when the PR changes tests or should have. Each prompt names the focus file ${CLAUDE_PLUGIN_ROOT}/references/focus/<focus>.md, the diff command, that it runs inside <WT>, and the PR's goal.run_in_background: true:
"${CLAUDE_PLUGIN_ROOT}/scripts/review-with.sh" '${user_config.reviewer}' '${user_config.use_hub}' /tmp/rex-flow-pr-<N>-external.md
Run it from <WT>. Keep the single quotes. On a non-zero exit, tell the user "External review didn't run: <reason from its review-with: stderr line>" and go on without it.<WT>. Drop the false ones and keep a short note why, to show the user with the draft.Write the draft in the user's voice, following ~/.agents/rules/pr-reviews.md and "Code review style" in ~/.claude/CLAUDE.md when they exist:
file:line, and one fix. Tell a scenario in two or three sentences, no step lists.For an issue, the reply follows the same voice: answer the question or say what you found, briefly.
Read it as the author would and rewrite anything that sounds machine-written. Save it with the Write tool as /tmp/rex-flow-pr-<N>-draft.md.
Show the user the draft, the dropped findings with reasons, failing checks or conflicts, and any external review that didn't run. Then ask with AskUserQuestion:
Never post without that answer. If the user asks for changes, edit the draft and ask again. Post with gh pr review <N> --comment|--request-changes|--approve --body-file /tmp/rex-flow-pr-<N>-draft.md or gh issue comment <N> --body-file /tmp/rex-flow-pr-<N>-draft.md, and show the link.
Always, also after a failure or "Don't post":
git worktree remove --force /tmp/rex-flow-pr-<N>
git branch -D rex-flow-pr-<N>
rm -f /tmp/rex-flow-pr-<N>-external.md /tmp/rex-flow-pr-<N>-draft.md
Ignore errors for things that don't exist. If the external review is still running, stop its background Bash task; review-with.sh then stops its own Hub run.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
github-pr-review, code-review, issue-reply, pr-review-workflow
npx claudepluginhub evgeny-golubev/rex-extensions --plugin rex-flow5 skills in this plugin
/brainstormTurns an idea into a validated design through one-question-at-a-time dialogue, 2-3 approaches with a recommendation, and a design confirmed section by section. Use before creative work or significant changes, or when the user says "brainstorm", "let's brainstorm", "think through", "help me design", "explore options for", or asks for deep analysis of a feature or architectural decision./execRuns a plan from docs/plans/ in waves of parallel task-worker agents, commits each task separately, reviews the result with Claude and the configured external agent, and moves the plan to completed/. Use when the user says "exec", "exec plan", "execute the plan", "run the plan", "implement the plan", or after /rex-flow:plan chooses "Execute now"./planWrites an implementation plan in docs/plans/ with tasks, files, dependencies and tests, then has it reviewed by Claude and the configured external agent before execution. Use when the user says "plan", "make a plan", "write a plan", "plan this feature", or after /rex-flow:brainstorm hands off a design./releaseCuts a GitHub release with gh. Picks the next version from the commits since the last tag, writes the CHANGELOG.md entry in the file's own style, shows the notes, and pushes, tags and publishes only after the user confirms. Also shows what changed since the last tag. Use when the user says "create release", "cut a release", "new release", "new version", "publish version", "last tag" or "what changed since the last release".Other plugins' skills for the same job