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

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents; mentions OpenCode.

Good fit Use it when a story has defined scope, an approach, and testable verification steps; disagreements about intent or design are sent to a human.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/usefulmove/enso/generator-evaluator-loop
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 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/github.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/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 generator-evaluator-loop

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. 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.00040 $0.02439
Opus 5.5 $0.00016 $0.00976
Sonnet 5.5 $0.00008 $0.00488
Haiku 4.5 $0.00004 $0.00244

Measured 1mo ago against content hash 8ae743dd0406, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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.

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. 1mo 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 4mo ago), licensed MIT. It adds 40 tokens to every session and 2,439 once invoked, about $0.0002 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-31.

Related

Other skills, from other repositories

code-review

Reviews Spec Kit code changes for consistency with applicable design documents, positive and negative test coverage, regression evidence for bug fixes, and consistent repository terminology. Use when reviewing a diff or pull request. Do not use for implementing changes or posting GitHub review actions.

github/spec-kit · 54 tokens

md-audit

Read-only code quality audit — scan the current working directory for common issues (bugs, dead code, security hotspots, missing error handling) and return a prioritised findings report. No files are edited. Use when asked to "audit the code", "quick audit", "find issues", "code scan", or "what's wrong with this…

chaitanyagiri/munder-difflin · 85 tokens

agent-harness-testing

A testing method for coding tasks in unfamiliar projects. It first discovers how the project is tested, then uses a failing check followed by a passing check to verify a change.

huiliyi37/Tianshu-harness · 61 tokens

visual-acceptance

A visual final-review method for user-interface changes. It checks the rendered result with repeatable screenshots, pixel values, computed styles, and CSS layering checks across themes.

huiliyi37/Tianshu-harness · 89 tokens

building

Use when writing production code test-first: the RED-GREEN-REFACTOR cycle, false-RED detection, vertical slicing, scope escalation, test process discipline, and code generation patterns.

romiluz13/cc10x · 43 tokens

pre-pr-audit

Pre-PR confidence audit with 5-dimension scoring. Use when: final check before commit/push/PR, evaluating PR readiness, assessing test quality + risk + coverage holistically. Triggers: pre-pr, readiness check, confidence audit, final verification, ready to PR, how confident. Not for: code review (use…

sd0xdev/sd0x-harness · 95 tokens