FixKit AI

Loop/Prompt Library / Code quality & refactoring

๐Ÿ” Bug report to ready fix

Turns a vague bug report into a proven cause, a small fix, and a pull request a reviewer can approve fast.

Use it when: You have a real complaint or ticket but it is loosely written.

๐Ÿ›‘ Stops when: The bug shows up before the fix, is gone after, and related tests pass. Or you say it cannot be reproduced after two real tries.

Copy this loop

Here is the problem: [paste ticket, bug report, or complaint]. First, reproduce it in the smallest setup you can. Find and prove the root cause. Make the smallest fix that solves it, and do not mix in unrelated cleanup. Re-run the original reproduction plus related tests. If you cannot reproduce it after [2] honest attempts, stop and tell me. Finish with the cause, changed files, before-and-after proof, risks, and a short pull request description.

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 Hiten Shah. 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.