# Agent Pr Manager > Gestión integral de pull requests con coordinación de swarm para revisiones automatizadas, testing y flujos de merge. Fuente: https://skillsagentes.com/skills/ruvnet/ruflo/agent-pr-manager Markdown: https://skillsagentes.com/skills/ruvnet/ruflo/agent-pr-manager.md Repositorio: https://github.com/ruvnet/ruflo Autor: ruvnet Licencia: MIT Actualizado: hace 6 meses Coste de contexto: 15 tok instalada, 1.6k tok al activarse, 1.6k tok con todos los archivos del bundle Bundle: 1 archivo, 6 KB Permisos que pide: ninguno declarado ## Instalación Un skill son archivos markdown: los mismos archivos valen para cualquier agente y lo único que cambia es el directorio de destino, es decir la bandera `--agent`. Añade `-g` para instalarlo en todos los proyectos de la máquina. ```bash # Claude Code npx -y skills add ruvnet/ruflo --skill agent-pr-manager --agent claude-code # Cursor npx -y skills add ruvnet/ruflo --skill agent-pr-manager --agent cursor # Codex npx -y skills add ruvnet/ruflo --skill agent-pr-manager --agent codex # Gemini CLI npx -y skills add ruvnet/ruflo --skill agent-pr-manager --agent gemini # Windsurf npx -y skills add ruvnet/ruflo --skill agent-pr-manager --agent windsurf # Cline npx -y skills add ruvnet/ruflo --skill agent-pr-manager --agent cline ``` ## Qué hace - Inicializa un swarm de agentes (reviewer, tester, coordinator) para revisar pull requests en paralelo. - Crea PRs, obtiene sus archivos y publica reviews con comentarios línea por línea vía la API de GitHub. - Ejecuta tests, lint y build antes de aprobar o mergear. - Mergea PRs con la estrategia indicada (p.ej. squash) y guarda el resultado en memoria compartida. - Reintenta automáticamente ante fallos de red, conflictos de merge o tests fallidos. ## Cuándo usarla - Cuando hay que gestionar el ciclo de vida completo de un pull request: revisión, testing y merge. - Cuando se necesita coordinar varios agentes revisores en un PR grande con muchos archivos. - Cuando hace falta automatizar la creación, revisión y merge de PRs en GitHub. ## Qué la activa - "Gestiona el pull request 54: revisa, testea y mergea si todo pasa" - "Crea un swarm de revisores para este PR" - "Aprueba y mergea el PR con squash una vez que pasen los tests" ## Antes de instalar - Requiere GitHub CLI autenticado (gh auth status) y herramientas MCP mcp__claude-flow__* y mcp__github__*. ## Archivos - SKILL.md — 6 KB ## SKILL.md Reproducido tal cual desde ruvnet/ruflo bajo MIT. Esta sección es el documento original y está en inglés. --- name: pr-manager description: Comprehensive pull request management with swarm coordination for automated reviews, testing, and merge workflows type: development color: "#4ECDC4" tools: - Bash - Read - Write - Edit - Glob - Grep - LS - TodoWrite - mcp__claude-flow__swarm_init - mcp__claude-flow__agent_spawn - mcp__claude-flow__task_orchestrate - mcp__claude-flow__swarm_status - mcp__claude-flow__memory_usage - mcp__claude-flow__github_pr_manage - mcp__claude-flow__github_code_review - mcp__claude-flow__github_metrics hooks: pre: - "gh auth status || (echo 'GitHub CLI not authenticated' && exit 1)" - "git status --porcelain" - "gh pr list --state open --limit 1 >$dev$null || echo 'No open PRs'" - "npm test --silent || echo 'Tests may need attention'" post: - "gh pr status || echo 'No active PR in current branch'" - "git branch --show-current" - "gh pr checks || echo 'No PR checks available'" - "git log --oneline -3" --- # 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 Swarm Coordination ```javascript // Initialize review swarm mcp__claude-flow__swarm_init { topology: "mesh", maxAgents: 4 } mcp__claude-flow__agent_spawn { type: "reviewer", name: "Code Quality Reviewer" } mcp__claude-flow__agent_spawn { type: "tester", name: "Testing Agent" } mcp__claude-flow__agent_spawn { type: "coordinator", name: "PR Coordinator" } // Create PR and orchestrate review mcp__github__create_pull_request { owner: "ruvnet", repo: "ruv-FANN", title: "Integration: claude-code-flow and ruv-swarm", head: "integration$claude-code-flow-ruv-swarm", base: "main", body: "Comprehensive integration between packages..." } // Orchestrate review process mcp__claude-flow__task_orchestrate { task: "Complete PR review with testing and validation", strategy: "parallel", priority: "high" } ``` ### 2. Automated Multi-File Review ```javascript // Get PR files and create parallel review tasks mcp__github__get_pull_request_files { owner: "ruvnet", repo: "ruv-FANN", pull_number: 54 } // Create coordinated reviews mcp__github__create_pull_request_review { owner: "ruvnet", repo: "ruv-FANN", pull_number: 54, body: "Automated swarm review with comprehensive analysis", event: "APPROVE", comments: [ { path: "package.json", line: 78, body: "Dependency integration verified" }, { path: "src$index.js", line: 45, body: "Import structure optimized" } ] } ``` ### 3. Merge Coordination with Testing ```javascript // Validate PR status and merge when ready mcp__github__get_pull_request_status { owner: "ruvnet", repo: "ruv-FANN", pull_number: 54 } // Merge with coordination mcp__github__merge_pull_request { owner: "ruvnet", repo: "ruv-FANN", pull_number: 54, merge_method: "squash", commit_title: "feat: Complete claude-code-flow and ruv-swarm integration", commit_message: "Comprehensive integration with swarm coordination" } // Post-merge coordination mcp__claude-flow__memory_usage { action: "store", key: "pr/54$merged", value: { timestamp: Date.now(), status: "success" } } ``` ## Batch Operations Example ### Complete PR Lifecycle in Parallel: ```javascript [Single Message - Complete PR Management]: // Initialize coordination mcp__claude-flow__swarm_init { topology: "hierarchical", maxAgents: 5 } mcp__claude-flow__agent_spawn { type: "reviewer", name: "Senior Reviewer" } mcp__claude-flow__agent_spawn { type: "tester", name: "QA Engineer" } mcp__claude-flow__agent_spawn { type: "coordinator", name: "Merge Coordinator" } // Create and manage PR using gh CLI Bash("gh pr create --repo :owner/:repo --title '...' --head '...' --base 'main'") Bash("gh pr view 54 --repo :owner/:repo --json files") Bash("gh pr review 54 --repo :owner/:repo --approve --body '...'") // Execute tests and validation Bash("npm test") Bash("npm run lint") Bash("npm run build") // Track progress TodoWrite { todos: [ { id: "review", content: "Complete code review", status: "completed" }, { id: "test", content: "Run test suite", status: "completed" }, { id: "merge", content: "Merge when ready", status: "pending" } ]} ``` ## 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 ## 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 ## Dónde encaja - Categoría: [Herramientas para desarrolladores](https://skillsagentes.com/categorias/herramientas-desarrollo.md) — Skills que cambian cómo tu agente escribe, revisa y despliega código. - Creador: [ruvnet](https://skillsagentes.com/creators/ruvnet.md) — 275 skills en el directorio - [Todas las skills](https://skillsagentes.com/skills.md) - [Ranking de instalaciones](https://skillsagentes.com/ranking.md) ## Otras skills del mismo repositorio - [Harness Gepa](https://skillsagentes.com/skills/ruvnet/ruflo/harness-gepa.md): Inspecciona y audita genomas GEPA: carga y valida un genoma, renderiza el system prompt que compila, o clasifica los modos de fallo de una transcripción de ejecución. - [Deepseek Reason](https://skillsagentes.com/skills/ruvnet/ruflo/deepseek-reason.md): Completion en modo razonamiento contra deepseek-reasoner (R1) de DeepSeek. Devuelve el chain-of-thought por separado de la respuesta final. Lee DEEPSEEK_API_KEY y degrada si falta o la API no responde. - [Deepseek Chat](https://skillsagentes.com/skills/ruvnet/ruflo/deepseek-chat.md): Completion de un solo turno contra el modelo deepseek-chat de DeepSeek vía /v1/chat/completions. Lee DEEPSEEK_API_KEY y degrada con status:degraded si falta o la API no responde. Para tareas sin razonamiento. - [Adr Index](https://skillsagentes.com/skills/ruvnet/ruflo/adr-index.md): Construye o reconstruye el índice de ADRs y su grafo de dependencias ejecutando scripts/import.mjs, en vez de cientos de llamadas MCP. - [Agntcy Status](https://skillsagentes.com/skills/ruvnet/ruflo/agntcy-status.md): Muestra el estado de la integración AGNTCY/SLIM/CASA: si los paquetes están instalados, qué transporte está activo y si el enforcement de CASA está habilitado. --- Skills Agentes · [Índice de páginas en markdown](https://skillsagentes.com/sitemap.md) · [Inicio](https://skillsagentes.com/index.md)