iterate-until-verified
What it does
This skill gives the agent a loop for substantial tasks: set clear checks for done, do the work, verify each result, and improve until the checks pass. It is for people who want careful, checked results on bigger requests.
When to use it
- ✓When a task is large and needs several rounds of checking.
- ✓When you want an independent review or a harsh critic on the result.
- ✓When you want the work to continue until clear quality checks pass.
Skill link
https://github.com/MengTo/Skills/blob/main/agent-skills/codex/iterate-until-verified/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Keep improving this report until it passes a clear accuracy and clarity check, and show me the checks you used.”
5 new skills a week. 1 minute to read.
How it works
The agent locks in the original request, turns vague words like best into checks it can observe, does the work, and verifies it with evidence. The original task stays authoritative throughout.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Iterate Until Verified
Preserve the task. Strengthen the process around it.
Choose the mode
- Execute: Complete the original task with the workflow below. Use this mode by default.
- Compose: When the user asks for an improved prompt rather than the finished work, return a reusable prompt wrapper. Keep the original task authoritative and unchanged inside the wrapper.
Do not silently switch from composing a prompt to executing it.
1. Lock the original task
Extract:
- outcome and deliverables
- audience and use case
- supplied inputs and references
- constraints, tools, formats, and exclusions
- authorized actions and protected boundaries
- explicit definition of done
Treat these as the task contract. Do not replace the subject, invent requirements, relax constraints, expand permissions, or let the verification method become the deliverable.
Ask a question only when a missing answer would materially change the work and cannot be discovered safely. Otherwise, state a reasonable assumption and proceed.
2. Convert ambition into gates
Translate words such as perfect, best, professional, production-ready, or AAA into observable checks. Select only the dimensions relevant to the task:
- correctness and factual accuracy
- completeness against the request
- craft, clarity, and audience fit
- usability and accessibility
- robustness, edge cases, and regression safety
- performance, security, or compliance
- visual, editorial, or technical fidelity to a supplied benchmark
Create a compact acceptance matrix:
| Gate | Verification method | Pass condition | Evidence |
|---|---|---|---|
| Relevant quality dimension | Test, inspection, comparison, or read-back | Observable binary condition | Command, source, screenshot, output, or artifact |
Prefer pass/fail conditions over vague scores. A strong reaction such as “wow” may be a useful signal, but it is never the only gate.
3. Decompose and assign
Split the task into the smallest meaningful workstreams with clear ownership, inputs, outputs, and integration boundaries.
- Fan out only workstreams that are genuinely independent.
- Keep coupled edits with one owner to avoid racing changes.
- Give each worker the original task contract and only the context it needs.
- Require every worker to return an artifact or evidence, not a confidence claim.
- Keep one integrator responsible for cross-workstream consistency and regressions.
Use subagents or delegated workers when they are available, permitted, and useful. Otherwise, perform the workstreams sequentially while preserving the same ownership boundaries.
4. Separate making from judging
Do not let an implementer be the sole approver of its own work.
Give the verifier:
- the original task contract
- the acceptance matrix
- the candidate artifact
- the relevant benchmark or source material
Withhold the implementer’s rationale and self-assessment unless the verifier needs them to reproduce a check. Instruct the verifier to find failures first, cite evidence, reject unsupported claims, and return a gate-by-gate verdict.
For blind comparison:
- anonymize and randomize candidates when practical
- compare like with like using the same conditions
- keep the evaluator blind to author or candidate identity, not to the task or rubric
- do not call a comparison blind when obvious identity cues remain
5. Match proof to the work
Use the strongest verification surface available:
- Code: focused tests, typechecks, builds, linters, security checks, runtime behavior, and regression tests.
- Visual work: rendered output at relevant sizes, interaction checks, accessibility checks, and side-by-side comparison with an accessible reference.
- Research or analysis: primary sources, reproducible calculations, citation checks, and contradiction searches.
- Writing: factual checks, brief coverage, audience fit, structure, and an editorial pass against representative references.
- Plans or decisions: constraint coverage, dependency checks, failure scenarios, feasibility, and explicit tradeoffs.
- External actions: exact target resolution followed by post-action read-back.
Never substitute a self-rating for evidence. Never invent a benchmark, source, test result, screenshot, or blind verdict.
6. Run the loop
Repeat:
- Produce or improve the candidate.
- Run every applicable gate.
- Record
pass,fail, orblockedwith evidence. - Route each failure to the r
FAQ
Will it change what I asked for?
No. The skill says to keep the original task fixed and not replace its subject or relax its limits.
Can it compare two versions?
Yes. The skill covers comparing candidate results blind, without knowing which is which.
What if a question is needed?
The skill says to ask only when a missing answer would change the work. Otherwise it states an assumption and continues.
Details
Original description by the author
Apply a prompt-agnostic execution and verification loop to any substantial task while preserving the original request. Use when the user asks to fan out work, use subagents or independent reviewers, loop until done, benchmark against references, apply a harsh critic, compare candidates blind, improve an existing prompt with verification, or continue until explicit quality gates pass.
repo: MengTo/Skills
Popularity
- GitHub stars
- 7.2k
- Ranking position
- #13338
- License
- MIT
- Updated
- 11/1/2026
Comments
- …
More skills from this repository
3d-cloth-material
7.2kHelps your agent build realistic woven fabric in Three.js, with thread weave, soft sheen, natural folds, hems and seams.
3d-falling-leaves
7.2kHelps your agent add realistic falling leaves to a 3D scene, with leaves that tumble, drift with the wind and recycle as the camera moves.
3d-four-seasons
7.2kHelps your agent add spring, summer, fall and winter looks to a 3D scene, changing foliage, light, sky and snow without rebuilding it.
3d-high-poly-models
7.2kHelps your agent build detailed 3D models with smooth shapes and believable edges, then prepare lighter versions that run well on the web.
Similar skills
add-model-provider
394kLets your agent connect a new AI model provider to OpenClaw using safe setup commands, keep API keys out of plain text, and run a live test.
acp-router
394kHelps your agent send a task to a coding assistant such as Claude Code or Cursor through OpenClaw, so the work runs in that tool.
browser-automation
394kTeaches your agent to control web pages step by step, including logins, tabs, and recovery when a page stops responding.