一键导入
deployment
Plan and execute safe deployments with rollback procedures, verification, and monitoring
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Plan and execute safe deployments with rollback procedures, verification, and monitoring
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Execute safe Git workflows — branching, committing, resolving conflicts, and managing PRs
Use when controlling AI spend, token budgets, model routing, or workflow efficiency before scaling usage
Use when handling incidents, outages, severe regressions, or operational emergencies before attempting broad fixes
Use when investigating latency, throughput, resource saturation, or performance regressions before changing implementation details
Use when reviewing code, preparing a PR for review, or processing review feedback
Use when diagnosing bugs, test failures, or unexpected behavior before attempting any fix
| name | deployment |
| description | Plan and execute safe deployments with rollback procedures, verification, and monitoring |
Plan and execute safe deployments — rollback procedures, verification steps, and monitoring.
Before deploying:
| Strategy | When | Risk |
|---|---|---|
| Blue/Green | Need instant rollback | Low — traffic switch |
| Canary | Testing with real traffic | Low — limited blast radius |
| Rolling | Resource-constrained environments | Medium — gradual exposure |
| Direct | Non-critical services only | High — all-or-nothing |
# Example: Kubernetes blue/green
kubectl apply -f deployment-green.yaml
kubectl rollout status deployment/myapp-green
# Verify health
curl -f https://myapp-green.internal/health/ready
# Cut traffic
kubectl patch service myapp -p '{"spec":{"selector":{"version":"green"}}}'
/health/ready returns 200| Trigger | Action |
|---|---|
| Error rate > 1% for 5 minutes | Automated rollback to N-1 |
| Performance degradation > 50% | Manual rollback after investigation |
| Security vulnerability found | Emergency rollback immediately |
# Blue/Green rollback — switch selector back
kubectl patch service myapp -p '{"spec":{"selector":{"version":"blue"}}}'
| Signal | Action |
|---|---|
| Friday afternoon deploy | Postpone to Monday |
| No rollback plan | Define triggers and procedure first |
| Skipping staging | Run in staging first |
| 100% traffic on first deploy | Use canary or blue/green |
| Skill | When |
|---|---|
| e2e-testing | Smoke testing after deploy |
| secure-coding | Security review before release |
| logging | Verifying logs post-deploy |