vibe-oops
Skill1 starsChanged 6 months agoMITView on GitHub
Recovery protocol when things break — diagnose first, then exactly three options: fix it, undo it, or get help.
- Deletes or force-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-perfSkill
- vibe-planSkill
- vibe-rollbackSkill
- vibe-scopeSkill
- vibe-secretSkill
- vibe-skepticSkill
- vibe-stuckSkill
- vibe-testSkill
- vibe-thinkSkill
- vibe-upgradeSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
25 rules. About 0 are common, 24 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈24
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
Before touching anything, understand what broke.
- Distinctive: line 25
If they can't describe it at all, ask: "Can you take a screenshot of what you're seeing and share it, or copy/paste the exact error message …
- Distinctive: line 27
Wait for the answer. Do not guess.
- Distinctive: line 31
If there's an error message, explain it in plain English.
- Distinctive: line 65
Always with honest confidence.
- Distinctive: line 82
Do not say "this should work" without explaining why you think it'll work.
- Distinctive: line 84
If confidence is below 50%, say so: "I'm not confident in this fix.
- Distinctive: line 86
If you're not sure whether the fix will work — say so.
- Distinctive: line 105
If they want to undo, explain the two options in plain English before running anything:
- Distinctive: line 118
Always confirm before running git reset --hard.
- Distinctive: line 125
If files were deleted: explain which ones and whether they can be reconstructed
- Distinctive: line 126
If a database was modified: see Special Cases — this is serious
- Distinctive: line 127
If code was overwritten: check if your editor has local history (VS Code does — Cmd+Shift+P → "Local History: Find Entry to Restore")
- Distinctive: line 129
Do not pretend recovery is possible when it isn't.
- Very specific: line 149
If /vibe-handoff isn't in your pack, describe the problem clearly in a post: what you tried, what the error says, what stack you're using.
- Distinctive: line 160
After applying a fix, ask the user to test two things:
- Distinctive: line 172
Do not suggest more than 3 fixes without pausing: If two fixes have failed, stop.
- Distinctive: line 183
Treat as critical severity.
- Distinctive: line 185
Go to Option 2 first: Do not attempt fixes while real users are affected.
- Distinctive: line 194
If you can't undo, prioritize getting *something* working over getting it working *correctly*.
- Distinctive: line 198
Stop immediately. Do not touch anything else.
- Distinctive: line 200
Do not run any database commands
- Distinctive: line 201
Do not restart the database (restarting can sometimes make recovery harder by overwriting recovery logs)
- Distinctive: line 202
Check if a backup exists:
- Distinctive: line 207
If no backup exists: be honest about what's recoverable.
≈ “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-oops
Overview
Something broke. That's okay. The worst thing you can do right now is start trying random fixes.
This skill walks through what happened, explains it in plain English, and gives you exactly three options. Pick one. Do not try all three at once.
Step 1: Diagnose First — Don't Fix Yet
Before touching anything, understand what broke.
If the user hasn't described what happened yet
Ask:
"What happened? Walk me through it — what did you do, and what did you see?"
If they can't describe it at all, ask: "Can you take a screenshot of what you're seeing and share it, or copy/paste the exact error message from the browser console or terminal?" Then wait.
Wait for the answer. Do not guess.
Read the error message
If there's an error message, explain it in plain English. One or two sentences. No jargon.
Examples of what this looks like:
- "This means your app tried to connect to the database, but the database is refusing the connection. It's not finding what it's looking for."
- "This means a file your app needs doesn't exist. It was either deleted or never created."
- "This means the code has a typo that breaks the syntax — like a missing bracket or a misplaced comma."
If there's no error message — the app just silently did the wrong thing (button appears to work but nothing happened, form submitted but data didn't save): describe what should have happened vs what actually happened, then check the browser console (F12 → Console tab) and the server logs for silent errors. Most "silent" failures have an error somewhere — it just isn't visible to the user.
Identify the type of problem
Pick one:
- Code error — the code itself is broken (syntax, logic, a missing function)
- Configuration error — a setting, environment variable, or connection string is wrong
- Deployment error — the code works locally but broke when you pushed it live
- Data problem — something went wrong with the database or files (most serious — see Special Cases)
Rate the severity
Say this clearly to the user before moving on:
| Severity | Say this |
| Low | "This is annoying but harmless — it doesn't affect real users." |
| Medium | "This breaks a feature, but the rest of your app still works." |
| High | "This is affecting real users right now. We should move fast." |
| Critical | "Something is seriously wrong. Stop and read the special cases below." |
Step 2: Present Exactly Three Options
Present exactly three options — normally in this order: Fix, Undo, Get Help. Exception: if production is down or users are affected RIGHT NOW, lead with Option 2 (Undo) — speed matters more than explanation. In that case, open with: "The fastest path is Option 2 — undo to the last safe state. Here's how. I'll also show you Options 1 and 3 after the rollback is running."
Always with honest confidence.
Important: if you try the same type of fix twice and it doesn't work, stop. Don't attempt a third variation — go to Step 4 instead, explain what the failed attempts ruled out, and reassess from there. (This threshold is 2, not 3 like in non-urgent debugging — production is down, and a third guess wastes time you don't have. Two failed attempts means the problem is bigger than expected; escalate now.)
Option 1: Fix It
What to tell the user:
- What you think the problem is (one sentence)
- What the fix is (what you'll change and where)
- How confident you are — be honest:
- "I'm 90% sure this is it."
- "I'm about 70% sure. There's another possibility but this is the most likely."
- "I'm not certain, but this is the best starting point."
- How long it'll take ("About 5 minutes" / "This might take 20-30 minutes")
Do not say "this should work" without explaining why you think it'll work.
If confidence is below 50%, say so: "I'm not confident in this fix. I'd recommend Option 2 first."
If you're not sure whether the fix will work — say so. "I think this will work but I'm not certain" is more useful than false confidence.
Option 2: Undo It
I'll run this first:
git log --oneline -5If a checkpoint exists:
Tell the user:
"You have a checkpoint from [X commits ago / time if available]. We can go back to that. Everything you've done since then would be undone."
Then offer:
"Before we go back, should I save what we have now as a separate checkpoint? That way we don't lose the work entirely — we can look at it later."
If they want to undo, explain the two options in plain English before running anything:
- Undo just the last change (
git revert HEAD): Creates a new commit that cancels out the last one. Safe — your history stays intact and you can undo the undo if needed. - Jump back to an earlier checkpoint (
git reset --hard [ID]): Moves your project back in time. Any work since that checkpoint is gone. This cannot be undone. (The ID is the short code at the start of each line in the list above — likea3f8e21. Tell me which checkpoint you want and I'll run this for you.)
a3f8e21 checkpoint before adding payments
b7c2d14 fix: login form not clearing on error
9e4a0f3 initial commitFor most situations, git revert is safer. Only use git reset --hard if the user understands that recent work will be permanently deleted.
Always confirm before running git reset --hard. Say exactly what will be lost.
If no checkpoint exists:
Be honest:
"There's no save point in your git history. Here's what we can and can't recover:"
- If files were deleted: explain which ones and whether they can be reconstructed
- If a database was modified: see Special Cases — this is serious
- If code was overwritten: check if your editor has local history (VS Code does — Cmd+Shift+P → "Local History: Find Entry to Restore")
Do not pretend recovery is possible when it isn't.
Option 3: Get Help
Tell the user when to choose this:
- The problem involves real money, real payments, or payment data
- You suspect data loss or corruption
- A security issue might be involved (passwords exposed, unauthorized access)
- You've tried two different fixes and both failed
- You're genuinely unsure what's wrong
Run /vibe-handoff and tell it "this is an emergency — I need the document in 5 minutes." Do not write an inline summary here — /vibe-handoff produces a complete, structured document a developer can act on right away. It covers the stack, the error, what was tried, and where to get help.
Say:
"This is beyond what I can reliably fix. Let me generate a handoff document you can share with a developer — it'll take two minutes and give them everything they need."
Then invoke /vibe-handoff.
If /vibe-handoff isn't in your pack, describe the problem clearly in a post: what you tried, what the error says, what stack you're using. Stack Overflow, the framework's Discord, or a developer friend are all valid options.
Where to get help after the document is ready:
- For common frameworks (Next.js, Supabase, Vercel, Stripe): search their official Discord — usually fastest
- Stack Overflow: good for error messages — paste the exact error in quotes
- Hiring a developer for a few hours: Toptal, Upwork, or a local freelancer — share the vibe-handoff document
Step 3: Verify the Fix
After applying a fix, ask the user to test two things:
- The specific thing that was broken — confirm it now works
- One adjacent feature — something nearby that could have been disturbed by the fix (e.g. if login was broken, also check that the logout button still works)
Fixes sometimes have side effects. Testing one adjacent feature catches most of them.
Step 4: What NOT to Do
These make things worse. Do not do them:
- Do not suggest more than 3 fixes without pausing. If two fixes have failed, stop. Reassess. Say what you've learned from the failures before trying anything else.
- Do not delete files as a fix unless the user explicitly asks you to delete a specific file and understands what it does.
- Do not say "this should work" without a reason. If you can't explain why a fix should work, say that.
- Do not keep trying the same fix with small variations. If it failed once, it will likely fail again unless you understand why it failed. (The stop rule is in Step 2 — if the same type of fix fails twice, go here: say "This approach isn't working, and here's what I think that means:", explain what you've ruled out, then reassess.)
Special Cases
Production is down
Treat as critical severity.
Go to Option 2 first. Do not attempt fixes while real users are affected.
- Undo to the last known-good state
- While the rollback is deploying (1–3 min on Vercel/Railway, up to 5 on Fly.io): tell the user to open their deployment dashboard and watch the build status.
- "Building..." → normal, wait
- "Error" or red status → there's a build problem in the rollback itself — check deployment logs before assuming it will recover
- Once the dashboard shows "Ready" / "Live" / "Deployed": ask the user to reload the app and confirm it's actually loading for visitors (not just the dashboard saying it's live)
- Then investigate the fix in a safe environment — not in production
If you can't undo, prioritize getting something working over getting it working correctly.
Data might be lost
Stop immediately. Do not touch anything else.
- Do not run any database commands
- Do not restart the database (restarting can sometimes make recovery harder by overwriting recovery logs)
- Check if a backup exists:
- Supabase: Dashboard → Settings → Database → Backups
- PlanetScale, Railway, Render: check their dashboard for backup options
- Local database: check for
.sqldump files in the project
If no backup exists: be honest about what's recoverable. Some data loss may be permanent. A developer may be needed.
"It was working yesterday"
I'll check git for recent changes:
git log --oneline --since="2 days ago"Show the user what changed. The most recent commit touching the broken area is almost always the cause.
Verification checklist
- Problem was identified before attempting a fix
- User was presented exactly three options
- Fix attempt was explained before executing
- After fix: user tested the specific broken thing AND one adjacent feature (per Step 3 — to check for side effects)
- Checkpoint created after fix:
git add -A && git commit -m "fix: [what was fixed]" - Bug written to
.vibe/bugs.mdif the fix required more than one attempt - Only declared done after testing confirmed it — not before
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.

