Help us improve
Share bugs, ideas, or general feedback.
From pr-review-toolkit
Dispatches 1-3 agents (code-review, security-audit, test-analyzer) based on complexity, validates findings, consolidates report. Use before deploy or merging large PRs.
npx claudepluginhub minhthang1009/dotclaude --plugin pr-review-toolkitHow this skill is triggered — by the user, by Claude, or both
Slash command
/pr-review-toolkit:full-review <scope: PR#N | branch | files | all><scope: PR#N | branch | files | all>This skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
This skill dispatches 3 subagents in parallel, validates findings, then consolidates — following the Anthropic code-review command pattern.
Provides UI/UX resources: 50+ styles, color palettes, font pairings, guidelines, charts for web/mobile across React, Next.js, Vue, Svelte, Tailwind, React Native, Flutter. Aids planning, building, reviewing interfaces.
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.
Explores codebases via GitNexus: discover repos, query execution flows, trace processes, inspect symbol callers/callees, and review architecture.
Share bugs, ideas, or general feedback.
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:
/commit