Generated banner for Deployment Pipeline Design
Generated logo for Deployment Pipeline Design

Deployment Pipeline Design

Seth HobsonCommunityCreated by Seth Hobson

  • Skill
  • Guidelines
  • Cloud and DevOps
  • MIT
  • Low risk

From the author

Design multi-stage CI/CD pipelines with approval gates, security checks, and deployment orchestration. Use this skill when designing zero-downtime deployment pipelines, implementing canary rollout strategies, setting up multi-environment promotion workflows, or debugging failed deployment gates in CI/CD.
— the description by Seth Hobson

AutoGineer summary

Written by AutoGineer from the skill’s own files, not by the author

This skill provides architectural patterns and operational guidance for building multi-stage CI/CD pipelines. It focuses on balancing deployment velocity with system reliability through automated quality gates, security scanning, and progressive delivery techniques like canary rollouts and blue-green deployments. It covers the full lifecycle from build and test to production promotion, including rollback planning and environment protection.

What it does

  • Defines multi-stage pipeline architectures with job dependencies and parallelism.
  • Implements automated quality and security gates using SAST, DAST, and metric thresholds.
  • Configures progressive delivery strategies including canary and blue-green rollouts.
  • Provides patterns for manual and time-based approval workflows across environments.
  • Outlines rollback plans and backward-compatible database migration strategies.
  • Offers troubleshooting guidance for common pipeline failures and deployment bottlenecks.

When to use it

  • Designing CI/CD architecture for new services or platform migrations.
  • Implementing mandatory security and quality gates between environments.
  • Setting up progressive delivery to reduce production risk.
  • Debugging pipeline stages that succeed but result in incorrect production behavior.
  • Automating rollback procedures to improve mean time to recovery.

Advantages

  • Reduces deployment risk through automated validation and progressive rollout.
  • Ensures consistent security posture via integrated scanning gates.
  • Minimizes downtime with proven deployment patterns.
  • Standardizes environment promotion workflows across teams.
  • Provides clear recovery paths through automated rollback planning.

Usage examples

“Design a CI/CD pipeline for a Kubernetes-based microservice that includes security scanning and a canary rollout.”
The agent provides a multi-stage pipeline configuration including build, Trivy/Semgrep security scans, staging deployment, and an Argo Rollouts canary strategy with Prometheus-based analysis.
“How do I implement a manual approval gate for production deployments in GitHub Actions?”
The agent explains how to configure environment protection rules in GitHub Settings and provides the corresponding YAML structure for the production deployment job.

Install

  1. Download the skill as a ZIP:

    https://autogineer.com/agent-skills/wshobson/deployment-pipeline-design/download
  2. Unzip it into the cross-client skills folder of your project:

    mkdir -p .agents/skills && unzip deployment-pipeline-design.zip -d .agents/skills

Documentation by Seth Hobson

Deployment Pipeline Design

Architecture patterns for multi-stage CI/CD pipelines with approval gates, deployment strategies, and environment promotion workflows.

Purpose

Design robust, secure deployment pipelines that balance speed with safety through proper stage organization, automated quality gates, and progressive delivery strategies. This skill covers both the structural design of pipeline architecture and the operational patterns for reliable production deployments.

Input / Output

What You Provide
  • Application type: Language/runtime, containerized or bare-metal, monolith or microservices

  • Deployment target: Kubernetes, ECS, VMs, serverless, or platform-as-a-service

  • Environment topology: Number of environments (dev/staging/prod), region layout, air-gap requirements

  • Rollout requirements: Acceptable downtime, rollback SLA, traffic splitting needs, canary vs blue-green preference

  • Gate constraints: Approval teams, required test coverage thresholds, compliance scans (SAST, DAST, SCA)

  • Monitoring stack: Prometheus, Datadog, CloudWatch, or other metrics sources used for automated promotion decisions

What This Skill Produces
  • Pipeline configuration: Stage definitions, job dependencies, parallelism, and caching strategy

  • Deployment strategy: Chosen rollout pattern with annotated configuration (canary weights, blue-green switchover, rolling parameters)

  • Health check setup: Shallow vs deep readiness probes, post-deployment smoke test scripts

  • Gate definitions: Automated metric thresholds and manual approval workflows

  • Rollback plan: Automated rollback triggers and manual runbook steps

When to Use

  • Design CI/CD architecture for a new service or platform migration

  • Implement deployment gates between environments

  • Configure multi-environment pipelines with mandatory security scanning

  • Establish progressive delivery with canary or blue-green strategies

  • Debug pipelines where stages succeed but production behavior is wrong

  • Reduce mean time to recovery by automating rollback on metric degradation

Detailed patterns and worked examples

Detailed pattern documentation lives in references/details.md. Read that file when the navigation tier above is insufficient.

Troubleshooting

Health check passes in pipeline but service is unhealthy in production

The pipeline health check is hitting a shallow /ping endpoint that returns 200 even when the database is unreachable. Use a deep readiness check that verifies actual dependencies (see Health Checks section above).

Canary deployment never promotes to 100%

Argo Rollouts requires a valid AnalysisTemplate to auto-promote. If the Prometheus query returns no data (e.g., metric name changed), the analysis stays inconclusive and promotion stalls. Add inconclusiveLimit so the rollout fails fast rather than hanging:

spec:
  metrics:
  - name: error-rate
    failureCondition: "result[0] > 0.05"
    inconclusiveLimit: 2   # fail after 2 inconclusive results, not hang indefinitely
    provider:
      prometheus:
        query: |
          sum(rate(http_requests_total{status=~"5.."}[2m]))
          / sum(rate(http_requests_total[2m]))
Staging deploy succeeds but production job never starts

Check that production environment protection rules are configured — a missing reviewer assignment means the approval gate waits indefinitely with no notification. In GitHub Actions, ensure Required reviewers is set to an existing user or team in Settings → Environments → production.

Docker layer cache busted on every run causing slow builds

If COPY . . appears before dependency installation, any source file change invalidates the dependency layer. Reorder to copy dependency manifests first:

# Good: dependencies cached separately from source code
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
Rollback leaves database migrations applied to old code

A service rollback without a migration rollback causes schema/code mismatch errors. Always make migrations backward-compatible (additive only) for at least one release cycle, and keep undo scripts versioned alongside the migration:

# migrations/V20240315__add_nullable_column.sql       (forward)
# migrations/V20240315__add_nullable_column.undo.sql  (backward)

Never run destructive migrations (DROP COLUMN, ALTER NOT NULL) until the old code version is fully retired from all environments.

Advanced Topics

For platform-specific pipeline configurations, multi-region promotion workflows, and advanced Argo Rollouts patterns, see:

  • references/advanced-strategies.md — Extended YAML examples, platform-specific configs (GitHub Actions, GitLab CI, Azure Pipelines), multi-region canary patterns, and database migration rollback strategies

  • github-actions-templates - For GitHub Actions implementation patterns and reusable workflows

  • gitlab-ci-patterns - For GitLab CI/CD pipeline implementation

  • secrets-management - For secrets handling in CI/CD pipelines

Files

Requirements and compatibility

Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta

“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.

Needs: Needs Node.js

Security

What our scanner noticed· Low risk

  • Instructions that use the network

A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.

Attribution and licence

Created by
Seth Hobson
Publisher
Seth Hobson (Community)
Source
wshobson/agents · plugins/cicd-automation/skills/deployment-pipeline-design · commit 4bde316
Licence
MIT License (redistribution allowed)
  • LICENSE (added by AutoGineer from LICENSE)
  • ATTRIBUTION.md (written by AutoGineer)
Synced

AutoGineer is not affiliated with or endorsed by Seth Hobson or Seth Hobson.

Download ZIP

The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download deployment-pipeline-design.zip