From cc-arsenal
Multi-agent PR review team orchestration with 7 specialized reviewers for security-sensitive or architectural PRs. Spawns architecture, security, performance, testing, style, docs/UX, and adversary reviewers as a coordinated team. Premium review for critical code changes.
npx claudepluginhub mgiovani/cc-arsenal --plugin cc-arsenal-teamsThis skill is limited to using the following tools:
Multi-agent team orchestration for comprehensive PR code review. Spawns 6 specialized reviewer agents plus 1 adversary reviewer as a coordinated team. Designed for security-sensitive, architectural, or high-impact code changes where a single-agent review is insufficient.
Creates isolated Git worktrees for feature branches with prioritized directory selection, gitignore safety checks, auto project setup for Node/Python/Rust/Go, and baseline verification.
Executes implementation plans in current session by dispatching fresh subagents per independent task, with two-stage reviews: spec compliance then code quality.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
Multi-agent team orchestration for comprehensive PR code review. Spawns 6 specialized reviewer agents plus 1 adversary reviewer as a coordinated team. Designed for security-sensitive, architectural, or high-impact code changes where a single-agent review is insufficient.
For simpler reviews, use /review-code (single-agent with parallel Explore subagents).
Full mode requires the experimental agent teams flag. Add to your environment or settings.json:
CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
Lite mode (--lite flag or automatic fallback) works without this flag — uses Task subagents instead of the Teammate API. Fewer agents, lower cost, still comprehensive.
Delegate mode (recommended for full mode): Press Shift+Tab to enable delegate mode, which restricts the lead to coordination-only tools and prevents it from reviewing code itself.
$ARGUMENTS
/resume does not restore teammates. If a session is interrupted, teammates are lost/implement-feature or /fix-bug for fixesCRITICAL: All reviewers must follow these rules:
Phase 0: Scope Detection & Input Ingestion
Phase 1: Project Discovery
Phase 2: Team Composition & Spawn
Phase 3: Parallel Specialist Review (6 reviewers + 1 adversary)
Phase 4: Consolidation & Cross-Reference
Phase 5: Report Generation
Phase 6: Teardown
Optional: Iterative re-review after fixes
Parse $ARGUMENTS to determine what to review:
| Pattern | Source Type | Ingestion |
|---|---|---|
123 or #123 | PR number | gh pr view 123 --json files,title,body,labels,comments + gh pr diff 123 |
abc123 | Commit SHA | git show abc123 + git diff-tree --no-commit-id --name-only -r abc123 |
--all or no args | Entire codebase | git ls-files (respects .gitignore) |
--lite | Force lite mode | Use Task subagents instead of Teammate API |
--focus <area> | Focus area | Spawn only relevant reviewers |
Retrieve full diff context for PR/commit reviews. Reviewers must focus findings on changed lines while using surrounding code for context.
Spawn an Explore/haiku agent to understand the project:
Task tool (Explore, haiku):
"Discover the project's technology stack, coding conventions, and quality standards:
1. Read CLAUDE.md and README.md for project context and conventions
2. Check package.json, pyproject.toml, pom.xml, go.mod for languages/frameworks
3. Identify linting/formatting configs: .eslintrc, .prettierrc, ruff.toml, .editorconfig
4. Identify test frameworks and patterns
5. Check for CI/CD quality gates in .github/workflows
6. Note architectural patterns: MVC, Clean Architecture, DDD, etc.
7. Identify security tools: SAST, dependency scanning, pre-commit hooks
Return: Technology stack, conventions, quality standards, and security tooling summary."
Evaluate complexity to determine full vs. lite mode:
| Signal | Full Mode (+2) | Medium (+1) | Lite Mode (0) |
|---|---|---|---|
| Files changed | 15+ files | 5-14 files | <5 files |
| Security sensitivity | Auth, payments, PII | Permission checks | No sensitive data |
| Architectural impact | New patterns, schema changes | Modifying existing patterns | Localized changes |
| Cross-cutting concerns | Multiple modules/services | 2 components | Single component |
Thresholds:
Override: --lite flag forces lite mode regardless of score.
Teammate({ operation: "spawnTeam", team_name: "review-<pr_or_scope>" })
Spawn 7 reviewer agents. For complete prompt templates, see references/agent-catalog.md.
| Role | Agent Name | Model | Focus |
|---|---|---|---|
| Architecture Reviewer | arch-reviewer | opus | System design, API contracts, data modeling, dependency graph |
| Security Reviewer | security-reviewer | sonnet | OWASP Top 10, auth/authz, input validation, secrets |
| Performance Reviewer | perf-reviewer | sonnet | Algorithmic complexity, queries, caching, memory |
| Testing Reviewer | test-reviewer | sonnet | Coverage gaps, assertion quality, test architecture |
| Style & Patterns Reviewer | style-reviewer | sonnet | Naming, DRY/SOLID, framework idioms, readability |
| Docs & UX Reviewer | docs-reviewer | haiku | API ergonomics, error messages, documentation, changelog |
| Adversary Reviewer | adversary-reviewer | sonnet | Challenges assumptions, finds edge cases, stress-tests design |
Spawn 4 Task subagents (combined roles) instead of full team:
| Combined Role | Covers | Model |
|---|---|---|
| Architecture & Security | arch-reviewer + security-reviewer | sonnet |
| Performance & Style | perf-reviewer + style-reviewer | sonnet |
| Testing & Error Handling | test-reviewer + edge cases | sonnet |
| Adversary | adversary-reviewer + docs-reviewer | sonnet |
When --focus is specified, spawn only relevant reviewers:
| Focus | Agents Spawned |
|---|---|
architecture | arch-reviewer, adversary-reviewer |
security | security-reviewer, adversary-reviewer |
performance | perf-reviewer, adversary-reviewer |
testing | test-reviewer, adversary-reviewer |
style | style-reviewer, docs-reviewer |
All reviewers work simultaneously on the same file set. Each reviewer follows its specialized prompt from references/agent-catalog.md.
Create tasks for each reviewer via TaskCreate, then assign:
TaskCreate:
subject: "Architecture review of PR #[N]"
description: "Review changed files for architectural issues, API design, data modeling..."
activeForm: "Reviewing architecture"
TaskCreate:
subject: "Security review of PR #[N]"
description: "Review changed files for OWASP vulnerabilities, auth issues..."
activeForm: "Reviewing security"
# ... repeat for each reviewer
# Assign to agents
TaskUpdate: { taskId: "arch-task", owner: "arch-reviewer" }
TaskUpdate: { taskId: "security-task", owner: "security-reviewer" }
# ... etc.
Each reviewer receives:
Each reviewer must:
The adversary reviewer operates differently:
After all reviewers complete, the orchestrator:
Generate a comprehensive review report following the template in references/report-template.md.
Report sections:
shutdown_request to all reviewer agentsshutdown_response from eachTeammate({ operation: "cleanup" })After the initial review, if fixes are made and a re-review is requested:
git diff --name-only <last_reviewed_commit>..HEAD| Gate | Between | Pass Criteria | On Failure |
|---|---|---|---|
| Scope Validation | 0 → 1 | Files exist and are readable | Error + abort |
| Discovery Complete | 1 → 2 | Tech stack identified | Proceed with defaults |
| All Reviews Complete | 3 → 4 | All reviewer tasks marked complete | Wait (timeout: 10 min) |
| Adversary Complete | 3 → 4 | Adversary findings received | Proceed without adversary |
| Report Generated | 5 → 6 | All findings have file:line refs | Verify and fix gaps |
# Full team review of a PR (auto-detects complexity)
/team-review 123
# Force lite mode for cost efficiency
/team-review 123 --lite
# Focus on specific dimension
/team-review 123 --focus security
# Review a specific commit
/team-review abc123def
# Review entire codebase
/team-review --all
# Re-review after fixes
/team-review 123
| Scenario | Use |
|---|---|
| Standard PR review | /review-code (faster, cheaper) |
| Security-sensitive changes (auth, payments, PII) | /team-review |
| Architectural changes (new patterns, schema) | /team-review |
| Large PRs (15+ files) | /team-review |
| Quick check before merging | /review-code |
| Compliance or audit requirements | /team-review |
| Re-review after fixes | Either (both support diff-only) |