Loop/Prompt Library / Loops from builders on X
๐ Write the most useful missing tests
Instead of testing every line, the AI finds the riskiest things that have no tests and writes those first.
Use it when: You have few tests and want the ones that would catch the worst bugs, not just a higher number.
๐ Stops when: The top [3] missing tests are written and passing, and each one has been shown to fail when the feature breaks.
Copy this loop
Read the code in [folder] and its current tests. List the behaviors that have no tests, ranked by how bad it would be if they broke. Show me the top [3] and why. Then write the most valuable test first. Prove it works: break the feature on purpose, show the test fails, then undo your break and show it passes. Only add tests; don't change the app's code. Move to the next one. Stop when the top 3 tests exist and pass, or after [5] rounds.
Review every change the agent makes before you keep it. Set a budget or round limit โ the prompt includes one.
Found on X ยท by @meta_alchemist. Prompt rewritten in plain English by FixKit AI.
More loops like this
One useful thing every night
You give the AI a short mission, and each night it picks one task that moves you closer and leaves it for you to check in the morning.
Two watchers keep your agent healthy
Two separate AI helpers read your main agent's logs, find what broke, and must both agree on a fix before it is used.
Weekly skill cleanup
Once a week, the AI grades every saved skill or saved prompt it uses, removes the dead ones, and merges the repeats.
Overnight drafts that learn from results
Each night the AI drafts tomorrow's post from your content plan, and reads your notes about what worked before it writes the next one.
Split the work, keep only what passes
Splits a big job across several AI helpers working side by side, checks each one's work, and keeps only the work that passes.
Practice a website task until it's reliable
The AI tries a website chore, learns from each failed try, and keeps adjusting until it has steps that work every time.
