generator-evaluator-loop

generator-evaluator-loop is a skill for Claude Code, Codex from usefulmove/enso. It costs 40 tokens per session (2,439 once invoked), scanned A, original, MIT.

A workflow that repeatedly passes one development task between a coder and a quality reviewer.

In plain words
What is it for?
Use it when a story has defined scope, an approach, and testable verification steps; disagreements about intent or design are sent to a human.
Why use it?
It checks the implementation against the task's written verification requirements and retries when tools or conventions reveal problems.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/usefulmove/enso/generator-evaluator-loop
Any agent
npx skills add usefulmove/enso --skill generator-evaluator-loop
Clone the repo
git clone --depth 1 https://github.com/usefulmove/enso

Made for: Claude Code, Codex.

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 generator-evaluator-loop

README.md
[![agentmods](https://agentmods.dev/badge/skills/usefulmove/enso/generator-evaluator-loop.svg)](https://agentmods.dev/skills/usefulmove/enso/generator-evaluator-loop)
Your own site
<a href="https://agentmods.dev/skills/usefulmove/enso/generator-evaluator-loop"><img src="https://agentmods.dev/badge/skills/usefulmove/enso/generator-evaluator-loop.svg" alt="Measured on agentmods" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,439 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00040 $0.02439
Opus 5 $0.00020 $0.01220
Sonnet 5 $0.00008 $0.00488
Haiku 4.5 $0.00004 $0.00244

Measured 3d ago against content hash 8ae743dd0406, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

generator-evaluator-loop 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 3d 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.

skills/generator-evaluator-loop/SKILL.md · 272 lines

How it starts

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

generator-evaluator-loop

Automates the Generator→Evaluator→Generator feedback cycle for a single enso story. The story's ### Verification section is the immutable contract. Tool failures and convention violations trigger automatic retry. Subjective disagreements on story intent or design principles pause the loop and escalate to the human.


When to Use

  • Story has a complete ### Verification section written by the Reasoner
  • Story ## Approach & Verification Plan is finalized (planning phase complete)
  • Story ## Context Scope Write/Read/Exclude lists are defined
  • You want automated review with human escalation on disagreement

When NOT to Use

  • Story is still in planning (Verification section incomplete or missing)
  • Trivial single-step changes where review overhead exceeds value
  • Story has no verifiable success criteria (commands, expected output, tests)
  • Story is already in reference/completed/ — it's done

Roles

Role Mode Responsibility
Generator Generator Executes story. Produces changes + execution notes.
Evaluator Quality Reads Verification criteria. Runs tools. Reviews conventions. Produces evaluation_result.
Arbiter Human Resolves Generator/Evaluator disagreements on story intent or design.

The Reasoner writes the story before this skill is invoked. The Reasoner is not active during the loop.


The Loop

User invokes skill with story path
         │
         ▼
  ┌─ VALIDATE ──────────────────────────────────────────┐
  │  Story has complete Verification section?            │
  │  Context Scope defined?                              │
  │  Branch/Worktree resolved (if applicable)?           │
  └──────────────────────────────────────────────────────┘
         │ valid                    │ invalid
         ▼                          ▼
  Initialize Loop State        Report + exit (do not start)
  Append ## Loop State
  to story
         │
         ▼
  ┌─ GENERATOR (Generator mode) ────────────────────────────┐
  │  Inputs: story + current context                     │
  │          + prior evaluation_result (if iteration>0)  │
  │  Output: changes applied per Write scope             │
  │          + execution notes (what was done and why)   │
  └──────────────────────────────────────────────────────┘
         │
         ▼
  ┌─ EVALUATOR (Quality mode) ──────────────────────────┐
  │  1. Load convention docs (see CONVENTIONS_MAP.md)    │
  │  2. Run every tool in story Verification section     │
  │  3. Review changes against loaded convention docs    │
  │  4. Classify each finding: OBJECTIVE or SUBJECTIVE   │
  │  5. Produce evaluation_result (see template)         │
  │  6. Update Loop State iteration log                  │
  └──────────────────────────────────────────────────────┘
         │
         ├─── All criteria PASS ──────────────────────────▶ ACCEPTED
         │                                                   Check off Verification
         │                                                   boxes in story. Exit.
         │
         ├─── OBJECTIVE rejections only ─────────────────▶ RETRY
         │    (tool failure, cited convention violation)      Increment iteration.
         │    AND iteration < max                             Return to Generator
         │                                                    with feedback.
         │
         ├─── Any SUBJECTIVE rejection ──────────────────▶ ESCALATE
         │    (design judgment, story-intent ambiguity,       Append escalation_notice
         │     SOUL.md / project principle concern)           to story. Exit. Await
         │                                                    human ruling.
         │
         └─── iteration ≥ max OR same finding 2× ────────▶ FORCE ESCALATE
              (regardless of rejection type)                  Append escalation_notice
                                                              with full iteration
                                                              history. Exit.

Read the full file on GitHub · 272 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 3d ago First seen · 272 lines · 40 tokens per session scan A 8ae743dd0406

Subscribe to this mod's changes

generator-evaluator-loop is a skill published in the GitHub repository usefulmove/enso (2 stars, last pushed 2mo ago), licensed MIT. It adds 40 tokens to every session and 2,439 once invoked, about $0.0002 per session on Opus 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-31.

Related

Other skills, from other repositories

harness

하네스를 구성합니다. 전문 에이전트를 정의하며, 해당 에이전트가 사용할 스킬을 생성하는 메타 스킬. (1) '하네스 구성해줘', '하네스 구축해줘' 요청 시, (2) '하네스 설계', '하네스 엔지니어링' 요청 시, (3) 새로운 도메인/프로젝트에 대한 하네스 기반 자동화 체계를 구축할 때, (4) 하네스 구성을 재구성하거나 확장할 때, (5) '하네스 점검', '하네스 감사', '하네스 현황', '에이전트/스킬 동기화' 등 기존 하네스 운영/유지보수 요청 시 사용.

revfactory/harness · 170 tokens

pr-review

Review a GitHub pull request and post a verdict comment. Stateful — if a previous review comment exists, review only the new commits since the last review and track whether prior findings were addressed. Focus on code cleanliness, duplication, and docs sync. Use when user says "review this PR", "check the PR", "leave…

lee-to/aif-handoff · 83 tokens

new-plugin

Factory line for adding a new HAR verification plugin (like playwright or rocketsim) for any framework — research the framework docs, build the template under src/templates/plugins/, register it everywhere, validate on a real repository, and open a PR. Use when asked to add/create a plugin, plugin template, or…

os-factory/har · 89 tokens

factory-line

Factory line for executing one station of a declared multi-station program — read the installed line bundle (har line status), plan parallel work into isolated HAR slots, run the cumulative gate with har line gate, and hand off for human review. Use when asked to "run a factory line", "run the next station", "execute…

os-factory/har · 101 tokens

building

Implementation skill for writing production code with TDD. Covers the RED-GREEN-REFACTOR cycle, false-RED detection, vertical slicing, scope escalation, test process discipline, and code generation patterns. Loaded by component-builder and bug-investigator.

romiluz13/cc10x · 53 tokens

exploration

Two-mode exploration skill: (1) design dialogue — turn rough ideas into validated designs through collaborative interview before planning; (2) spike — throwaway code answering ONE design question, deleted or absorbed, never shipped. Router invokes mode via dispatch context.

romiluz13/cc10x · 56 tokens