agent-github-modes

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

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"


name: github-modes description: 用于工作流编排、PR管理和仓库协调的全面GitHub集成模式,支持批量优化 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工作流编排
  • 拉取请求(PR)管理与评审
  • 问题跟踪与协调
  • 发布管理与部署
  • 仓库架构与组织
  • CI/CD流水线协调 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

GitHub集成模式

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.
本文档介绍了Claude-Flow中所有支持ruv-swarm协调的GitHub集成模式。每种模式都针对特定的GitHub工作流进行了优化,并集成了批量工具以实现最高效率。

GitHub Workflow Modes

GitHub工作流模式

gh-coordinator

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
GitHub工作流编排与协调
  • 协调模式: 层级式
  • 最大并行操作数: 10
  • 批量优化: 是
  • 工具: gh CLI命令, TodoWrite, TodoRead, Task, Memory, Bash
  • 用法:
    $github gh-coordinator <GitHub工作流描述>
  • 最佳适用场景: 复杂GitHub工作流、多仓库协调

pr-manager

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
拉取请求(PR)管理与评审协调
  • 评审模式: 自动化
  • 多评审者支持: 是
  • 冲突解决: 智能型
  • 工具: gh pr create, gh pr view, gh pr review, gh pr merge, TodoWrite, Task
  • 用法:
    $github pr-manager <PR管理任务>
  • 最佳适用场景: PR评审、合并协调、冲突解决

issue-tracker

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
问题管理与项目协调
  • 问题工作流: 自动化
  • 标签管理: 智能型
  • 进度跟踪: 实时
  • 工具: gh issue create, gh issue edit, gh issue comment, gh issue list, TodoWrite
  • 用法:
    $github issue-tracker <问题管理任务>
  • 最佳适用场景: 项目管理、问题协调、进度跟踪

release-manager

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
发布协调与部署
  • 发布流水线: 自动化
  • 版本控制: 语义化
  • 部署: 多阶段
  • 工具: gh pr create, gh pr merge, gh release create, Bash, TodoWrite
  • 用法:
    $github release-manager <发布任务>
  • 最佳适用场景: 发布管理、版本协调、部署流水线

Repository Management Modes

仓库管理模式

repo-architect

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
仓库结构与组织
  • 结构优化: 支持
  • 多仓库: 支持
  • 模板管理: 进阶版
  • 工具: gh repo create, gh repo clone, git命令, Write, Read, Bash
  • 用法:
    $github repo-architect <仓库管理任务>
  • 最佳适用场景: 仓库搭建、结构优化、多仓库管理

code-reviewer

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
自动化代码评审与质量保障
  • 评审质量: 深度
  • 安全分析: 支持
  • 性能检查: 自动化
  • 工具: gh pr view --json files, gh pr review, gh pr comment, Read, Write
  • 用法:
    $github code-reviewer <评审任务>
  • 最佳适用场景: 代码质量、安全评审、性能分析

branch-manager

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
分支管理与工作流协调
  • 分支策略: GitFlow
  • 合并策略: 智能型
  • 冲突预防: 主动式
  • 工具: gh api (用于分支操作), git命令, Bash
  • 用法:
    $github branch-manager <分支管理任务>
  • 最佳适用场景: 分支协调、合并策略、工作流管理

Integration Commands

集成命令

sync-coordinator

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
多包同步
  • 包同步: 智能型
  • 版本对齐: 自动
  • 依赖解析: 进阶版
  • 工具: git命令, gh pr create, Read, Write, Bash
  • 用法:
    $github sync-coordinator <同步任务>
  • 最佳适用场景: 包同步、版本管理、依赖更新

ci-orchestrator

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
CI/CD流水线协调
  • 流水线管理: 进阶版
  • 测试协调: 并行
  • 部署: 自动化
  • 工具: gh pr checks, gh workflow list, gh run list, Bash, TodoWrite, Task
  • 用法:
    $github ci-orchestrator <CI/CD任务>
  • 最佳适用场景: CI/CD协调、测试管理、部署自动化

security-guardian

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
安全与合规管理
  • 安全扫描: 自动化
  • 合规检查: 持续
  • 漏洞管理: 主动式
  • 工具: gh search code, gh issue create, gh secret list, Read, Write
  • 用法:
    $github security-guardian <安全任务>
  • 最佳适用场景: 安全审计、合规检查、漏洞管理

Usage Examples

使用示例

Creating a coordinated pull request workflow:

创建协调式拉取请求工作流:

bash
$github pr-manager "Review and merge feature$new-integration branch with automated testing and multi-reviewer coordination"
bash
$github pr-manager "Review and merge feature$new-integration branch with automated testing and multi-reviewer coordination"

Managing repository synchronization:

管理仓库同步:

bash
$github sync-coordinator "Synchronize claude-code-flow and ruv-swarm packages, align versions, and update cross-dependencies"
bash
$github sync-coordinator "Synchronize claude-code-flow and ruv-swarm packages, align versions, and update cross-dependencies"

Setting up automated issue tracking:

设置自动化问题跟踪:

bash
$github issue-tracker "Create and manage integration issues with automated progress tracking and swarm coordination"
bash
$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:
所有GitHub模式都支持批量操作以实现最高效率:

Parallel GitHub Operations Example:

并行GitHub操作示例:

javascript
[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")
javascript
[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

与ruv-swarm集成

All GitHub modes can be enhanced with ruv-swarm coordination:
javascript
// 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" }
所有GitHub模式都可通过ruv-swarm协调增强功能:
javascript
// 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" }