← ClaudeAtlas

loop-designerlisted

Use when the user wants to automate a recurring task, monitor something continuously ("check my PR every 5 minutes", "watch CI", "triage feedback hourly"), build a retry-until-green repair loop, schedule autonomous agent work, design a produce-validate-fix pipeline, or debug a loop that stalls, over-reaches, or burns tokens; trigger on /goal, /loop, /schedule, cron-like agent automation, "keep doing X until Y", iterative repair, self-healing pipelines, or agent-loop questions for any runtime including Claude Code, Claude Agent SDK, OpenAI Codex, and OpenClaw.
evanca/ai-agent-skills · ★ 0 · AI & Automation · score 70
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