blue-green-deploy
What it does
This tool helps update your applications without users noticing. It allows you to smoothly switch from an old version to a new one, ensuring the service never stops.
When to use it
- βWhen releasing a new version of your website or application.
- βWhen you need to perform urgent maintenance without interrupting service.
- βTo test a new version with a small group of users before releasing to everyone.
Skill link
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/blue-green-deploy/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βSet up a 'blue-green' deployment for my web app with version 2.0.β
5 new skills a week. 1 minute to read.
How it works
It works by running two versions of your application simultaneously: a 'blue' (the old one) and a 'green' (the new one). User traffic is directed to the blue version. When the green version is ready and tested, traffic is quickly switched to it, and the blue version remains as a backup for a fast rollback if something goes wrong.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Blue-Green & Deployment Strategies
Implement zero-downtime deployment patterns for production systems.
Prerequisites
- Load balancer or ingress controller
- Container orchestration (K8s) or cloud platform
- CI/CD pipeline
- Health check endpoints
Deployment Strategy Overview
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β DEPLOYMENT STRATEGIES β
βββββββββββββββ¬ββββββββββββββ¬ββββββββββββββ¬βββββββββββββββββββ€
β Blue-Green β Canary β Rolling β Recreate β
βββββββββββββββΌββββββββββββββΌββββββββββββββΌβββββββββββββββββββ€
β Full env β Gradual % β Pod by pod β All at once β
β swap β rollout β replacement β β
βββββββββββββββΌββββββββββββββΌββββββββββββββΌβββββββββββββββββββ€
β Instant β Slow, safe β Moderate β Fast, risky β
β rollback β rollback β rollback β β
βββββββββββββββΌββββββββββββββΌββββββββββββββΌβββββββββββββββββββ€
β 2x resourcesβ +10-25% β Same β Same β
β needed β resources β resources β β
βββββββββββββββ΄ββββββββββββββ΄ββββββββββββββ΄βββββββββββββββββββ
Blue-Green Deployment
Concept
Before:
βββββββββββ βββββββββββββββββ
β Users ββββββΆβ Blue (v1) β βββ Active
βββββββββββ βββββββββββββββββ
βββββββββββββββββ
β Green (v2) β βββ Staging
βββββββββββββββββ
After Switch:
βββββββββββ βββββββββββββββββ
β Users β β Blue (v1) β βββ Standby
βββββββββββ βββββββββββββββββ
β βββββββββββββββββ
ββββββββββΆβ Green (v2) β βββ Active
βββββββββββββββββ
Kubernetes Implementation
# blue-deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: myapp-blue
labels:
app: myapp
version: blue
spec:
replicas: 3
selector:
matchLabels:
app: myapp
version: blue
template:
metadata:
labels:
app: myapp
version: blue
spec:
containers:
- name: myapp
image: myapp:v1.0.0
ports:
- containerPort: 8080
readinessProbe:
httpGet:
path: /health
port: 8080
initialDelaySeconds: 5
periodSeconds: 5
---
# green-deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: myapp-green
labels:
app: myapp
version: green
spec:
replicas: 3
selector:
matchLabels:
app: myapp
version: green
template:
metadata:
labels:
app: myapp
version: green
spec:
containers:
- name: myapp
image: myapp:v2.0.0
ports:
- containerPort: 8080
readinessProbe:
httpGet:
path: /health
port: 8080
initialDelaySeconds: 5
periodSeconds: 5
---
# service.yaml - Switch by changing selector
apiVersion: v1
kind: Service
metadata:
name: myapp
spec:
selector:
app: myapp
version: blue # Change to 'green' to switch
ports:
- port: 80
targetPort: 8080
Switch Script
#!/bin/bash
# blue-green-switch.sh
CURRENT=$(kubectl get svc myapp -o jsonpath='{.spec.selector.version}')
NEW_VERSION=$1
echo "Current version: $CURRENT"
echo "Switching to: $NEW_VERSION"
# Verify new deployment is ready
kubectl rollout status deployment/myapp-$NEW_VERSION
# Check health
HEALTH=$(kubectl exec -it deployment/myapp-$NEW_VERSION -- curl -s localhost:8080/health)
if [ "$HEALTH" != "ok" ]; then
echo "Health check failed"
exit 1
fi
# Switch traffic
kubectl patch svc myapp -p "{\"spec\":{\"selector\":{\"version\":\"$NEW_VERSION\"}}}"
echo "Switched to $NEW_VERSION"
AWS ECS Blue-Green
# AWS CodeDeploy appspec.yml
version: 0.0
Resources:
- TargetService:
Type: AWS::ECS::Service
Properties:
TaskDefinition: "arn:aws:ecs:region:account:task-definition/myapp:2"
LoadBalancerInfo:
ContainerName: "myapp"
ContainerPort: 8080
Hooks:
- BeforeInstall: "LambdaFunctionToValidateBeforeTrafficShift"
- AfterInstall: "LambdaFunctionToValidateAfterTrafficShift"
- AfterAllowTestTraffic: "LambdaFunctionToValidateTestTraffic"
- BeforeAllowTraffic: "LambdaFunctionToValidateBeforeAllowTraffic"
- AfterAllowTraffic: "LambdaFunctionToValidateAfterAllowTraffic"
Canary Deployment
Kubernetes with Istio
β¦
FAQ
What is 'zero-downtime'?
It means the service remains available to users during an update or maintenance.
Do I need two full versions of my application?
Yes, for the 'blue-green' strategy, you need the infrastructure to run both versions at the same time.
Does this tool do everything automatically?
No, it configures the strategies, but you need prerequisites like a load balancer and a container orchestration system (like Kubernetes) already set up.
Details
Original description by the author
Configure zero-downtime deployment strategies including blue-green, canary, and rolling deployments.
Popularity
- GitHub stars
- 48k
- Ranking position
- #4040
- License
- MIT
- Updated
- 10/15/2026
Comments
- β¦
More skills from this repository
00-andruia-consultant
48kHelps your agent start or improve AI projects. It analyzes code, suggests tools, and creates action plans in Spanish.
007
48kLets your agent perform security audits and threat modeling. It's useful for protecting projects against attacks and vulnerabilities.
10-andruia-skill-smith
48kHelps your agent create or improve AI tools. It defines how tools work, writes documentation, and validates the structure.
20-andruia-niche-intelligence
48kLets your agent create a summary about a specific industry. It's useful for understanding the context, rules, usage patterns, and risks of a project, using reliable sources.
Similar skills
openclaw-update
394kHelps your agent update an existing OpenClaw Gateway, choosing the update method that fits how it was installed and keeping your session working.
diagnose-gateway
394kHelps your agent find out why your OpenClaw Gateway is failing by checking settings, channels, and ports without changing anything.
crabbox-apps
394kHelps your agent open and run an app on a temporary cloud machine, then show its view in your chat side panel.