softspark/ai-toolkit/ci-cd-patterns
Claude Code and agent skill by softspark/ai-toolkit
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
CI/CD: GitHub Actions, GitLab CI, Jenkins, caching, blue-green, canary. Triggers: CI, CD, pipeline, GitHub Actions, workflow YAML, release, canary, rollout.
Install
npx vskill@latest install softspark/ai-toolkit/ci-cd-patternsSKILL.md
The same SKILL.md was published earlier as softspark/ai-toolkit/ci-cd-patterns.
CI/CD Patterns
GitHub Actions
Standard Pipeline
Python CI
Docker Build & Push
GitLab CI
Docker Multi-stage Builds
Node.js
Python
Caching Strategies
npm/pnpm
pip
Docker Layer Caching
Kubernetes Deployment
Rolling Update
Secret Management
Release Automation
Semantic Release
Conventional Commits for Auto-versioning
| Prefix | Version Bump | Example | |
|---|---|---|---|
fix: | Patch (0.0.x) | fix: resolve null pointer in auth | |
feat: | Minor (0.x.0) | feat: add user search endpoint | |
feat!: / BREAKING CHANGE: | Major (x.0.0) | feat!: change API response format |
Common Rationalizations
| Excuse | Why It's Wrong | |
|---|---|---|
| "CI is green, ship it" | CI tests the happy path — verify edge cases, security, and performance separately | |
| "Manual deploys give us more control" | Manual deploys give you more human error — automate the repeatable parts | |
| "We'll set up CI when the project is bigger" | Small projects grow fast — CI debt compounds and retrofitting is painful | |
| "Caching isn't worth the complexity" | Uncached builds waste developer time daily — caching pays for itself in a week | |
| "Feature flags are over-engineering" | Feature flags decouple deploy from release — they're the cheapest safety net |
Anti-Patterns
- Secrets in pipeline logs or environment dumps
- No caching (slow builds)
- Running tests only on main (should run on PRs)
- Manual deployments to production
- No rollback strategy
- Skipping linting/type-checking in CI
Rules
- MUST include lint, test, and build stages in every pipeline — deploy-only pipelines defer failure to production
- MUST cache dependencies by lockfile hash, not by branch name — branch keys grow unbounded and leak cache across unrelated work
- NEVER commit secrets to the pipeline config — use the platform's secret store and reference by name
- NEVER echo secrets to job logs; GitHub Actions masks known secrets only if they came from
secrets.*, not from arbitrary env vars - CRITICAL: every deployment path has a defined rollback — "we'll figure it out" is not a plan and will cost hours during an incident
- MANDATORY: PR builds run the same checks as
mainbuilds; drift between the two hides failures until merge
Gotchas
- GitHub Actions masks secret values sourced from
${{ secrets.X }}only. Secrets routed throughenv:and then transformed (base64, JSON) lose the mask and appear in logs verbatim. - Workflows triggered by
pull_requestfrom forks run without repository secrets by default (security). Jobs that need secrets either gate ongithub.event.pull_request.head.repo.full_name == github.repositoryor usepull_request_targetwith explicit code-review — the latter is easy to get wrong and allow token theft. actions/cacherestore is best-effort — a cache miss is silent. Jobs that rely on the cache (e.g., skipping tests when nothing changed) must verify cache hits explicitly via thecache-hitoutput.- GitLab CI's
rules:andonly:/except:are mutually exclusive at the job level. Mixing parses only at pipeline run, not atgit push. - Semantic-release assumes a linear history. Merge commits on
mainconfuse the commit parser and produce no release — stick to squash merges if you rely on it.
When NOT to Load
- For generating a pipeline file for the current project — use
/ci(this skill is knowledge, not code) - For one-off deployment commands — use
/deploy - For language-specific build toolchain nuances — pair with
/typescript-patterns,/pythonrules, etc. - For observability or alerting around deploys — use
/observability-patterns - For security scanning (SAST, SCA) steps in pipelines — use
/security-patternsand/cve-scan
Security
- Security scanPassed, 95 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 repositoryCheckingapp/skills/ci-cd-patterns/SKILL.md
Popularity
- Repository stars
- 162
- Repository forks
- 21
- 7-day trend score
- 25
Stars and forks are for the whole GitHub repository, not this skill alone. 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/softspark/ai-toolkit/ci-cd-patterns)