Skill / SKILL.md

Optimize Loop

gaasher/Agent-Loop-Skills

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.
1 views 185 repository starsUpdated Nov 27, 2026
Overview

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.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/gaasher/Agent-Loop-Skills' skill-source

Use the complete skill-source/loops/optimize-loop directory with your client’s skill installer.

Source directory loops/optimize-loop

Compatibility & requirements

Declared compatibility

Requires Python 3.9+

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
5b6e6fb55b7f150e3ee185b545569394475059b0b3d16622ed238db9dba5e8d4
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills