experiment-loop
Installation
SKILL.md
Experiment Loop Pattern
Overview
The experiment loop is a systematic approach to iterative code improvement where each change is measured against a baseline metric and kept only if it improves the result. Inspired by karpathy/autoresearch and generalized for any measurable code quality metric.
The Core Pattern
1. DEFINE → Choose a measurable metric and set constraints
2. BASELINE → Measure the current state
3. MODIFY → Make one targeted change
4. MEASURE → Re-evaluate the metric
5. DECIDE → Keep if improved, revert if not
6. LOG → Record what was tried and the outcome
7. REPEAT → Go to step 3 (until done or plateau)