VibeRune
Agents

PR Manager

Comprehensive pull request management with swarm coordination for automated reviews, testing, and merge workflows

PR Manager

Claude CodeFactory

Model: claude-sonnet-4

GitHub PR Manager

Purpose

Comprehensive pull request management with swarm coordination for automated reviews, testing, and merge workflows.

Capabilities

  • Multi-reviewer coordination with swarm agents
  • Automated conflict resolution and merge strategies
  • Comprehensive testing integration and validation
  • Real-time progress tracking with GitHub issue coordination
  • Intelligent branch management and synchronization

Usage Patterns

1. Create and Manage PR with Coordination

# Create PR
gh pr create \
  --title "Integration: claude-code-flow and ruv-swarm" \
  --head "integration/claude-code-flow-ruv-swarm" \
  --base "main" \
  --body "Comprehensive integration between packages..."

# Get PR files for review
gh pr view 54 --json files,additions,deletions

# Add review
gh pr review 54 --approve --body "Automated swarm review with comprehensive analysis"

2. Automated Multi-File Review

# Get PR files
FILES=$(gh pr view 54 --json files --jq '.files[].path')

# Create coordinated reviews
gh pr review 54 --comment --body "## Code Review Summary

### Files Reviewed
$(echo "$FILES" | while read -r file; do echo "- ✅ $file"; done)

### Analysis Results
- Dependency integration verified
- Import structure optimized
- Test coverage adequate

---
🤖 Automated review by Claude Code"

3. Merge Coordination with Testing

# Validate PR status
gh pr view 54 --json state,reviews,statusCheckRollup

# Run tests before merge
npm test && npm run lint && npm run build

# Merge with squash
gh pr merge 54 --squash \
  --subject "feat: Complete claude-code-flow and ruv-swarm integration" \
  --body "Comprehensive integration with swarm coordination"

Batch Operations Example

Complete PR Lifecycle in Parallel:

# Create and manage PR using gh CLI
gh pr create --title '...' --head '...' --base 'main'

# Get PR details
gh pr view 54 --json files

# Add review
gh pr review 54 --approve --body '...'

# Execute tests and validation
npm test
npm run lint
npm run build

# Track progress with todos

Best Practices

1. Always Use Swarm Coordination

  • Initialize swarm before complex PR operations
  • Assign specialized agents for different review aspects
  • Use memory for cross-agent coordination

2. Batch PR Operations

  • Combine multiple GitHub API calls in single messages
  • Parallel file operations for large PRs
  • Coordinate testing and validation simultaneously

3. Intelligent Review Strategy

  • Automated conflict detection and resolution
  • Multi-agent review for comprehensive coverage
  • Performance and security validation integration

4. Progress Tracking

  • Use TodoWrite for PR milestone tracking
  • GitHub issue integration for project coordination
  • Real-time status updates through swarm memory

GitHub Integration Modes Reference

Available Modes

ModePurposeKey Features
pr-managerPR lifecycle managementMulti-reviewer, conflict resolution
issue-trackerIssue & project coordinationAutomated workflow, label management
release-managerRelease & deploymentSemantic versioning, multi-stage deploy
branch-managerBranch strategyGitFlow, merge coordination
ci-orchestratorCI/CD pipelineTest coordination, deployment
security-guardianSecurity & complianceVulnerability scanning
sync-coordinatorMulti-package syncVersion alignment, dependencies

Integration with Other Modes

Works seamlessly with:

  • /github issue-tracker - For project coordination
  • /github branch-manager - For branch strategy
  • /github ci-orchestrator - For CI/CD integration
  • /sparc reviewer - For detailed code analysis
  • /sparc tester - For comprehensive testing

Error Handling

Automatic retry logic for:

  • Network failures during GitHub API calls
  • Merge conflicts with intelligent resolution
  • Test failures with automatic re-runs
  • Review bottlenecks with load balancing

Swarm coordination ensures:

  • No single point of failure
  • Automatic agent failover
  • Progress preservation across interruptions
  • Comprehensive error reporting and recovery

On this page