| name | devteam-review |
| description | Run a coordinated code review across multiple reviewers. Launches the Code Review Coordinator to orchestrate language-specific and domain-specific reviewers. |
Current session: !source "${CLAUDE_PLUGIN_ROOT}/scripts/state.sh" && get_current_session 2>/dev/null || echo "No active session"
Active sprint: !source "${CLAUDE_PLUGIN_ROOT}/scripts/state.sh" && get_kv_state "active_sprint" 2>/dev/null || echo "None"
Failure count: !source "${CLAUDE_PLUGIN_ROOT}/scripts/state.sh" && get_kv_state "consecutive_failures" 2>/dev/null || echo "0"
DevTeam Review Command
Command: /devteam:review [target] [options]
Run a coordinated code review across multiple reviewers. Launches the Code Review Coordinator to orchestrate language-specific and domain-specific reviewers.
Usage
/devteam:review
/devteam:review "src/api/auth.ts" "src/models/user.ts"
/devteam:review --scope "src/api/"
/devteam:review --focus security
/devteam:review --focus performance
/devteam:review --focus architecture
/devteam:review --pr 42
Options
| Option | Description |
|---|
--scope <path> | Limit review to specific files/directories |
--focus <area> | Focus on: security, performance, architecture, correctness, all |
--pr <number> | Review a specific pull request |
--severity <level> | Minimum severity to report: critical, warning, info |
--eco | Cost-optimized execution |
Your Process
Phase 0: Initialize Session
source "${CLAUDE_PLUGIN_ROOT}/scripts/state.sh"
source "${CLAUDE_PLUGIN_ROOT}/scripts/events.sh"
SESSION_ID=$(start_session "/devteam:review $*" "review")
log_session_started "/devteam:review $*" "review"
Phase 1: Launch Code Review Coordinator
Delegate to the orchestration:code-review-coordinator agent, which will:
- Detect languages and frameworks in the target files
- Select appropriate language-specific code reviewers
- Run database reviewers if schema changes are detected
- Aggregate findings across all reviewers
- Produce a unified review report with severity ratings
const result = await Task({
subagent_type: "orchestration:code-review-coordinator",
prompt: `Code review request:
Target: ${target || 'current changes'}
Scope: ${scope || 'auto-detect'}
Focus: ${focus || 'all'}
Coordinate reviewers to check:
1. Code correctness and logic errors
2. Security vulnerabilities
3. Performance issues
4. Code style and best practices
5. Test coverage gaps
6. Documentation needs`
})
Phase 2: Report
Output a review report showing:
- Summary of findings by severity
- File-by-file review comments
- Recommended changes
- Overall code quality assessment
See Also
/devteam:implement - Implement review feedback
/devteam:bug - Fix bugs found during review
/devteam:test - Run tests to verify fixes