rollback-strategy-advisor
Installation
SKILL.md
Rollback Strategy Advisor
"Just deploy the old version" only works if the new version didn't change anything the old version depends on. It usually did.
The reversibility question
Before choosing a strategy, classify what the bad deploy changed:
| Change type | Reversible by redeploying old code? | Why / why not |
|---|---|---|
| Stateless code only | ✅ Yes | Old code runs on old state; no state changed |
| Additive schema (new column, new table) | ✅ Yes | Old code ignores the new column |
| Destructive schema (drop column, rename) | ❌ No | Old code expects the column that's gone |
| Additive data (new rows) | ⚠️ Usually | Unless the new rows confuse old code's queries |
| Mutated data (UPDATE existing rows) | ❌ No | Old code expects old data shape; you need data repair |
| New external side effects (emails sent, payments made) | ❌ Never | Can't unsend. Compensating actions only. |
| Config only | ✅ Yes | Revert the config |
| Feature flag flip | ✅ Instantly | Flip it back — this is why flags exist |