parallel-review
The parallel-review command launches multiple code review subagents simultaneously across specified directories or files to accelerate analysis. Use this when reviewing independent modules, preparing comprehensive pre-merge assessments, analyzing different sections of large pull requests, or comparing implementation patterns across separate codebases where concurrent evaluation reduces total review time.
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/CloudAI-X/claude-workflow-v2/HEAD/commands/parallel-review.md -o ~/.claude/commands/parallel-review.mdparallel-review.md
# Parallel Code Review Review `$ARGUMENTS` using parallel subagents for maximum speed. ## Process 1. **Parse Targets**: Split arguments into independent review targets 2. **Spawn Parallel Reviewers**: Launch one subagent per target 3. **Collect Results**: Each subagent returns its review automatically on completion 4. **Synthesize**: Merge findings into prioritized report ## Execution Pattern **CRITICAL**: Launch ALL Task calls in a SINGLE message for true parallelism. For each independent target, spawn a subagent with `run_in_background: true`: ``` I'm launching N parallel code reviewers: [Task 1] description: "Review [target 1]" prompt: "You are a code reviewer. Analyze [target 1] for: - Code quality and best practices - Potential bugs and edge cases - Security vulnerabilities - Performance issues - Test coverage gaps Provide findings with file:line references and severity levels." run_in_background: true [Task 2] description: "Review [target 2]" prompt: "You are a code reviewer. Analyze [target 2] for..." run_in_background: true [Task 3] description: "Review [target 3]" prompt: "You are a code reviewer. Analyze [target 3] for..." run_in_background: true ``` Each subagent returns its result automatically when it completes — there is no separate retrieval step. Read each review as it returns. ## Output Format ```markdown ## Parallel Review Results ### Summary - **Targets reviewed**: N - **Total findings**: X - **Critical issues**: Y - **Execution time**: ~Zs (parallel) ### [Target 1] Findings #### Critical - [Issue] at file:line - [Description] #### Warnings - [Issue] at file:line - [Description] #### Suggestions - [Improvement] at file:line - [Description] ### [Target 2] Findings ... ### Combined Priority List 1. **Critical** - [Target X] - [Issue description] 2. **Critical** - [Target Y] - [Issue description] 3. **High** - [Target Z] - [Issue description] ... ### Recommended Actions 1. Fix critical issues in [Target X] first 2. Address security concerns in [Target Y] 3. Consider performance optimizations in [Target Z] ``` ## Example Usage ``` /project-starter:parallel-review src/auth src/api src/db ``` This spawns 3 parallel reviewers (one per directory), completing in ~1/3 the time of sequential review. ## When to Use - Reviewing multiple independent modules - Pre-merge comprehensive codebase review - Analyzing different areas of a large PR - Comparing implementation patterns across directories
Add tests for recently changed files or specified code
Analyzes codebases to understand structure, tech stack, patterns, and conventions. Use when onboarding to a new project, exploring unfamiliar code, or when asked "how does this work?" or "what's the architecture?
System design and architecture planning mode. Focuses on high-level design, trade-offs, and technical decisions before implementation.
Explore the repository with 10 parallel subagents to create comprehensive documentation. Creates CODEBASE.md with full architecture analysis.
Expert code review specialist. Use PROACTIVELY after writing or modifying code, before commits, when asked to review changes, PR review, code quality check, lint, or standards audit. Focuses on quality, security, performance, and maintainability.
Simplifies code after implementation. Reviews recent changes and suggests/applies simplifications while preserving behavior.
Create a conventional commit with auto-generated message
Commit staged changes, push to remote, and create a pull request