/uiverify-workflow:review-loop [pr-number-or-url] [--claude-only] [--codex-only] [--max-iterations N]from UI Verify Workflow
Runs an iterative multi-model review-and-fix loop over the working tree, repeatedly reviewing, applying verified fixes, and re-reviewing until no bugs or completeness gaps remain. Use when asked to 'review-loop', 'loop the review', or 'keep reviewing and fixing until clean'.
Ships in UI Verify Workflow. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Run the review-multi-model panel in a loop: review → apply verified fixes → re-review → fix → … until a pass finds nothing that matters (defined below). This exists because a fix can introduce a new defect - the review that clears one issue often surfaces another the previous pass couldn't see, so a single review+fix is rarely a fixpoint.
Why loops run long, and what prevents it. Without discipline, rounds past ~4 keep surfacing real but small gaps one or two at a time - a state with no story in round 5, another in round 7, a stale comment in nearly every round. Missing stories and false comments are real defects (a state with no story is invisible to visual testing). The failure is the drip: reviewers hunt and report what catches their eye, and each fix creates new states and comments nobody sweeps. So the reviewer brief makes completeness an enumerated sweep (list every state, behavior and affected comment/doc, then check each), and the fix step below sweeps its own fixes. Gaps should arrive in round 1 in bulk, not trickle out. Scope creep feeds the loop too: out-of-scope fixes are new surface each round reviews fresh.
CRITICAL: Do NOT enter plan mode. Execute directly, iterate, and present the per-iteration progress and a final convergence summary inline. Do not write results anywhere except review-multi-model's own scratch dir.
The loop's whole premise is that round N re-reviews exactly the code round N-1
just edited. review-multi-model's fix step (--fix) writes to the working tree, so
the loop only round-trips fixes when the thing being reviewed is also the working
tree - i.e. review-multi-model's branch mode (working tree vs. merge-base).
release/1.x), which may not be
the repo default. Prefix review-multi-model's branch-mode block (in the same Bash
call - shell vars don't persist between calls) with its base override set to that
branch: REVIEW_BASE=$(gh pr view <n> --json baseRefName -q .baseRefName) || exit 1
git fetch origin "$REVIEW_BASE") so a stale local origin/<base> doesn't fold already-merged
changes into the diff. Do not loop on gh pr diff: that reflects the pushed
PR, never the local uncommitted fixes (which this loop does not commit), so no round
could observe its own fixes.--staged is not supported and is not a pass-through flag. review-multi-model fixes
the working tree without re-staging, so git diff --staged would show the
unchanged index every round and the loop would never converge. For a one-shot
staged review, run /review-multi-model --staged (its --fix writes to the working
tree, so git add the result afterward if you want it back in the index).If the user passes a PR that is not checked out, say so and stop before iteration 1
(gh pr checkout <n> first) - do not switch their branch/worktree yourself, and a
fix loop that cannot see its own fixes is pointless anyway. --claude-only /
--codex-only pass through unchanged; the fix step is always on (it's a fix loop).
The panel is Claude + Codex. When Codex is unavailable (usage limit, not logged in), run a second independent Claude reviewer (a fresh agent with its own context, your strongest model) as the second seat rather than stalling the loop. Two passes with independent context still catch complementary defects. Say in the report that Codex didn't run (see review-multi-model's degraded-panel rule).
Classify every verified finding into one of two buckets - this, not the raw count, drives the loop:
When unsure, ask: "Would I block the PR on this if a human reviewer raised it?" If not, it's polish.
Fix findings that are in the change the user asked for. A finding about adjacent code the branch didn't set out to change - a pre-existing gap, a related subsystem, a "while we're here" hardening - goes on a follow-up list in the final report, not into the diff. Every out-of-scope fix is new surface the next round reviews fresh, which is exactly how a loop keeps "finding new things" forever.
One iteration = one complete review-multi-model run with its fixes applied: its review
phase (compute the working-tree diff → dual reviewers → adjudicate → present)
followed by its fix step (--fix - apply the verified, agreed fixes). Follow
the review-multi-model skill verbatim each round - do not reimplement the
review; this skill only wraps it in a loop. Every round starts fresh (new diff,
new scratch dir, two fresh reviewers), so a regression a fix introduced shows up
next round.
Each iteration is a review followed - only if needed - by a fix:
--max-iterations bounds the run; it defaults to 5. Convergence is decided by a
review with nothing that matters, never assumed after a behavior fix. If you reach the cap
and the last review still had findings, you will have applied that round's fixes
without a further review to confirm them - report those as applied but
unconfirmed, list the findings open as of the last review, and suggest re-running
with a higher --max-iterations to confirm.
Fingerprint a finding by the defect and where it lives - the file plus the specific construct/region it points at (or the thing a fix would change) - matched semantically. Two findings are "the same" if they describe the same defect in the same place, even if the two rounds word it differently ("missing null guard" vs. "nullable value dereferenced") or the line number drifted because edits above it shifted the file. Do not match on exact wording or line number - that lets one persistent defect masquerade as a new one and churn to the cap.
Converged (success): a review yields no finding that matters and no consequential Unverified items - polish may remain and is applied in-place without another round. This is the goal. If a reviewer failed or was unavailable that round (e.g. Codex out of credits), run the second Claude seat (see above) and treat that as the full panel - note the degradation in the report, but do not keep looping or wait for Codex to come back just to get a "real" multi-model pass. An empty diff also counts as converged: if a round's fixes leave nothing to review (review-multi-model reports "nothing to review" - e.g. the fixes reverted the branch to its base), stop and report that - there is nothing left to be wrong.
Iteration cap (default 5): a healthy loop converges in 2-4 rounds. Reaching 5
means either the change is genuinely risky or the loop is chasing polish - stop and
report which, in plain words, with the open findings and any applied-but-unconfirmed
fixes. Only go past 5 if the user passed a higher --max-iterations, or if round 5
itself found a matters bug (then one more confirming round, and stop).
Diminishing returns: two consecutive rounds with nothing that matters - or a round whose only matters finding is a regression from the previous round's own fix, and that fix was itself polish or out-of-scope - stop. The loop is now generating its own work; revert the out-of-scope fix instead of patching it.
No progress / oscillation: keep a cumulative record across all rounds - for each finding fingerprint, which rounds reported it and which rounds you applied a fix for it. Two things stop the loop:
{A}→{A,B}→{A,B,C} where the fixes for A, B never take does trip
it - A alone stalls the loop.)Report the stuck or flip-flopping finding(s) so the user can break the cycle.
Only un-appliable findings remain: if the sole survivors are ones review-multi-model's fix step deliberately skipped (low-confidence, or needing a human decision) or are consequential Unverified items, stop - re-running the identical review will keep skipping them. List them for the user.
Never loop forever. If you are unsure whether the set is shrinking, err toward stopping and reporting - a human deciding on 2 residual findings beats an agent burning tokens on an infinite churn.
Report the trajectory and final state plainly - what each round caught that mattered (one line each), why it stopped, the polish applied in bulk, and anything left unresolved, including the out-of-scope follow-up list. If it converged, say the diff is clean per the panel. If it stopped on the cap or a stuck finding, list what remains open and recommend the next step (a human decision or a targeted manual fix). Then - only if the user asks - commit the accumulated fixes.
Read the trajectory as data about the rules, not just about the diff. A small change
that took several rounds is telling you which defect classes the conventions currently
fail to prevent - each matters finding is one a rule or lint guard could have caught
before the first round ran. End the report by naming the recurring classes and offering
add-rule for the ones that generalize.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub uiverify/uiverify --plugin uiverify-workflow8 skills in this plugin
/add-ruleTurn a code-owner correction (or a recurring mistake) into a durable rule - the right conventions-doc edit, and a real failing lint guard whenever the rule is mechanically checkable. This is the self-improving loop the factory leans on - when something goes rogue, capture it so the linter/conventions-doc catches it next time instead of a human re-explaining it. Also runs as a weekly sweep over recent merged work. Use when asked to "/add-rule", "turn this into a rule", "make sure this never happens again", "capture this correction", "add a lint guard for X", or "do the weekly rule review"./babysit-prRaise a pull request from the current branch and babysit it to green. Opens the PR, then polls CI (~every 10 min) until every check passes, reacting to each failure by reading the logs, fixing locally, and pushing. When a failure exposes a generalizable lesson it proposes capturing it as a rule (via /add-rule). Does NOT approve or merge. Use when asked to "raise a PR", "open a PR and watch it", "push this and monitor CI", "get this PR green"./designMulti-model design/architecture loop - draft a design for a feature (or take an existing draft), critique it with two independent models in parallel against a repo-tuned rubric, then a principal-architect pass verifies each critique, resolves direction conflicts, and revises - iterating draft→critique→revise→re-critique until a clean cross-model pass or a round cap. The architecture analog of review-loop/review-multi-model, but there's no diff to check against, so critiques are anchored to a verbatim quote + a rubric dimension/requirement instead. Use when asked to "design X", "/design", "plan this feature", "architect this", "critique my plan", "give me a solid design before I build"./e2e-verifyStart your dev stack on isolated ports, authenticate Playwright with the user's browser session, and test the current branch. Use when asked to "e2e verify", "playwright test", "test everything", "test my changes with playwright", or "test this branch"./evaluate-runGrade a completed factory run (a worktree + its chat) against your standards, cold and adversarially, so the system learns. Squashes the session transcript into a compact digest (prompts + corrections, the ordered tool timeline, the diff), then a fresh evaluator judges how the run went - did it follow the loop, honor your conventions, write real tests, ask at the right moments, handle corrections - and routes every finding to a durable fix (/add-rule for code, a persistent memory for process). This is the OFFLINE complement to the correction hook - the hook catches what you notice live, this catches what you didn't. Use for "evaluate this factory run", "grade this chat", "how did that go, what should it learn"./factoryThe umbrella "I say what I want, it ships it" loop. Clarifies the ask up front only if genuinely ambiguous, triages the change to decide which phases it actually needs, then implements it and drives it to a merge-ready PR - walking only the phases that apply (design loop for non-trivial changes, always review-loop, e2e-verify only when the change has a runtime surface automated tests can't cover), and stopping mid-way only when it truly needs a decision. Does NOT auto-merge. Use when asked to "ship this", "/factory", "build X end to end", "run the whole loop", "make it and get it green".Other plugins' skills for the same job