$npx -y skills add spencermarx/open-code-review --skill github-workflow-automationAdvanced GitHub Actions workflow automation with AI swarm coordination, intelligent CI/CD pipelines, and comprehensive repository management
| 1 | # GitHub Workflow Automation Skill |
| 2 | |
| 3 | ## Overview |
| 4 | |
| 5 | This skill provides comprehensive GitHub Actions automation with AI swarm coordination. It integrates intelligent CI/CD pipelines, workflow orchestration, and repository management to create self-organizing, adaptive GitHub workflows. |
| 6 | |
| 7 | ## Quick Start |
| 8 | |
| 9 | <details> |
| 10 | <summary>💡 Basic Usage - Click to expand</summary> |
| 11 | |
| 12 | ### Initialize GitHub Workflow Automation |
| 13 | ```bash |
| 14 | # Start with a simple workflow |
| 15 | npx ruv-swarm actions generate-workflow \ |
| 16 | --analyze-codebase \ |
| 17 | --detect-languages \ |
| 18 | --create-optimal-pipeline |
| 19 | ``` |
| 20 | |
| 21 | ### Common Commands |
| 22 | ```bash |
| 23 | # Optimize existing workflow |
| 24 | npx ruv-swarm actions optimize \ |
| 25 | --workflow ".github/workflows/ci.yml" \ |
| 26 | --suggest-parallelization |
| 27 | |
| 28 | # Analyze failed runs |
| 29 | gh run view <run-id> --json jobs,conclusion | \ |
| 30 | npx ruv-swarm actions analyze-failure \ |
| 31 | --suggest-fixes |
| 32 | ``` |
| 33 | |
| 34 | </details> |
| 35 | |
| 36 | ## Core Capabilities |
| 37 | |
| 38 | ### 🤖 Swarm-Powered GitHub Modes |
| 39 | |
| 40 | <details> |
| 41 | <summary>Available GitHub Integration Modes</summary> |
| 42 | |
| 43 | #### 1. gh-coordinator |
| 44 | **GitHub workflow orchestration and coordination** |
| 45 | - **Coordination Mode**: Hierarchical |
| 46 | - **Max Parallel Operations**: 10 |
| 47 | - **Batch Optimized**: Yes |
| 48 | - **Best For**: Complex GitHub workflows, multi-repo coordination |
| 49 | |
| 50 | ```bash |
| 51 | # Usage example |
| 52 | npx claude-flow@alpha github gh-coordinator \ |
| 53 | "Coordinate multi-repo release across 5 repositories" |
| 54 | ``` |
| 55 | |
| 56 | #### 2. pr-manager |
| 57 | **Pull request management and review coordination** |
| 58 | - **Review Mode**: Automated |
| 59 | - **Multi-reviewer**: Yes |
| 60 | - **Conflict Resolution**: Intelligent |
| 61 | |
| 62 | ```bash |
| 63 | # Create PR with automated review |
| 64 | gh pr create --title "Feature: New capability" \ |
| 65 | --body "Automated PR with swarm review" | \ |
| 66 | npx ruv-swarm actions pr-validate \ |
| 67 | --spawn-agents "linter,tester,security,docs" |
| 68 | ``` |
| 69 | |
| 70 | #### 3. issue-tracker |
| 71 | **Issue management and project coordination** |
| 72 | - **Issue Workflow**: Automated |
| 73 | - **Label Management**: Smart |
| 74 | - **Progress Tracking**: Real-time |
| 75 | |
| 76 | ```bash |
| 77 | # Create coordinated issue workflow |
| 78 | npx claude-flow@alpha github issue-tracker \ |
| 79 | "Manage sprint issues with automated tracking" |
| 80 | ``` |
| 81 | |
| 82 | #### 4. release-manager |
| 83 | **Release coordination and deployment** |
| 84 | - **Release Pipeline**: Automated |
| 85 | - **Versioning**: Semantic |
| 86 | - **Deployment**: Multi-stage |
| 87 | |
| 88 | ```bash |
| 89 | # Automated release management |
| 90 | npx claude-flow@alpha github release-manager \ |
| 91 | "Create v2.0.0 release with changelog and deployment" |
| 92 | ``` |
| 93 | |
| 94 | #### 5. repo-architect |
| 95 | **Repository structure and organization** |
| 96 | - **Structure Optimization**: Yes |
| 97 | - **Multi-repo Support**: Yes |
| 98 | - **Template Management**: Advanced |
| 99 | |
| 100 | ```bash |
| 101 | # Optimize repository structure |
| 102 | npx claude-flow@alpha github repo-architect \ |
| 103 | "Restructure monorepo with optimal organization" |
| 104 | ``` |
| 105 | |
| 106 | #### 6. code-reviewer |
| 107 | **Automated code review and quality assurance** |
| 108 | - **Review Quality**: Deep |
| 109 | - **Security Analysis**: Yes |
| 110 | - **Performance Check**: Automated |
| 111 | |
| 112 | ```bash |
| 113 | # Automated code review |
| 114 | gh pr view 123 --json files | \ |
| 115 | npx ruv-swarm actions pr-validate \ |
| 116 | --deep-review \ |
| 117 | --security-scan |
| 118 | ``` |
| 119 | |
| 120 | #### 7. ci-orchestrator |
| 121 | **CI/CD pipeline coordination** |
| 122 | - **Pipeline Management**: Advanced |
| 123 | - **Test Coordination**: Parallel |
| 124 | - **Deployment**: Automated |
| 125 | |
| 126 | ```bash |
| 127 | # Orchestrate CI/CD pipeline |
| 128 | npx claude-flow@alpha github ci-orchestrator \ |
| 129 | "Setup parallel test execution with smart caching" |
| 130 | ``` |
| 131 | |
| 132 | #### 8. security-guardian |
| 133 | **Security and compliance management** |
| 134 | - **Security Scan**: Automated |
| 135 | - **Compliance Check**: Continuous |
| 136 | - **Vulnerability Management**: Proactive |
| 137 | |
| 138 | ```bash |
| 139 | # Security audit |
| 140 | npx ruv-swarm actions security \ |
| 141 | --deep-scan \ |
| 142 | --compliance-check \ |
| 143 | --create-issues |
| 144 | ``` |
| 145 | |
| 146 | </details> |
| 147 | |
| 148 | ### 🔧 Workflow Templates |
| 149 | |
| 150 | <details> |
| 151 | <summary>Production-Ready GitHub Actions Templates</summary> |
| 152 | |
| 153 | #### 1. Intelligent CI with Swarms |
| 154 | ```yaml |
| 155 | # .github/workflows/swarm-ci.yml |
| 156 | name: Intelligent CI with Swarms |
| 157 | on: [push, pull_request] |
| 158 | |
| 159 | jobs: |
| 160 | swarm-analysis: |
| 161 | runs-on: ubuntu-latest |
| 162 | steps: |
| 163 | - uses: actions/checkout@v3 |
| 164 | |
| 165 | - name: Initialize Swarm |
| 166 | uses: ruvnet/swarm-action@v1 |
| 167 | with: |
| 168 | topology: mesh |
| 169 | max-agents: 6 |
| 170 | |
| 171 | - name: Analyze Changes |
| 172 | run: | |
| 173 | npx ruv-swarm actions analyze \ |
| 174 | --commit ${{ github.sha }} \ |
| 175 | --suggest-tests \ |
| 176 | --optimize-pipeline |
| 177 | ``` |
| 178 | |
| 179 | #### 2. Multi-Language Detection |
| 180 | ```yaml |
| 181 | # .github/workflows/polyglot-swarm.yml |
| 182 | name: Polyglot Project Handler |
| 183 | on: push |
| 184 | |
| 185 | jobs: |
| 186 | detect-and-build: |
| 187 | runs-on: ubuntu-latest |
| 188 | steps: |
| 189 | - uses: actions/checkout@v3 |
| 190 | |
| 191 | - name: Detect Languages |