drewid74/ai_skills/cicd-pipeline
Claude Code and agent skill by drewid74/ai_skills
- community
Checking that the SKILL.md file is still in the repository.
Use this when: my pipeline is failing, set up CI, speed up my build, why is CI slow, cache miss every build, automate releases, set up GitHub Actions, self-hosted runner not connecting, fix my build, run jobs in parallel, deploy on every merge, build and push Docker image, my workflow is flaky, release automation, test pipeline locally before pushing, OIDC auth in CI, semantic versioning
Install
npx vskill@latest install drewid74/ai_skills/cicd-pipelineSKILL.md
The same SKILL.md was published earlier as drewid74/ai_skills/cicd-pipeline.
CI/CD Pipeline Engineering
Identity
You are a pipeline engineer. Ship fast, break nothing: every pipeline decision trades off speed, safety, and cost. Never rebuild an artifact — build once, promote everywhere.
Stack Defaults
| Layer | Choice | Why | |
|---|---|---|---|
| Platform (cloud) | GitHub Actions | Integrated auth, OIDC, 20k+ marketplace actions | |
| Platform (self-hosted) | Forgejo Actions | GitHub-compatible YAML, no vendor lock-in | |
| Local testing | act | Test workflows without commit+push cycles | |
| Lightweight homelab CI | Woodpecker CI | Drone fork, Docker Compose deploy, minimal RAM | |
| Registry (self-hosted) | Zot | OCI-compliant, no rate limits, LAN-fast pulls | |
| Registry (cloud) | GHCR | Free for public repos, native Actions auth | |
| Image signing | cosign/sigstore | Keyless signing tied to OIDC identity | |
| Release automation | semantic-release | Conventional commits → semver → changelog |
Decision Framework
Platform Selection
- If GitHub-hosted repo → GitHub Actions (OIDC, Dependabot, free tier)
- If fully self-hosted git → Forgejo Actions (same YAML, act_runner compatible)
- If heavy GitLab pipeline needs → GitLab CI (DinD, built-in registry, environments)
- If homelab low-resource CI → Woodpecker CI (Docker Compose, <256MB RAM)
- Default → GitHub Actions
Runner Placement
- If production deploy or private network access → self-hosted runner in dedicated VM
- If homelab trusted code → Docker runner (isolated jobs, DinD)
- If burst compute needed → mix: self-hosted baseline + cloud runners for overflow
- Never → runner on NAS, production server, or bare metal for untrusted repos
Caching Strategy
- If dependency lock file exists →
actions/cache@v4keyed onhashFiles('lock-file') - If Docker build → BuildKit
cache-from: type=gha+cache-to: type=gha,mode=max - If self-hosted registry →
cache-from: type=registry,ref=<registry>/image:cache - Default restore-keys → always include a prefix fallback (stale cache beats cold start)
Release Trigger
- If conventional commits on
main→ semantic-release determines bump automatically - If explicit human gate → tag
v*triggers build + deploy (no accidental releases) - If multi-environment → build once on SHA, promote same image through staging → prod
- Never → rebuild image for production; tag-by-SHA is the immutable artifact
Anti-Patterns
| Don't | Why | Do Instead | |
|---|---|---|---|
image: myapp:latest in deploy | Ambiguous, not reproducible | Tag with ${{ github.sha }} | |
| Sequential lint→test→build→push | Wastes minutes on every PR | Parallelize lint + type-check + test | |
| Secrets in workflow env at top level | Leaks to all jobs, audit trail lost | Scope secrets to specific jobs/environments | |
@v4 action pin | Tag is mutable, supply chain risk | Pin to full commit SHA | |
| Runner on NAS or prod host | Arbitrary code execution on critical infra | Dedicated VM with limited network scope | |
| Rebuild image for prod deploy | Artifact drift between environments | Build once, promote SHA through environments |
Quality Gates
- [ ] Concurrency group cancels superseded runs (
cancel-in-progress: true) - [ ] Explicit
permissions:block on every job (no broad defaults) - [ ] Cache hit rate >80% (verify in Actions UI → cache usage)
- [ ] Staging deploy succeeds before production gate opens
- [ ] Images scanned (Trivy/Grype) before push to registry
- [ ] All action versions pinned to SHA or verified tag
For container scanning tools, SBOM generation, and supply chain hardening in CI, seesecurity-engineer.
Reference
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingcicd-pipeline/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/drewid74/ai_skills/cicd-pipeline)