π¦ ClawHub
Skylv Deployment Automation
by @sky-lv
Deploy with confidence. Zero-downtime releases with blue-green, canary, or rolling strategies. Auto-rollback on failure.
TERMINAL
clawhub install skylv-deployment-automationπ About This Skill
name: deployment-automation slug: deployment-automation version: 1.0.1 description: Deploy with confidence. Zero-downtime releases with blue-green, canary, or rolling strategies. Auto-rollback on failure. author: SKY-lv license: MIT-0 tags: [automation, devops, deployment] keywords: [deployment, CI/CD, release automation, deploy pipeline, continuous deployment, zero-downtime, blue-green, canary, rollback] triggers: deployment, deploy, CI/CD, release, deploy pipeline, continuous deployment
deployment-automation
> Deploy with confidence. Zero-downtime releases, instant rollback, and health checks that catch issues before users do.
What It Does
Quick Start
# 1. Create deployment pipeline
node deploy.js pipeline create --name prod --stages build,test,deploy2. Deploy with canary strategy
node deploy.js deploy --strategy canary --service api --canary-percent 103. Check deployment status
node deploy.js status --service api4. Rollback if needed
node deploy.js rollback --service api --to previous
Common Use Cases
π Production Release
# Deploy with canary (10% traffic first)
node deploy.js deploy --strategy canary --service web --canary-percent 10Monitor for 10 minutes, then increase
node deploy.js canary --service web --percent 50
node deploy.js canary --service web --percent 100
π Blue-Green Swap
# Deploy to green environment
node deploy.js deploy --strategy blue-green --service apiTest green, then swap
node deploy.js swap --service apiInstant rollback if issues
node deploy.js rollback --service api --to blue
π₯ Hotfix Emergency
# Deploy hotfix with extra verification
node deploy.js deploy --service api --ref hotfix-branch \
--health-check-timeout 60s \
--auto-rollback
π Promote Across Environments
# Promote staging to production
node deploy.js promote --from staging --to production --approveView config differences
node deploy.js diff --env staging vs production
All Commands
| Command | Purpose |
|---------|---------|
| deploy --strategy | Deploy with strategy |
| status --service | Check deployment status |
| rollback --to | Revert to previous version |
| promote --from | Promote across environments |
| diff --env vs | Compare environment configs |
| canary --percent | Adjust canary traffic |
| swap | Blue-green swap |
Configuration
{
"pipeline": {
"environments": ["dev", "staging", "production"],
"strategy": "canary",
"canaryPercent": 10,
"healthCheck": {
"endpoint": "/health",
"timeout": "30s",
"retries": 3
},
"rollback": {
"autoOnFailure": true,
"maxRetries": 3
},
"notifications": {
"onStart": ["slack"],
"onSuccess": ["slack", "email"],
"onFailure": ["slack", "pagerduty"]
}
}
}
π‘ Examples
# 1. Create deployment pipeline
node deploy.js pipeline create --name prod --stages build,test,deploy2. Deploy with canary strategy
node deploy.js deploy --strategy canary --service api --canary-percent 103. Check deployment status
node deploy.js status --service api4. Rollback if needed
node deploy.js rollback --service api --to previous
βοΈ Configuration
{
"pipeline": {
"environments": ["dev", "staging", "production"],
"strategy": "canary",
"canaryPercent": 10,
"healthCheck": {
"endpoint": "/health",
"timeout": "30s",
"retries": 3
},
"rollback": {
"autoOnFailure": true,
"maxRetries": 3
},
"notifications": {
"onStart": ["slack"],
"onSuccess": ["slack", "email"],
"onFailure": ["slack", "pagerduty"]
}
}
}