claude_code_review
Run a confidence-scored code review on a repo, PR, branch, or commit using parallel reviewer agents, then get a markdown report.
Instructions
Run Claude Code's code-review skill (5 parallel reviewer subagents, 0-100 confidence scoring, keeps findings >=80) on a repository and return the markdown report. Costs Claude API credits; a run typically takes 2-15 minutes. Afterwards, fix the code and re-run to verify, or use claude_review_followup with the returned session_id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pr | No | GitHub PR number or URL, e.g. "123" or "owner/repo#123" (for scope=pr, or as first choice in auto) | |
| fix | No | Fix mode: after the report, Claude Code edits the repo files to fix the confirmed findings (Edit only, no git commands, no commit; .git and secret paths are deny-listed). Adds a '## Fixes Applied' section. | |
| focus | No | Extra review focus or instructions, e.g. '重点看并发安全' | |
| model | No | Claude model override (passed as --model) | |
| scope | No | auto: PR if pr given / branch ahead of default / working-dir changes / last commit | auto |
| effort | No | Review effort / reasoning level, same scale as Claude Code (--effort): low..max. max/xhigh = exhaustive deep review, slower and pricier. | high |
| baseRef | No | Base branch/tag for scope=branch (default: auto-detect the default branch) | |
| maxTurns | No | Agentic turn cap for the review session | |
| postToPR | No | Also post the summary comment to the GitHub PR via gh (default false — report only) | |
| repoPath | Yes | Absolute path to the git repository to review (the review runs with cwd=repoPath; ~/ prefix allowed) | |
| maxBudgetUsd | No | API spend cap for this run via --max-budget-usd (default 5); 0 disables. On third-party gateways this depends on usage data the gateway returns. | |
| outputLanguage | No | Language for the report, e.g. "中文" or "English" | 中文 |
| timeoutMinutes | No | Hard wall-clock timeout for the run | |
| installSkillIfMissing | No | Auto-install the bundled code-review skill into ~/.claude/skills when missing (default true) |