agentleFS
krzysztofsurdykrzysztofsurdy/code-virtuoso/skills/knowledge/cicd/SKILL.md

cicd

Skill22 starsChanged 9 months agoMITView on GitHub

CI/CD pipeline patterns and deployment strategies for automated, reliable software delivery. Use when the user asks to design a build pipeline, choose a deployment model (blue-green, canary, rolling), configure environment promotion, manage build artifacts, implement zero-downtime deployments, set up quality gates, or improve delivery workflow speed and reliability. Covers pipeline stage ordering, test parallelization, caching, secrets in CI, and rollback strategies.

7 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use python.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • rogue-dev-studioSkill

    python

    Python 3.13 with uv package manager via mise. Use when the project needs this capability or the user / team manifest asks for it. Use for specialized `python` work when listed in TEAM.yaml or explicitly requested.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    No single strategy fits every situation.

    line 49

“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

CI/CD Pipeline Patterns and Deployment Strategies

Continuous Integration, Continuous Delivery, and Continuous Deployment form a spectrum of automation practices. Each builds on the previous one, progressively reducing manual intervention between a code change and its availability to users.

CI vs CD vs CD

PracticeWhat It AutomatesGate to Next Stage
Continuous IntegrationMerging, building, and testing code on every commitAutomated tests must pass before merge
Continuous DeliveryPackaging and promoting artifacts through environmentsManual approval before production deployment
Continuous DeploymentFull path from commit to production without manual stepsAutomated quality gates replace human approval

Continuous Integration is the foundation. Without reliable, fast integration, neither delivery nor deployment is sustainable. Start here and expand outward.


Pipeline Design Principles

A well-designed pipeline gives developers fast, trustworthy feedback while preventing broken code from reaching users.

PrincipleMeaning
Fast feedbackRun the cheapest, fastest checks first - lint and unit tests before integration tests and builds
Fail earlyStop the pipeline at the first failure - do not waste time on downstream stages when upstream checks fail
ReproducibilityEvery pipeline run with the same inputs must produce the same outputs - pin dependencies, use immutable base images
IdempotencyRe-running a pipeline stage should be safe and produce the same result
IsolationEach pipeline run operates in a clean environment - no shared state between runs
Security by defaultSecrets are injected at runtime, never stored in source - scan for vulnerabilities early

Deployment Strategies Overview

StrategyDowntimeRollback SpeedInfrastructure CostComplexityBest For
Blue-GreenZeroInstant (traffic switch)2x productionLowMajor releases, risk-averse teams
CanaryZeroFast (route traffic back)1x + small canary sliceMediumData-driven teams, high-traffic services
RollingZero (if surge configured)Slow (reverse rollout)1x (reuses existing)LowStateless services, frequent small changes
RecreateYes (brief)Slow (full redeploy)1xMinimalDev/staging environments, stateful apps that cannot run two versions
Feature FlagsZeroInstant (toggle off)1xMediumProgressive rollout, A/B testing, trunk-based development

No single strategy fits every situation. Many teams combine approaches - for example, canary releases with feature flags for granular control over who sees new functionality.


Environment Management Overview

A typical promotion path moves artifacts through increasingly production-like environments:

dev -> staging -> production

Key principles:

  • Artifact immutability - Build once, deploy the same artifact everywhere. Never rebuild for each environment.
  • Configuration separation - Environment-specific values (database URLs, API keys, feature toggles) live outside the artifact.
  • Parity - Staging should mirror production as closely as possible in infrastructure, data shape, and scale.
  • Ephemeral environments - Spin up isolated environments per pull request for testing and review, then tear them down automatically.

Quick Reference: Pipeline Anti-Patterns

Anti-PatternProblemFix
Rebuilding artifacts per environmentDifferent binary in staging vs productionBuild once, promote the same artifact
Long-running monolithic pipelineSlow feedback, developers context-switchParallelize stages, split into focused pipelines
Secrets in source controlCredential leaks, compliance violationsUse a secrets manager, inject at runtime
Manual environment setupConfiguration drift, "works on my machine"Infrastructure as code, containerized builds
No rollback planExtended outages when deployments failAutomate rollback, test it regularly
Skipping stagingProduction-only bugs discovered too lateAlways promote through at least one pre-production environment

Reference Files

ReferenceContents
Pipeline DesignPipeline stages, parallelization, caching, monorepo patterns, secrets management with multi-format examples
Deployment StrategiesBlue-green, canary, rolling deployments, feature flags, zero-downtime migrations, rollback strategies
Environment ManagementEnvironment promotion, infrastructure as code, ephemeral environments, artifact versioning, health checks

Integration with Other Skills

SituationRecommended Skill
Monitoring and observability for deploymentsInstall knowledge-virtuoso from krzysztofsurdy/code-virtuoso for microservices patterns (circuit breakers, health checks)
Security scanning in pipelinesInstall knowledge-virtuoso from krzysztofsurdy/code-virtuoso for security practices (OWASP, secure coding)
Testing strategy for CI pipelinesInstall knowledge-virtuoso from krzysztofsurdy/code-virtuoso for testing pyramid and test design
API versioning during deploymentsInstall knowledge-virtuoso from krzysztofsurdy/code-virtuoso for API design and evolution strategies

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.