ferroxlabs/wayland/deployment-strategies
Claude Code and agent skill by ferroxlabs/wayland
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Guides expert-level deployment strategies implementation: ci-cd and best-practices decision frameworks, production-ready patterns, and concrete templates for deployment strategies workflows. Use when the user asks about deployment strategies, deployment strategies configuration, or ci-cd best practices for deployment projects. Do NOT use when the user needs a different devops cloud capability -- check sibling skills in the devops cloud subcategory.
Install
npx vskill@latest install ferroxlabs/wayland/deployment-strategiesSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as ferroxlabs/wayland/deployment-strategies.
Deployment Strategies
When to Use
Use this skill when:
- User asks which deployment strategy (blue/green, canary, rolling, recreate, A/B, shadow) fits their application and infrastructure
- User needs to implement or improve a zero-downtime deployment pipeline for a production service
- User wants to reduce deployment risk for a high-traffic or business-critical application
- User is debugging a failed deployment and needs to understand rollback procedures and blast radius containment
- User is designing a CI/CD pipeline and needs to choose a deployment pattern that matches their SLO (e.g., <0.1% error rate, <200ms p99 latency)
- User wants to implement progressive delivery -- feature flags, canary releases, or traffic splitting with automated promotion criteria
- User needs to understand the infrastructure prerequisites for a specific strategy (e.g., load balancer requirements for blue/green, service mesh for canary)
- User is migrating from a legacy deploy-and-pray approach to a modern, observable deployment workflow
Do NOT use this skill when:
- User needs infrastructure-as-code authoring (Terraform, Pulumi) -- use the infrastructure-as-code skill
- User needs container orchestration configuration (Kubernetes manifests, Helm charts) beyond what is required to implement a deployment strategy -- use the kubernetes-configuration skill
- User is asking about CI pipeline construction (build steps, test stages, artifact management) without a deployment context -- use the ci-pipeline-design skill
- User needs secrets management or vault configuration as a standalone topic -- use the secrets-management skill
- User is asking about database migration strategies as a standalone concern -- use the database-migration skill
- User needs general monitoring or observability setup -- use the observability-stack skill
- User is asking about incident response after a deployment is already failing in production -- use the incident-response skill
Process
1. Characterize the Application and Traffic Profile
Before recommending any strategy, gather these concrete facts:
- Traffic volume: Requests per second (RPS) at peak. A service handling 50 RPS tolerates more disruption than one at 50,000 RPS. Strategies that require traffic draining (blue/green) need 30--120 seconds of overlap capacity.
- Deployment frequency: Teams deploying once a week can tolerate heavier-weight strategies (blue/green with full environment provisioning). Teams deploying 20+ times per day need lightweight, automated strategies (rolling or canary with automated promotion).
- Session stickiness requirements: Stateful applications (WebSocket connections, server-side sessions) cannot survive mid-session instance replacement. Identify whether sessions can be externalized (Redis session store, JWT tokens) before choosing a strategy.
- Database migration coupling: Does this deploy include schema changes? If yes, the deployment strategy must be backward-compatible migration aware. Blue/green cannot be used naively with breaking schema changes -- the old environment will fail if it shares a database with the new schema.
- SLO targets: Note the specific error budget. If SLO is 99.9% availability (8.7 hours downtime/year), even a 2-minute outage consumes 1.4% of the annual budget. This often rules out the Recreate strategy for production.
- Rollback time objective (RTO): Ask: "How quickly must you be able to roll back?" Blue/green achieves <30 seconds. Rolling rollbacks take minutes proportional to replica count. This is the single most important differentiator between strategies.
2. Apply the Deployment Strategy Decision Framework
Use this decision tree in order:
- Step 2a -- Can the environment sustain duplicate infrastructure cost?
- Yes (cloud, auto-scaling, sufficient budget): Blue/green is viable. Proceed to 2b.
- No (fixed hardware, cost-constrained, bare metal): Rolling or Canary are the primary options.
- Step 2b -- Is near-instant rollback (<60 seconds) a hard requirement?
- Yes: Blue/green is the strongest choice. DNS or load balancer flip achieves it.
- No: Canary or rolling with automated rollback gates provides sufficient safety at lower cost.
- Step 2c -- Is this a user-facing service where you need behavioral validation before full rollout?
- Yes, and you can instrument user metrics (conversion rate, error rate per segment): Canary with automated promotion criteria.
- Yes, but behavioral metrics are hard to define: Blue/green with manual validation gate.
- No (internal service, batch job, worker): Rolling with health check gates.
- Step 2d -- Is downtime acceptable? (Scheduled maintenance window, internal tooling, non-production)
- Yes: Recreate strategy -- simplest possible. Stop old, start new.
- No: Eliminate Recreate from consideration.
- Step 2e -- Do you need to test with real production traffic without user impact?
- Yes: Shadow deployment (traffic mirroring). Run the new version alongside production, mirror real traffic to it, compare responses. Zero user impact, highest fidelity testing.
3. Define Automated Promotion and Rollback Criteria
Every deployment strategy must have explicit, metric-based gates -- not manual approval for routine deploys:
- Error rate gate: HTTP 5xx rate >1% of requests over a 5-minute window triggers automatic rollback. Tune the threshold based on baseline error rate (never tighter than 3x the p99 baseline variance).
- Latency gate: p99 latency increase of >20% relative to the previous 30-minute baseline triggers rollback. Use relative thresholds, not absolute, to account for traffic-dependent variance.
- Saturation gate: CPU >80% sustained for 3 minutes or memory >90% triggers rollback. These indicate the new version may degrade under load.
- Business metric gate (canary-specific): For canary, define a primary business metric: add-to-cart rate, checkout completion, API success rate. A >5% relative degradation compared to the stable cohort triggers automatic rollback.
- Soak time: Define minimum time at each canary stage (e.g., 10% traffic for 10 minutes, 25% for 15 minutes, 50% for 20 minutes) before automatic promotion. Even if metrics look good, statistical significance requires time.
- Canary stages: Do not jump from 0% to 100%. Use stages: 1%, 5%, 10%, 25%, 50%, 100%. Each stage doubles (approximately) exposure while keeping blast radius bounded.
4. Design the Infrastructure Prerequisites
Each strategy has specific infrastructure requirements -- confirm these before implementation:
- Blue/Green requirements:
- Two identical environment slots (blue and green) -- either pre-provisioned or spin-up-on-deploy
- A traffic switching mechanism: Load balancer target group swap (ALB, NLB), DNS TTL swap (set TTL to 60 seconds before deploy, not 300), or service mesh weighted routing
- Shared or replicated data stores -- the two environments must read from the same database, or you must handle data sync
- Warm-up time budget: New environment needs time to fill JVM caches, warm connection pools, load ML models. Account for 30--300 seconds of warm-up before switching traffic.
- Canary/Rolling requirements:
- Load balancer or service mesh with weighted traffic routing (NGINX with
split_clients, Envoy with weighted clusters, Kubernetes with service mesh like Istio or Linkerd) - Observability stack capable of segmenting metrics by version label -- every metric must carry a
versionordeployment_idtag so canary vs. stable can be compared - At least 2x replica headroom during the transition period -- rolling updates temporarily reduce capacity
- Pod disruption budgets (Kubernetes) or equivalent to prevent rolling update from removing too many instances simultaneously
- Shadow/Traffic Mirroring requirements:
- Service mesh or proxy with traffic mirroring capability (Envoy, NGINX
mirrormodule, AWS ALB with mirror target) - Mirrored traffic must not trigger side effects (no emails, no payments, no database writes in the shadow path) -- use a separate database or mock downstream services
- Sufficient compute capacity to handle 2x traffic (shadow runs the request twice)
5. Implement the Deployment Pipeline
Translate the chosen strategy into pipeline stages:
- Pre-deploy gate:
- Run smoke tests against the artifact before deploying to any environment
- Validate configuration schema (environment variables, feature flags) against a contract
- Check that the database migration (if any) is backward-compatible with the current deployed version
- Confirm infrastructure prerequisites are ready (environment slot exists, load balancer is configured)
- Deploy stage (strategy-specific):
- For rolling: Set
maxUnavailable: 0andmaxSurge: 25%(or 1 replica, whichever is larger) to avoid capacity reduction during rollout. This ensures you never have fewer running instances than baseline. - For blue/green: Deploy the green environment, run health checks and integration tests against the green environment directly (via internal DNS or direct IP), then switch traffic only after validation passes.
- For canary: Deploy the canary Deployment with a small replica count and use weighted service routing. Do NOT use Kubernetes
Deploymentreplicas alone for canary traffic splitting -- replica ratio is an unreliable proxy for traffic percentage. Use a proper traffic management layer.
- Health check validation:
- Readiness probe must pass on all new instances before traffic is shifted. Configure readiness probes with
initialDelaySeconds: 10,periodSeconds: 5,failureThreshold: 3as a baseline -- adjust for application startup time. - Liveness probe should be distinct from readiness probe. Readiness checks if the instance can serve traffic; liveness checks if the process is alive and should not be restarted.
- Deep health check endpoint (e.g.,
/health/ready) should verify database connectivity, cache availability, and downstream service reachability -- not just HTTP 200.
- Traffic shift and observation window:
- Shift traffic according to the stage plan (canary stages or single flip for blue/green)
- Observe for the defined soak time at each stage
- Query the observability stack programmatically -- automated gates should read from Prometheus, Datadog, or CloudWatch metrics APIs, not human eyeballs
- Post-deploy validation:
- Run synthetic transactions (canary probes) against the new version in production -- actual HTTP requests to business-critical endpoints
- Verify that distributed tracing shows the new version handling requests (confirms traffic routing is correct)
- Check that no alerts have fired in the first 15 minutes post-deploy
6. Implement Rollback Procedures
Rollback must be defined before deploy begins, not after something goes wrong:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingsrc/process/resources/skills-library/bodies/skills/devops-cloud/deployment-strategies/SKILL.md
Popularity
- Repository stars
- 608
- Repository forks
- 113
- 7-day trend score
- 37
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ferroxlabs/wayland/deployment-strategies)