rollback
Skill1 starsChanged 9 months agoMITView on GitHub
Executes safe rollbacks across code, database, config, and feature flags. Provides decision framework for roll-back vs fix-forward, execution playbooks, and verification steps. Use when a deployment needs to be reversed or when deciding between rollback and fix-forward.
- Deletes or force-pushes
- Commits and pushes
9 other projects use a version of this.
Adopted by
Most recently taken up by
- kapadias/nonnatheir own version, first seen Oct 1, 2026
- harshanandak/forgetheir own version, first seen Sep 28, 2026
- elfrost/ai-patchlabtheir own version, first seen Sep 22, 2026
- nahid-sparktales/agent-dispatchertheir own version, first seen Sep 21, 2026
- suboss87/FDEOpstheir own version, first seen Sep 17, 2026
- ww-w-ai/bkit-claude-codetheir own version, first seen Aug 14, 2026
Used with
Projects with it also use audit, status and 3 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
OpenAISkillaudit
Audit or critique a product flow, journey, workflow, funnel, onboarding path, checkout path, settings path, screen, or multi-step product experience by capturing screenshots first, then reporting UX, design, and accessibility findings inline from that evidence. Use Figma only when the user explicitly asks for a board. Use when the user asks to audit, review, critique, inspect, assess, analyze, evaluate, or give feedback on a product experience.
Also in 5 projects that use this
AnthropicSkillstatus
Case status summary by audience — client-facing (plain language), internal (for the professor), or court-ready (formal caption format per local rules). Same facts, different framing and depth. Use when a student needs to update the client, brief the professor, or prepare a court status report.
Also in 3 projects that use this
BlockSkillplan
Draft a TDD, PRD, or lightweight plan in the conversation without committing it.
Also in 3 projects that use this
AWSSkillship
Finalize dev work on an issue branch — update docs, push, and open a PR.
Also in 3 projects that use this
GoogleSkillcode-review
Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.
Also in 3 projects that use this
Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 9
- suboss87/FDEOps★ 950same name
- ww-w-ai/bkit-claude-code★ 600same name
- ww-w-ai/bkit-gemini★ 66same name
- nahid-sparktales/agent-dispatcher★ 59same name
- qwerfunch/cladding★ 16same name
- benmarte/autoimprove★ 5same name
- harshanandak/forge★ 4same name
- elfrost/ai-patchlab★ 1same name
- kapadias/nonna★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository48 other files it gives its agents.
- accessibilitySkill
- api-designSkill
- api-integrationSkill
- architectSkill
- async-patternsSkill
- best-practicesSkill
- bugSkill
- buildSkill
- cachingSkill
- ci-cdSkill
- config-managementSkill
- containerizeSkill
- database-designSkill
- data-modelingSkill
- data-pipelineSkill
- debug-latencySkill
- dependency-updateSkill
- deploySkill
- dev-setupSkill
- docsSkill
- error-handlingSkill
- estimateSkill
- feature-flag-opsSkill
- git-recoverySkill
- i18nSkill
- iacSkill
- incidentSkill
- load-testingSkill
- loggingSkill
- migrateSkill
- monitoringSkill
- observability-debugSkill
- onboardSkill
- perfSkill
- phase-gateSkill
- pr-authorSkill
- qaSkill
- refactorSkill
- reviewSkill
- schema-evolutionSkill
- scope-checkSkill
- security-auditSkill
- state-managementSkill
- tech-debtSkill
- tech-stackSkill
- telemetrySkill
- testingSkill
- workflowSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 5 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 9 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 77
Always write down migrations.
- Distinctive: line 78
Never drop columns in the same deploy as the code change.
- Distinctive: line 80
Before deploying irreversible migrations: take a snapshot/backup.
- Distinctive: line 84
When bad code wrote wrong data:
- Distinctive: line 125
When multiple services were deployed together:
“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Rollback
The fastest way to end an incident is often to undo the change that caused it. But rollbacks have their own failure modes - especially when data has changed.
Decision: Rollback vs Fix Forward
Is the fix obvious and small (< 15 min)?
YES → Fix forward (patch + deploy)
NO →
Has data been mutated by the bad code?
YES → Rollback is complex (see Data Rollback below)
NO → Rollback the deployment
Were database migrations applied?
YES → Assess if migration is reversible (see below)
NO → Clean code rollback - safest optionWhen to Rollback
- Root cause is unclear
- Fix will take > 15 minutes
- Impact is severe and growing
- Multiple systems are affected
When to Fix Forward
- Root cause is identified and fix is small
- Rollback would cause data issues
- The deployed migration can't be reversed
- The bad code hasn't reached all users yet (canary)
Code Rollback
Revert the Deployment
# Option 1: Redeploy the previous version
# (Best - deploys a known-good artifact)
deploy --version <previous-version>
# Option 2: Git revert + fast deploy
git revert <bad-commit-sha>
git push
# CI/CD deploys the revertVerify After Rollback
- Health checks passing
- Error rate back to baseline
- Key user flows working (smoke test)
- No new error types appearing
- Latency within normal range
- Customer-facing issues resolved
Database Rollback
The hard one. Data changes aren't automatically reversible.
Schema Rollback
| Migration Type | Reversible? | How |
| Add column (nullable) | Yes | Drop the column |
| Add column (NOT NULL with default) | Yes | Drop the column |
| Add index | Yes | Drop the index |
| Add table | Yes | Drop the table |
| Drop column | NO | Data is gone (restore from backup) |
| Drop table | NO | Data is gone (restore from backup) |
| Rename column | Depends | Rename back (if no code depends on new name yet) |
| Change column type | Depends | Change back (if no data loss in conversion) |
| Data backfill | Depends | Reverse backfill (if old values are known) |
Rules:
- Always write down migrations. Test the down migration.
- Never drop columns in the same deploy as the code change.
- Separate schema migration from data migration.
- Before deploying irreversible migrations: take a snapshot/backup.
Data Rollback
When bad code wrote wrong data:
1. STOP THE BLEEDING - disable the code path (feature flag, rollback)
2. ASSESS DAMAGE - what records are affected? Query for anomalies.
3. DETERMINE CORRECT STATE - can you derive correct values from logs, events, or audit trail?
4. FIX DATA - scripted repair (never manual edits)
5. VERIFY - query to confirm all affected records are fixed
6. PREVENT - add validation to prevent bad data from being written againConfig Rollback
# If config is in environment variables:
# Revert the config change in your config management system
# If config is in a config file:
git revert <config-change-commit>
# If config is in a feature flag service:
# Toggle the flag off (instant, no deploy needed)Config rollback should be the fastest of all - no build, no deploy.
Feature Flag Rollback
The safest rollback - no deployment needed.
1. Toggle the flag OFF in your flag management system
2. Effect is immediate for new requests
3. Verify: feature is disabled, baseline behavior restored
4. Investigate at leisure - the incident is overThis is why feature flags exist. If a feature is behind a flag, rollback is a button click.
Multi-Service Rollback
When multiple services were deployed together:
1. Identify which service(s) are actually broken
(don't roll back everything - that causes more disruption)
2. Rollback in reverse deployment order
(last deployed → first rolled back)
3. Check cross-service API compatibility at each step
(old Service A + new Service B - does it work?)
4. Verify inter-service communication after each rollbackThe safest approach: Services should be independently deployable. If they're not, that's tech debt to address.
Rollback Checklist
Before Deploying (Prepare)
- Know the previous good version/SHA
- Verify rollback mechanism works (have you tested it recently?)
- Understand what data changes the deploy includes
- Know if database migrations are reversible
- Feature flags in place for risky features
During Rollback (Execute)
- Communicate to team: "Rolling back deployment X"
- Execute rollback (redeploy previous version)
- Reverse database migration if applicable
- Toggle feature flags if applicable
- Monitor health checks and error rates
After Rollback (Verify)
- Health checks green
- Error rate at pre-deploy baseline
- Key user flows verified
- Data integrity checked (if data was affected)
- Communicate: "Rollback complete, service restored"
- Create post-mortem task
Anti-Patterns
| Anti-Pattern | Problem | Fix |
| No rollback plan | Panic during incident, slow recovery | Require rollback plan for every deploy |
| Rollback untested | Rollback mechanism itself is broken | Test rollbacks regularly (in staging) |
| Rolling back everything | Unnecessary disruption | Identify the broken service, roll back only that |
| Ignoring data impact | Rollback code but bad data persists | Check for data side effects before rolling back |
| Fix forward under pressure | Bad fix causes second incident | Default to rollback when stressed. Fix forward only when root cause is clear. |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

