<< All versions

Skill v1.0.0

currentLLM-judged scan90/100
dev-toolbelt/dev-team-agents/cicd-base
──Details
PublishedOctober 21, 2026 at 04:48 PM
Content Hashsha256:20f8a3b5f742e172...
Git SHA7650490b9e95
──Files
Files (1 file, 3.0 KB)
SKILL.md3.0 KBactive
SKILL.md · 68 lines · 3.0 KB

version: "1.0.0" name: cicd-base description: Shared CI/CD — stages, quality gates, secret management, rollback.


Standard Pipeline Stages

Stages run in this order. Each stage must pass before the next begins.

#StagePurposeFails on
1lintCode style and static analysisAny lint error
2testUnit + integration tests with coverage reportTest failure or coverage below threshold
3security-scanSAST + dependency vulnerability check (OWASP)HIGH or CRITICAL findings
4buildCompile / bundle / containerizeBuild error
5publishPush artifact/image to registryRegistry error — runs only on main/release branches
6deploy-stagingDeploy to staging environmentDeploy failure — auto, after publish
7smoke-testAutomated smoke tests against stagingAny smoke test failure
8deploy-prodDeploy to productionManual gate, or auto on semver tag
Platform-specific skills (cicd-github, cicd-gitlab, cicd-bitbucket, cicd-jenkins) map these stages to their native primitives. This file defines the intent — the platform skill defines the syntax.

Quality Gate Pattern

  • All stages 1–4 must pass before any deploy stage (publish, deploy-staging, deploy-prod) runs
  • Coverage threshold: default ≥ 80% line coverage; blocks on failure
  • Security threshold: HIGH or CRITICAL severity findings block the pipeline; MEDIUM/LOW produce warnings only
  • Never deploy from a branch that has failing checks

Secret Management

  • Never hardcode secrets in pipeline config files — treat the pipeline config as public
  • Use the platform's native secret store:
  • GitHub Actions → Repository/Organization Secrets
  • GitLab CI → CI/CD Variables (masked + protected)
  • Bitbucket Pipelines → Repository/Deployment Variables
  • Jenkins → Credentials Store (with the Credentials Binding plugin)
  • Rotate secrets on a defined schedule (quarterly minimum)
  • Revoke secrets immediately on team member offboarding
  • Reference secrets by name only in config; never echo or log their values

Artifact Strategy

RuleDetail
TaggingTag images with git SHA for every build; add semver tag when on a release branch
RetentionKeep last 10 builds; prune older artifacts automatically
ImmutabilityNever redeploy a mutable latest tag to production — always use a pinned SHA or semver
RegistryPush to a private registry; do not rely on Docker Hub for production images

Rollback

  • Every deploy-staging and deploy-prod stage must have a documented rollback step
  • Prefer blue/green or canary over in-place deploys for zero-downtime rollback capability
  • Rollback triggers:
  • Smoke tests fail after staging deploy → auto-rollback to previous artifact
  • Manual trigger by on-call engineer for production
  • Store the last successful artifact reference so rollback does not require a rebuild
All versions