iterate

iterate is a skill for Claude Code from sharpdeveye/maestro. It costs 24 tokens per session (778 once invoked), scanned A, original, MIT.

A workflow skill for building feedback loops, where results are checked and used to improve the next attempt.

In plain words
What is it for?
Use it when a task needs self-correction, quality checks, or repeated evaluation of accuracy, completeness, format, and tone.
Why use it?
It helps workflows catch errors and improve over repeated cycles instead of relying on one pass.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Use it when a task needs self-correction, quality checks, or repeated evaluation of accuracy, completeness, format, and tone.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sharpdeveye/maestro/iterate
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add sharpdeveye/maestro --skill iterate
Clone the repo
git clone --depth 1 https://github.com/sharpdeveye/maestro

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for iterate

README.md
[![agentmods](https://agentmods.dev/badge/skills/sharpdeveye/maestro/iterate/github.svg)](https://agentmods.dev/skills/sharpdeveye/maestro/iterate)
Your own site
<a href="https://agentmods.dev/skills/sharpdeveye/maestro/iterate"><img src="https://agentmods.dev/badge/skills/sharpdeveye/maestro/iterate/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for iterate

Your own site · 80×15
<a href="https://agentmods.dev/skills/sharpdeveye/maestro/iterate"><img src="https://agentmods.dev/badge/skills/sharpdeveye/maestro/iterate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 778 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00024 $0.00778
Opus 5.5 $0.00010 $0.00311
Sonnet 5.5 $0.00005 $0.00156
Haiku 4.5 $0.00002 $0.00078

Measured 1mo ago against content hash dd2a6d407a16, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

iterate scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

source/skills/iterate/SKILL.md · 98 lines

How it starts

The opening of the file, as written. The whole thing — 98 lines — stays where its author put it; the contents beside it link to each section on GitHub.

MANDATORY PREPARATION

Invoke /agent-workflow — it contains workflow principles, anti-patterns, and the Context Gathering Protocol. Follow the protocol before proceeding — if no workflow context exists yet, you MUST run /teach-maestro first.

Consult the feedback-loops reference in the agent-workflow skill for evaluation patterns and self-correction strategies.


Set up feedback loops that make workflows self-correcting and continuously improving. Iteration transforms one-shot gambles into convergent, reliable systems.

Feedback Loop Design

Step 1: Define Quality Criteria

What does "good output" look like? Score dimensions:

Dimension Weight Threshold Measurement
Accuracy 0.4 ≥ 0.8 Factual correctness check
Completeness 0.3 ≥ 0.7 Required fields present
Format 0.2 ≥ 0.9 Schema compliance
Tone 0.1 ≥ 0.6 Appropriate for audience

Step 2: Choose Evaluator Type

Match evaluator to requirements:

  • Rule-based: Schema validation, field presence, value ranges (fast, free)
  • Self-check: Same model evaluates own output (fast, cheap, less reliable)
  • Cross-model: Different model evaluates (slower, more reliable)
  • Human-in-the-loop: Human review (slowest, most reliable, doesn't scale)
  • Hybrid: Rules first, then model check for what rules can't catch

Step 3: Design the Correction Loop

generate(input) → evaluate(output) → score
  if score ≥ threshold → return output
  if score < threshold AND attempts < max →
    enrich input with evaluator feedback
    generate again (with feedback)
  if attempts ≥ max → fallback or escalate

Critical: The retry input MUST be different from the original. Include:

  • The evaluator's specific feedback
  • What was wrong and why
  • A suggestion for how to fix it

Step 4: Set Up Regression Detection

When changing prompts, models, or tools:

  1. Run golden test set with OLD config → baseline scores
  2. Run golden test set with NEW config → new scores
  3. Compare: improvement ≥ 5% → accept; regression ≥ 5% → reject

Read the full file on GitHub · 98 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 98 lines · 24 tokens per session scan A dd2a6d407a16

Subscribe to this mod's changes

iterate is a skill published in the GitHub repository sharpdeveye/maestro (591 stars, last pushed 5mo ago), licensed MIT. It adds 24 tokens to every session and 778 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.