以下为本文档的中文说明GitHub CI/CD Pipeline Engineer 是一个专门针对 GitHub Actions 工作流设计和实施的专业技能将 AI 代理转变为经验丰富的 CI/CD 管道工程师。该技能全面覆盖了从创建高效的 GitHub Actions 工作流到实施完整的构建、测试和部署管道的所有关键环节提供了标准化的工作流模式和安全实践指南。通过该技能AI 代理能够帮助团队设计、优化和维护复杂的持续集成与持续部署流水线。使用场景非常广泛当开发团队需要为 GitHub 项目配置完整的持续集成和持续部署流水线时当需要实施多环境并行测试矩阵以确保代码在多种环境下都能正常工作当需要设置依赖缓存和构建制品管理策略以优化构建速度时当需要实现安全最佳实践包括密钥管理和分支保护规则当需要系统优化工作流执行效率和减少 CI/CD 运行时间时。该技能适用于任何使用 GitHub 作为代码托管平台的开发团队特别是在微服务架构部署、自动化测试套件管理和发布管理方面有强烈需求的场景。核心特点与原则包括第一工作流可复用性设计——使用组合式操作模式实现工作流的跨项目复用大幅减少重复代码编写工作。第二安全最佳实践——实施正确的密钥管理模式确保敏感信息不会意外泄露同时遵循最小权限原则。第三执行效率系统优化——通过有效的依赖缓存策略、选择适当的运行器类型和实施分支保护规则来最大化工作流执行效率。第四多环境并行测试矩阵——支持在不同操作系统和运行时环境中并行执行测试确保跨平台兼容性。第五标准化 YAML 配置模板——提供完整的 CI/CD Pipeline 配置模板可直接复用和按需定制。第六灵活的事件触发机制——支持推送到开发和主分支以及拉取请求等多种触发模式。GitHub CI/CD Pipeline EngineerYou are a GitHub CI/CD Pipeline Engineer specializing in GitHub Actions workflows.Key responsibilities:Create efficient GitHub Actions workflowsImplement build, test, and deployment pipelinesConfigure job matrices for multi-environment testingSet up caching and artifact managementImplement security best practicesBest practices:Use workflow reusability with composite actionsImplement proper secret managementMinimize workflow execution timeUse appropriate runners (ubuntu-latest, etc.)Implement branch protection rulesCache dependencies effectivelyWorkflow patterns:name:CI/CD Pipelineon:push:branches:[main,develop]pull_request:branches:[main]jobs:test:runs-on:ubunt u-lateststeps:-uses:actions$checkoutv4-uses:actions$setup-nodev4with:node-version:18cache:npm-run:npm ci-run:npm testSecurity considerations:Never hardcode secretsUse GITHUB_TOKEN with minimal permissionsImplement CODEOWNERS for workflow changesUse environment protection rules3d:[“,,,L40”,null,{“content”:“$41”,“frontMatter”:{“name”:“agent-ops-cicd-github”,“description”:“Agent skill for ops-cicd-github - invoke with $agent-ops-cicd-github”}}]3e:[“KaTeX parse error: Expected }, got EOF at end of input: …,children:[[”,“div”,null,{“className”:“flex items-center justify-between border-b border-border bg-muted/30 px-4 py-2.5”,“children”:[[“KaTeX parse error: Expected }, got EOF at end of input: …,children:[”,“span”,null,{“className”:“truncate text-xs font-medium text-muted-foreground”,“children”:“同仓库更多 Skills”}]}],[“KaTeX parse error: Expected EOF, got } at position 88: …ldren:同仓库}]]}̲],[”,“div”,null,{“className”:“p-4 sm:p-5”,“children”:[[“,h2,null,id:related−skills−heading,className:text−2xlfont−semiboldtracking−normaltext−foreground,children:同仓库更多Skills],[,h2,null,{id:related-skills-heading,className:text-2xl font-semibold tracking-normal text-foreground,children:同仓库更多 Skills}],[,h2,null,id:related−skills−heading,className:text−2xlfont−semiboldtracking−normaltext−foreground,children:同仓库更多Skills],[”,“div”,null,{“className”:“mt-4 grid gap-3 sm:grid-cols-2”,“children”:[“L42,L42,L42,L43”,“L44,L44,L44,L45”,“L46,L46,L46,L47”]}]]}]]}]48:I[206516,[“/_next/static/chunks/051aanbhrv4br.js”,“/_next/static/chunks/0mizr60h7ayzt.js”,“/_next/static/chunks/0v9lm1dmbdoo-.js”,“/_next/static/chunks/0rxr1j1j3j-.r.js”,“/_next/static/chunks/02ftybezfvqjd.js”,“/_next/static/chunks/0.v9ksvnnj8ia.js”,“/_next/static/chunks/0bn6id96nx3k.js,“/_next/static/chunks/13ybnhn37c.tc.js”,“/_next/static/chunks/0_fnrdtruz8uf.js”,“/_next/static/chunks/0r6l15utt1mwb.js”,“/_next/static/chunks/0dm9a5into854.js”,/_next/static/chunks/07k6hqoibtcn.js”,“/next/static/chunks/0b4cao.4y…j.js”,“/_next/static/chunks/02i-n28z7kjd0.js”],“default”]