/pr-review-toolkit:full-review <scope: PR#N | branch | files | all>from pr-review-toolkit
Dispatches 1-3 parallel agents (code-review, security-audit, test-analyzer) adaptively based on change complexity, validates findings, and consolidates a report. Use before deploying or merging large PRs.
Ships in pr-review-toolkit. 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.
None: SKILL.md is the whole skill.
This skill dispatches 3 subagents in parallel, validates findings, then consolidates — following the Anthropic code-review command pattern.
Lead agent runs first (deterministic, no subagent needed):
$ARGUMENTS (PR, branch, files, or all)git diff --stat → count changed lines, number of filesgit ls-files | wc -l (count tracked files, respects .gitignore) + git ls-files | xargs wc -l → count codebase LOC. If no git → find . -type f | wc -l (adjust excludes per project)gh pr diff <N> --stat (GitHub). If gh CLI is unavailable or using another platform (GitLab, Bitbucket) → ask user to provide diffgit diff --name-only or find → list file namesDispatch pre-check subagent (model: haiku in the Agent tool call) with collected data (inject diff stats + file list into prompt):
If Haiku returns "skip" → stop immediately, do not dispatch Step 2.
Scale number of agents by complexity (following Anthropic multi-agent research pattern: "Simple fact-finding requires just 1 agent... complex research might use more than 10 subagents"):
Haiku chooses scale based on actual injected data from Step 1. Guidelines (qualitative labels + quantitative bounds, criteria designed for code review):
| Tier | Label | Bounds (guidelines, not hard cutoffs) | Agents |
|---|---|---|---|
| 1 | Simple | ~1-20 lines, 1-2 files, no auth/payment/crypto touched | 1 (code-reviewer only) |
| 2 | Moderate | ~20-200 lines, 3-10 files, or security concern present | 2 (code-reviewer + security-auditor) |
| 3 | Complex | >200 lines, >10 files, sensitive areas, or architectural change | 3 (full) |
Haiku uses the table above as a guideline and may adjust if context suggests different complexity than the bounds indicate (e.g., 15 lines but touches auth → Moderate, not Simple).
"all" scope only defines the review boundary — it does NOT override scaling. Haiku judges based on actual data (LOC, file count, file names), not scope label.
Launch subagents per the chosen scale:
Agent 1: code-reviewer (model + tools per agent definition)
Agent 2: security-auditor (model + tools per agent definition)
Agent 3: test-analyzer (model + tools per agent definition)
If only 1 agent (Simple tier): skip dedup + validate — output that agent's findings directly. No need to consolidate a single source.
If 2+ agents:
If 0 Critical/High findings: skip validation — nothing to validate.
If Critical/High findings exist:
Simple (1 agent, few findings): brief output — list findings + 1-2 sentence summary. No complex headers needed.
Moderate/Complex (2-3 agents): full output:
# Full Review Report
**Scope**: [scope description]
**Agents**: [agents dispatched] (N findings per agent)
**Raw total**: X findings → Y after dedup → Z validated
## 🔴 Critical / High (validated)
[findings]
## 🟡 Medium
[findings]
## 🟢 Low / Info
[findings]
## ⚠️ Unverified (needs user confirmation)
[unvalidated findings — omit section if none]
## ✅ Strengths
[things done correctly]
## Test Coverage
[analysis from test-analyzer — omit section if test-analyzer was not dispatched]
After the report, ask:
/commitWhat SKILL.md sets; muted values are Claude Code's defaults
4 skills in this plugin
/code-reviewReviews code changes in the working tree, current branch, or PR. Finds bugs, security issues, performance problems, style violations, and test coverage gaps./pr-comment-reviewThis skill should be used when the user asks to review a GitHub pull request AND post the findings as a comment on the PR ('review and comment on PR', 'review PR roi comment len do'). Multi-agent confidence scoring, threshold 80/100, posts via gh. For local working-tree review without posting, use the code-review skill./review-prComprehensive PR review using specialized agents, each focusing on a different aspect of code quality.npx claudepluginhub minhthang1009/dotclaude --plugin pr-review-toolkitOther plugins' skills for the same job