Vibecoding · Maintenance
Keeping it working
Give the AI the exact error, stop after two failed fixes, update dependencies one at a time, and restore a backup to prove it works.
- How Do You Back Up Your Database and Prove It Restores? Find out what your plan actually backs up, add your own export if it isn't enough, and restore a backup into a separate project at least once. Level 2: Context
-
How Do You Get AI to Actually Fix a Bug? Give it four things: the exact error, the steps that cause it, what you expected, and what happened instead. Level 2: ContextA bug report AI can use
- The exact errorCopied, not paraphrased, with secrets removed
- The stepsWhich page, which click, since when
- What you expectedThe result you meant to get
- What happened insteadWhat the screen, Console and Network panel show
-
What Do You Do When Each AI Fix Breaks Something Else? Stop after two failed attempts. Level 2: Context
- 1Two failed attemptsStop here, before a third fix
- 2Go backReturn to the last working version
- 3Check the dataCode undo often leaves database changes
- 4Find the causeAsk why, with no code changes
- 5Start fresh, ask smallerRebuild in small, tested steps
-
How Do You Update Dependencies Without Breaking Your App? Run npm audit to see known vulnerabilities, fix what affects your live app, and test after each update. Level 2: ContextDo
- Run npm audit --omit=dev to see what reaches your live app
- Update one thing per commit, then test
- Let Dependabot open small pull requests
- Check a new package's repository and history first
Don't- Run npm audit fix --force because the terminal suggested it
- Update everything in one commit
- Delete package-lock.json to clear an error
- Let an AI add a package unchecked