deployment-strategy

v2026.09.24

Deployment strategy patterns for zero-downtime releases. Covers blue-green, canary, rolling, and recreate strategies with rollback procedures, health checks, feature flags, progressive delivery, and environment promotion workflows. Use when choosing a deployment strategy, implementing rollback procedures, configuring health checks, setting up environment promotion pipelines, planning progressive delivery with feature flags, or reducing blast radius during releases.

GitHub
安装命令
npx skhub add oakoss/deployment-strategy
Markdown
SKILL.md

Deployment Strategy

Overview

Covers deployment strategy selection, rollback safety, and progressive delivery patterns. Focuses on zero-downtime release techniques, blast radius management, and environment promotion workflows from development through production.

When to use: Choosing between blue-green, canary, or rolling deployments, implementing rollback procedures, configuring health checks and readiness gates, planning environment promotion workflows, integrating feature flags for progressive delivery.

When NOT to use: CI/CD pipeline mechanics and GitHub Actions workflows (use ci-cd-architecture skill), infrastructure provisioning and cloud platform selection (use ci-cd-architecture skill), application architecture decisions (use framework-specific skills).

Quick Reference

NeedStrategy
Instant rollbackBlue-green (swap traffic back to previous environment)
Gradual risk validationCanary (route 1-5% traffic, monitor, then expand)
Default Kubernetes updatesRolling (replace pods incrementally with maxSurge/maxUnavail)
Full environment replaceRecreate (stop all old, start all new; accepts brief downtime)
Feature-level controlFeature flags (decouple deploy from release)
Database schema changesExpand-contract migration (additive first, remove later)
Multi-environment promotiondev -> staging -> production with gates between each
Blast radius reductionCanary + feature flags + automated rollback triggers
Health verificationLiveness, readiness, and startup probes at infrastructure level
Rollback without redeployFeature flags to disable problematic code paths

Common Mistakes

MistakeCorrect Pattern
No rollback plan before deployingDefine rollback procedure and verify it works before every production release
Destructive database migrations alongside app deployUse expand-contract: add new columns/tables first, migrate data, remove old later
Canary without automated health monitoringSet error rate and latency thresholds that auto-halt rollout when breached
Blue-green with shared mutable databaseUse backward-compatible schema changes so both versions work against the same database
Feature flags without cleanup lifecycleAssign an owner and removal date to every flag; treat stale flags as tech debt
Skipping staging and deploying directly to productionPromote through environments with automated gates between each stage
Rolling deploy without readiness probesConfigure readiness probes so traffic routes only to healthy instances
Same environment config across all stagesUse environment-specific configuration with secrets management per environment
Manual rollback procedures in incident responseAutomate rollback triggers based on error rate, latency, and health check thresholds
Testing only happy paths before releaseInclude failure scenario testing: rollback drills, chaos testing, degraded mode testing

Delegation

  • Audit deployment safety of existing infrastructure: Use Explore agent to review deployment configs, health check definitions, and rollback procedures
  • Implement a specific deployment strategy: Use Task agent to configure blue-green, canary, or rolling deployment for a target platform
  • Plan migration from one deployment strategy to another: Use Plan agent to evaluate current strategy, define migration steps, and identify risks

If the ci-cd-architecture skill is available, delegate CI/CD pipeline setup and GitHub Actions workflow configuration to it. Otherwise, recommend: npx skills add oakoss/agent-skills --skill ci-cd-architecture

References

发现
标签

此技能尚未发布标签。

版本
最新版本元数据

版本

v2026.09.24

发布时间

2026年9月24日

分类

未分类

许可证

未指定

源路径

skills/deployment-strategy

默认分支

main

最新提交

85e3a39

Tree SHA

a4c9e7b