vibe-rollback
Skill1 starsChanged 6 months agoMITView on GitHub
Something broke in production right now — undo the last deployment and get users back online before debugging anything.
- Deletes or force-pushes
- Commits and pushes
In this repository27 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- vibe-authSkill
- vibe-checkSkill
- vibe-cleanSkill
- vibe-dbSkill
- vibe-debugSkill
- vibe-docsSkill
- vibe-envSkill
- vibe-explainSkill
- vibe-gitSkill
- vibe-guardianSkill
- vibe-handoffSkill
- vibe-healthSkill
- vibe-launchSkill
- vibe-logSkill
- vibe-monitorSkill
- vibe-onboardSkill
- vibe-oopsSkill
- vibe-perfSkill
- vibe-planSkill
- vibe-scopeSkill
- vibe-secretSkill
- vibe-skepticSkill
- vibe-stuckSkill
- vibe-testSkill
- vibe-thinkSkill
- vibe-upgradeSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 5 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
Look silently for these files in the project:
- Distinctive: line 26
If found: say "I can see this is deployed on [platform].
- Distinctive: line 28
If nothing found: ask one question:
- Distinctive: line 44
If they can't tell which deployment was good: "Look at the timestamps.
- Distinctive: line 93
Don't leave them watching a blank screen.
- Very specific: line 140
If now → "Good call. Let's go slowly — this is production.
- Very specific: line 142
If later → "Makes sense. When you're ready, start a new session and I'll walk through what happened." Write the broken branch name to …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
vibe-rollback
Overview
Production is broken. Users are seeing errors, the site is down, or something is clearly wrong.
This is not the time to debug. The priority is getting users back online first. We fix what went wrong after the app is working again.
Step 1: Detect the platform — don't ask yet
Look silently for these files in the project:
vercel.jsonor.vercel/folder → Vercelrailway.tomlorrailway.json→ Railwayfly.toml→ Fly.iorender.yamlorrender.yml→ Rendernetlify.toml→ Netlify
If found: say "I can see this is deployed on [platform]. Here's how to roll back right now."
If nothing found: ask one question:
"Where is your app deployed? (Vercel, Railway, Render, Fly.io, Netlify, or somewhere else?)"
Step 2: Platform-specific rollback instructions
Give exact steps — not concepts. Tell them where to click.
Vercel
"Go to your Vercel dashboard (vercel.com) → click your project → click the Deployments tab. You'll see a list of recent deployments. Find the last one with a green 'Ready' badge that was there before today's change. Click the three dots (...) on the right → Redeploy. Takes about 60 seconds."
If they can't tell which deployment was good: "Look at the timestamps. You want the most recent 'Ready' one before the time things broke."
Railway
"Go to your Railway project (railway.app) → click your service → click the Deployments tab. Find the most recent successful deployment before the broken one — it'll have a green checkmark. Click the three dots (...) → Rollback. Takes 30–60 seconds."
Fly.io
Two options — give both:
"Go to fly.io → your app → Releases tab → find the last healthy release → click Rollback to this version. That's the easiest path and works for most situations."
If the dashboard approach doesn't work, there's a terminal option — but it requires knowing your app's registry URL, which is more advanced. If you need to go that route, ask for help rather than guessing at the command.
Render
"Go to your Render dashboard (dashboard.render.com) → click your service → click the Deploys tab. You'll see a list of deploys. Find the last successful one before the broken deploy → click 'Rollback to this deploy'. It'll ask you to confirm." (Render's UI changes occasionally — look for 'Deploys' or 'Deployments' in the left sidebar if this doesn't match)
Netlify
"Go to your Netlify dashboard (app.netlify.com) → click your site → click the Deploys tab. Find the last successful deploy before the broken one — look for a green 'Published' badge. Click it → then click 'Publish deploy' at the top. Confirms in about 30 seconds."
No platform / self-hosted
I'll run:
git log --oneline -5Show the user the list. Say:
"Here are your last 5 commits. Tell me which one was the last working version and I'll revert to it."
Once they identify it, use git revert HEAD (this creates a new commit that undoes the last one — your history is preserved, not erased) to undo the last commit safely, or use git reset --hard [commit-id] if multiple commits need undoing — but say explicitly: "This will permanently remove the commits after [ID] (meaning any commits you made after that point — including the changes you're trying to undo — will be permanently removed from git history on this branch). Your local code will change. Are you sure?"
Step 3: While it's deploying
Don't leave them watching a blank screen. Say:
"While that's deploying — watch the status in your [platform] dashboard. When it shows '[Ready / Live / Deployed]', reload your app in a private/incognito browser window and confirm it's actually working, not just showing cached content."
Tell them what the success indicator looks like on their platform:
- Vercel: "Ready" badge in green
- Railway: green checkmark on the deployment
- Fly.io: release shows "succeeded"
- Render: "Live" status on the service
- Netlify: "Published" badge on the deploy
Step 4: After it's confirmed working
Slow down. Two things before doing anything else:
1. Save the broken state somewhere.
"Before we touch anything — let me create a branch with the broken code so it's not lost. That way we can look at what went wrong without it being in your main code."
I'll run:
git checkout -b broken-$(date +%Y-%m-%d)
git push origin broken-$(date +%Y-%m-%d)This creates a branch like broken-2026-05-27 — you can always come back to it if you need to investigate what went wrong.
Or if they're not comfortable with branches: "I'll just make a note of what the last commit was so we can look at it later."
2. Write one line to .vibe/sessions.md:
## [Date] — rollback: [what broke, one line]
- Rolled back to: [deployment / commit]
- Broken state preserved: broken-[date] branch
- Still needs: root cause investigationThen ask — one question:
"The app is back up. Want to dig into what caused this now, or come back to it in a fresh session?"
Step 5: What comes next
If now → "Good call. Let's go slowly — this is production. I'd suggest running this in a test environment first." Then suggest /vibe-oops for the diagnosis.
If later → "Makes sense. When you're ready, start a new session and I'll walk through what happened." Write the broken branch name to .vibe/sessions.md so the next session can find it.
If the rollback itself fails
Say this immediately — don't try to debug the rollback:
"The rollback didn't work. This needs a developer right now — not because you did anything wrong, but because the situation is outside what's safe to handle without deeper access. Let me write the handoff document."
Then run /vibe-handoff in emergency mode. The document should include:
- What broke (as described by the user)
- What rollback was attempted and what happened
- Current production status
- The platform and any access details the developer will need
Verification checklist
- Platform detected before giving any rollback steps
- Rollback completed — deployment dashboard shows previous version as live
- Verified in incognito/private browser that the app actually loads for visitors
- Broken state preserved on a separate branch (not deleted)
- .vibe/sessions.md updated: what broke, what was rolled back to, what to investigate next
- If rollback itself failed: escalated to /vibe-handoff
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.

