experiment-iterative-coder

A code-improvement workflow that repeatedly plans a change, writes code, runs checks, evaluates the result, and refines it.

In plain words
What is it for?
It is for complex coding tasks that benefit from several verified refinement cycles using tools such as Ruff and pytest.
Why use it?
It catches problems such as lint errors, failed tests, import mistakes, regressions, and missed edge cases during development.

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/camusgit/evoquant/experiment-iterative-coder
Any agent
npx skills add CamusGIT/EvoQuant --skill experiment-iterative-coder
Clone the repo
git clone --depth 1 https://github.com/CamusGIT/EvoQuant

Made for: Claude Code, Codex.

Per session 145 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,359 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 98% copy Near-identical to another mod 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.00145 $0.02359
Opus 5 $0.00072 $0.01179
Sonnet 5 $0.00029 $0.00472
Haiku 4.5 $0.00015 $0.00236

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

Security

Grade A, and why

experiment-iterative-coder 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 2d 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.

Origin

This is a copy

98% identical to experiment-iterative-coder — 2 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

EvoQuant/skills/experiment-iterative-coder/SKILL.md · 202 lines

How it starts

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

Iterative Coder

Iterative code refinement through structured plan → code → evaluate → refine cycles. Each cycle runs objective checks (lint, tests) and self-evaluation, then diagnoses failures and plans targeted improvements. Reaches production quality in 3-8 iterations.

When to Use This Skill

  • Main agent delegates a code task prefixed with "MODE: MORE_EFFORT"
  • User selected "More Effort" mode for code generation
  • Task requires high code quality with verified correctness
  • Task involves complex implementation (5+ files, multiple modules)
  • You want to iterate on code quality rather than submit first-pass code
  • You mention "iterative refinement", "code quality loop", "plan-code-evaluate"

The Iteration Mindset

Code quality comes from fast feedback loops, not careful first attempts. A fast plan → code → evaluate → fix cycle beats spending 30 minutes on a "perfect" first implementation. The evaluate step reveals problems you cannot predict by thinking alone — lint errors, import failures, test regressions, and missing edge cases all surface immediately when you actually run the code.

Before Starting: Load Context

  1. Read /memory/experiment-memory.md for proven strategies from past cycles (skip if it doesn't exist)
  2. Identify existing tests, linting config (pyproject.toml, ruff.toml), or CI setup in the workspace
  3. Check available tools:
    ruff --version 2>&1; echo "---"; python -m pytest --version 2>&1
    
    If either is missing, you will skip that check during evaluation (do not fail the iteration).

Phase Decomposition

Before iterating, analyze the task and break it into sequential phases:

Task Complexity Recommended Phases
Single file, well-defined function 1 phase
2-4 files, clear interfaces 2 phases
5+ files, multiple interacting modules 3-5 phases

For each phase, define:

  • Name: concise label (e.g., "Data loading pipeline")
  • Goal: what "done" looks like for this phase
  • Verification signal: how to confirm the phase is complete (specific test, lint clean, output matches)

Read the full file on GitHub · 202 lines

Files

What ships with it

2 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. 2d ago First seen · 202 lines · 145 tokens per session scan A a488105f498f

Subscribe to this mod's changes

experiment-iterative-coder is a skill published in the GitHub repository CamusGIT/EvoQuant (215 stars, last pushed 15d ago), licensed Apache-2.0. It adds 145 tokens to every session and 2,359 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. It is 98% identical to experiment-iterative-coder, differing in 2 lines, and is treated as a copy.

Related

Other skills, from other repositories

agent-harness-fault-injection

Use when an agent workflow needs deterministic recovery evidence for sandbox, MCP/tool, worker, checkpoint, memory, or orchestration failures.

sickn33/agentic-awesome-skills · 34 tokens

foundry-config-setup

Resolve missing setup caused by a hardcoded Foundry project endpoint or model in a sample. Use when a sample fails because it uses a placeholder/hardcoded projectendpoint (for example "https://your-project.services.ai.azure.com") or a hardcoded model instead of reading them from the environment.

microsoft/agent-framework · 65 tokens

oma-scholar

Scholarly research companion using Knows sidecar spec (.knows.yaml). Generates, validates, reviews, queries, and compares structured research-paper sidecars, and fetches them from knows.academy. Use for academic literature search, survey synthesis, paper authoring assistance, and peer review with token-efficient…

first-fluke/oh-my-agent · 73 tokens

oma-hwp

Convert HWP / HWPX / HWPML files to Markdown using kordoc. Extracts text, headings, tables, lists, images, footnotes, and hyperlinks. Use for Korean word processor files (Hangul), government documents, and AI-ready data preparation.

first-fluke/oh-my-agent · 59 tokens

error-recovery

Standard recovery patterns for all squad agents. When something fails, adapt — don't just report the failure.

bradygaster/squad · 24 tokens

agentic-workflow-designer

Conversational skill that interviews users to design new agentic workflows.

bradygaster/squad · 19 tokens