Grade Iterate skill for Claude

Use when a launched managed agent needs grading against a rubric and improving ('grade my agent', 'is it good enough'). Builds the outcome with outcome_builder.py, reads verdicts with verdict_reader.py and runs held-back evals from eval_scaffold.py.

Grade Iterate SKILL.md

The full skill file from alirezarezvani/claude-skills (MIT).

Phase 3 — Grade → Iterate (the bounded loop)

This is the plugin's loop: CMA's outcome primitive self-grades the agent's work in an isolated context and feeds failing verdicts back for the next attempt. It is always bounded by max_iterations (1..20) — never "improve forever".

See ../../references/loops-and-workflows.md and the outcome section of ../../references/cma-primitives.md.

Workflow

  1. Define the outcome.
    python3 scripts/outcome_builder.py \
      --sheet ./my-agent/build-sheet.json --max-iterations 5 \
      --out ./my-agent/payloads/outcome.json
    
    The rubric is required; max_iterations is clamped to 1..20. Send the payload as a user.define_outcome event (append to the running session).
  2. Read every verdict first.
    python3 scripts/verdict_reader.py --result ./my-agent/last-verdict.json
    
    Tables the rubric outcome and recommends: SHIP (satisfied), SHARPEN then re-run (needs_revision), ESCALATE (max_iterations_reached / failed), RESUME (interrupted). With ≤1 iteration left it flips to "make the single highest-value fix or escalate now".
  3. Loop invariant. Each iteration must move ≥1 rubric line fail→pass, or the run halts at the cap and escalates. Don't burn the budget on cosmetic edits.
  4. Once a version passes, run held-back eval.
    python3 scripts/eval_scaffold.py \
      --sheet ./my-agent/build-sheet.json --out ./my-agent/eval.json --concurrency 5
    
    Held-back cases (never seen during iteration) run in parallel, capped at the 25-thread CMA ceiling, each graded against the same rubric.
  5. Decide. SHIP as v0, or promote to a scheduled deployment (Phase 4). Record the verdict on the goal: goal_state.py set --phase run-without-you.

Hard rules

  • Bounded, always. No outcome without a max_iterations cap.
  • Read the verdict before acting. The grader's explanation drives the next move.
  • Held-back cases are held back. Never grade generalization on cases the agent already iterated against.

Forcing-question library (recommend + cite)

  1. "What are the 3–5 rubric lines?" Recommend: grounded, checkable criteria. Cite: cma-primitives.md (rubric required).
  2. "How many iterations before you'd rather look yourself?" Recommend: 3–5. Cite: loops-and-workflows.md (bounded loop).
  3. "On a fail, sharpen the prompt or the tools?" Recommend: whichever rubric line failed points to. Cite: verdict_reader next-move table.
  4. "Which cases did the agent NOT see?" Recommend: hold back ≥3 for generalization. Cite: this SKILL (held-back eval).

Tools

  • scripts/outcome_builder.py — user.define_outcome payload (rubric required, cap 1..20).
  • scripts/verdict_reader.py — grader result → next move.
  • scripts/eval_scaffold.py — held-back cases + parallel run plan (≤25 threads).

How to install Grade Iterate

Claude Code

Copy the skill into your personal skills folder (or into .claude/skills/ inside a project):

npx degit alirezarezvani/claude-skills/agent-launcher/skills/grade-iterate#main ~/.claude/skills/grade-iterate

Codex

npx degit alirezarezvani/claude-skills/agent-launcher/skills/grade-iterate#main ~/.codex/skills/grade-iterate

Claude.ai and Claude Desktop

Download the skill folder from GitHub, zip it, and upload it under Settings → Capabilities → Skills.

Frequently asked questions

+What does the Grade Iterate skill do?

Use when a launched managed agent needs grading against a rubric and improving ('grade my agent', 'is it good enough'). Builds the outcome with outcome_builder.py, reads verdicts with verdict_reader.py and runs held-back evals from eval_scaffold.py.

+How do I install Grade Iterate in Claude Code?

Copy the skill folder into ~/.claude/skills/grade-iterate, for example with "npx degit alirezarezvani/claude-skills/agent-launcher/skills/grade-iterate#main ~/.claude/skills/grade-iterate". Claude Code loads it automatically and uses it when a task matches.

+Does Grade Iterate work with ChatGPT or Codex?

Yes. Grade Iterate uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/grade-iterate. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.

+Is Grade Iterate free?

Grade Iterate is published on GitHub by alirezarezvani under the MIT license, which allows free use.

Related marketing skills

  1. Marketing Skills

    Use when looking for which of the 44 marketing skills fits a task. Lists them by pod and routes to one; does no marketing work itself.

    alirezarezvani/claude-skills★ 30k
  2. Image

    When the user wants to create, generate, edit, or optimize marketing images, or asks which approach to take (generate, design, or…

    coreyhaines31/marketingskills★ 61k
  3. Agent Reach

    只读读取各平台内容:搜索、读帖、看评论、取字幕、查行情和职位。 Use when 用户提到或贴出链接:小红书/xiaohongshu、B站/bilibili、Twitter/X、Reddit、…

    Panniantong/Agent-Reach★ 113k
  4. Landing Page Generator

    Use when asked for a landing, marketing or campaign page as a Next.js TSX component with Tailwind.

    alirezarezvani/claude-skills★ 30k
  5. Launch Strategy

    Plan a product or feature launch: readiness score and a phased plan by channel.

    alirezarezvani/claude-skills★ 30k
  6. Linkedin Analytics

    Use when someone asks why their LinkedIn reach dropped, which posts worked, whether a pattern is real or how to test one.

    alirezarezvani/claude-skills★ 30k
  7. Linkedin Content

    Write, edit or review a LinkedIn post: story, how-to, carousel, video script or poll.

    alirezarezvani/claude-skills★ 30k
  8. Linkedin Engagement

    Use for LinkedIn comments, connection notes, DMs or outreach plans, or checking outreach volume is safe.

    alirezarezvani/claude-skills★ 30k
  9. Linkedin Profile

    Use when auditing or rewriting a LinkedIn profile (headline, About, experience, Featured).

    alirezarezvani/claude-skills★ 30k

See all marketing skills →

More skills from alirezarezvani

  1. Grants

    Use for any NIH funding question ('find grants for my research', 'which NIH institute').

    alirezarezvani/claude-skills★ 30k
  2. Grill Me

    Interview the user relentlessly about a plan or design until reaching shared understanding, resolving each branch of the decision tree.

    alirezarezvani/claude-skills★ 30k
  3. Grill With Docs

    Use when a plan should be stress-tested against the project's own docs (CONTEXT.md glossary, docs/adr decisions), or the user says 'grill…

    alirezarezvani/claude-skills★ 30k

All skills by alirezarezvani →

Give your whole team an AI agent with skills

Cody runs managed AI agents your team can message in Slack, Teams, WhatsApp and the web, with 50+ business integrations, scheduled tasks and memory. No terminal required.