Fix a broken app
For anyone whose AI-built app just broke and who wants it fixed properly, not patched. You'll end with the cause found, the fix tested and a rules file that keeps the next change from breaking it again. Run the steps in order; your answers to your answers for tech stack and page or feature carry over between prompts.
Or use them one at a time, in order.
- 1
Fix an error in your web app, step by step
Start from the symptom: paste the error and the steps behind it to get the likely cause and the smallest fix.
- 2
Lock in current behavior with tests before you change it
Before applying the fix, pin down how the rest of the feature behaves today, so you'll see if the fix breaks it.
- 3
Make your AI tool explain its plan before it edits
Have your AI tool apply the fix, but only after it says what it will change and you approve the plan.
- 4
Check an AI tool's changes before you accept them
Read the diff for scope creep, deleted logic and weakened tests before you accept the change.
- 5
Stop your AI tool from breaking what already works
If fixes keep causing new bugs, break the cycle: find what regressed and protect the flows that must never break.
- 6
Write a project rules file your AI tool follows
Finish by writing the rules your AI tool reads before every task, so the fixes and habits stick.
More packs
- Get your site launch-ready8 prompts
- Redesign without the AI look8 prompts
- Build a brand from scratch7 prompts