Babysitter rollback-automation-skill
Automate rollback procedures with state snapshots, rollback scripts, and verification automation
install
source · Clone the upstream repo
git clone https://github.com/a5c-ai/babysitter
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/a5c-ai/babysitter "$T" && mkdir -p ~/.claude/skills && cp -r "$T/library/specializations/code-migration-modernization/skills/rollback-automation-skill" ~/.claude/skills/a5c-ai-babysitter-rollback-automation-skill && rm -rf "$T"
manifest:
library/specializations/code-migration-modernization/skills/rollback-automation-skill/SKILL.mdsource content
Rollback Automation Skill
Automates rollback procedures for migration activities, managing state snapshots, generating rollback scripts, and automating verification.
Purpose
Enable safe rollback for:
- State snapshot management
- Rollback script generation
- Database rollback coordination
- Traffic switch rollback
- Verification automation
Capabilities
1. State Snapshot Management
- Create pre-migration snapshots
- Store state checkpoints
- Version snapshots
- Clean up old snapshots
2. Rollback Script Generation
- Generate database rollbacks
- Create code rollbacks
- Build config rollbacks
- Document procedures
3. Database Rollback Coordination
- Generate reverse migrations
- Handle data rollback
- Manage transactions
- Coordinate sequences
4. Traffic Switch Rollback
- Revert routing rules
- Switch DNS
- Update load balancers
- Handle sticky sessions
5. Verification Automation
- Test rollback success
- Verify functionality
- Check data integrity
- Validate performance
6. Rollback Testing
- Test rollback procedures
- Simulate failures
- Validate timing
- Document results
Tool Integrations
| Tool | Purpose | Integration Method |
|---|---|---|
| Database migration tools | Schema rollback | CLI |
| Deployment tools | Code rollback | CLI |
| Feature flags | Feature rollback | API |
| Load balancers | Traffic rollback | API |
| IaC tools | Infrastructure rollback | CLI |
Output Schema
{ "rollbackId": "string", "timestamp": "ISO8601", "snapshot": { "id": "string", "created": "ISO8601", "components": [] }, "scripts": { "database": "string", "application": "string", "infrastructure": "string" }, "execution": { "status": "ready|executed|verified", "duration": "string", "verification": {} } }
Integration with Migration Processes
- All migration processes (universal rollback support)
Related Skills
: Post-rollback validationdata-migration-validator
Related Agents
: Rollback orchestrationrollback-specialist
: Cutover managementcutover-coordinator