New to Claude Skills? Learn how to install them →

Dwshobson on GitHub

Deployment Pipeline Design

Free

Create robust CI/CD pipelines with ease.

by wshobson38.7k stars on wshobson/agents
1 views
Updated Jul 18, 2026
Get this skill

Free · Opens the source repo

What Deployment Pipeline Design does

The Deployment Pipeline Design skill provides developers and DevOps engineers with the tools to design and implement multi-stage CI/CD pipelines that are both secure and efficient. This skill is particularly useful for those looking to establish zero-downtime deployment strategies, canary rollouts, and comprehensive approval workflows. By leveraging this skill, users can ensure that their deployment processes are not only streamlined but also equipped with necessary security checks and rollback capabilities.

Users begin by providing essential inputs such as the application type, deployment target, environment topology, and rollout requirements. Based on this information, the skill generates detailed pipeline configurations, including stage definitions and job dependencies. It also outlines deployment strategies and health check setups, ensuring that the deployment process is robust and can handle various operational scenarios. This allows teams to maintain high availability and reliability in their production environments.

In addition to the configuration outputs, the skill addresses common challenges faced during deployments. It offers troubleshooting guidance for issues like health checks passing in the pipeline but failing in production, or canary deployments that do not promote as expected. With advanced patterns and worked examples available in the bundled references, users can dive deeper into specific scenarios and enhance their pipeline designs further. This skill is ideal for teams looking to improve their deployment processes and reduce the mean time to recovery in case of failures.

When to use it

Use this skill when designing a new CI/CD pipeline or migrating existing services to a new platform.

When not to use it

This skill may not be suitable for simple deployment scenarios or teams that do not require advanced deployment strategies.

What you can build with it

Designing a New CI/CD Pipeline

When launching a new service, use this skill to create a comprehensive CI/CD pipeline that incorporates security checks and deployment strategies.

Implementing Approval Gates

Utilize this skill to set up mandatory approval gates between environments, ensuring that all deployments meet quality and security standards.

Debugging Deployment Issues

When faced with production issues despite successful pipeline runs, this skill provides troubleshooting insights to help identify and fix the root cause.

How to install Deployment Pipeline Design

View source

1. Install with the skills CLI

npx skills add wshobson/agents/deployment-pipeline-design --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by wshobson

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

Related Skills

  • 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

Frequently asked questions about Deployment Pipeline Design

Similar skills