refinement-loop

Installation
SKILL.md

Refinement Loop

Stop accepting first drafts. Score them, diagnose them, revise them, repeat.

Any artifact improves through one loop: Generate → Evaluate → Diagnose → Revise, with a separate critic, a numeric threshold, and a hard round cap. Grounded in the Self-Refine paper (Madaan et al. 2023, ~20% average gains inference-only), LLM-as-judge practice (reasoning before score, strict output), and the field-tested critic pattern from AI Search's GPT-6 Astra demo (separate critic, 0–10 scale, stop at 8, cap 3 rounds).

Core loop

v0 = GENERATE(brief)
repeat:
  verdict = CRITIC(vN)          # separate role/agent; never the author grading itself
  if verdict.score >= THRESHOLD: ship vN
  vN+1 = REVISE(vN, verdict.ranked_fix_list)
until rounds == CAP             # final round ships even under threshold

Three rules keep it honest. The critic must be a different role from the builder (same model self-critiquing is the weakest form; a different model family is strongest). Every verdict needs evidence quoted from the work, not vibes. And the cap is sacred: a loop without a cap is a loop without an end.

Installs
1
GitHub Stars
1
First Seen
3 days ago