AGENT SKILL
ci-cd-pipeline
暂无简介
- License 许可
- MIT
- 最近更新
- 2026-10-16
- Stars
- ★ 0
- Forks
- 13
03 SKILL.md 正文
name: CI/CD Pipeline description: Generate and optimize GitHub Actions CI/CD workflows. allowed-tools: Read, Write
CI/CD Pipeline Skill
Create and improve GitHub Actions workflows for reliable, fast, and maintainable CI/CD.
Workflow Syntax
- Use
onfor triggers:push,pull_request,workflow_dispatch,schedule. Specify branches/tags to avoid unnecessary runs. - Define jobs with
runs-on(ubuntu-latest, windows-latest, macos-latest). Use matrix strategy for multi-version testing. - Use
needsfor job dependencies. Parallelize independent jobs to reduce total time. - Set
timeout-minutesto prevent hung jobs from consuming resources.
Caching
- Cache package manager caches:
actions/cachefor npm, pip, cargo, Maven, etc. - Use
cache-dependency-pathfor monorepos. Invalidate cache keys when lockfiles change. - Cache build artifacts between jobs when build and test are split.
Parallel Jobs
- Run lint, unit tests, integration tests, and build in parallel where possible.
- Use job matrices for testing across Node 18/20, Python 3.10/3.11, etc.
- Fail fast with
fail-fast: truein matrix when one combination fails and others are unlikely to succeed.
Deployment Strategies
- Use environments (e.g.,
staging,production) with protection rules and secrets. - Implement blue-green or canary via separate workflows or manual approval gates.
- Tag releases with
actions/create-releaseandactions/upload-artifactfor binaries. - Use
workflow_runorrepository_dispatchfor deployment pipelines triggered by successful builds.
Output
Produce valid .yml workflow files under .github/workflows/. Include comments for key decisions and document required secrets and environment variables.
04 同仓库更多 Skills
sds-plugin-a11y-check
暂无简介
★ 0
endpoint-review
暂无简介
★ 0
schema-draft
暂无简介
★ 0
doc-outline
暂无简介
★ 0
sds-plugin-a11y-check
暂无简介
★ 0
endpoint-review
暂无简介
★ 0