Loop/Prompt Library / Code quality & refactoring
๐ Change it everywhere
After you change a value like a version number or a name, it hunts down every old copy so nothing is left out of date.
Use it when: You just renamed or changed something that shows up in many files.
๐ Stops when: A final search finds only old copies that are meant to stay, like history notes, each with a reason.
Copy this loop
I changed [old value] to [new value]. List every place the new value should appear and update it. Then search the whole project for the old value and close variations (different case, spelling, formatting). For each hit, either fix it or explain why it should stay (history, examples, migrations). Repeat the search until no stale copies are left, up to [5] rounds. If the same old value keeps coming back, stop and tell me what is regenerating it. Show the final search results.
Review every change the agent makes before you keep it. Set a budget or round limit โ the prompt includes one.
Idea from Forward Future's Loop Library ยท by @iamTristan. Prompt rewritten in plain English by FixKit AI.
More loops like this
Safe refactor (keep the shape)
Improves one part of the code, one small change at a time, without changing how the rest of the system talks to it.
Refactor until the design feels right
Reshapes a messy codebase step by step, testing and saving a checkpoint after each big step.
Tidy-up pass
Finds small messes like unused code, old comments, and broken links, and cleans them up one safe fix at a time.
Branch and worktree cleanup
Sorts through old branches, pull requests, and work-in-progress, rescues anything useful, and removes what is truly dead.
React Doctor: perfect score
Uses the React Doctor tool to push every React app in a project to a real 100 out of 100 health score.
React Doctor: small-batch fixes
Fixes a handful of real React problems at a time and keeps only the fixes that make the scan better.
