Skip to content
Development
Skill

/review-pr

PR review by parallel agents (quality, security, tests, architecture, performance) with conventional comments and an approve or request-changes verdict. Use when a pull request needs a reviewer. Not for design scores (use assess).

From plugin
orchestkit
301122 skills36 agents

Claude Code

$ npx -y skills add yonatangross/orchestkit --skill review-pr --agent claude-code

SKILL.md

review-pr.SKILL.md
name: review-pr
license: MIT
compatibility: "Claude Code 2.1.277+. Requires memory MCP server, gh CLI."
description: "PR review by parallel agents (quality, security, tests, architecture, performance) with conventional comments and an approve or request-changes verdict. Use when a pull request needs a reviewer. Not for design scores (use assess)."
argument-hint: "[pr-number-or-branch] [--post] [--post-verdict]"
user-invocable: true
allowed-tools: "SendMessage AskUserQuestion Bash Read Write Edit Grep Glob Agent Workflow TaskCreate TaskUpdate TaskStop mcp__memory__search_nodes mcp__memory__create_entities mcp__memory__add_observations ToolSearch Monitor"
skills: [code-review-playbook, testing-unit, testing-e2e, testing-integration, memory, chain-patterns]
hooks:
  PreToolUse:
    - matcher: "Bash|Monitor"
      hooks:
        - type: command
          command: "${CLAUDE_PLUGIN_ROOT}/hooks/bin/run-hook.mjs skill/review-post-gate"
    - matcher: "Write|Edit|NotebookEdit|mcp__.*"
      hooks:
        - type: command
          command: "${CLAUDE_PLUGIN_ROOT}/hooks/bin/run-hook.mjs skill/review-post-gate"
metadata:
  category: workflow-automation
  mcp-server: memory
  version: "1.9.0"
  author: "OrchestKit"
  complexity: "medium"
  tags: "code-review, pull-request, quality, security, testing"
triggers:
  keywords: ["review pr", "code review", reveiw, "review pull request", "review the changes", "thorough review", "review of", "look over", "check this pr", "before we merge"]
  examples:
    - "review PR 123"
    - "do a code review on this pull request"
    - "check this PR for issues before we merge"
  anti-triggers: [create pr, open pr, commit, assess, rate, implement]

Review PR

Host-neutral workflow. Invoke by skill name (`review-pr`). Claude Code slash routing, YAML hook loaders, and `.claude/chain` live in `references/claude-code.md`.

Deep code review using 6-7 parallel specialized agents.

Quick Start

review-pr 123
review-pr feature-branch

> **Opus 5.5**: Parallel agents use native adaptive thinking for deeper analysis. Complexity-aware routing matches agent model to review difficulty.

---

Argument Resolution

A pronoun target (`this`, `them`, `the above`) is read back from the conversation, announced in one line, and used: `Read("../../shared/rules/target-resolution.md")`, inline half.

Resolve the target with the script first, then review exactly that target (#3892). Read the mode and opt-in flags (`--rules`, `--standards`, `--post`, `--post-verdict`) from the arguments yourself and drop them, then run the script as one plain command (the post gate allows only simple read-only commands, so no assignment, loop or `$(...)`):

bash ${CLAUDE_SKILL_DIR}/scripts/resolve-target.sh <the arguments without the four flags>   # prints one JSON object: TARGET

| `kind` | Comes from | Review source | |---|---|---| | `pr` | `123`, `#123`, a PR URL, `ORCHESTKIT_PR_URL`, or the current branch's open PR (no argument) | `PR_NUMBER`; the `gh pr view/diff/checks` commands below | | `range` | `base...head` or `base..head`, e.g. `origin/main...origin/qa` | `git diff --no-ext-diff --no-textconv base...head`, `git log base..head`; skip `gh pr checks` and Phase 6 submit | | `ref` | a branch or ref that resolves | `gh pr view <ref>`: open PR, treat as `pr`; none, review `<default>...<ref>` as `range` | | `ask` | anything else, or no argument and no PR | **STOP** and `AskUserQuestion` for a PR number or ref range |

Never substitute `HEAD`, the current checkout, or its branch for a target the user did not name. On `ask`, stop and ask. State the resolved target in your first line of output, and use `PR_NUMBER` (or the range) consistently in every later command and agent prompt.

---

STEP 0: Verify User Intent with AskUserQuestion

**BEFORE creating tasks**, clarify review focus:

AskUserQuestion(
  questions=[{
    "question": "What type of review do you need?",
    "header": "Focus",
    "options": [
      {"label": "Full review (Recommended)", "description": "Security + code quality + tests + architecture"},
      {"label": "Security focus", "description": "Prioritize security vulnerabilities"},
      {"label": "Performance focus", "description": "Focus on performance implications"},
      {"label": "Quick review", "description": "High-level review, skip deep analysis"}
    ],
    "multiSelect": false
  }]
)

**The answer becomes the `focus` arg of the Phase 3 Workflow call** (the script picks the reviewers):

  • **Full review** → `"full"`: security, two code-quality passes, tests, plus backend / frontend / llm-integrator for the domains in the diff
  • **Security focus** → `"security"`: security-auditor plus one code-quality reviewer
  • **Performance focus** → `"performance"`: the full set plus frontend-performance-engineer
  • **Quick review** → `"quick"`: a single code-quality reviewer

"Ultra" mode runs outside this skill

If the user asks for an "ultra" / "deep" / "thorough" review, do not run it from here: the post gate denies `claude ultrareview` like every command off its read list, and an ultra review is user-triggered and billed. Tell the user to type `/code-review ultra <PR>` (or run `claude ultrareview <PR> --json` in their own shell), and stop. Use this skill for focused modes (security-only, perf-only), project context and the KG writeback.

> **vs built-in `/code-review`:** quick pass at a chosen depth is `/code-review <level> <pr#>` (alias `/review`); the deep project-aware audit is this skill. See "vs. the built-in `/review` and `/code-review`" below. This skill runs inline (no `context: fork`) because Claude Code drops a forked skill's frontmatter hooks (measured on 2.1.294). (#1940)

---

STEP 0b: Select Orchestration Mode

Default: **Workflow** (star, `workflows/review-fanout.js` runs Phases 3 and 4.5). Choose **Agent Teams** (mesh, reviewers cross-reference findings) or the plain **Agent tool** when the Workflow tool is unavail

Read more
@yonatangross
Ships withorchestkit

The Complete AI Development Toolkit for Claude Code. 115 skills, 36 agents, 163 hooks. Install `ork` for stable (v10.x).

301122 skills36 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
301
Star history of yonatangross/orchestkit on GitHub, a chart by star-history.com

Other skills on orchestkit.

ork-assess

ork-assess

Assess a code change, design, architecture, workflow, or competing options against explicit criteria and evidence. Use when a…

ork-brainstorm

ork-brainstorm

Compare plausible implementation, architecture, product, or operational approaches before committing to one. Use when a request…

ork-explore

ork-explore

Map an unfamiliar codebase, feature, architecture, data flow, or operational path with file-backed evidence. Use when a request…

ork-glyph

ork-glyph

Render an answer inline as compact ASCII or box-drawing art with semantic status icons. Use for status, inventories, budgets,…

ork-implement

ork-implement

Make an approved, scoped change and prove the affected behavior. Use when a request asks to implement, build, add, or land a…

ork-review-pr

ork-review-pr

Review a pull request or branch for correctness, regressions, security, operational risk, and missing evidence. Use when a…

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills12d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc2w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react3d252k
@facebook@facebookInstall Skill

Questions about review-pr.

Which coding agents can use review-pr?
review-pr installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.