.claude/skills/rollback-procedures/SKILL.md
Use when the Production Engineer is planning rollback strategies, reverting a bad release, handling data migration reversals, managing feature flags, implementing hotfix workflows, or preparing disaster recovery procedures. Activates when discussing rollbacks, reverts, or recovery from failed deployments.
npx skillsauth add dsivov/ai_development_team rollback-proceduresInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Apply this guidance when:
Was the issue detected before push to production?
YES → git reset or revert locally
NO → Was data affected?
NO → Simple git revert
YES → Data migration reversal needed
→ Is the migration reversible?
YES → Run reverse migration + git revert
NO → Manual data fix + hotfix
| Method | When | Command | Risk |
|--------|------|---------|------|
| Git revert | After push, no data impact | git revert <commit> | Low |
| Branch reset | Before push | git reset --hard <commit> | Medium |
| Revert merge | Bad merge to main | git revert -m 1 <merge-commit> | Medium |
| Hotfix | Partial fix needed | New hotfix branch | Low |
| Full rollback | Everything is broken | Redeploy previous version | High |
git checkout main
git revert <commit-hash>
git push origin main
# -m 1 means keep the main branch's parent
git checkout main
git revert -m 1 <merge-commit-hash>
git push origin main
If the original work needs to be re-merged later:
# First, revert the revert to restore the changes
git revert <revert-commit-hash>
# Then apply fixes
# Then merge normally
For urgent fixes that can't wait for the normal workflow:
git checkout -b hotfix/NNN-description maingit checkout main && git merge --no-ff hotfix/NNN-descriptiongit push origin mainBefore every merge to main, prepare:
If a production issue is discovered after merge:
critical priority| Severity | Description | Response Time | Action | |----------|-------------|---------------|--------| | P0 | Service down | Immediate | Rollback now | | P1 | Major feature broken | Within minutes | Rollback or hotfix | | P2 | Minor feature affected | Within session | Hotfix | | P3 | Cosmetic issue | Next sprint | Normal fix |
development
Use when the Integrator is writing unit tests, e2e tests, designing test strategies, improving test coverage, creating test fixtures, or mocking dependencies. Activates for any testing-related work including TDD, test refactoring, or test debugging.
development
Use when the Architect is breaking down change requests into implementable tasks, defining acceptance criteria, estimating task size, mapping dependencies, or creating technical sub-tasks for Developer and Integrator.
development
Use when the Architect is designing system architecture, choosing technology stacks, defining data models, designing APIs, making scalability decisions, or updating ARCHITECTURE.md. Activates for any architecture design, technology evaluation, or system structure discussion.
documentation
Use when the Manager is writing status updates, daily reports, queue messages to team members, escalation notices, or cross-role coordination messages. Activates when composing any team communication, reports, or documentation updates.