[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7BNPCNNFEPMZ3ZFG5HG2ABM":3,"skill-same:01M7BNPCNNFEPMZ3ZFG5HG2ABM":64},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":42,"commitSha":43,"skillDirectory":44,"forksCount":45,"repositoryHtmlUrl":46,"repositoryHomepageUrl":47,"ownerHtmlUrl":48,"ownerBlogUrl":6,"ownerDescription":49,"updatedAt":50,"install":51,"resources":63},"01M7BNPCNNFEPMZ3ZFG5HG2ABM","github-workflow-automation",null,"Advanced GitHub Actions workflow automation with AI swarm coordination, intelligent CI\u002FCD pipelines, and comprehensive repository management","YYC-Cube\u002FYYC3-Knowledge-Base","YYC-Cube","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F235006543?v=4","01M79J2PH4SWD2X0825X6PN748","yyc3","01M79J2PHVK3F6ZBYT8K2SCZCW",1,"MIT","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Agent-智能体\u002FYYC3-Agent-智能体-ruflo\u002F.agents\u002Fskills\u002Fgithub-workflow-automation\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: github-workflow-automation\nversion: 1.0.0\ncategory: github\ndescription: Advanced GitHub Actions workflow automation with AI swarm coordination, intelligent CI\u002FCD pipelines, and comprehensive repository management\ntags:\n  - github\n  - github-actions\n  - ci-cd\n  - workflow-automation\n  - swarm-coordination\n  - deployment\n  - security\nauthors:\n  - claude-flow\nrequires:\n  - gh (GitHub CLI)\n  - git\n  - claude-flow@alpha\n  - node (v16+)\npriority: high\nprogressive_disclosure: true\n---\n\n# GitHub Workflow Automation Skill\n\n## Overview\n\nThis skill provides comprehensive GitHub Actions automation with AI swarm coordination. It integrates intelligent CI\u002FCD pipelines, workflow orchestration, and repository management to create self-organizing, adaptive GitHub workflows.\n\n## Quick Start\n\n\u003Cdetails>\n\u003Csummary>💡 Basic Usage - Click to expand\u003C$summary>\n\n### Initialize GitHub Workflow Automation\n```bash\n# Start with a simple workflow\nnpx ruv-swarm actions generate-workflow \\\n  --analyze-codebase \\\n  --detect-languages \\\n  --create-optimal-pipeline\n```\n\n### Common Commands\n```bash\n# Optimize existing workflow\nnpx ruv-swarm actions optimize \\\n  --workflow \".github$workflows$ci.yml\" \\\n  --suggest-parallelization\n\n# Analyze failed runs\ngh run view \u003Crun-id> --json jobs,conclusion | \\\n  npx ruv-swarm actions analyze-failure \\\n    --suggest-fixes\n```\n\n\u003C$details>\n\n## Core Capabilities\n\n### 🤖 Swarm-Powered GitHub Modes\n\n\u003Cdetails>\n\u003Csummary>Available GitHub Integration Modes\u003C$summary>\n\n#### 1. gh-coordinator\n**GitHub workflow orchestration and coordination**\n- **Coordination Mode**: Hierarchical\n- **Max Parallel Operations**: 10\n- **Batch Optimized**: Yes\n- **Best For**: Complex GitHub workflows, multi-repo coordination\n\n```bash\n# Usage example\nnpx claude-flow@alpha github gh-coordinator \\\n  \"Coordinate multi-repo release across 5 repositories\"\n```\n\n#### 2. pr-manager\n**Pull request management and review coordination**\n- **Review Mode**: Automated\n- **Multi-reviewer**: Yes\n- **Conflict Resolution**: Intelligent\n\n```bash\n# Create PR with automated review\ngh pr create --title \"Feature: New capability\" \\\n  --body \"Automated PR with swarm review\" | \\\n  npx ruv-swarm actions pr-validate \\\n    --spawn-agents \"linter,tester,security,docs\"\n```\n\n#### 3. issue-tracker\n**Issue management and project coordination**\n- **Issue Workflow**: Automated\n- **Label Management**: Smart\n- **Progress Tracking**: Real-time\n\n```bash\n# Create coordinated issue workflow\nnpx claude-flow@alpha github issue-tracker \\\n  \"Manage sprint issues with automated tracking\"\n```\n\n#### 4. release-manager\n**Release coordination and deployment**\n- **Release Pipeline**: Automated\n- **Versioning**: Semantic\n- **Deployment**: Multi-stage\n\n```bash\n# Automated release management\nnpx claude-flow@alpha github release-manager \\\n  \"Create v2.0.0 release with changelog and deployment\"\n```\n\n#### 5. repo-architect\n**Repository structure and organization**\n- **Structure Optimization**: Yes\n- **Multi-repo Support**: Yes\n- **Template Management**: Advanced\n\n```bash\n# Optimize repository structure\nnpx claude-flow@alpha github repo-architect \\\n  \"Restructure monorepo with optimal organization\"\n```\n\n#### 6. code-reviewer\n**Automated code review and quality assurance**\n- **Review Quality**: Deep\n- **Security Analysis**: Yes\n- **Performance Check**: Automated\n\n```bash\n# Automated code review\ngh pr view 123 --json files | \\\n  npx ruv-swarm actions pr-validate \\\n    --deep-review \\\n    --security-scan\n```\n\n#### 7. ci-orchestrator\n**CI\u002FCD pipeline coordination**\n- **Pipeline Management**: Advanced\n- **Test Coordination**: Parallel\n- **Deployment**: Automated\n\n```bash\n# Orchestrate CI\u002FCD pipeline\nnpx claude-flow@alpha github ci-orchestrator \\\n  \"Setup parallel test execution with smart caching\"\n```\n\n#### 8. security-guardian\n**Security and compliance management**\n- **Security Scan**: Automated\n- **Compliance Check**: Continuous\n- **Vulnerability Management**: Proactive\n\n```bash\n# Security audit\nnpx ruv-swarm actions security \\\n  --deep-scan \\\n  --compliance-check \\\n  --create-issues\n```\n\n\u003C$details>\n\n### 🔧 Workflow Templates\n\n\u003Cdetails>\n\u003Csummary>Production-Ready GitHub Actions Templates\u003C$summary>\n\n#### 1. Intelligent CI with Swarms\n```yaml\n# .github$workflows$swarm-ci.yml\nname: Intelligent CI with Swarms\non: [push, pull_request]\n\njobs:\n  swarm-analysis:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions$checkout@v3\n\n      - name: Initialize Swarm\n        uses: ruvnet$swarm-action@v1\n        with:\n          topology: mesh\n          max-agents: 6\n\n      - name: Analyze Changes\n        run: |\n          npx ruv-swarm actions analyze \\\n            --commit ${{ github.sha }} \\\n            --suggest-tests \\\n            --optimize-pipeline\n```\n\n#### 2. Multi-Language Detection\n```yaml\n# .github$workflows$polyglot-swarm.yml\nname: Polyglot Project Handler\non: push\n\njobs:\n  detect-and-build:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions$checkout@v3\n\n      - name: Detect Languages\n        id: detect\n        run: |\n          npx ruv-swarm actions detect-stack \\\n            --output json > stack.json\n\n      - name: Dynamic Build Matrix\n        run: |\n          npx ruv-swarm actions create-matrix \\\n            --from stack.json \\\n            --parallel-builds\n```\n\n#### 3. Adaptive Security Scanning\n```yaml\n# .github$workflows$security-swarm.yml\nname: Intelligent Security Scan\non:\n  schedule:\n    - cron: '0 0 * * *'\n  workflow_dispatch:\n\njobs:\n  security-swarm:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Security Analysis Swarm\n        run: |\n          SECURITY_ISSUES=$(npx ruv-swarm actions security \\\n            --deep-scan \\\n            --format json)\n\n          echo \"$SECURITY_ISSUES\" | jq -r '.issues[]? | @base64' | while read -r issue; do\n            _jq() {\n              echo ${issue} | base64 --decode | jq -r ${1}\n            }\n            gh issue create \\\n              --title \"$(_jq '.title')\" \\\n              --body \"$(_jq '.body')\" \\\n              --label \"security,critical\"\n          done\n```\n\n#### 4. Self-Healing Pipeline\n```yaml\n# .github$workflows$self-healing.yml\nname: Self-Healing Pipeline\non: workflow_run\n\njobs:\n  heal-pipeline:\n    if: ${{ github.event.workflow_run.conclusion == 'failure' }}\n    runs-on: ubuntu-latest\n    steps:\n      - name: Diagnose and Fix\n        run: |\n          npx ruv-swarm actions self-heal \\\n            --run-id ${{ github.event.workflow_run.id }} \\\n            --auto-fix-common \\\n            --create-pr-complex\n```\n\n#### 5. Progressive Deployment\n```yaml\n# .github$workflows$smart-deployment.yml\nname: Smart Deployment\non:\n  push:\n    branches: [main]\n\njobs:\n  progressive-deploy:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Analyze Risk\n        id: risk\n        run: |\n          npx ruv-swarm actions deploy-risk \\\n            --changes ${{ github.sha }} \\\n            --history 30d\n\n      - name: Choose Strategy\n        run: |\n          npx ruv-swarm actions deploy-strategy \\\n            --risk ${{ steps.risk.outputs.level }} \\\n            --auto-execute\n```\n\n#### 6. Performance Regression Detection\n```yaml\n# .github$workflows$performance-guard.yml\nname: Performance Guard\non: pull_request\n\njobs:\n  perf-swarm:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Performance Analysis\n        run: |\n          npx ruv-swarm actions perf-test \\\n            --baseline main \\\n            --threshold 10% \\\n            --auto-profile-regression\n```\n\n#### 7. PR Validation Swarm\n```yaml\n# .github$workflows$pr-validation.yml\nname: PR Validation Swarm\non: pull_request\n\njobs:\n  validate:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Multi-Agent Validation\n        run: |\n          PR_DATA=$(gh pr view ${{ github.event.pull_request.number }} --json files,labels)\n\n          RESULTS=$(npx ruv-swarm actions pr-validate \\\n            --spawn-agents \"linter,tester,security,docs\" \\\n            --parallel \\\n            --pr-data \"$PR_DATA\")\n\n          gh pr comment ${{ github.event.pull_request.number }} \\\n            --body \"$RESULTS\"\n```\n\n#### 8. Intelligent Release\n```yaml\n# .github$workflows$intelligent-release.yml\nname: Intelligent Release\non:\n  push:\n    tags: ['v*']\n\njobs:\n  release:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Release Swarm\n        run: |\n          npx ruv-swarm actions release \\\n            --analyze-changes \\\n            --generate-notes \\\n            --create-artifacts \\\n            --publish-smart\n```\n\n\u003C$details>\n\n### 📊 Monitoring & Analytics\n\n\u003Cdetails>\n\u003Csummary>Workflow Analysis & Optimization\u003C$summary>\n\n#### Workflow Analytics\n```bash\n# Analyze workflow performance\nnpx ruv-swarm actions analytics \\\n  --workflow \"ci.yml\" \\\n  --period 30d \\\n  --identify-bottlenecks \\\n  --suggest-improvements\n```\n\n#### Cost Optimization\n```bash\n# Optimize GitHub Actions costs\nnpx ruv-swarm actions cost-optimize \\\n  --analyze-usage \\\n  --suggest-caching \\\n  --recommend-self-hosted\n```\n\n#### Failure Pattern Analysis\n```bash\n# Identify failure patterns\nnpx ruv-swarm actions failure-patterns \\\n  --period 90d \\\n  --classify-failures \\\n  --suggest-preventions\n```\n\n#### Resource Management\n```bash\n# Optimize resource usage\nnpx ruv-swarm actions resources \\\n  --analyze-usage \\\n  --suggest-runners \\\n  --cost-optimize\n```\n\n\u003C$details>\n\n## Advanced Features\n\n### 🧪 Dynamic Test Strategies\n\n\u003Cdetails>\n\u003Csummary>Intelligent Test Selection & Execution\u003C$summary>\n\n#### Smart Test Selection\n```yaml\n# Automatically select relevant tests\n- name: Swarm Test Selection\n  run: |\n    npx ruv-swarm actions smart-test \\\n      --changed-files ${{ steps.files.outputs.all }} \\\n      --impact-analysis \\\n      --parallel-safe\n```\n\n#### Dynamic Test Matrix\n```yaml\n# Generate test matrix from code analysis\njobs:\n  generate-matrix:\n    outputs:\n      matrix: ${{ steps.set-matrix.outputs.matrix }}\n    steps:\n      - id: set-matrix\n        run: |\n          MATRIX=$(npx ruv-swarm actions test-matrix \\\n            --detect-frameworks \\\n            --optimize-coverage)\n          echo \"matrix=${MATRIX}\" >> $GITHUB_OUTPUT\n\n  test:\n    needs: generate-matrix\n    strategy:\n      matrix: ${{fromJson(needs.generate-matrix.outputs.matrix)}}\n```\n\n#### Intelligent Parallelization\n```bash\n# Determine optimal parallelization\nnpx ruv-swarm actions parallel-strategy \\\n  --analyze-dependencies \\\n  --time-estimates \\\n  --cost-aware\n```\n\n\u003C$details>\n\n### 🔮 Predictive Analysis\n\n\u003Cdetails>\n\u003Csummary>AI-Powered Workflow Predictions\u003C$summary>\n\n#### Predictive Failures\n```bash\n# Predict potential failures\nnpx ruv-swarm actions predict \\\n  --analyze-history \\\n  --identify-risks \\\n  --suggest-preventive\n```\n\n#### Workflow Recommendations\n```bash\n# Get workflow recommendations\nnpx ruv-swarm actions recommend \\\n  --analyze-repo \\\n  --suggest-workflows \\\n  --industry-best-practices\n```\n\n#### Automated Optimization\n```bash\n# Continuously optimize workflows\nnpx ruv-swarm actions auto-optimize \\\n  --monitor-performance \\\n  --apply-improvements \\\n  --track-savings\n```\n\n\u003C$details>\n\n### 🎯 Custom Actions Development\n\n\u003Cdetails>\n\u003Csummary>Build Your Own Swarm Actions\u003C$summary>\n\n#### Custom Swarm Action Template\n```javascript\n\u002F\u002F action.yml\nname: 'Swarm Custom Action'\ndescription: 'Custom swarm-powered action'\ninputs:\n  task:\n    description: 'Task for swarm'\n    required: true\nruns:\n  using: 'node16'\n  main: 'dist$index.js'\n\n\u002F\u002F index.js\nconst { SwarmAction } = require('ruv-swarm');\n\nasync function run() {\n  const swarm = new SwarmAction({\n    topology: 'mesh',\n    agents: ['analyzer', 'optimizer']\n  });\n\n  await swarm.execute(core.getInput('task'));\n}\n\nrun().catch(error => core.setFailed(error.message));\n```\n\n\u003C$details>\n\n## Integration with Claude-Flow\n\n### 🔄 Swarm Coordination Patterns\n\n\u003Cdetails>\n\u003Csummary>MCP-Based GitHub Workflow Coordination\u003C$summary>\n\n#### Initialize GitHub Swarm\n```javascript\n\u002F\u002F Step 1: Initialize swarm coordination\nmcp__claude-flow__swarm_init {\n  topology: \"hierarchical\",\n  maxAgents: 8\n}\n\n\u002F\u002F Step 2: Spawn specialized agents\nmcp__claude-flow__agent_spawn { type: \"coordinator\", name: \"GitHub Coordinator\" }\nmcp__claude-flow__agent_spawn { type: \"reviewer\", name: \"Code Reviewer\" }\nmcp__claude-flow__agent_spawn { type: \"tester\", name: \"QA Agent\" }\nmcp__claude-flow__agent_spawn { type: \"analyst\", name: \"Security Analyst\" }\n\n\u002F\u002F Step 3: Orchestrate GitHub workflow\nmcp__claude-flow__task_orchestrate {\n  task: \"Complete PR review and merge workflow\",\n  strategy: \"parallel\",\n  priority: \"high\"\n}\n```\n\n#### GitHub Hooks Integration\n```bash\n# Pre-task: Setup GitHub context\nnpx claude-flow@alpha hooks pre-task \\\n  --description \"PR review workflow\" \\\n  --context \"pr-123\"\n\n# During task: Track progress\nnpx claude-flow@alpha hooks notify \\\n  --message \"Completed security scan\" \\\n  --type \"github-action\"\n\n# Post-task: Export results\nnpx claude-flow@alpha hooks post-task \\\n  --task-id \"pr-review-123\" \\\n  --export-github-summary\n```\n\n\u003C$details>\n\n### 📦 Batch Operations\n\n\u003Cdetails>\n\u003Csummary>Concurrent GitHub Operations\u003C$summary>\n\n#### Parallel GitHub CLI Commands\n```javascript\n\u002F\u002F Single message with all GitHub operations\n[Concurrent Execution]:\n  Bash(\"gh issue create --title 'Feature A' --body 'Description A' --label 'enhancement'\")\n  Bash(\"gh issue create --title 'Feature B' --body 'Description B' --label 'enhancement'\")\n  Bash(\"gh pr create --title 'PR 1' --head 'feature-a' --base 'main'\")\n  Bash(\"gh pr create --title 'PR 2' --head 'feature-b' --base 'main'\")\n  Bash(\"gh pr checks 123 --watch\")\n  TodoWrite { todos: [\n    {content: \"Review security scan results\", status: \"pending\"},\n    {content: \"Merge approved PRs\", status: \"pending\"},\n    {content: \"Update changelog\", status: \"pending\"}\n  ]}\n```\n\n\u003C$details>\n\n## Best Practices\n\n### 🏗️ Workflow Organization\n\n\u003Cdetails>\n\u003Csummary>Structure Your GitHub Workflows\u003C$summary>\n\n#### 1. Use Reusable Workflows\n```yaml\n# .github$workflows$reusable-swarm.yml\nname: Reusable Swarm Workflow\non:\n  workflow_call:\n    inputs:\n      topology:\n        required: true\n        type: string\n\njobs:\n  swarm-task:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Initialize Swarm\n        run: |\n          npx ruv-swarm init --topology ${{ inputs.topology }}\n```\n\n#### 2. Implement Proper Caching\n```yaml\n- name: Cache Swarm Dependencies\n  uses: actions$cache@v3\n  with:\n    path: ~\u002F.npm\n    key: ${{ runner.os }}-swarm-${{ hashFiles('**$package-lock.json') }}\n```\n\n#### 3. Set Appropriate Timeouts\n```yaml\njobs:\n  swarm-task:\n    timeout-minutes: 30\n    steps:\n      - name: Swarm Operation\n        timeout-minutes: 10\n```\n\n#### 4. Use Workflow Dependencies\n```yaml\njobs:\n  setup:\n    runs-on: ubuntu-latest\n\n  test:\n    needs: setup\n    runs-on: ubuntu-latest\n\n  deploy:\n    needs: [setup, test]\n    runs-on: ubuntu-latest\n```\n\n\u003C$details>\n\n### 🔒 Security Best Practices\n\n\u003Cdetails>\n\u003Csummary>Secure Your GitHub Workflows\u003C$summary>\n\n#### 1. Store Configurations Securely\n```yaml\n- name: Setup Swarm\n  env:\n    SWARM_CONFIG: ${{ secrets.SWARM_CONFIG }}\n    API_KEY: ${{ secrets.API_KEY }}\n  run: |\n    npx ruv-swarm init --config \"$SWARM_CONFIG\"\n```\n\n#### 2. Use OIDC Authentication\n```yaml\npermissions:\n  id-token: write\n  contents: read\n\n- name: Configure AWS Credentials\n  uses: aws-actions$configure-aws-credentials@v2\n  with:\n    role-to-assume: arn:aws:iam::123456789012:role\u002FGitHubAction\n    aws-region: us-east-1\n```\n\n#### 3. Implement Least-Privilege\n```yaml\npermissions:\n  contents: read\n  pull-requests: write\n  issues: write\n```\n\n#### 4. Audit Swarm Operations\n```yaml\n- name: Audit Swarm Actions\n  run: |\n    npx ruv-swarm actions audit \\\n      --export-logs \\\n      --compliance-report\n```\n\n\u003C$details>\n\n### ⚡ Performance Optimization\n\n\u003Cdetails>\n\u003Csummary>Maximize Workflow Performance\u003C$summary>\n\n#### 1. Cache Swarm Dependencies\n```yaml\n- uses: actions$cache@v3\n  with:\n    path: |\n      ~\u002F.npm\n      node_modules\n    key: ${{ runner.os }}-swarm-${{ hashFiles('**$package-lock.json') }}\n```\n\n#### 2. Use Appropriate Runner Sizes\n```yaml\njobs:\n  heavy-task:\n    runs-on: ubuntu-latest-4-cores\n    steps:\n      - name: Intensive Swarm Operation\n```\n\n#### 3. Implement Early Termination\n```yaml\n- name: Quick Fail Check\n  run: |\n    if ! npx ruv-swarm actions pre-check; then\n      echo \"Pre-check failed, terminating early\"\n      exit 1\n    fi\n```\n\n#### 4. Optimize Parallel Execution\n```yaml\nstrategy:\n  matrix:\n    include:\n      - runner: ubuntu-latest\n        task: test\n      - runner: ubuntu-latest\n        task: lint\n      - runner: ubuntu-latest\n        task: security\n  max-parallel: 3\n```\n\n\u003C$details>\n\n## Debugging & Troubleshooting\n\n### 🐛 Debug Tools\n\n\u003Cdetails>\n\u003Csummary>Debug GitHub Workflow Issues\u003C$summary>\n\n#### Debug Mode\n```yaml\n- name: Debug Swarm\n  run: |\n    npx ruv-swarm actions debug \\\n      --verbose \\\n      --trace-agents \\\n      --export-logs\n  env:\n    ACTIONS_STEP_DEBUG: true\n```\n\n#### Performance Profiling\n```bash\n# Profile workflow performance\nnpx ruv-swarm actions profile \\\n  --workflow \"ci.yml\" \\\n  --identify-slow-steps \\\n  --suggest-optimizations\n```\n\n#### Failure Analysis\n```bash\n# Analyze failed runs\ngh run view \u003Crun-id> --json jobs,conclusion | \\\n  npx ruv-swarm actions analyze-failure \\\n    --suggest-fixes \\\n    --auto-retry-flaky\n```\n\n#### Log Analysis\n```bash\n# Download and analyze logs\ngh run download \u003Crun-id>\nnpx ruv-swarm actions analyze-logs \\\n  --directory .$logs \\\n  --identify-errors\n```\n\n\u003C$details>\n\n## Real-World Examples\n\n### 🚀 Complete Workflows\n\n\u003Cdetails>\n\u003Csummary>Production-Ready Integration Examples\u003C$summary>\n\n#### Example 1: Full-Stack Application CI\u002FCD\n```yaml\nname: Full-Stack CI\u002FCD with Swarms\non:\n  push:\n    branches: [main, develop]\n  pull_request:\n\njobs:\n  initialize:\n    runs-on: ubuntu-latest\n    outputs:\n      swarm-id: ${{ steps.init.outputs.swarm-id }}\n    steps:\n      - id: init\n        run: |\n          SWARM_ID=$(npx ruv-swarm init --topology mesh --output json | jq -r '.id')\n          echo \"swarm-id=${SWARM_ID}\" >> $GITHUB_OUTPUT\n\n  backend:\n    needs: initialize\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions$checkout@v3\n      - name: Backend Tests\n        run: |\n          npx ruv-swarm agents spawn --type tester \\\n            --task \"Run backend test suite\" \\\n            --swarm-id ${{ needs.initialize.outputs.swarm-id }}\n\n  frontend:\n    needs: initialize\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions$checkout@v3\n      - name: Frontend Tests\n        run: |\n          npx ruv-swarm agents spawn --type tester \\\n            --task \"Run frontend test suite\" \\\n            --swarm-id ${{ needs.initialize.outputs.swarm-id }}\n\n  security:\n    needs: initialize\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions$checkout@v3\n      - name: Security Scan\n        run: |\n          npx ruv-swarm agents spawn --type security \\\n            --task \"Security audit\" \\\n            --swarm-id ${{ needs.initialize.outputs.swarm-id }}\n\n  deploy:\n    needs: [backend, frontend, security]\n    if: github.ref == 'refs$heads$main'\n    runs-on: ubuntu-latest\n    steps:\n      - name: Deploy\n        run: |\n          npx ruv-swarm actions deploy \\\n            --strategy progressive \\\n            --swarm-id ${{ needs.initialize.outputs.swarm-id }}\n```\n\n#### Example 2: Monorepo Management\n```yaml\nname: Monorepo Coordination\non: push\n\njobs:\n  detect-changes:\n    runs-on: ubuntu-latest\n    outputs:\n      packages: ${{ steps.detect.outputs.packages }}\n    steps:\n      - uses: actions$checkout@v3\n        with:\n          fetch-depth: 0\n\n      - id: detect\n        run: |\n          PACKAGES=$(npx ruv-swarm actions detect-changes \\\n            --monorepo \\\n            --output json)\n          echo \"packages=${PACKAGES}\" >> $GITHUB_OUTPUT\n\n  build-packages:\n    needs: detect-changes\n    runs-on: ubuntu-latest\n    strategy:\n      matrix:\n        package: ${{ fromJson(needs.detect-changes.outputs.packages) }}\n    steps:\n      - name: Build Package\n        run: |\n          npx ruv-swarm actions build \\\n            --package ${{ matrix.package }} \\\n            --parallel-deps\n```\n\n#### Example 3: Multi-Repo Synchronization\n```bash\n# Synchronize multiple repositories\nnpx claude-flow@alpha github sync-coordinator \\\n  \"Synchronize version updates across:\n   - github.com$org$repo-a\n   - github.com$org$repo-b\n   - github.com$org$repo-c\n\n   Update dependencies, align versions, create PRs\"\n```\n\n\u003C$details>\n\n## Command Reference\n\n### 📚 Quick Command Guide\n\n\u003Cdetails>\n\u003Csummary>All Available Commands\u003C$summary>\n\n#### Workflow Generation\n```bash\nnpx ruv-swarm actions generate-workflow [options]\n  --analyze-codebase       Analyze repository structure\n  --detect-languages       Detect programming languages\n  --create-optimal-pipeline Generate optimized workflow\n```\n\n#### Optimization\n```bash\nnpx ruv-swarm actions optimize [options]\n  --workflow \u003Cpath>        Path to workflow file\n  --suggest-parallelization Suggest parallel execution\n  --reduce-redundancy      Remove redundant steps\n  --estimate-savings       Estimate time$cost savings\n```\n\n#### Analysis\n```bash\nnpx ruv-swarm actions analyze [options]\n  --commit \u003Csha>           Analyze specific commit\n  --suggest-tests          Suggest test improvements\n  --optimize-pipeline      Optimize pipeline structure\n```\n\n#### Testing\n```bash\nnpx ruv-swarm actions smart-test [options]\n  --changed-files \u003Cfiles>  Files that changed\n  --impact-analysis        Analyze test impact\n  --parallel-safe          Only parallel-safe tests\n```\n\n#### Security\n```bash\nnpx ruv-swarm actions security [options]\n  --deep-scan             Deep security analysis\n  --format \u003Cformat>       Output format (json$text)\n  --create-issues         Auto-create GitHub issues\n```\n\n#### Deployment\n```bash\nnpx ruv-swarm actions deploy [options]\n  --strategy \u003Ctype>       Deployment strategy\n  --risk \u003Clevel>          Risk assessment level\n  --auto-execute          Execute automatically\n```\n\n#### Monitoring\n```bash\nnpx ruv-swarm actions analytics [options]\n  --workflow \u003Cname>       Workflow to analyze\n  --period \u003Cduration>     Analysis period\n  --identify-bottlenecks  Find bottlenecks\n  --suggest-improvements  Improvement suggestions\n```\n\n\u003C$details>\n\n## Integration Checklist\n\n### ✅ Setup Verification\n\n\u003Cdetails>\n\u003Csummary>Verify Your Setup\u003C$summary>\n\n- [ ] GitHub CLI (`gh`) installed and authenticated\n- [ ] Git configured with user credentials\n- [ ] Node.js v16+ installed\n- [ ] `claude-flow@alpha` package available\n- [ ] Repository has `.github$workflows` directory\n- [ ] GitHub Actions enabled on repository\n- [ ] Necessary secrets configured\n- [ ] Runner permissions verified\n\n#### Quick Setup Script\n```bash\n#!$bin$bash\n# setup-github-automation.sh\n\n# Install dependencies\nnpm install -g claude-flow@alpha\n\n# Verify GitHub CLI\ngh auth status || gh auth login\n\n# Create workflow directory\nmkdir -p .github$workflows\n\n# Generate initial workflow\nnpx ruv-swarm actions generate-workflow \\\n  --analyze-codebase \\\n  --create-optimal-pipeline > .github$workflows$ci.yml\n\necho \"✅ GitHub workflow automation setup complete\"\n```\n\n\u003C$details>\n\n## Related Skills\n\n- `github-pr-enhancement` - Advanced PR management\n- `release-coordination` - Release automation\n- `swarm-coordination` - Multi-agent orchestration\n- `ci-cd-optimization` - Pipeline optimization\n\n## Support & Documentation\n\n- **GitHub CLI Docs**: https:\u002F$cli.github.com$manual\u002F\n- **GitHub Actions**: https:\u002F$docs.github.com$en$actions\n- **Claude-Flow**: https:\u002F$github.com$ruvnet$claude-flow\n- **Ruv-Swarm**: https:\u002F$github.com$ruvnet$ruv-swarm\n\n## Version History\n\n- **v1.0.0** (2025-01-19): Initial skill consolidation\n  - Merged workflow-automation.md (441 lines)\n  - Merged github-modes.md (146 lines)\n  - Added progressive disclosure\n  - Enhanced with swarm coordination patterns\n  - Added comprehensive examples and best practices\n\n---\n\n**Skill Status**: ✅ Production Ready\n**Last Updated**: 2025-01-19\n**Maintainer**: claude-flow team\n","# GitHub Workflow Automation Skill\n\n## Overview\n\nThis skill provides comprehensive GitHub Actions automation with AI swarm coordination. It integrates intelligent CI\u002FCD pipelines, workflow orchestration, and repository management to create self-organizing, adaptive GitHub workflows.\n\n## Quick Start\n\n\u003Cdetails>\n\u003Csummary>💡 Basic Usage - Click to expand\u003C$summary>\n\n### Initialize GitHub Workflow Automation\n```bash\n# Start with a simple workflow\nnpx ruv-swarm actions generate-workflow \\\n  --analyze-codebase \\\n  --detect-languages \\\n  --create-optimal-pipeline\n```\n\n### Common Commands\n```bash\n# Optimize existing workflow\nnpx ruv-swarm actions optimize \\\n  --workflow \".github$workflows$ci.yml\" \\\n  --suggest-parallelization\n\n# Analyze failed runs\ngh run view \u003Crun-id> --json jobs,conclusion | \\\n  npx ruv-swarm actions analyze-failure \\\n    --suggest-fixes\n```\n\n\u003C$details>\n\n## Core Capabilities\n\n### 🤖 Swarm-Powered GitHub Modes\n\n\u003Cdetails>\n\u003Csummary>Available GitHub Integration Modes\u003C$summary>\n\n#### 1. gh-coordinator\n**GitHub workflow orchestration and coordination**\n- **Coordination Mode**: Hierarchical\n- **Max Parallel Operations**: 10\n- **Batch Optimized**: Yes\n- **Best For**: Complex GitHub workflows, multi-repo coordination\n\n```bash\n# Usage example\nnpx claude-flow@alpha github gh-coordinator \\\n  \"Coordinate multi-repo release across 5 repositories\"\n```\n\n#### 2. pr-manager\n**Pull request management and review coordination**\n- **Review Mode**: Automated\n- **Multi-reviewer**: Yes\n- **Conflict Resolution**: Intelligent\n\n```bash\n# Create PR with automated review\ngh pr create --title \"Feature: New capability\" \\\n  --body \"Automated PR with swarm review\" | \\\n  npx ruv-swarm actions pr-validate \\\n    --spawn-agents \"linter,tester,security,docs\"\n```\n\n#### 3. issue-tracker\n**Issue management and project coordination**\n- **Issue Workflow**: Automated\n- **Label Management**: Smart\n- **Progress Tracking**: Real-time\n\n```bash\n# Create coordinated issue workflow\nnpx claude-flow@alpha github issue-tracker \\\n  \"Manage sprint issues with automated tracking\"\n```\n\n#### 4. release-manager\n**Release coordination and deployment**\n- **Release Pipeline**: Automated\n- **Versioning**: Semantic\n- **Deployment**: Multi-stage\n\n```bash\n# Automated release management\nnpx claude-flow@alpha github release-manager \\\n  \"Create v2.0.0 release with changelog and deployment\"\n```\n\n#### 5. repo-architect\n**Repository structure and organization**\n- **Structure Optimization**: Yes\n- **Multi-repo Support**: Yes\n- **Template Management**: Advanced\n\n```bash\n# Optimize repository structure\nnpx claude-flow@alpha github repo-architect \\\n  \"Restructure monorepo with optimal organization\"\n```\n\n#### 6. code-reviewer\n**Automated code review and quality assurance**\n- **Review Quality**: Deep\n- **Security Analysis**: Yes\n- **Performance Check**: Automated\n\n```bash\n# Automated code review\ngh pr view 123 --json files | \\\n  npx ruv-swarm actions pr-validate \\\n    --deep-review \\\n    --security-scan\n```\n\n#### 7. ci-orchestrator\n**CI\u002FCD pipeline coordination**\n- **Pipeline Management**: Advanced\n- **Test Coordination**: Parallel\n- **Deployment**: Automated\n\n```bash\n# Orchestrate CI\u002FCD pipeline\nnpx claude-flow@alpha github ci-orchestrator \\\n  \"Setup parallel test execution with smart caching\"\n```\n\n#### 8. security-guardian\n**Security and compliance management**\n- **Security Scan**: Automated\n- **Compliance Check**: Continuous\n- **Vulnerability Management**: Proactive\n\n```bash\n# Security audit\nnpx ruv-swarm actions security \\\n  --deep-scan \\\n  --compliance-check \\\n  --create-issues\n```\n\n\u003C$details>\n\n### 🔧 Workflow Templates\n\n\u003Cdetails>\n\u003Csummary>Production-Ready GitHub Actions Templates\u003C$summary>\n\n#### 1. Intelligent CI with Swarms\n```yaml\n# .github$workflows$swarm-ci.yml\nname: Intelligent CI with Swarms\non: [push, pull_request]\n\njobs:\n  swarm-analysis:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions$checkout@v3\n\n      - name: Initialize Swarm\n        uses: ruvnet$swarm-action@v1\n        with:\n          topology: mesh\n          max-agents: 6\n\n      - name: Analyze Changes\n        run: |\n          npx ruv-swarm actions analyze \\\n            --commit ${{ github.sha }} \\\n            --suggest-tests \\\n            --optimize-pipeline\n```\n\n#### 2. Multi-Language Detection\n```yaml\n# .github$workflows$polyglot-swarm.yml\nname: Polyglot Project Handler\non: push\n\njobs:\n  detect-and-build:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions$checkout@v3\n\n      - name: Detect Languages\n        id: detect\n        run: |\n          npx ruv-swarm actions detect-stack \\\n            --output json > stack.json\n\n      - name: Dynamic Build Matrix\n        run: |\n          npx ruv-swarm actions create-matrix \\\n            --from stack.json \\\n            --parallel-builds\n```\n\n#### 3. Adaptive Security Scanning\n```yaml\n# .github$workflows$security-swarm.yml\nname: Intelligent Security Scan\non:\n  schedule:\n    - cron: '0 0 * * *'\n  workflow_dispatch:\n\njobs:\n  security-swarm:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Security Analysis Swarm\n        run: |\n          SECURITY_ISSUES=$(npx ruv-swarm actions security \\\n            --deep-scan \\\n            --format json)\n\n          echo \"$SECURITY_ISSUES\" | jq -r '.issues[]? | @base64' | while read -r issue; do\n            _jq() {\n              echo ${issue} | base64 --decode | jq -r ${1}\n            }\n            gh issue create \\\n              --title \"$(_jq '.title')\" \\\n              --body \"$(_jq '.body')\" \\\n              --label \"security,critical\"\n          done\n```\n\n#### 4. Self-Healing Pipeline\n```yaml\n# .github$workflows$self-healing.yml\nname: Self-Healing Pipeline\non: workflow_run\n\njobs:\n  heal-pipeline:\n    if: ${{ github.event.workflow_run.conclusion == 'failure' }}\n    runs-on: ubuntu-latest\n    steps:\n      - name: Diagnose and Fix\n        run: |\n          npx ruv-swarm actions self-heal \\\n            --run-id ${{ github.event.workflow_run.id }} \\\n            --auto-fix-common \\\n            --create-pr-complex\n```\n\n#### 5. Progressive Deployment\n```yaml\n# .github$workflows$smart-deployment.yml\nname: Smart Deployment\non:\n  push:\n    branches: [main]\n\njobs:\n  progressive-deploy:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Analyze Risk\n        id: risk\n        run: |\n          npx ruv-swarm actions deploy-risk \\\n            --changes ${{ github.sha }} \\\n            --history 30d\n\n      - name: Choose Strategy\n        run: |\n          npx ruv-swarm actions deploy-strategy \\\n            --risk ${{ steps.risk.outputs.level }} \\\n            --auto-execute\n```\n\n#### 6. Performance Regression Detection\n```yaml\n# .github$workflows$performance-guard.yml\nname: Performance Guard\non: pull_request\n\njobs:\n  perf-swarm:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Performance Analysis\n        run: |\n          npx ruv-swarm actions perf-test \\\n            --baseline main \\\n            --threshold 10% \\\n            --auto-profile-regression\n```\n\n#### 7. PR Validation Swarm\n```yaml\n# .github$workflows$pr-validation.yml\nname: PR Validation Swarm\non: pull_request\n\njobs:\n  validate:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Multi-Agent Validation\n        run: |\n          PR_DATA=$(gh pr view ${{ github.event.pull_request.number }} --json files,labels)\n\n          RESULTS=$(npx ruv-swarm actions pr-validate \\\n            --spawn-agents \"linter,tester,security,docs\" \\\n            --parallel \\\n            --pr-data \"$PR_DATA\")\n\n          gh pr comment ${{ github.event.pull_request.number }} \\\n            --body \"$RESULTS\"\n```\n\n#### 8. Intelligent Release\n```yaml\n# .github$workflows$intelligent-release.yml\nname: Intelligent Release\non:\n  push:\n    tags: ['v*']\n\njobs:\n  release:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Release Swarm\n        run: |\n          npx ruv-swarm actions release \\\n            --analyze-changes \\\n            --generate-notes \\\n            --create-artifacts \\\n            --publish-smart\n```\n\n\u003C$details>\n\n### 📊 Monitoring & Analytics\n\n\u003Cdetails>\n\u003Csummary>Workflow Analysis & Optimization\u003C$summary>\n\n#### Workflow Analytics\n```bash\n# Analyze workflow performance\nnpx ruv-swarm actions analytics \\\n  --workflow \"ci.yml\" \\\n  --period 30d \\\n  --identify-bottlenecks \\\n  --suggest-improvements\n```\n\n#### Cost Optimization\n```bash\n# Optimize GitHub Actions costs\nnpx ruv-swarm actions cost-optimize \\\n  --analyze-usage \\\n  --suggest-caching \\\n  --recommend-self-hosted\n```\n\n#### Failure Pattern Analysis\n```bash\n# Identify failure patterns\nnpx ruv-swarm actions failure-patterns \\\n  --period 90d \\\n  --classify-failures \\\n  --suggest-preventions\n```\n\n#### Resource Management\n```bash\n# Optimize resource usage\nnpx ruv-swarm actions resources \\\n  --analyze-usage \\\n  --suggest-runners \\\n  --cost-optimize\n```\n\n\u003C$details>\n\n## Advanced Features\n\n### 🧪 Dynamic Test Strategies\n\n\u003Cdetails>\n\u003Csummary>Intelligent Test Selection & Execution\u003C$summary>\n\n#### Smart Test Selection\n```yaml\n# Automatically select relevant tests\n- name: Swarm Test Selection\n  run: |\n    npx ruv-swarm actions smart-test \\\n      --changed-files ${{ steps.files.outputs.all }} \\\n      --impact-analysis \\\n      --parallel-safe\n```\n\n#### Dynamic Test Matrix\n```yaml\n# Generate test matrix from code analysis\njobs:\n  generate-matrix:\n    outputs:\n      matrix: ${{ steps.set-matrix.outputs.matrix }}\n    steps:\n      - id: set-matrix\n        run: |\n          MATRIX=$(npx ruv-swarm actions test-matrix \\\n            --detect-frameworks \\\n            --optimize-coverage)\n          echo \"matrix=${MATRIX}\" >> $GITHUB_OUTPUT\n\n  test:\n    needs: generate-matrix\n    strategy:\n      matrix: ${{fromJson(needs.generate-matrix.outputs.matrix)}}\n```\n\n#### Intelligent Parallelization\n```bash\n# Determine optimal parallelization\nnpx ruv-swarm actions parallel-strategy \\\n  --analyze-dependencies \\\n  --time-estimates \\\n  --cost-aware\n```\n\n\u003C$details>\n\n### 🔮 Predictive Analysis\n\n\u003Cdetails>\n\u003Csummary>AI-Powered Workflow Predictions\u003C$summary>\n\n#### Predictive Failures\n```bash\n# Predict potential failures\nnpx ruv-swarm actions predict \\\n  --analyze-history \\\n  --identify-risks \\\n  --suggest-preventive\n```\n\n#### Workflow Recommendations\n```bash\n# Get workflow recommendations\nnpx ruv-swarm actions recommend \\\n  --analyze-repo \\\n  --suggest-workflows \\\n  --industry-best-practices\n```\n\n#### Automated Optimization\n```bash\n# Continuously optimize workflows\nnpx ruv-swarm actions auto-optimize \\\n  --monitor-performance \\\n  --apply-improvements \\\n  --track-savings\n```\n\n\u003C$details>\n\n### 🎯 Custom Actions Development\n\n\u003Cdetails>\n\u003Csummary>Build Your Own Swarm Actions\u003C$summary>\n\n#### Custom Swarm Action Template\n```javascript\n\u002F\u002F action.yml\nname: 'Swarm Custom Action'\ndescription: 'Custom swarm-powered action'\ninputs:\n  task:\n    description: 'Task for swarm'\n    required: true\nruns:\n  using: 'node16'\n  main: 'dist$index.js'\n\n\u002F\u002F index.js\nconst { SwarmAction } = require('ruv-swarm');\n\nasync function run() {\n  const swarm = new SwarmAction({\n    topology: 'mesh',\n    agents: ['analyzer', 'optimizer']\n  });\n\n  await swarm.execute(core.getInput('task'));\n}\n\nrun().catch(error => core.setFailed(error.message));\n```\n\n\u003C$details>\n\n## Integration with Claude-Flow\n\n### 🔄 Swarm Coordination Patterns\n\n\u003Cdetails>\n\u003Csummary>MCP-Based GitHub Workflow Coordination\u003C$summary>\n\n#### Initialize GitHub Swarm\n```javascript\n\u002F\u002F Step 1: Initialize swarm coordination\nmcp__claude-flow__swarm_init {\n  topology: \"hierarchical\",\n  maxAgents: 8\n}\n\n\u002F\u002F Step 2: Spawn specialized agents\nmcp__claude-flow__agent_spawn { type: \"coordinator\", name: \"GitHub Coordinator\" }\nmcp__claude-flow__agent_spawn { type: \"reviewer\", name: \"Code Reviewer\" }\nmcp__claude-flow__agent_spawn { type: \"tester\", name: \"QA Agent\" }\nmcp__claude-flow__agent_spawn { type: \"analyst\", name: \"Security Analyst\" }\n\n\u002F\u002F Step 3: Orchestrate GitHub workflow\nmcp__claude-flow__task_orchestrate {\n  task: \"Complete PR review and merge workflow\",\n  strategy: \"parallel\",\n  priority: \"high\"\n}\n```\n\n#### GitHub Hooks Integration\n```bash\n# Pre-task: Setup GitHub context\nnpx claude-flow@alpha hooks pre-task \\\n  --description \"PR review workflow\" \\\n  --context \"pr-123\"\n\n# During task: Track progress\nnpx claude-flow@alpha hooks notify \\\n  --message \"Completed security scan\" \\\n  --type \"github-action\"\n\n# Post-task: Export results\nnpx claude-flow@alpha hooks post-task \\\n  --task-id \"pr-review-123\" \\\n  --export-github-summary\n```\n\n\u003C$details>\n\n### 📦 Batch Operations\n\n\u003Cdetails>\n\u003Csummary>Concurrent GitHub Operations\u003C$summary>\n\n#### Parallel GitHub CLI Commands\n```javascript\n\u002F\u002F Single message with all GitHub operations\n[Concurrent Execution]:\n  Bash(\"gh issue create --title 'Feature A' --body 'Description A' --label 'enhancement'\")\n  Bash(\"gh issue create --title 'Feature B' --body 'Description B' --label 'enhancement'\")\n  Bash(\"gh pr create --title 'PR 1' --head 'feature-a' --base 'main'\")\n  Bash(\"gh pr create --title 'PR 2' --head 'feature-b' --base 'main'\")\n  Bash(\"gh pr checks 123 --watch\")\n  TodoWrite { todos: [\n    {content: \"Review security scan results\", status: \"pending\"},\n    {content: \"Merge approved PRs\", status: \"pending\"},\n    {content: \"Update changelog\", status: \"pending\"}\n  ]}\n```\n\n\u003C$details>\n\n## Best Practices\n\n### 🏗️ Workflow Organization\n\n\u003Cdetails>\n\u003Csummary>Structure Your GitHub Workflows\u003C$summary>\n\n#### 1. Use Reusable Workflows\n```yaml\n# .github$workflows$reusable-swarm.yml\nname: Reusable Swarm Workflow\non:\n  workflow_call:\n    inputs:\n      topology:\n        required: true\n        type: string\n\njobs:\n  swarm-task:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Initialize Swarm\n        run: |\n          npx ruv-swarm init --topology ${{ inputs.topology }}\n```\n\n#### 2. Implement Proper Caching\n```yaml\n- name: Cache Swarm Dependencies\n  uses: actions$cache@v3\n  with:\n    path: ~\u002F.npm\n    key: ${{ runner.os }}-swarm-${{ hashFiles('**$package-lock.json') }}\n```\n\n#### 3. Set Appropriate Timeouts\n```yaml\njobs:\n  swarm-task:\n    timeout-minutes: 30\n    steps:\n      - name: Swarm Operation\n        timeout-minutes: 10\n```\n\n#### 4. Use Workflow Dependencies\n```yaml\njobs:\n  setup:\n    runs-on: ubuntu-latest\n\n  test:\n    needs: setup\n    runs-on: ubuntu-latest\n\n  deploy:\n    needs: [setup, test]\n    runs-on: ubuntu-latest\n```\n\n\u003C$details>\n\n### 🔒 Security Best Practices\n\n\u003Cdetails>\n\u003Csummary>Secure Your GitHub Workflows\u003C$summary>\n\n#### 1. Store Configurations Securely\n```yaml\n- name: Setup Swarm\n  env:\n    SWARM_CONFIG: ${{ secrets.SWARM_CONFIG }}\n    API_KEY: ${{ secrets.API_KEY }}\n  run: |\n    npx ruv-swarm init --config \"$SWARM_CONFIG\"\n```\n\n#### 2. Use OIDC Authentication\n```yaml\npermissions:\n  id-token: write\n  contents: read\n\n- name: Configure AWS Credentials\n  uses: aws-actions$configure-aws-credentials@v2\n  with:\n    role-to-assume: arn:aws:iam::123456789012:role\u002FGitHubAction\n    aws-region: us-east-1\n```\n\n#### 3. Implement Least-Privilege\n```yaml\npermissions:\n  contents: read\n  pull-requests: write\n  issues: write\n```\n\n#### 4. Audit Swarm Operations\n```yaml\n- name: Audit Swarm Actions\n  run: |\n    npx ruv-swarm actions audit \\\n      --export-logs \\\n      --compliance-report\n```\n\n\u003C$details>\n\n### ⚡ Performance Optimization\n\n\u003Cdetails>\n\u003Csummary>Maximize Workflow Performance\u003C$summary>\n\n#### 1. Cache Swarm Dependencies\n```yaml\n- uses: actions$cache@v3\n  with:\n    path: |\n      ~\u002F.npm\n      node_modules\n    key: ${{ runner.os }}-swarm-${{ hashFiles('**$package-lock.json') }}\n```\n\n#### 2. Use Appropriate Runner Sizes\n```yaml\njobs:\n  heavy-task:\n    runs-on: ubuntu-latest-4-cores\n    steps:\n      - name: Intensive Swarm Operation\n```\n\n#### 3. Implement Early Termination\n```yaml\n- name: Quick Fail Check\n  run: |\n    if ! npx ruv-swarm actions pre-check; then\n      echo \"Pre-check failed, terminating early\"\n      exit 1\n    fi\n```\n\n#### 4. Optimize Parallel Execution\n```yaml\nstrategy:\n  matrix:\n    include:\n      - runner: ubuntu-latest\n        task: test\n      - runner: ubuntu-latest\n        task: lint\n      - runner: ubuntu-latest\n        task: security\n  max-parallel: 3\n```\n\n\u003C$details>\n\n## Debugging & Troubleshooting\n\n### 🐛 Debug Tools\n\n\u003Cdetails>\n\u003Csummary>Debug GitHub Workflow Issues\u003C$summary>\n\n#### Debug Mode\n```yaml\n- name: Debug Swarm\n  run: |\n    npx ruv-swarm actions debug \\\n      --verbose \\\n      --trace-agents \\\n      --export-logs\n  env:\n    ACTIONS_STEP_DEBUG: true\n```\n\n#### Performance Profiling\n```bash\n# Profile workflow performance\nnpx ruv-swarm actions profile \\\n  --workflow \"ci.yml\" \\\n  --identify-slow-steps \\\n  --suggest-optimizations\n```\n\n#### Failure Analysis\n```bash\n# Analyze failed runs\ngh run view \u003Crun-id> --json jobs,conclusion | \\\n  npx ruv-swarm actions analyze-failure \\\n    --suggest-fixes \\\n    --auto-retry-flaky\n```\n\n#### Log Analysis\n```bash\n# Download and analyze logs\ngh run download \u003Crun-id>\nnpx ruv-swarm actions analyze-logs \\\n  --directory .$logs \\\n  --identify-errors\n```\n\n\u003C$details>\n\n## Real-World Examples\n\n### 🚀 Complete Workflows\n\n\u003Cdetails>\n\u003Csummary>Production-Ready Integration Examples\u003C$summary>\n\n#### Example 1: Full-Stack Application CI\u002FCD\n```yaml\nname: Full-Stack CI\u002FCD with Swarms\non:\n  push:\n    branches: [main, develop]\n  pull_request:\n\njobs:\n  initialize:\n    runs-on: ubuntu-latest\n    outputs:\n      swarm-id: ${{ steps.init.outputs.swarm-id }}\n    steps:\n      - id: init\n        run: |\n          SWARM_ID=$(npx ruv-swarm init --topology mesh --output json | jq -r '.id')\n          echo \"swarm-id=${SWARM_ID}\" >> $GITHUB_OUTPUT\n\n  backend:\n    needs: initialize\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions$checkout@v3\n      - name: Backend Tests\n        run: |\n          npx ruv-swarm agents spawn --type tester \\\n            --task \"Run backend test suite\" \\\n            --swarm-id ${{ needs.initialize.outputs.swarm-id }}\n\n  frontend:\n    needs: initialize\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions$checkout@v3\n      - name: Frontend Tests\n        run: |\n          npx ruv-swarm agents spawn --type tester \\\n            --task \"Run frontend test suite\" \\\n            --swarm-id ${{ needs.initialize.outputs.swarm-id }}\n\n  security:\n    needs: initialize\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions$checkout@v3\n      - name: Security Scan\n        run: |\n          npx ruv-swarm agents spawn --type security \\\n            --task \"Security audit\" \\\n            --swarm-id ${{ needs.initialize.outputs.swarm-id }}\n\n  deploy:\n    needs: [backend, frontend, security]\n    if: github.ref == 'refs$heads$main'\n    runs-on: ubuntu-latest\n    steps:\n      - name: Deploy\n        run: |\n          npx ruv-swarm actions deploy \\\n            --strategy progressive \\\n            --swarm-id ${{ needs.initialize.outputs.swarm-id }}\n```\n\n#### Example 2: Monorepo Management\n```yaml\nname: Monorepo Coordination\non: push\n\njobs:\n  detect-changes:\n    runs-on: ubuntu-latest\n    outputs:\n      packages: ${{ steps.detect.outputs.packages }}\n    steps:\n      - uses: actions$checkout@v3\n        with:\n          fetch-depth: 0\n\n      - id: detect\n        run: |\n          PACKAGES=$(npx ruv-swarm actions detect-changes \\\n            --monorepo \\\n            --output json)\n          echo \"packages=${PACKAGES}\" >> $GITHUB_OUTPUT\n\n  build-packages:\n    needs: detect-changes\n    runs-on: ubuntu-latest\n    strategy:\n      matrix:\n        package: ${{ fromJson(needs.detect-changes.outputs.packages) }}\n    steps:\n      - name: Build Package\n        run: |\n          npx ruv-swarm actions build \\\n            --package ${{ matrix.package }} \\\n            --parallel-deps\n```\n\n#### Example 3: Multi-Repo Synchronization\n```bash\n# Synchronize multiple repositories\nnpx claude-flow@alpha github sync-coordinator \\\n  \"Synchronize version updates across:\n   - github.com$org$repo-a\n   - github.com$org$repo-b\n   - github.com$org$repo-c\n\n   Update dependencies, align versions, create PRs\"\n```\n\n\u003C$details>\n\n## Command Reference\n\n### 📚 Quick Command Guide\n\n\u003Cdetails>\n\u003Csummary>All Available Commands\u003C$summary>\n\n#### Workflow Generation\n```bash\nnpx ruv-swarm actions generate-workflow [options]\n  --analyze-codebase       Analyze repository structure\n  --detect-languages       Detect programming languages\n  --create-optimal-pipeline Generate optimized workflow\n```\n\n#### Optimization\n```bash\nnpx ruv-swarm actions optimize [options]\n  --workflow \u003Cpath>        Path to workflow file\n  --suggest-parallelization Suggest parallel execution\n  --reduce-redundancy      Remove redundant steps\n  --estimate-savings       Estimate time$cost savings\n```\n\n#### Analysis\n```bash\nnpx ruv-swarm actions analyze [options]\n  --commit \u003Csha>           Analyze specific commit\n  --suggest-tests          Suggest test improvements\n  --optimize-pipeline      Optimize pipeline structure\n```\n\n#### Testing\n```bash\nnpx ruv-swarm actions smart-test [options]\n  --changed-files \u003Cfiles>  Files that changed\n  --impact-analysis        Analyze test impact\n  --parallel-safe          Only parallel-safe tests\n```\n\n#### Security\n```bash\nnpx ruv-swarm actions security [options]\n  --deep-scan             Deep security analysis\n  --format \u003Cformat>       Output format (json$text)\n  --create-issues         Auto-create GitHub issues\n```\n\n#### Deployment\n```bash\nnpx ruv-swarm actions deploy [options]\n  --strategy \u003Ctype>       Deployment strategy\n  --risk \u003Clevel>          Risk assessment level\n  --auto-execute          Execute automatically\n```\n\n#### Monitoring\n```bash\nnpx ruv-swarm actions analytics [options]\n  --workflow \u003Cname>       Workflow to analyze\n  --period \u003Cduration>     Analysis period\n  --identify-bottlenecks  Find bottlenecks\n  --suggest-improvements  Improvement suggestions\n```\n\n\u003C$details>\n\n## Integration Checklist\n\n### ✅ Setup Verification\n\n\u003Cdetails>\n\u003Csummary>Verify Your Setup\u003C$summary>\n\n- [ ] GitHub CLI (`gh`) installed and authenticated\n- [ ] Git configured with user credentials\n- [ ] Node.js v16+ installed\n- [ ] `claude-flow@alpha` package available\n- [ ] Repository has `.github$workflows` directory\n- [ ] GitHub Actions enabled on repository\n- [ ] Necessary secrets configured\n- [ ] Runner permissions verified\n\n#### Quick Setup Script\n```bash\n#!$bin$bash\n# setup-github-automation.sh\n\n# Install dependencies\nnpm install -g claude-flow@alpha\n\n# Verify GitHub CLI\ngh auth status || gh auth login\n\n# Create workflow directory\nmkdir -p .github$workflows\n\n# Generate initial workflow\nnpx ruv-swarm actions generate-workflow \\\n  --analyze-codebase \\\n  --create-optimal-pipeline > .github$workflows$ci.yml\n\necho \"✅ GitHub workflow automation setup complete\"\n```\n\n\u003C$details>\n\n## Related Skills\n\n- `github-pr-enhancement` - Advanced PR management\n- `release-coordination` - Release automation\n- `swarm-coordination` - Multi-agent orchestration\n- `ci-cd-optimization` - Pipeline optimization\n\n## Support & Documentation\n\n- **GitHub CLI Docs**: https:\u002F$cli.github.com$manual\u002F\n- **GitHub Actions**: https:\u002F$docs.github.com$en$actions\n- **Claude-Flow**: https:\u002F$github.com$ruvnet$claude-flow\n- **Ruv-Swarm**: https:\u002F$github.com$ruvnet$ruv-swarm\n\n## Version History\n\n- **v1.0.0** (2025-01-19): Initial skill consolidation\n  - Merged workflow-automation.md (441 lines)\n  - Merged github-modes.md (146 lines)\n  - Added progressive disclosure\n  - Enhanced with swarm coordination patterns\n  - Added comprehensive examples and best practices\n\n---\n\n**Skill Status**: ✅ Production Ready\n**Last Updated**: 2025-01-19\n**Maintainer**: claude-flow team\n",{"name":5,"tags":24,"authors":32,"version":34,"category":25,"priority":35,"requires":36,"description":7,"progressive_disclosure":41},[25,26,27,28,29,30,31],"github","github-actions","ci-cd","workflow-automation","swarm-coordination","deployment","security",[33],"claude-flow","1.0.0","high",[37,38,39,40],"gh (GitHub CLI)","git","claude-flow@alpha","node (v16+)",true,"main","87afe6ce96220accf50a345dea46784c8c9f210e","YYC3-Agent-智能体\u002FYYC3-Agent-智能体-ruflo\u002F.agents\u002Fskills\u002Fgithub-workflow-automation",0,"https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base","https:\u002F\u002Fkb.yyc3.top\u002F","https:\u002F\u002Fgithub.com\u002FYYC-Cube","万象归元于云枢 | 深栈智启新纪元","2026-11-10 10:37:32",{"source":8,"skillName":5,"commands":52,"prompt":62,"zipAvailable":41},[53,56,59],{"tool":54,"command":55},"npx","npx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill github-workflow-automation",{"tool":57,"command":58},"bunx","bunx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill github-workflow-automation",{"tool":60,"command":61},"pnpm","pnpm dlx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill github-workflow-automation","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Agent-智能体\u002FYYC3-Agent-智能体-ruflo\u002F.agents\u002Fskills\u002Fgithub-workflow-automation\u002FSKILL.md",[],[65,72,79,86,93,100],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M7CTDWHERCXPQCP0K03A86AS","vercel-sandbox","Run agent-browser + Chrome inside Vercel Sandbox microVMs for browser automation from any Vercel-deployed app. Use when the user needs browser automation in a Vercel app (Next.js, SvelteKit, Nuxt, Remix, Astro, etc.), wants to run headless Chrome without binary size limits, needs persistent browser sessions across commands, or wants ephemeral isolated browser environments. Triggers include \"Vercel Sandbox browser\", \"microVM Chrome\", \"agent-browser in sandbox\", \"browser automation on Vercel\", or any task requiring Chrome in a Vercel Sandbox.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fvercel-sandbox\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M7CTD8D2BNJY54S65M47HEJA","slack","Interact with Slack workspaces using browser automation. Use when the user needs to check unread channels, navigate Slack, send messages, extract data, find information, search conversations, or automate any Slack task. Triggers include \"check my Slack\", \"what channels have unreads\", \"send a message to\", \"search Slack for\", \"extract from Slack\", \"find who said\", or any task requiring programmatic Slack interaction.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fslack\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M7CTCSSB8ZP3Q58C3YZDZK1W","electron","Automate Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify, etc.) using agent-browser via Chrome DevTools Protocol. Use when the user needs to interact with an Electron app, automate a desktop app, connect to a running app, control a native app, or test an Electron application. Triggers include \"automate Slack app\", \"control VS Code\", \"interact with Discord app\", \"test this Electron app\", \"connect to desktop app\", or any task requiring automation of a native Electron application.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Felectron\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M7CTCBJY76688V4DCZGWFHGQ","dogfood","Systematically explore and test a web application to find bugs, UX issues, and other problems. Use when asked to \"dogfood\", \"QA\", \"exploratory test\", \"find issues\", \"bug hunt\", \"test this app\u002Fsite\u002Fplatform\", or review the quality of a web application. Produces a structured report with full reproduction evidence -- step-by-step screenshots, repro videos, and detailed repro steps for every issue -- so findings can be handed directly to the responsible teams.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fdogfood\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":19},"01M7CTC4H0FFGVEAQR9PA4GA1A","agent-browser","Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to \"open a website\", \"fill out a form\", \"click a button\", \"take a screenshot\", \"scrape data from a page\", \"test this web app\", \"login to a site\", \"automate browser actions\", or any task requiring programmatic web interaction.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fagent-browser\u002FSKILL.md",[],[],{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":19},"01M7CTBKVFYBG78FDSABSDJTTQ","shadcn","Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI, including chat interfaces. Provides project context, component docs, and usage examples. Applies when working with shadcn\u002Fui, component registries, presets, --preset codes, or any project with a components.json file. Also triggers for \"shadcn init\", \"create an app with --preset\", \"switch to --preset\", and for building a design system or applying a DESIGN.md or brand spec to shadcn\u002Fui.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-UI-界面组件\u002FYYC3-UI-界面组件-ui\u002Fskills\u002Fshadcn\u002FSKILL.md",[],[]]