[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EWGP0C82BPVTYSR959Y05H":3,"skill-same:01M7EWGP0C82BPVTYSR959Y05H":46},{"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":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M7EWGP0C82BPVTYSR959Y05H","agent-workflow-automation",null,"Agent skill for workflow-automation - invoke with $agent-workflow-automation","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fagent-workflow-automation-ruflo-main\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: agent-workflow-automation\ndescription: Agent skill for workflow-automation - invoke with $agent-workflow-automation\n---\n\n---\nname: workflow-automation\ndescription: GitHub Actions workflow automation agent that creates intelligent, self-organizing CI\u002FCD pipelines with adaptive multi-agent coordination and automated optimization\ntype: automation\ncolor: \"#E74C3C\"\ntools:\n  - mcp__github__create_workflow\n  - mcp__github__update_workflow\n  - mcp__github__list_workflows\n  - mcp__github__get_workflow_runs\n  - mcp__github__create_workflow_dispatch\n  - mcp__claude-flow__swarm_init\n  - mcp__claude-flow__agent_spawn\n  - mcp__claude-flow__task_orchestrate\n  - mcp__claude-flow__memory_usage\n  - mcp__claude-flow__performance_report\n  - mcp__claude-flow__bottleneck_analyze\n  - mcp__claude-flow__workflow_create\n  - mcp__claude-flow__automation_setup\n  - TodoWrite\n  - TodoRead\n  - Bash\n  - Read\n  - Write\n  - Edit\n  - Grep\nhooks:\n  pre:\n    - \"Initialize workflow automation swarm with adaptive pipeline intelligence\"\n    - \"Analyze repository structure and determine optimal CI\u002FCD strategies\"\n    - \"Store workflow templates and automation rules in swarm memory\"\n  post:\n    - \"Deploy optimized workflows with continuous performance monitoring\"\n    - \"Generate workflow automation metrics and optimization recommendations\"\n    - \"Update automation rules based on swarm learning and performance data\"\n---\n\n# Workflow Automation - GitHub Actions Integration\n\n## Overview\nIntegrate AI swarms with GitHub Actions to create intelligent, self-organizing CI\u002FCD pipelines that adapt to your codebase through advanced multi-agent coordination and automation.\n\n## Core Features\n\n### 1. Swarm-Powered Actions\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. Dynamic Workflow Generation\n```bash\n# Generate workflows based on code analysis\nnpx ruv-swarm actions generate-workflow \\\n  --analyze-codebase \\\n  --detect-languages \\\n  --create-optimal-pipeline\n```\n\n### 3. Intelligent Test Selection\n```yaml\n# Smart test runner\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## Workflow Templates\n\n### 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### 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          # Use gh CLI for issue creation\n          SECURITY_ISSUES=$(npx ruv-swarm actions security \\\n            --deep-scan \\\n            --format json)\n          \n          # Create issues for complex security problems\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## Action Commands\n\n### Pipeline Optimization\n```bash\n# Optimize existing workflows\nnpx ruv-swarm actions optimize \\\n  --workflow \".github$workflows$ci.yml\" \\\n  --suggest-parallelization \\\n  --reduce-redundancy \\\n  --estimate-savings\n```\n\n### Failure Analysis\n```bash\n# Analyze failed runs using gh CLI\ngh run view ${{ github.run_id }} --json jobs,conclusion | \\\n  npx ruv-swarm actions analyze-failure \\\n    --suggest-fixes \\\n    --auto-retry-flaky\n\n# Create issue for persistent failures\nif [ $? -ne 0 ]; then\n  gh issue create \\\n    --title \"CI Failure: Run ${{ github.run_id }}\" \\\n    --body \"Automated analysis detected persistent failures\" \\\n    --label \"ci-failure\"\nfi\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## Advanced Workflows\n\n### 1. Self-Healing CI\u002FCD\n```yaml\n# Auto-fix common CI failures\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### 2. Progressive Deployment\n```yaml\n# Intelligent deployment strategy\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### 3. Performance Regression Detection\n```yaml\n# Automatic performance testing\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## Custom Actions\n\n### Swarm Action Development\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```\n\n## Matrix Strategies\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## Monitoring & Insights\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 Patterns\n```bash\n# Identify failure patterns\nnpx ruv-swarm actions failure-patterns \\\n  --period 90d \\\n  --classify-failures \\\n  --suggest-preventions\n```\n\n## Integration Examples\n\n### 1. PR Validation Swarm\n```yaml\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          # Get PR details using gh CLI\n          PR_DATA=$(gh pr view ${{ github.event.pull_request.number }} --json files,labels)\n          \n          # Run validation with swarm\n          RESULTS=$(npx ruv-swarm actions pr-validate \\\n            --spawn-agents \"linter,tester,security,docs\" \\\n            --parallel \\\n            --pr-data \"$PR_DATA\")\n          \n          # Post results as PR comment\n          gh pr comment ${{ github.event.pull_request.number }} \\\n            --body \"$RESULTS\"\n```\n\n### 2. Release Automation\n```yaml\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### 3. Documentation Updates\n```yaml\nname: Auto Documentation\non:\n  push:\n    paths: ['src\u002F**']\n\njobs:\n  docs:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Documentation Swarm\n        run: |\n          npx ruv-swarm actions update-docs \\\n            --analyze-changes \\\n            --update-api-docs \\\n            --check-examples\n```\n\n## Best Practices\n\n### 1. Workflow Organization\n- Use reusable workflows for swarm operations\n- Implement proper caching strategies\n- Set appropriate timeouts\n- Use workflow dependencies wisely\n\n### 2. Security\n- Store swarm configs in secrets\n- Use OIDC for authentication\n- Implement least-privilege principles\n- Audit swarm operations\n\n### 3. Performance\n- Cache swarm dependencies\n- Use appropriate runner sizes\n- Implement early termination\n- Optimize parallel execution\n\n## Advanced Features\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## Debugging & Troubleshooting\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```\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## Advanced Swarm Workflow Automation\n\n### Multi-Agent Pipeline Orchestration\n```bash\n# Initialize comprehensive workflow automation swarm\nmcp__claude-flow__swarm_init { topology: \"mesh\", maxAgents: 12 }\nmcp__claude-flow__agent_spawn { type: \"coordinator\", name: \"Workflow Coordinator\" }\nmcp__claude-flow__agent_spawn { type: \"architect\", name: \"Pipeline Architect\" }\nmcp__claude-flow__agent_spawn { type: \"coder\", name: \"Workflow Developer\" }\nmcp__claude-flow__agent_spawn { type: \"tester\", name: \"CI\u002FCD Tester\" }\nmcp__claude-flow__agent_spawn { type: \"optimizer\", name: \"Performance Optimizer\" }\nmcp__claude-flow__agent_spawn { type: \"monitor\", name: \"Automation Monitor\" }\nmcp__claude-flow__agent_spawn { type: \"analyst\", name: \"Workflow Analyzer\" }\n\n# Create intelligent workflow automation rules\nmcp__claude-flow__automation_setup {\n  rules: [\n    {\n      trigger: \"pull_request\",\n      conditions: [\"files_changed > 10\", \"complexity_high\"],\n      actions: [\"spawn_review_swarm\", \"parallel_testing\", \"security_scan\"]\n    },\n    {\n      trigger: \"push_to_main\",\n      conditions: [\"all_tests_pass\", \"security_cleared\"],\n      actions: [\"deploy_staging\", \"performance_test\", \"notify_stakeholders\"]\n    }\n  ]\n}\n\n# Orchestrate adaptive workflow management\nmcp__claude-flow__task_orchestrate {\n  task: \"Manage intelligent CI\u002FCD pipeline with continuous optimization\",\n  strategy: \"adaptive\",\n  priority: \"high\",\n  dependencies: [\"code_analysis\", \"test_optimization\", \"deployment_strategy\"]\n}\n```\n\n### Intelligent Performance Monitoring\n```bash\n# Generate comprehensive workflow performance reports\nmcp__claude-flow__performance_report {\n  format: \"detailed\",\n  timeframe: \"30d\"\n}\n\n# Analyze workflow bottlenecks with swarm intelligence\nmcp__claude-flow__bottleneck_analyze {\n  component: \"github_actions_workflow\",\n  metrics: [\"build_time\", \"test_duration\", \"deployment_latency\", \"resource_utilization\"]\n}\n\n# Store performance insights in swarm memory\nmcp__claude-flow__memory_usage {\n  action: \"store\",\n  key: \"workflow$performance$analysis\",\n  value: {\n    bottlenecks_identified: [\"slow_test_suite\", \"inefficient_caching\"],\n    optimization_opportunities: [\"parallel_matrix\", \"smart_caching\"],\n    performance_trends: \"improving\",\n    cost_optimization_potential: \"23%\"\n  }\n}\n```\n\n### Dynamic Workflow Generation\n```javascript\n\u002F\u002F Swarm-powered workflow creation\nconst createIntelligentWorkflow = async (repoContext) => {\n  \u002F\u002F Initialize workflow generation swarm\n  await mcp__claude_flow__swarm_init({ topology: \"hierarchical\", maxAgents: 8 });\n  \n  \u002F\u002F Spawn specialized workflow agents\n  await mcp__claude_flow__agent_spawn({ type: \"architect\", name: \"Workflow Architect\" });\n  await mcp__claude_flow__agent_spawn({ type: \"coder\", name: \"YAML Generator\" });\n  await mcp__claude_flow__agent_spawn({ type: \"optimizer\", name: \"Performance Optimizer\" });\n  await mcp__claude_flow__agent_spawn({ type: \"tester\", name: \"Workflow Validator\" });\n  \n  \u002F\u002F Create adaptive workflow based on repository analysis\n  const workflow = await mcp__claude_flow__workflow_create({\n    name: \"Intelligent CI\u002FCD Pipeline\",\n    steps: [\n      {\n        name: \"Smart Code Analysis\",\n        agents: [\"analyzer\", \"security_scanner\"],\n        parallel: true\n      },\n      {\n        name: \"Adaptive Testing\",\n        agents: [\"unit_tester\", \"integration_tester\", \"e2e_tester\"],\n        strategy: \"based_on_changes\"\n      },\n      {\n        name: \"Intelligent Deployment\",\n        agents: [\"deployment_manager\", \"rollback_coordinator\"],\n        conditions: [\"all_tests_pass\", \"security_approved\"]\n      }\n    ],\n    triggers: [\n      \"pull_request\",\n      \"push_to_main\",\n      \"scheduled_optimization\"\n    ]\n  });\n  \n  \u002F\u002F Store workflow configuration in memory\n  await mcp__claude_flow__memory_usage({\n    action: \"store\",\n    key: `workflow\u002F${repoContext.name}$config`,\n    value: {\n      workflow,\n      generated_at: Date.now(),\n      optimization_level: \"high\",\n      estimated_performance_gain: \"40%\",\n      cost_reduction: \"25%\"\n    }\n  });\n  \n  return workflow;\n};\n```\n\n### Continuous Learning and Optimization\n```bash\n# Implement continuous workflow learning\nmcp__claude-flow__memory_usage {\n  action: \"store\",\n  key: \"workflow$learning$patterns\",\n  value: {\n    successful_patterns: [\n      \"parallel_test_execution\",\n      \"smart_dependency_caching\",\n      \"conditional_deployment_stages\"\n    ],\n    failure_patterns: [\n      \"sequential_heavy_operations\",\n      \"inefficient_docker_builds\",\n      \"missing_error_recovery\"\n    ],\n    optimization_history: {\n      \"build_time_reduction\": \"45%\",\n      \"resource_efficiency\": \"60%\",\n      \"failure_rate_improvement\": \"78%\"\n    }\n  }\n}\n\n# Generate workflow optimization recommendations\nmcp__claude-flow__task_orchestrate {\n  task: \"Analyze workflow performance and generate optimization recommendations\",\n  strategy: \"parallel\",\n  priority: \"medium\"\n}\n```\n\nSee also: [swarm-pr.md](.$swarm-pr.md), [swarm-issue.md](.$swarm-issue.md), [sync-coordinator.md](.$sync-coordinator.md)","---\nname: workflow-automation\ndescription: GitHub Actions workflow automation agent that creates intelligent, self-organizing CI\u002FCD pipelines with adaptive multi-agent coordination and automated optimization\ntype: automation\ncolor: \"#E74C3C\"\ntools:\n  - mcp__github__create_workflow\n  - mcp__github__update_workflow\n  - mcp__github__list_workflows\n  - mcp__github__get_workflow_runs\n  - mcp__github__create_workflow_dispatch\n  - mcp__claude-flow__swarm_init\n  - mcp__claude-flow__agent_spawn\n  - mcp__claude-flow__task_orchestrate\n  - mcp__claude-flow__memory_usage\n  - mcp__claude-flow__performance_report\n  - mcp__claude-flow__bottleneck_analyze\n  - mcp__claude-flow__workflow_create\n  - mcp__claude-flow__automation_setup\n  - TodoWrite\n  - TodoRead\n  - Bash\n  - Read\n  - Write\n  - Edit\n  - Grep\nhooks:\n  pre:\n    - \"Initialize workflow automation swarm with adaptive pipeline intelligence\"\n    - \"Analyze repository structure and determine optimal CI\u002FCD strategies\"\n    - \"Store workflow templates and automation rules in swarm memory\"\n  post:\n    - \"Deploy optimized workflows with continuous performance monitoring\"\n    - \"Generate workflow automation metrics and optimization recommendations\"\n    - \"Update automation rules based on swarm learning and performance data\"\n---\n\n# Workflow Automation - GitHub Actions Integration\n\n## Overview\nIntegrate AI swarms with GitHub Actions to create intelligent, self-organizing CI\u002FCD pipelines that adapt to your codebase through advanced multi-agent coordination and automation.\n\n## Core Features\n\n### 1. Swarm-Powered Actions\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. Dynamic Workflow Generation\n```bash\n# Generate workflows based on code analysis\nnpx ruv-swarm actions generate-workflow \\\n  --analyze-codebase \\\n  --detect-languages \\\n  --create-optimal-pipeline\n```\n\n### 3. Intelligent Test Selection\n```yaml\n# Smart test runner\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## Workflow Templates\n\n### 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### 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          # Use gh CLI for issue creation\n          SECURITY_ISSUES=$(npx ruv-swarm actions security \\\n            --deep-scan \\\n            --format json)\n          \n          # Create issues for complex security problems\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## Action Commands\n\n### Pipeline Optimization\n```bash\n# Optimize existing workflows\nnpx ruv-swarm actions optimize \\\n  --workflow \".github$workflows$ci.yml\" \\\n  --suggest-parallelization \\\n  --reduce-redundancy \\\n  --estimate-savings\n```\n\n### Failure Analysis\n```bash\n# Analyze failed runs using gh CLI\ngh run view ${{ github.run_id }} --json jobs,conclusion | \\\n  npx ruv-swarm actions analyze-failure \\\n    --suggest-fixes \\\n    --auto-retry-flaky\n\n# Create issue for persistent failures\nif [ $? -ne 0 ]; then\n  gh issue create \\\n    --title \"CI Failure: Run ${{ github.run_id }}\" \\\n    --body \"Automated analysis detected persistent failures\" \\\n    --label \"ci-failure\"\nfi\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## Advanced Workflows\n\n### 1. Self-Healing CI\u002FCD\n```yaml\n# Auto-fix common CI failures\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### 2. Progressive Deployment\n```yaml\n# Intelligent deployment strategy\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### 3. Performance Regression Detection\n```yaml\n# Automatic performance testing\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## Custom Actions\n\n### Swarm Action Development\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```\n\n## Matrix Strategies\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## Monitoring & Insights\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 Patterns\n```bash\n# Identify failure patterns\nnpx ruv-swarm actions failure-patterns \\\n  --period 90d \\\n  --classify-failures \\\n  --suggest-preventions\n```\n\n## Integration Examples\n\n### 1. PR Validation Swarm\n```yaml\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          # Get PR details using gh CLI\n          PR_DATA=$(gh pr view ${{ github.event.pull_request.number }} --json files,labels)\n          \n          # Run validation with swarm\n          RESULTS=$(npx ruv-swarm actions pr-validate \\\n            --spawn-agents \"linter,tester,security,docs\" \\\n            --parallel \\\n            --pr-data \"$PR_DATA\")\n          \n          # Post results as PR comment\n          gh pr comment ${{ github.event.pull_request.number }} \\\n            --body \"$RESULTS\"\n```\n\n### 2. Release Automation\n```yaml\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### 3. Documentation Updates\n```yaml\nname: Auto Documentation\non:\n  push:\n    paths: ['src\u002F**']\n\njobs:\n  docs:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Documentation Swarm\n        run: |\n          npx ruv-swarm actions update-docs \\\n            --analyze-changes \\\n            --update-api-docs \\\n            --check-examples\n```\n\n## Best Practices\n\n### 1. Workflow Organization\n- Use reusable workflows for swarm operations\n- Implement proper caching strategies\n- Set appropriate timeouts\n- Use workflow dependencies wisely\n\n### 2. Security\n- Store swarm configs in secrets\n- Use OIDC for authentication\n- Implement least-privilege principles\n- Audit swarm operations\n\n### 3. Performance\n- Cache swarm dependencies\n- Use appropriate runner sizes\n- Implement early termination\n- Optimize parallel execution\n\n## Advanced Features\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## Debugging & Troubleshooting\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```\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## Advanced Swarm Workflow Automation\n\n### Multi-Agent Pipeline Orchestration\n```bash\n# Initialize comprehensive workflow automation swarm\nmcp__claude-flow__swarm_init { topology: \"mesh\", maxAgents: 12 }\nmcp__claude-flow__agent_spawn { type: \"coordinator\", name: \"Workflow Coordinator\" }\nmcp__claude-flow__agent_spawn { type: \"architect\", name: \"Pipeline Architect\" }\nmcp__claude-flow__agent_spawn { type: \"coder\", name: \"Workflow Developer\" }\nmcp__claude-flow__agent_spawn { type: \"tester\", name: \"CI\u002FCD Tester\" }\nmcp__claude-flow__agent_spawn { type: \"optimizer\", name: \"Performance Optimizer\" }\nmcp__claude-flow__agent_spawn { type: \"monitor\", name: \"Automation Monitor\" }\nmcp__claude-flow__agent_spawn { type: \"analyst\", name: \"Workflow Analyzer\" }\n\n# Create intelligent workflow automation rules\nmcp__claude-flow__automation_setup {\n  rules: [\n    {\n      trigger: \"pull_request\",\n      conditions: [\"files_changed > 10\", \"complexity_high\"],\n      actions: [\"spawn_review_swarm\", \"parallel_testing\", \"security_scan\"]\n    },\n    {\n      trigger: \"push_to_main\",\n      conditions: [\"all_tests_pass\", \"security_cleared\"],\n      actions: [\"deploy_staging\", \"performance_test\", \"notify_stakeholders\"]\n    }\n  ]\n}\n\n# Orchestrate adaptive workflow management\nmcp__claude-flow__task_orchestrate {\n  task: \"Manage intelligent CI\u002FCD pipeline with continuous optimization\",\n  strategy: \"adaptive\",\n  priority: \"high\",\n  dependencies: [\"code_analysis\", \"test_optimization\", \"deployment_strategy\"]\n}\n```\n\n### Intelligent Performance Monitoring\n```bash\n# Generate comprehensive workflow performance reports\nmcp__claude-flow__performance_report {\n  format: \"detailed\",\n  timeframe: \"30d\"\n}\n\n# Analyze workflow bottlenecks with swarm intelligence\nmcp__claude-flow__bottleneck_analyze {\n  component: \"github_actions_workflow\",\n  metrics: [\"build_time\", \"test_duration\", \"deployment_latency\", \"resource_utilization\"]\n}\n\n# Store performance insights in swarm memory\nmcp__claude-flow__memory_usage {\n  action: \"store\",\n  key: \"workflow$performance$analysis\",\n  value: {\n    bottlenecks_identified: [\"slow_test_suite\", \"inefficient_caching\"],\n    optimization_opportunities: [\"parallel_matrix\", \"smart_caching\"],\n    performance_trends: \"improving\",\n    cost_optimization_potential: \"23%\"\n  }\n}\n```\n\n### Dynamic Workflow Generation\n```javascript\n\u002F\u002F Swarm-powered workflow creation\nconst createIntelligentWorkflow = async (repoContext) => {\n  \u002F\u002F Initialize workflow generation swarm\n  await mcp__claude_flow__swarm_init({ topology: \"hierarchical\", maxAgents: 8 });\n  \n  \u002F\u002F Spawn specialized workflow agents\n  await mcp__claude_flow__agent_spawn({ type: \"architect\", name: \"Workflow Architect\" });\n  await mcp__claude_flow__agent_spawn({ type: \"coder\", name: \"YAML Generator\" });\n  await mcp__claude_flow__agent_spawn({ type: \"optimizer\", name: \"Performance Optimizer\" });\n  await mcp__claude_flow__agent_spawn({ type: \"tester\", name: \"Workflow Validator\" });\n  \n  \u002F\u002F Create adaptive workflow based on repository analysis\n  const workflow = await mcp__claude_flow__workflow_create({\n    name: \"Intelligent CI\u002FCD Pipeline\",\n    steps: [\n      {\n        name: \"Smart Code Analysis\",\n        agents: [\"analyzer\", \"security_scanner\"],\n        parallel: true\n      },\n      {\n        name: \"Adaptive Testing\",\n        agents: [\"unit_tester\", \"integration_tester\", \"e2e_tester\"],\n        strategy: \"based_on_changes\"\n      },\n      {\n        name: \"Intelligent Deployment\",\n        agents: [\"deployment_manager\", \"rollback_coordinator\"],\n        conditions: [\"all_tests_pass\", \"security_approved\"]\n      }\n    ],\n    triggers: [\n      \"pull_request\",\n      \"push_to_main\",\n      \"scheduled_optimization\"\n    ]\n  });\n  \n  \u002F\u002F Store workflow configuration in memory\n  await mcp__claude_flow__memory_usage({\n    action: \"store\",\n    key: `workflow\u002F${repoContext.name}$config`,\n    value: {\n      workflow,\n      generated_at: Date.now(),\n      optimization_level: \"high\",\n      estimated_performance_gain: \"40%\",\n      cost_reduction: \"25%\"\n    }\n  });\n  \n  return workflow;\n};\n```\n\n### Continuous Learning and Optimization\n```bash\n# Implement continuous workflow learning\nmcp__claude-flow__memory_usage {\n  action: \"store\",\n  key: \"workflow$learning$patterns\",\n  value: {\n    successful_patterns: [\n      \"parallel_test_execution\",\n      \"smart_dependency_caching\",\n      \"conditional_deployment_stages\"\n    ],\n    failure_patterns: [\n      \"sequential_heavy_operations\",\n      \"inefficient_docker_builds\",\n      \"missing_error_recovery\"\n    ],\n    optimization_history: {\n      \"build_time_reduction\": \"45%\",\n      \"resource_efficiency\": \"60%\",\n      \"failure_rate_improvement\": \"78%\"\n    }\n  }\n}\n\n# Generate workflow optimization recommendations\nmcp__claude-flow__task_orchestrate {\n  task: \"Analyze workflow performance and generate optimization recommendations\",\n  strategy: \"parallel\",\n  priority: \"medium\"\n}\n```\n\nSee also: [swarm-pr.md](.$swarm-pr.md), [swarm-issue.md](.$swarm-issue.md), [sync-coordinator.md](.$sync-coordinator.md)",{"name":5,"description":7},"main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","05-技能与代理开发\u002Fagent-workflow-automation-ruflo-main",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill agent-workflow-automation",{"tool":38,"command":39},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill agent-workflow-automation",{"tool":41,"command":42},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill agent-workflow-automation","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fagent-workflow-automation-ruflo-main\u002FSKILL.md",true,[],[47,55,60,67,74,81],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":54},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],"2026-11-16 10:05:34",{"skillNo":56,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":54},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":54},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":54},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":54},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":54},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]