loop-designerlisted
Install: claude install-skill evanca/ai-agent-skills
# Loop Designer
Design agent loops tool-agnostically, then bind them to a concrete runtime. A loop is an agent repeating cycles of work until a stop condition is met — the design questions are identical whether it runs as a Claude Code slash command, an SDK program, a Codex CLI pipeline, or an OpenClaw session. Design first, pick the tool last.
## The design sheet (fill these seven, in order)
Walk the user through these; a loop with a blank in any row is not ready to run.
**1. Trigger** — what starts an iteration?
- Manual prompt (one-shot with retries) · Goal (run until verified) · Clock (interval/cron) · Event (webhook, message, file change)
- For clock triggers: match the interval to the *actual change frequency* of the watched thing. Polling faster than reality changes burns budget for nothing.
**2. Work shape** — what happens inside one iteration?
- The strongest pattern for artifact-improving loops is **three phases with structured handoffs** (from the Codex cookbook): **Review** (find issues, touch nothing) → **Repair** (smallest useful edit addressing findings + last validation delta) → **Validate** (execute and score, emit pass/fail + remaining delta). Each phase emits machine-readable output (JSON) so the next phase — and the audit trail — never depends on parsing prose.
- Use scripts for deterministic steps instead of model reasoning; save the model for judgment.
**3. Verification** — how does the loop know work is good?
This is the whole game: **validation q