Agent Skill
2/7/2026ci-cd
CI/CD pipeline patterns for GitHub Actions including test, build, deploy stages, caching, matrix testing, and release automation. Use when setting up or modifying CI/CD pipelines.
B
bigpapicb
0GitHub Stars
1Views
npx skills add BigPapiCB/Universal-Claude-Skills
SKILL.md
| Name | ci-cd |
| Description | CI/CD pipeline patterns for GitHub Actions including test, build, deploy stages, caching, matrix testing, and release automation. Use when setting up or modifying CI/CD pipelines. |
name: ci-cd description: CI/CD pipeline patterns for GitHub Actions including test, build, deploy stages, caching, matrix testing, and release automation. Use when setting up or modifying CI/CD pipelines. compatibility: Requires GitHub repository metadata: version: "1.0"
CI/CD
Decision Tree
Need CI/CD → What stack?
├─ Node/TypeScript → Use assets/ci-node.yml.template
├─ Python → Use assets/ci-python.yml.template
└─ Multi-stack → Combine relevant templates
Pipeline Stages
Push/PR → Lint → Test → Build → Deploy (main only)
Key Patterns
Caching
- uses: actions/cache@v4
with:
path: ~/.npm
key: npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: npm-
Branch Protection
- Require PR reviews before merge
- Require status checks to pass
- Require branch is up to date
- No force pushes to main
Secrets
- Use GitHub Secrets (never echo in logs)
- Use OIDC for cloud deployments (no static credentials)
- Scope secrets to environments (staging, production)
Anti-Patterns
| Anti-Pattern | Fix |
|---|---|
| No caching | Cache dependencies |
npm install in CI | Use npm ci (deterministic) |
| Skip tests for speed | Parallelize instead |
| Deploy on every push | Use tags/releases |
| Manual version bumps | Automate with semantic-release |
Templates:
Skills Info
Original Name:ci-cdAuthor:bigpapicb
Download