FixKit AI

Loop/Prompt Library / Code quality & refactoring

๐Ÿ” Tidy-up pass

Finds small messes like unused code, old comments, and broken links, and cleans them up one safe fix at a time.

Use it when: The project has piled up clutter, but deleting things in bulk feels risky.

๐Ÿ›‘ Stops when: No proven safe cleanup is left, and the build, tests, and app still work.

Copy this loop

Look through [repository] for clutter: unused code, unused packages, stale files or comments, copy-pasted logic, broken links, and confusing names. Do not touch anything I am actively working on, generated files, or anything you are unsure about. Pick one cleanup you can prove is safe, make the smallest change, then run the build, tests, and the app. Keep it only if everything passes. Repeat for at most [15] cleanups. Stop when nothing safe is left or you need my okay. List what you changed and what you skipped and why.

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 Eric Lott. 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.

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.

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.