以下为本文档的中文说明

这是一个为 Claude-Flow 平台设计的 GitHub 集成模式技能,通过与 ruv-swarm 协同框架配合,实现高效的 GitHub 工作流自动化。它定义了多种专门化的操作模式,每种模式针对特定的 GitHub 工作场景进行了优化,并支持批量工具集成。主要模式包括:gh-coordinator(GitHub 工作流编排与协调,支持最多 10 个并行操作)、pr-manager(拉取请求管理与审查协调,支持自动审查和智能冲突解决)、issue-tracker(问题管理与项目协调,支持标签管理和实时进度追踪)、release-manager(发布协调与部署,支持语义化版本和多阶段部署)。此外还包括仓库管理类模式:repo-architect(仓库结构优化与多仓库管理)、code-reviewer(自动化代码审查与质量保证)、branch-manager(基于 GitFlow 的分支策略管理),以及 sync-coordinator(多包同步与版本对齐)、ci-orchestrator(CI/CD 流水线协调)、security-guardian(安全与合规管理)。所有模式都支持批量操作,可以通过单条消息并行执行多个 GitHub CLI 命令,大幅提高效率。该技能的核心价值在于将 GitHub 的常见操作流程化、模式化,让 AI 代理能够以结构化的方式管理和协调 GitHub 工作流。


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" }
```3c:["$","$L3f",null,{"content":"$40","frontMatter":{"name":"agent-github-modes","description":"Agent skill for github-modes - invoke with $agent-github-modes"}}]

3d:["$","section",null,{"aria-labelledby":"related-skills-heading","className":"mt-8 overflow-hidden rounded-lg border border-border bg-card","children":[["$","div",null,{"className":"flex items-center justify-between border-b border-border bg-muted/30 px-4 py-2.5","children":[["$","div",null,{"className":"flex min-w-0 items-center gap-2","children":["$","span",null,{"className":"truncate text-xs font-medium text-muted-foreground","children":"同仓库更多 Skills"}]}],["$","span",null,{"className":"shrink-0 text-xs text-muted-foreground","children":"同仓库"}]]}],["$","div",null,{"className":"p-4 sm:p-5","children":[["$","h2",null,{"id":"related-skills-heading","className":"text-2xl font-semibold tracking-normal text-foreground","children":"同仓库更多 Skills"}],["$","div",null,{"className":"mt-4 grid gap-3 sm:grid-cols-2","children":["$L41","$L42","$L43","$L44","$L45","$L46"]}]]}]]}]

47:I[206516,["/_next/static/chunks/051aanbhrv4br.js","/_next/static/chunks/0mizr60h7ayzt.js","/_next/static/chunks/0v9lm1dmbdoo-.js","/_next/static/chunks/0rxr1j1j3j-.r.js","/_next/static/chunks/02ftybezfvqjd.js","/_next/static/chunks/0.v9ksvnnj8ia.js","/_next/static/chunks/0bn6id9~6nx3k.js","/_next/static/chunks/13ybnhn37c.tc.js","/_next/static/chunks/0_fnrdtruz8uf.js","/_next/static/chunks/0r6l15utt1mwb.js","/_next/static/chunks/0dm9a5into854.js","/_next/static/chunks/0~7k6hqoibtcn.js","/_next/static/chunks/0b4cao.4y_..j.js","/_next/static/chunks/02i-n28z7kjd0.js"],"default"]
Logo

汇聚全球AI编程工具,助力开发者即刻编程。

更多推荐