跳到主要内容
知仓学习社ZHICANG

grade-iterate

Phase 3 of building a Claude Managed Agent — the bounded grade→iterate loop. Define a CMA outcome (a required markdown rubric graded by an isolated …

不碰外部(只输出文字)无严重或高危命中alirezarezvani/claude-skills

它会碰到什么

扫了多少5 个文本文件,17 KB
它会碰到什么不碰外部(只输出文字)
命中总数0 处
命中统计严重 0 · 高 0 · 中 0 · 低 0

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

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](../../references/loops-and-workflows.md)

and the outcome section of

[../../references/cma-primitives.md](../../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).

  1. 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".

  1. 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.

  1. 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.

  1. 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).

  1. "How many iterations before you'd rather look yourself?" Recommend: 3–5.

Cite: loops-and-workflows.md (bounded loop).

  1. "On a fail, sharpen the prompt or the tools?" Recommend: whichever rubric line

failed points to. Cite: verdict_reader next-move table.

  1. "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).

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。

它属于哪个仓库

星标★ 26,030
本站分层T1
该仓技能数846
原文件路径agent-launcher/skills/grade-iterate/SKILL.md

同一个仓库里的其他技能

看这个仓库的全部 846 个技能

同名技能的其他版本

有 2 个不同仓库或目录里都有叫 grade-iterate 的技能。它们内容并不相同,别混用: