← ClaudeAtlas

deployment-rollbacklisted

Safe deployment rollback with health checks and database migration reversal
manastalukdar/ai-devstudio · ★ 1 · DevOps & Infrastructure · score 77
Install: claude install-skill manastalukdar/ai-devstudio
# Safe Deployment Rollback I'll help you safely rollback deployments with automated health checks, database migration reversal, and multi-environment support. **Rollback Capabilities:** - Application version rollback - Database migration reversal - Infrastructure state restoration - Configuration rollback - Health monitoring and validation Arguments: `$ARGUMENTS` - environment (staging/production), version, or rollback target --- ## Token Optimization This skill uses efficient patterns to minimize token consumption during deployment rollback operations. ### Optimization Strategies #### 1. Deployment Platform Caching (Saves 600 tokens per invocation) Cache detected deployment platform and configuration: ```bash CACHE_FILE=".claude/cache/deployment-rollback/platform.json" CACHE_TTL=86400 # 24 hours mkdir -p .claude/cache/deployment-rollback if [ -f "$CACHE_FILE" ]; then CACHE_AGE=$(($(date +%s) - $(stat -c %Y "$CACHE_FILE" 2>/dev/null || stat -f %m "$CACHE_FILE" 2>/dev/null))) if [ $CACHE_AGE -lt $CACHE_TTL ]; then PLATFORM=$(jq -r '.platform' "$CACHE_FILE") ENV_NAME=$(jq -r '.environment' "$CACHE_FILE") ROLLBACK_STRATEGY=$(jq -r '.rollback_strategy' "$CACHE_FILE") echo "Using cached platform: $PLATFORM ($ENV_NAME)" SKIP_DETECTION="true" fi fi ``` **Savings:** 600 tokens (no kubectl checks, no AWS CLI calls, no file searches) #### 2. Early Exit for Safe State (Saves 95%) Quick validation before rollback: ```