iterate

Installation
SKILL.md

Iterate - Autonomous Improvement Loop

Inspired by Karpathy's autoresearch: constrain scope, clarify success with one mechanical metric, loop autonomously. The agent modifies code, measures the result, keeps improvements, discards regressions, and repeats - indefinitely or for N iterations.

The power is in the constraint. One metric. One scope. One loop. Git as memory.

Preflight

Before the loop starts, do the work that makes the loop effective. Don't skip steps - this discipline is what separates a productive overnight run from a flailing one.

1. Collect Config

Five inputs. If provided inline, extract and proceed. If any are missing, ask once using AskUserQuestion with all missing fields batched together.

Field Required What it is Example
Goal Yes What you're improving, in plain language "Increase test coverage to 90%"
Scope Yes File globs the agent may modify src/**/*.ts
Verify Yes Shell command that outputs the metric (a number) npm test -- --coverage | grep "All files"
Related skills
Installs
8
GitHub Stars
17
First Seen
Mar 22, 2026