Use when the user wants to iteratively improve an artifact under a hard correctness bound while minimizing a measured cost — refactoring a code module to cut complexity while its test suite stays green, OR speeding up a SQL query while it returns the same rows. Each iteration applies one focused change, checks a correctness gate that must pass, measures a metric that must drop, and keeps the change only if both hold, else reverts; loops to a plateau or budget. Not for adding features, fixing bugs, or any change that is allowed to alter behaviour or results.
$npx -y skills add gaasher/agent-loop-skills --skill optimize-loopInstalls into the current project.
Run `npx skills use "https://github.com/gaasher/agent-loop-skills" --skill "gaasher/agent-loop-skills/optimize-loop"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/gaasher/agent-loop-skills" that are relevant to the current task. Run `npx skills add "https://github.com/gaasher/agent-loop-skills"` and select the relevant skills, then follow their instructions.