Iteratively improve a code change by having the matching specialist agent score the diff 0-100 against an explicit rubric, rewriting the weakest parts, and repeating until the score plateaus. Use after the quality bar is green (build/lint/format/tests clean) but before the review gates — e.g. polishing an implementation or refactor, or when asked to "clean up" code without concrete criteria. Code-side sibling of self-scoring-loop.
How this skill is triggered — by the user, by Claude, or both
Slash command
/agentic-framework:code-scoring-loopThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
The same converging loop as `self-scoring-loop` — rubric first, score, rewrite
The same converging loop as self-scoring-loop — rubric first, score, rewrite
the weakest parts, rescore until improvement stalls — adapted for code. Three
things change when the deliverable is a diff:
code-review-gatekeeper and peer-review-critic
unchanged — this loop just means it arrives pre-polished.code-review-gatekeeper — fewer gate
iterations when the obvious weaknesses are already fixed./agentic-framework:delegate todo, or the first time a /agentic-framework:build
run goes green before its spec-compliance review (once per run — fix
iterations of the review loop don't re-enter the polish pass), when the
change is large enough that a structured polish pass beats ad-hoc tidying.Before iteration 1, the mechanical checks of the /agentic-framework:delegate command (§4)'s
quality bar must be clean: build 0 errors / 0 warnings, linter clean,
formatter no diffs, full unit-test suite green. (The docs bullet is not part
of gate zero — in the /agentic-framework:delegate flow it lands in the per-todo doc step that
follows the refactor.) Correctness is binary and comes first; scoring a red build is
meaningless. If the bar fails, fix that — this loop is not for broken code.
rust-expert for a Rust diff,
typescript-expert for TypeScript, …); use comprehensive-analyst when
the change spans languages or no language expert fits — not
code-review-gatekeeper, which must stay outside the polish loop so the
gate's judgment remains independent of the rubric. Launch a fresh
subagent instance each round and hand it the diff, the rubric, and the
instruction to return a 0–100 score with a one-line justification per
criterion. Score honestly — an inflated score ends the loop early and
defeats it. If the first score is ≥ 90, say so and stop — the loop
is for improvement, not ceremony.spec-compliance-reviewer), not a rubric
criterion — requirement changes do not belong in a polish loop.code-review-gatekeeper,
peer-review-critic, and the peer-review Stop gate apply unchanged. A 95
here skips nothing.npx claudepluginhub tomas-rampas/claude-agentic-frameworkCreates, edits, and verifies skills using a test-driven development approach with pressure scenarios and subagents.