# CI CD Patterns

> Design and implement CI/CD pipeline patterns for reliable, fast, and secure software delivery. Use when building or optimizing build and deployment pipelines. Use when this capability is needed.

- Skill: `tomevault-io/ci-cd-patterns` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/ci-cd-patterns`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/ci-cd-patterns/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/ci-cd-patterns

---


# CI/CD Patterns

Activate this skill when designing or optimizing CI/CD pipelines.

## When to Use

- Designing new CI/CD pipelines
- Optimizing build times and caching
- Implementing deployment strategies
- Adding security scanning to pipelines
- Setting up multi-environment promotion
- Configuring GitOps workflows

## Pipeline Stages

1. Validate: lint, format check, schema validation
2. Build: compile, bundle, create artifacts
3. Test: unit, integration, contract tests
4. Scan: SAST, dependency audit, container scan
5. Package: build container image, push to registry
6. Deploy: apply to target environment
7. Verify: smoke tests, health checks, canary analysis

## Deployment Strategies

- Rolling: gradual replacement, zero-downtime
- Blue-Green: instant switch between environments
- Canary: route percentage of traffic to new version
- Feature Flags: deploy dark, enable incrementally

## Rules

- Fail fast: cheapest checks run first
- Cache aggressively: dependencies, layers, build artifacts
- Pin versions: actions, base images, dependencies
- Use OIDC: no long-lived credentials in CI
- Separate build from deploy for auditability
- Every deployment must be reversible
- Quality gates must block on failure
- Pipeline changes require code review

---
> Source: [ihatesea69/kiro-kit](https://github.com/ihatesea69/kiro-kit) — distributed by [TomeVault](https://tomevault.io).
<!-- tomevault:4.0:skill_md:2026-05-22 -->

