Loop/Prompt Library / Code quality & refactoring
๐ 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.
Use it when: You have React apps and want a full health pass, not just a quick tune-up.
๐ Stops when: Every production React app scores a fresh 100/100 and the normal project checks still pass. No findings hidden.
Copy this loop
Find every production React app in [repository]. Run a full React Doctor scan on each one (for example `npx react-doctor@latest --verbose`) and save the starting scores. Fix one root problem at a time, then re-scan and run typecheck, lint, tests, and build. Never hide a finding by ignoring it, turning off a rule, or deleting a feature. Stop when every app scores 100, you are blocked, you need approval, or [3] rounds in a row show no gain. Give me the before and after scores and proof.
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 leviathofnoesia (@leviath666). 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.
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.
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: small-batch fixes
Fixes a handful of real React problems at a time and keeps only the fixes that make the scan better.
