name: github-modes
description: Comprehensive GitHub integration modes for workflow orchestration, PR management, and repository coordination with batch optimization
tools: mcp__claude-flow__swarm_init, mcp__claude-flow__agent_spawn, mcp__claude-flow__task_orchestrate, Bash, TodoWrite, Read, Write
color: purple
type: development
capabilities:
- GitHub workflow orchestration
- Pull request management and review
- Issue tracking and coordination
- Release management and deployment
- Repository architecture and organization
- CI/CD pipeline coordination
priority: medium
hooks:
pre: |
echo "Starting github-modes..."
echo "Initializing GitHub workflow coordination"
gh auth status || (echo "GitHub CLI authentication required" && exit 1)
git status > $dev$null || (echo "Not in a git repository" && exit 1)
post: |
echo "Completed github-modes"
echo "GitHub operations synchronized"
echo "Workflow coordination finalized"
GitHub Integration Modes
Overview
This document describes all GitHub integration modes available in Claude-Flow with ruv-swarm coordination. Each mode is optimized for specific GitHub workflows and includes batch tool integration for maximum efficiency.
GitHub Workflow Modes
gh-coordinator
GitHub workflow orchestration and coordination
- Coordination Mode: Hierarchical
- Max Parallel Operations: 10
- Batch Optimized: Yes
- Tools: gh CLI commands, TodoWrite, TodoRead, Task, Memory, Bash
- Usage:
$github gh-coordinator <GitHub workflow description>
- Best For: Complex GitHub workflows, multi-repo coordination
pr-manager
Pull request management and review coordination
- Review Mode: Automated
- Multi-reviewer: Yes
- Conflict Resolution: Intelligent
- Tools: gh pr create, gh pr view, gh pr review, gh pr merge, TodoWrite, Task
- Usage:
$github pr-manager <PR management task>
- Best For: PR reviews, merge coordination, conflict resolution
issue-tracker
Issue management and project coordination
- Issue Workflow: Automated
- Label Management: Smart
- Progress Tracking: Real-time
- Tools: gh issue create, gh issue edit, gh issue comment, gh issue list, TodoWrite
- Usage:
$github issue-tracker <issue management task>
- Best For: Project management, issue coordination, progress tracking
release-manager
Release coordination and deployment
- Release Pipeline: Automated
- Versioning: Semantic
- Deployment: Multi-stage
- Tools: gh pr create, gh pr merge, gh release create, Bash, TodoWrite
- Usage:
$github release-manager <release task>
- Best For: Release management, version coordination, deployment pipelines
Repository Management Modes
repo-architect
Repository structure and organization
- Structure Optimization: Yes
- Multi-repo: Support
- Template Management: Advanced
- Tools: gh repo create, gh repo clone, git commands, Write, Read, Bash
- Usage:
$github repo-architect <repository management task>
- Best For: Repository setup, structure optimization, multi-repo management
code-reviewer
Automated code review and quality assurance
- Review Quality: Deep
- Security Analysis: Yes
- Performance Check: Automated
- Tools: gh pr view --json files, gh pr review, gh pr comment, Read, Write
- Usage:
$github code-reviewer <review task>
- Best For: Code quality, security reviews, performance analysis
branch-manager
Branch management and workflow coordination
- Branch Strategy: GitFlow
- Merge Strategy: Intelligent
- Conflict Prevention: Proactive
- Tools: gh api (for branch operations), git commands, Bash
- Usage:
$github branch-manager <branch management task>
- Best For: Branch coordination, merge strategies, workflow management
Integration Commands
sync-coordinator
Multi-package synchronization
- Package Sync: Intelligent
- Version Alignment: Automatic
- Dependency Resolution: Advanced
- Tools: git commands, gh pr create, Read, Write, Bash
- Usage:
$github sync-coordinator <sync task>
- Best For: Package synchronization, version management, dependency updates
ci-orchestrator
CI/CD pipeline coordination
- Pipeline Management: Advanced
- Test Coordination: Parallel
- Deployment: Automated
- Tools: gh pr checks, gh workflow list, gh run list, Bash, TodoWrite, Task
- Usage:
$github ci-orchestrator <CI/CD task>
- Best For: CI/CD coordination, test management, deployment automation
security-guardian
Security and compliance management
- Security Scan: Automated
- Compliance Check: Continuous
- Vulnerability Management: Proactive
- Tools: gh search code, gh issue create, gh secret list, Read, Write
- Usage:
$github security-guardian <security task>
- Best For: Security audits, compliance checks, vulnerability management
Usage Examples
Creating a coordinated pull request workflow:
$github pr-manager "Review and merge feature$new-integration branch with automated testing and multi-reviewer coordination"
Managing repository synchronization:
$github sync-coordinator "Synchronize claude-code-flow and ruv-swarm packages, align versions, and update cross-dependencies"
Setting up automated issue tracking:
$github issue-tracker "Create and manage integration issues with automated progress tracking and swarm coordination"
Batch Operations
All GitHub modes support batch operations for maximum efficiency:
Parallel GitHub Operations Example:
[Single Message with BatchTool]:
Bash("gh issue create --title 'Feature A' --body '...'")
Bash("gh issue create --title 'Feature B' --body '...'")
Bash("gh pr create --title 'PR 1' --head 'feature-a' --base 'main'")
Bash("gh pr create --title 'PR 2' --head 'feature-b' --base 'main'")
TodoWrite { todos: [todo1, todo2, todo3] }
Bash("git checkout main && git pull")
Integration with ruv-swarm
All GitHub modes can be enhanced with ruv-swarm coordination:
// Initialize swarm for GitHub workflow
mcp__claude-flow__swarm_init { topology: "hierarchical", maxAgents: 5 }
mcp__claude-flow__agent_spawn { type: "coordinator", name: "GitHub Coordinator" }
mcp__claude-flow__agent_spawn { type: "reviewer", name: "Code Reviewer" }
mcp__claude-flow__agent_spawn { type: "tester", name: "QA Agent" }
// Execute GitHub workflow with coordination
mcp__claude-flow__task_orchestrate { task: "GitHub workflow", strategy: "parallel" }
Source: ruvnet/ruflo → .agents/skills/agent-github-modes/SKILL.md
1---2name: agent-github-modes3description: Agent skill for github-modes - invoke with $agent-github-modes4---567---8name: github-modes9description: Comprehensive GitHub integration modes for workflow orchestration, PR management, and repository coordination with batch optimization10tools: mcp__claude-flow__swarm_init, mcp__claude-flow__agent_spawn, mcp__claude-flow__task_orchestrate, Bash, TodoWrite, Read, Write11color: purple12type: development13capabilities:14 - GitHub workflow orchestration15 - Pull request management and review16 - Issue tracking and coordination17 - Release management and deployment18 - Repository architecture and organization19 - CI/CD pipeline coordination20priority: medium21hooks:22 pre: |23 echo "Starting github-modes..."24 echo "Initializing GitHub workflow coordination"25 gh auth status || (echo "GitHub CLI authentication required" && exit 1)26 git status > $dev$null || (echo "Not in a git repository" && exit 1)27 post: |28 echo "Completed github-modes"29 echo "GitHub operations synchronized"30 echo "Workflow coordination finalized"31---3233# GitHub Integration Modes3435## Overview36This document describes all GitHub integration modes available in Claude-Flow with ruv-swarm coordination. Each mode is optimized for specific GitHub workflows and includes batch tool integration for maximum efficiency.3738## GitHub Workflow Modes3940### gh-coordinator41**GitHub workflow orchestration and coordination**42- **Coordination Mode**: Hierarchical43- **Max Parallel Operations**: 1044- **Batch Optimized**: Yes45- **Tools**: gh CLI commands, TodoWrite, TodoRead, Task, Memory, Bash46- **Usage**: `$github gh-coordinator <GitHub workflow description>`47- **Best For**: Complex GitHub workflows, multi-repo coordination4849### pr-manager50**Pull request management and review coordination**51- **Review Mode**: Automated52- **Multi-reviewer**: Yes53- **Conflict Resolution**: Intelligent54- **Tools**: gh pr create, gh pr view, gh pr review, gh pr merge, TodoWrite, Task55- **Usage**: `$github pr-manager <PR management task>`56- **Best For**: PR reviews, merge coordination, conflict resolution5758### issue-tracker59**Issue management and project coordination**60- **Issue Workflow**: Automated61- **Label Management**: Smart62- **Progress Tracking**: Real-time63- **Tools**: gh issue create, gh issue edit, gh issue comment, gh issue list, TodoWrite64- **Usage**: `$github issue-tracker <issue management task>`65- **Best For**: Project management, issue coordination, progress tracking6667### release-manager68**Release coordination and deployment**69- **Release Pipeline**: Automated70- **Versioning**: Semantic71- **Deployment**: Multi-stage72- **Tools**: gh pr create, gh pr merge, gh release create, Bash, TodoWrite73- **Usage**: `$github release-manager <release task>`74- **Best For**: Release management, version coordination, deployment pipelines7576## Repository Management Modes7778### repo-architect79**Repository structure and organization**80- **Structure Optimization**: Yes81- **Multi-repo**: Support82- **Template Management**: Advanced83- **Tools**: gh repo create, gh repo clone, git commands, Write, Read, Bash84- **Usage**: `$github repo-architect <repository management task>`85- **Best For**: Repository setup, structure optimization, multi-repo management8687### code-reviewer88**Automated code review and quality assurance**89- **Review Quality**: Deep90- **Security Analysis**: Yes91- **Performance Check**: Automated92- **Tools**: gh pr view --json files, gh pr review, gh pr comment, Read, Write93- **Usage**: `$github code-reviewer <review task>`94- **Best For**: Code quality, security reviews, performance analysis9596### branch-manager97**Branch management and workflow coordination**98- **Branch Strategy**: GitFlow99- **Merge Strategy**: Intelligent100- **Conflict Prevention**: Proactive101- **Tools**: gh api (for branch operations), git commands, Bash102- **Usage**: `$github branch-manager <branch management task>`103- **Best For**: Branch coordination, merge strategies, workflow management104105## Integration Commands106107### sync-coordinator108**Multi-package synchronization**109- **Package Sync**: Intelligent110- **Version Alignment**: Automatic111- **Dependency Resolution**: Advanced112- **Tools**: git commands, gh pr create, Read, Write, Bash113- **Usage**: `$github sync-coordinator <sync task>`114- **Best For**: Package synchronization, version management, dependency updates115116### ci-orchestrator117**CI/CD pipeline coordination**118- **Pipeline Management**: Advanced119- **Test Coordination**: Parallel120- **Deployment**: Automated121- **Tools**: gh pr checks, gh workflow list, gh run list, Bash, TodoWrite, Task122- **Usage**: `$github ci-orchestrator <CI/CD task>`123- **Best For**: CI/CD coordination, test management, deployment automation124125### security-guardian126**Security and compliance management**127- **Security Scan**: Automated128- **Compliance Check**: Continuous129- **Vulnerability Management**: Proactive130- **Tools**: gh search code, gh issue create, gh secret list, Read, Write131- **Usage**: `$github security-guardian <security task>`132- **Best For**: Security audits, compliance checks, vulnerability management133134## Usage Examples135136### Creating a coordinated pull request workflow:137```bash138$github pr-manager "Review and merge feature$new-integration branch with automated testing and multi-reviewer coordination"139```140141### Managing repository synchronization:142```bash143$github sync-coordinator "Synchronize claude-code-flow and ruv-swarm packages, align versions, and update cross-dependencies"144```145146### Setting up automated issue tracking:147```bash148$github issue-tracker "Create and manage integration issues with automated progress tracking and swarm coordination"149```150151## Batch Operations152153All GitHub modes support batch operations for maximum efficiency:154155### Parallel GitHub Operations Example:156```javascript157[Single Message with BatchTool]:158 Bash("gh issue create --title 'Feature A' --body '...'")159 Bash("gh issue create --title 'Feature B' --body '...'")160 Bash("gh pr create --title 'PR 1' --head 'feature-a' --base 'main'")161 Bash("gh pr create --title 'PR 2' --head 'feature-b' --base 'main'")162 TodoWrite { todos: [todo1, todo2, todo3] }163 Bash("git checkout main && git pull")164```165166## Integration with ruv-swarm167168All GitHub modes can be enhanced with ruv-swarm coordination:169170```javascript171// Initialize swarm for GitHub workflow172mcp__claude-flow__swarm_init { topology: "hierarchical", maxAgents: 5 }173mcp__claude-flow__agent_spawn { type: "coordinator", name: "GitHub Coordinator" }174mcp__claude-flow__agent_spawn { type: "reviewer", name: "Code Reviewer" }175mcp__claude-flow__agent_spawn { type: "tester", name: "QA Agent" }176177// Execute GitHub workflow with coordination178mcp__claude-flow__task_orchestrate { task: "GitHub workflow", strategy: "parallel" }179```180181---182183**Source:** [`ruvnet/ruflo`](https://github.com/ruvnet/ruflo) → `.agents/skills/agent-github-modes/SKILL.md`