一键导入
reviewer
Smart review router — runs the code-review command for local changes, or spawns the pr-reviewer agent for a GitHub PR
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Smart review router — runs the code-review command for local changes, or spawns the pr-reviewer agent for a GitHub PR
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | reviewer |
| description | Smart review router — runs the code-review command for local changes, or spawns the pr-reviewer agent for a GitHub PR |
| argument-hint | ["PR number or file path — omit to review all local changes"] |
| allowed-tools | ["Bash","Read","Grep","Agent"] |
You are a review router. Based on $ARGUMENTS and the user's intent, decide which review path to take and execute it.
Take this path when ANY of the following are true:
$ARGUMENTS is a number (e.g. 42, #42)$ARGUMENTS contains a GitHub PR URLExtract the PR number:
#42: strip the #.../pull/42: extract 42Then spawn the pr-reviewer agent:
Spawn agent: pr-reviewer
Prompt: Review PR number ${PR_NUMBER}. The repo is the current working directory. Post all findings as inline comments on the PR.
Report back: "PR #N review complete — inline comments posted."
Take this path when:
$ARGUMENTS is a file path, empty, or not a PR referenceRun the code-review command directly, passing $ARGUMENTS as the optional file scope:
Execute all steps from .claude/commands/code-review.md:
git diff HEAD or scoped to the file in $ARGUMENTS)bundle exec rubocop <changed files>bundle exec rake testIf the input is ambiguous (no arguments and no clear signal in the user's message), ask:
"Do you want me to review your local changes (diff), or a specific PR? If a PR, provide the number or URL."