FixKit AI

Loop/Prompt Library / Code quality & refactoring

๐Ÿ” Look before you build

Builds one small slice of a feature, but only after reading the real code so nothing is guessed.

Use it when: A feature can be split into small pieces and guessing about the data or APIs would be risky.

๐Ÿ›‘ Stops when: One slice works, checks pass, and the user path was tested by hand.

Copy this loop

Build one small slice of [feature] in [repository]. Before editing, read the project instructions, the current code, related services, data types, UI, and tests. Tell me what you found, the risks, which files you will touch, whether saved data changes, and how you will test it. If what you found changes the plan or touches production data, stop and ask me. Then make the smallest change, run the checks, and click through the user path. Stop after this one slice. Recommend the next slice.

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 Rashid Ali, AI Engineering - DexaMinds. 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: perfect score

Uses the React Doctor tool to push every React app in a project to a real 100 out of 100 health score.