Skip to content
CommandImported

team-review

Launch a multi-reviewer parallel code review with specialized review dimensions

Imported description, not reviewed yet

This item came from its original repository and was only scanned automatically; no editor has written an Arabic description for it yet. Read its content yourself before you rely on it. This page is not indexed by search engines until it is reviewed.

Download

Files: 1 · Size: 3.9 KB

Download the ZIP

The file carries the license of the original source.

Install

After downloading, run the command in a terminal. unzip asks before it replaces any file that is there.

  • For this project

    It goes in: .claude/commands/

    mkdir -p .claude/commands && unzip ~/Downloads/agent-teams-team-review.zip -d .claude/commands

  • For your account on the whole machine

    It goes in: ~/.claude/commands/

    mkdir -p ~/.claude/commands && unzip ~/Downloads/agent-teams-team-review.zip -d ~/.claude/commands

Instructions

Team Review

Orchestrate a multi-reviewer parallel code review where each reviewer focuses on a specific quality dimension. Produces a consolidated, deduplicated report organized by severity.

Pre-flight Checks

  1. Verify CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 is set
  2. Parse $ARGUMENTS:
    • <target>: file path, directory, git diff range (e.g., main...HEAD), or PR number (e.g., #123)
    • --reviewers: comma-separated dimensions (default: security,performance,architecture)
    • --base-branch: base branch for diff comparison (default: main)

Phase 1: Target Resolution

  1. Determine target type:
    • File/Directory: Use as-is for review scope
    • Git diff range: Use Bash to run git diff {range} --name-only to get changed files
    • PR number: Use Bash to run gh pr diff {number} --name-only to get changed files
  2. Collect the full diff content for distribution to reviewers
  3. Display review scope to user: "{N} files to review across {M} dimensions"

Phase 2: Team Spawn

  1. Use TeamCreate tool to create the team with team_name: "review-{timestamp}" and description
  2. For each requested dimension, use Agent tool to spawn a teammate:
    • name: {dimension}-reviewer (e.g., "security-reviewer")
    • subagent_type: "agent-teams:team-reviewer"
    • prompt: Include the dimension assignment, target files, and diff content
  3. Use TaskCreate for each reviewer's task:
    • Subject: "Review {target} for {dimension} issues"
    • Description: Include file list, diff content, and dimension-specific checklist

Phase 3: Monitor and Collect

  1. Wait for all review tasks to complete (check TaskList periodically)
  2. As each reviewer completes, collect their structured findings
  3. Track progress: "{completed}/{total} reviews complete"

Phase 4: Consolidation

  1. Deduplicate: Merge findings that reference the same file:line location
  2. Resolve conflicts: If reviewers disagree on severity, use the higher rating
  3. Organize by severity: Group findings as Critical, High, Medium, Low
  4. Cross-reference: Note findings that appear in multiple dimensions

Phase 5: Report and Cleanup

  1. Present consolidated report:

    ## Code Review Report: {target}
    
    Reviewed by: {dimensions}
    Files reviewed: {count}
    
    ### Critical ({count})
    [findings...]
    
    ### High ({count})
    [findings...]
    
    ### Medium ({count})
    [findings...]
    
    ### Low ({count})
    [findings...]
    
    ### Summary
    Total findings: {count} (Critical: N, High: N, Medium: N, Low: N)
    
  2. Send shutdown_request to all reviewers

  3. Call TeamDelete to remove team resources

Files

  • LICENSE1 KB
  • team-review.md2.8 KB

Comments (0)

No comments yet. Be the first.

Sign in to comment. Commenting comes at level 1 (Member).

Report

Similar items

  • CommandImported

    architecture-review

    Comprehensive architecture review with design patterns analysis and improvement recommendations

    MITFiles: 1

  • CommandImported

    architecture-scenario-explorer

    Explore architectural decisions through systematic scenario analysis with trade-off evaluation and future-proofing assessment.

    MITFiles: 1

  • CommandImported

    block-no-verify

    Set up PreToolUse hook to block --no-verify and other git bypass flags in Claude Code projects

    MITFiles: 1

  • CommandImported

    c4-architecture

    Generate comprehensive C4 architecture documentation (Context, Container, Component, Code) for a codebase using bottom-up analysis and four coordinated C4 agents.

    MITFiles: 1

  • CommandImported

    clean_gone

    Cleans up all git branches marked as [gone] (branches that have been deleted on the remote but still exist locally), including removing associated worktrees.

    Apache-2.0Files: 1

  • CommandImported

    clean-branches

    Clean up merged and stale git branches

    MITFiles: 1