vibe-debug
Skill1 starsChanged 6 months agoMITView on GitHub
Systematic investigation when a bug's cause isn't obvious — reproduce it first, then narrow it down, then fix it.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- KhazP/vibe-coding-prompt-templatetheir own version, first seen Nov 17, 2026
- adhi-jp/agent-skillstheir own version, first seen Oct 20, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- KhazP/vibe-coding-prompt-template★ 3.3ksame name
- adhi-jp/agent-skills★ 1same 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 repository27 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- vibe-authSkill
- vibe-checkSkill
- vibe-cleanSkill
- vibe-dbSkill
- 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-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
23 rules. About 0 are common, 18 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈18
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Use /vibe-debug when something isn't working and you're not sure why — a feature that never worked, something that breaks sometimes, or a …
- Very specific: line 12
If the bug is in production right now and users are affected: use /vibe-oops instead — that's the emergency path.
- Very specific: line 14
If you've already tried 3+ approaches without converging: skip straight to /vibe-stuck.
- Distinctive: line 28
Before touching any code, figure out if you can make the bug happen on demand.
- Distinctive: line 35
If it's intermittent (happens sometimes but not always):
- Distinctive: line 36
Ask: does it happen with specific data?
- Distinctive: line 37
Look for a pattern before assuming it's random
- Distinctive: line 40
Do not move to Step 2 until you can make the bug happen when you want it to.
- Distinctive: line 46
Don't jump to code. Read the error first.
- Very specific: line 56
If the error message is confusing, use /vibe-log to get a plain-English translation.
- Distinctive: line 64
Don't read everything. Use binary search — start at one end and cut the problem in half each time.
- Distinctive: line 66
Start at the entry point for the broken feature:
- Distinctive: line 87
Before changing anything, name what you think is causing this, and why.
- Distinctive: line 94
If you have more than one guess, pick the most likely one.
- Distinctive: line 108
Add a log right before the suspected line and print the exact value.
- Distinctive: line 127
Remove all the temporary console.log lines you added in Step 3
- Distinctive: line 128
Run through the exact reproduction steps from Step 1 and confirm the bug is gone
- Distinctive: line 129
Test one or two nearby things to make sure you didn't accidentally break something else
- Distinctive: line 143
If this returns a lot of results, skim for the same pattern in critical files (auth, payments, data saving) — those are the ones worth …
- Distinctive: line 145
If you fixed a missing null check — search for similar null access patterns.
- Distinctive: line 153
Stop. Don't keep guessing.
- Very specific: line 155
If you've tried 3 hypotheses without convergence, OR if you've been debugging the same issue for over 2 hours without progress, switch to …
- Distinctive: line 166
Before calling this done:
≈ “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-debug
When to use this vs. other skills
Use /vibe-debug when something isn't working and you're not sure why — a feature that never worked, something that breaks sometimes, or a bug you can't explain.
If the bug is in production right now and users are affected: use /vibe-oops instead — that's the emergency path.
If you've already tried 3+ approaches without converging: skip straight to /vibe-stuck.
The core discipline
Most debugging goes wrong because the fix comes before the understanding. The pattern here is always: reproduce → narrow → fix. Don't skip steps.
Step 1: Reproduce it consistently
Your role: describe exactly what you clicked, what you typed, and what happened. I'll do the code investigation — you don't need to read code or understand error messages.
Before touching any code, figure out if you can make the bug happen on demand.
Ask the user:
"Walk me through exactly what you did when it broke — every step."
Then try to reproduce it with those exact steps. A bug you can reproduce is a bug you can fix. A bug you can't reproduce might just go away on its own — or it might keep surprising you.
If it's intermittent (happens sometimes but not always):
- Ask: does it happen with specific data? specific users? in a specific browser? when logged in vs. logged out?
- Look for a pattern before assuming it's random
- Try to find the minimum conditions that consistently trigger it
Do not move to Step 2 until you can make the bug happen when you want it to.
Step 2: Read the error (if there is one)
Don't jump to code. Read the error first.
Translate it into plain English before doing anything else. What file and line does it point to? What does it actually mean?
Check both places:
- Browser console — press F12 or right-click → Inspect → Console tab
- Server logs — your hosting dashboard (Vercel, Railway, Render) or your terminal if running locally
These often point to different things. A browser error might say "can't read property of undefined." The server log might say "database connection refused." Both matter — they're telling you different parts of the story.
If the error message is confusing, use /vibe-log to get a plain-English translation.
Step 3: Find where the bug lives
I'll read the code to narrow this down — you test by clicking the app when I ask you to.
Don't read everything. Use binary search — start at one end and cut the problem in half each time.
Start at the entry point for the broken feature:
- For a button: what function runs when it's clicked?
- For a page that fails to load: what route handles that URL?
- For a form: what happens when it's submitted?
Then trace one level at a time. What does this function call? What does that function call? You're following the path of execution until you find where it goes wrong.
I'll add temporary logs to mark where execution stops — you don't need to touch the code. Just use the app and tell me what you see in the browser console (F12 → Console tab). I'll add:
console.log("reached point A")
console.log("reached point B", someValue)
console.log("reached point C", anotherValue)The last log that prints tells me where execution stopped. That's the target zone.
Step 4: Name your best guess
Before changing anything, name what you think is causing this, and why. Even a rough guess is useful. Write it down: "I think the problem is ___ because ___." This forces clarity before you start fixing.
Something like:
- "I think the user ID is undefined when it reaches the database query — the log shows undefined at point C."
- "I think the API call is failing because the URL has a typo."
- "I think the condition on line 47 is backwards — it runs when it shouldn't."
If you have more than one guess, pick the most likely one. Don't test all of them at once — you won't know which one actually fixed it.
State the guess clearly before writing any code.
Step 5: Test the hypothesis
I'll tell you exactly what to click and what to expect — you just do it in the browser and tell me the result. This is not the fix yet — it's a test to confirm or rule out the hypothesis.
Make one targeted change that proves or disproves your hypothesis.
Examples:
- Hardcode a value that you suspect is coming in wrong. If the bug goes away, you know the value was the problem.
- Add a log right before the suspected line and print the exact value. If it shows what you expected, your hypothesis is wrong — go back to Step 4.
- Comment out a block of code to see if removing it changes anything.
One change. Check the result. Then decide whether your hypothesis holds.
Step 6: Fix it
Now you know what's wrong. Fix the specific root cause — not the symptom.
First, I'll create a checkpoint so you can get back here if the fix makes things worse:
git add -A && git commit -m "checkpoint before debug fix"Then make the surgical change. Change only what's broken. Don't improve adjacent code or clean up unrelated things while you're in there.
After the fix:
- Remove all the temporary console.log lines you added in Step 3
- Run through the exact reproduction steps from Step 1 and confirm the bug is gone
- Test one or two nearby things to make sure you didn't accidentally break something else
Step 7: Check for siblings
The same bug often lives in more than one place.
I'll search the codebase for the same pattern — you don't need to run anything. I'll use the function name or variable I just fixed as the search term:
grep -r "[the function name or variable you just fixed]" . --include="*.js" --include="*.ts" --include="*.py" --exclude-dir=node_modules --exclude-dir=.git -n | head -30
``` For example, if you fixed a bug where `calculateTotal()` wasn't handling negative numbers, search for other places that do similar math: `grep -rn 'subtotal\|amount' . --include='*.js' --exclude-dir=node_modules --exclude-dir=.git | head -30`.
If this returns a lot of results, skim for the same pattern in critical files (auth, payments, data saving) — those are the ones worth flagging.
If you fixed a missing null check — search for similar null access patterns. If you fixed an unhandled promise rejection — search for other async functions without try/catch. Name any siblings you find but don't fix them in this session — write them to `.vibe/debt.md`.
This takes two minutes and prevents the same class of bug from showing up again in a week.
---
## If you're still stuck after 3 hypotheses
Stop. Don't keep guessing.
If you've tried 3 hypotheses without convergence, OR if you've been debugging the same issue for over 2 hours without progress, switch to `/vibe-stuck`.
Say what you've ruled out:
> "We've confirmed the data is correct when it enters this function. The bug happens somewhere between here and the database. I'm not sure what's causing it."
Then suggest `/vibe-stuck` — that skill is built for exactly this situation: when you've been going in circles and need to step back and reassess.
---
## Verification checklist
Before calling this done:
- [ ] Bug was reproduced consistently before any fix was attempted
- [ ] Root cause was named specifically — not just "there was a bug"
- [ ] Only the broken thing was changed — no adjacent improvements
- [ ] All temporary debug logs were removed
- [ ] Fix was verified using the same steps that originally reproduced the bug
- [ ] Nearby code was checked for the same class of bug
- [ ] A checkpoint commit was made before the fixDoes 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.

