Loop/Prompt Library / Speed, performance & cost
๐ Trim unused styles
Removes unused styling code one piece at a time and keeps the removal only if every page looks exactly the same.
Use it when: Your site's style files have grown with old rules and leftovers.
๐ Stops when: The style file is smaller and every tested screen still looks pixel-identical.
Copy this loop
Shrink the CSS that [site] sends to visitors without changing how it looks. First take screenshots of key pages at several sizes, light and dark mode, and common interactions. Record the CSS file size. Remove one rule or declaration at a time, rebuild, and compare screenshots. Keep it only if every screenshot is identical and the file got smaller. Otherwise put it back. Try at most [40] removals. Report size saved and what screens were not tested.
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 Christian Katzmann. Prompt rewritten in plain English by FixKit AI.
More loops like this
Lighter first page load
Shrinks how much a website downloads before the first screen shows, without changing how anything looks.
Super-fast pages
Keeps speeding up the app until every page loads in under a target time, like 50 milliseconds.
Smooth game frame rate
Measures a game's frame rate in the same scene each time, fixes the biggest slowdown, and keeps only changes that help.
Snappy buttons and transitions
Checks that buttons, hovers, and page changes in a design system respond fast enough, and fixes the slowest ones.
Faster test suite
Makes tests run faster without testing less.
Cut the bill safely
Finds where money is going in your cloud, AI, or other services and makes one approved saving at a time.
