Loading...
Loading...
Design, optimize, and debug CI/CD pipelines. GitHub Actions and GitLab CI patterns. Use for pipeline work. NOT for infrastructure provisioning (infrastructure-coder) or app code.
npx skill4agent add wyattowalsh/agents devops-engineer| Term | Definition |
|---|---|
| workflow | A CI/CD pipeline definition file (.github/workflows/*.yml, .gitlab-ci.yml) |
| job | A named unit of work within a workflow containing one or more steps |
| step | A single action within a job (run command, uses action) |
| stage | A logical grouping of jobs (build, test, deploy) |
| artifact | Build output passed between jobs or stages |
| cache | Dependency/build cache persisted across runs to reduce build time |
| matrix | Parameterized job expansion across multiple configurations |
| concurrency group | Mutual exclusion mechanism preventing parallel runs |
| environment | Deployment target with protection rules (staging, production) |
| promotion | Moving artifacts through environments (dev -> staging -> prod) |
| rollback | Reverting a deployment to a previous known-good state |
| canary | Incremental traffic shift to new version (1% -> 5% -> 25% -> 100%) |
| blue/green | Two identical environments with instant traffic switch |
| rolling | Gradual instance-by-instance replacement |
| gate | Manual or automated approval checkpoint before deployment proceeds |
| runner | Execution environment for CI/CD jobs (GitHub-hosted, self-hosted) |
| reusable workflow | Callable workflow template invoked from other workflows |
| composite action | Multi-step action packaged as a single reusable unit |
| $ARGUMENTS | Mode |
|---|---|
| Generate: new CI/CD workflow from requirements |
| Action: GitHub Action step/job generation |
| Optimize: pipeline build time optimization |
| Deploy: deployment strategy design |
| Review: audit existing pipeline |
| Debug: analyze CI failure logs |
| Natural language about CI/CD | Auto-detect appropriate mode |
| Empty | Show mode menu with examples |
pipelinereferences/github-actions-patterns.mdreferences/gitlab-ci-patterns.mduv run python scripts/workflow-analyzer.py <file>actionreferences/github-actions-patterns.mduseswithenvoptimizeuv run python scripts/workflow-analyzer.py <workflow>uv run python scripts/pipeline-cost-estimator.py <workflow>references/pipeline-optimization.mddeployreferences/deployment-strategies.md| Factor | Blue/Green | Canary | Rolling |
|---|---|---|---|
| Rollback speed | Instant | Fast | Slow |
| Resource cost | 2x | 1.1-1.5x | 1x |
| Risk exposure | None (pre-switch) | Gradual | Gradual |
| Complexity | Medium | High | Low |
| Best for | Critical services | High-traffic APIs | Cost-sensitive apps |
reviewuv run python scripts/workflow-analyzer.py <workflow>references/pipeline-review-checklist.mddebuguv run python scripts/log-parser.py <logfile>references/ci-failure-triage.md| Category | Examples | Common Fixes |
|---|---|---|
| dependency | Version conflict, missing package, registry timeout | Pin versions, add retry, use cache |
| build | Compilation error, type error, out of memory | Fix code, increase runner memory |
| test | Assertion failure, flaky test, timeout | Fix test, add retry for flaky, increase timeout |
| lint | Format violation, rule violation | Run formatter, update config |
| deploy | Permission denied, health check fail, resource limit | Fix permissions, check config, scale resources |
| File | Content | Read When |
|---|---|---|
| Workflow patterns, reusable workflows, composite actions, security hardening | Generate, Action, Review modes |
| GitLab CI pipeline patterns, includes, rules, environments | Generate mode (GitLab) |
| Blue/green, canary, rolling strategies with comparison and rollback | Deploy mode |
| Caching, parallelization, selective runs, matrix optimization | Optimize mode |
| Security, reliability, performance, maintainability, cost checklists | Review mode |
| Error category taxonomy, root cause patterns, fix recipes | Debug mode |
| Artifact passing, retention, environment promotion patterns | Generate, Deploy modes |
| Script | When to Run |
|---|---|
| Analyze workflow structure, detect issues, find optimization opportunities |
| Estimate CI minutes and identify cost savings |
| Extract actionable errors from CI failure logs |
| Template | When to Render |
|---|---|
| After analysis -- inject pipeline health data into the dashboard |
uses: actions/checkout@<sha>pull_request_targetactions/checkoutpermissions${{ secrets.NAME }}concurrencytimeout-minutesruns-on: self-hostedworkflow-analyzer.py