一键导入
rollback
Roll back a failed deployment to the previous revision
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Roll back a failed deployment to the previous revision
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Deploy services to the dev EKS namespace via ArgoCD (or kubectl for bootstrap)
Deploy services to the prod EKS namespace via ArgoCD (manual sync) with safety checks
View and troubleshoot service logs and pod status
Review Terraform code for security, best practices, and conventions
Run Checkov security scan on Terraform modules
Run health checks against deployed services
| name | rollback |
| description | Roll back a failed deployment to the previous revision |
| disable-model-invocation | true |
| argument-hint | [service] [env] |
Roll back a failed deployment to its previous working revision.
service — Service to roll back (e.g., api-gateway, customers-service) or allenv — Target environment: dev or prod (default: dev)Set the namespace:
dev → petclinic-devprod → petclinic-prodShow current rollout status and history:
kubectl rollout status deployment/{service} -n petclinic-{env}
kubectl rollout history deployment/{service} -n petclinic-{env}
Show what changed in the current revision vs previous:
kubectl rollout history deployment/{service} -n petclinic-{env} --revision={current}
kubectl rollout history deployment/{service} -n petclinic-{env} --revision={previous}
For prod: require explicit confirmation. Show: "Rolling back {service} in PRODUCTION to revision {N}. This will change the running image. Confirm?"
Execute the rollback:
kubectl rollout undo deployment/{service} -n petclinic-{env}
Monitor rollout:
kubectl rollout status deployment/{service} -n petclinic-{env} --timeout=120s
Verify the rollback:
kubectl get pods -l app.kubernetes.io/name={service} -n petclinic-{env}
If rolling back all:
Show summary:
## Rollback: {service} ({env})
Previous revision: {N} (image: {old-image})
Rolled back to: {N-1} (image: {previous-image})
Status: {success/failed}
Pod status: {Running/etc}
all, go in reverse deployment order/smoke-test {env} after rollback to verify health