L’interface est localisée ; les présentations et documents des Skills sont traduits automatiquement par IA dans votre langue. Le code, les commandes, chemins et termes techniques restent en version originale, et le document de l’auteur fait foi.
Explorer les Skills
Design et création · SKILL.md

deployment-strategy

deployment-strategy

Design deployment strategies — blue-green, canary, rolling, feature flags, with rollback procedures and validation gates. TRIGGER when: user says /deployment-strategy, "how to deploy", "deployment plan", "rollout strategy", "canary deployment", or "zero-downtime deploy".

Independent GitHub snapshot · Automated classification · Original documentation governs

Documentation de la Skill

GitHub

name: deployment-strategy description: > Design deployment strategies — blue-green, canary, rolling, feature flags, with rollback procedures and validation gates. TRIGGER when: user says /deployment-strategy, "how to deploy", "deployment plan", "rollout strategy", "canary deployment", or "zero-downtime deploy". argument-hint: "[service or application to deploy]" user-invocable: true

Deployment Strategy

You are a platform engineer designing safe, repeatable deployment strategies. Choose the right deployment pattern, define validation gates, and plan rollback procedures.

Process

Step 1: Assess Requirements

ParameterDescription
Service typeStateless API, stateful service, database, frontend, mobile
Deployment frequencyMultiple daily, daily, weekly, ad-hoc
Downtime toleranceZero downtime required / Maintenance window acceptable
Blast radius concernUser-facing / Internal / Background processing
Rollback speedNeeds instant rollback / Minutes acceptable
Data migrationSchema changes involved?

Step 2: Choose Strategy

StrategyHow It WorksBest ForRollback SpeedComplexity
RollingReplace instances graduallyStateless services, simple updatesMedium (re-deploy)Low
Blue-GreenRun two identical environments; switch trafficZero-downtime with instant rollbackInstant (switch back)Medium
CanaryRoute small % of traffic to new versionRisk-sensitive services, gradual validationFast (route back)Medium-High
Feature FlagsDeploy code, toggle features separatelyDecoupled deploy from releaseInstant (flag off)Medium
A/BRoute by user segmentProduct experiments with deployFast (segment routing)High
RecreateStop old, start newDev/staging, batch jobs, maintenance windowsSlow (re-deploy old)Low

Step 3: Define Validation Gates

GateCheckPass CriteriaAction on Fail
Pre-deployTests pass, image built, approvalsAll greenBlock deploy
Post-deploy (smoke)Health checks, key endpoints respond200 OK, <500msAuto-rollback
Canary (5 min)Error rate, latency P99Within baseline +10%Halt rollout
Canary (30 min)Full metrics comparisonNo degradationContinue rollout
Bake time (2 hours)Extended monitoringStable metricsComplete rollout

Step 4: Rollback Plan

Trigger: [What conditions trigger a rollback]
1. [Stop the rollout / route traffic back]
2. [Verify old version is serving correctly]
3. [Notify team and stakeholders]
4. [Investigate root cause before retrying]

Output Format

## Deployment Strategy: [Service]

### Strategy Selected
[Strategy name and rationale]

### Deployment Pipeline
[Stages from code merge to production]

### Validation Gates
[Gate table with pass/fail criteria]

### Rollback Procedure
[Step-by-step rollback with commands]

### Monitoring During Deploy
[Dashboards and metrics to watch]

### Runbook
[Quick reference for on-call during deploys]

Quality Checklist

  • Strategy matches the service's requirements and risk profile
  • Validation gates are automated where possible
  • Rollback procedure is tested and documented
  • Database migrations are backward-compatible
  • Deployment can be paused and resumed
  • Monitoring covers the deployment window

Edge Cases

  • Database schema migration: Use expand-contract pattern; never deploy breaking schema changes
  • Multi-service coordinated deploy: Define deployment order and contract compatibility
  • Mobile app releases: Can't rollback once published; use feature flags and server-side control
  • Stateful services: Plan for connection draining and state migration during deployment
Skills enregistrées