Install
$ agentstack add skill-developersglobal-ai-agent-skills-ci-cd-pipelines ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
Overview
CI/CD is the automation layer that enforces quality gates consistently, without relying on human memory or discipline. When CI is green, you know the code is tested, linted, and deployable. When it's red, nothing ships.
When to Use
- Setting up a new project
- Adding a new quality gate
- Reviewing CI/CD pipeline configuration
Process
Step 1: CI Gates (Every PR)
- All gates must pass before merge is allowed:
- Lint: code style and static analysis
- Unit tests: all pass
- Integration tests: key boundaries covered
- Security scan: SAST, dependency vulnerabilities
- Build: production artifact builds successfully
- Gates run in parallel where possible (speed matters).
- Maximum CI time: 10 minutes. If slower, optimize.
Verify: Merging is blocked when any gate fails.
Step 2: CD Pipeline (Every Main Merge)
- Main branch is always deployable.
- Deployment pipeline:
- Deploy to staging → run smoke tests → deploy to production (canary) → full rollout
- Every step is automated — no manual "click to deploy."
- Rollback is automated and tested.
Verify: A push to main triggers automated deployment with no human intervention required.
Step 3: Feature Flags Over Feature Branches
- Incomplete features go behind feature flags — not long-lived branches.
- Feature flags allow dark launching, A/B testing, and instant rollback without redeployment.
- Feature flag state is tracked in a dashboard.
Verify: New features are behind flags. No feature branches > 2 days old.
Step 4: Pipeline as Code
- CI/CD config is in the repo (
.github/workflows/,.gitlab-ci.yml, etc.). - Pipeline changes go through code review like any other change.
- Pipeline config is tested: changes to CI don't break CI.
Verify: CI config is in the repo and reviewed.
Common Rationalizations (and Rebuttals)
| Excuse | Rebuttal | |--------|----------| | "It's a small change, CI is optional" | Every "small change" that skipped CI is in the origin story of a major incident. | | "Manual deployment gives us control" | Manual steps introduce human error. Automation gives you control. | | "CI is too slow" | Optimize it. Don't skip it. |
Verification
- [ ] All quality gates run on every PR
- [ ] Merge blocked when any gate fails
- [ ] Main → production deployment is fully automated
- [ ] Rollback is automated and tested
- [ ] Feature flags in place for incomplete features
References
- [production-deployment skill](../production-deployment/SKILL.md)
- [git-workflow skill](../git-workflow/SKILL.md)
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: DevelopersGlobal
- Source: DevelopersGlobal/ai-agent-skills
- License: MIT
- Homepage: https://developersglobal.github.io/ai-agent-skills/
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.