review-workflow
Skill7 starsChanged 4 months agoMITView on GitHub
Run an iterative code-review loop: a review workflow scores the diff by severity, Claude fixes the issues at the chosen strictness, commits, then re-reviews — looping until the review comes back clean. Configurable at invocation: a model ladder (recommended Sonnet → Opus; also sonnet, opus, or a custom models= list), a strictness set of severities to enforce (default critical+major+minor; e.g. strictness=critical,major), and a per-tier round cap (rounds=3/5/10 or until-fixed). Asks if unspecified. Project-agnostic; any git repo. Use when the user asks to review-and-fix in a loop, do a feedback pass, or "keep reviewing until clean".
- Reads credentials
4 other projects use a version of this.
Adopted by
Most recently taken up by
- issue-orchestrator/issue-orchestratortheir own version, first seen Sep 6, 2026
- sasuketorii/rev_harness_publictheir own version, first seen Aug 19, 2026
- Abeautifulsnow/skillstheir own version, first seen Jul 28, 2026
- HyunKN/harness-kittheir own version, first seen Apr 7, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- issue-orchestrator/issue-orchestrator★ 10same name
- Abeautifulsnow/skills★ 2same name
- HyunKN/harness-kit★ 0same name
- sasuketorii/rev_harness_public★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 4 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 25
Run an iterative review → fix → commit → re-review loop until a code review comes back clean.
- Very specific: line 47
When invoked with /review-workflow $ARGUMENTS:
- Very specific: line 62
Use the returned absolute path as scriptPath.
- Very specific: line 73
Use one AskUserQuestion to pick what to review, then run the rest autonomously:
- Very specific: line 81
If the user already stated the scope in $ARGUMENTS, skip the question and use it.
- Very specific: line 101
If no model suite is present in $ARGUMENTS, ask with one AskUserQuestion offering exactly these options (recommended one first):
- Very specific: line 130
If no strictness is present in $ARGUMENTS, ask with one multi-select AskUserQuestion listing all four severities — critical, major, minor, …
- Very specific: line 150
If no round count is present in $ARGUMENTS, ask with one AskUserQuestion offering (recommended first): Run until fixed *(Recommended, …
- Distinctive: line 219
When the loop ends, summarize:
- Distinctive: line 224
If stopped by a guard: list the remaining findings (file, severity, title) so the user can decide.
- Distinctive: line 237
If every reviewer fails, the workflow throws rather than reporting a false "clean" — so a broken review can never be mistaken for a passing …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Review Workflow Skill
Run an iterative review → fix → commit → re-review loop until a code review comes back clean.
How it works (two actors)
A Claude Code workflow orchestrates subagents but cannot edit the working tree or commit — its subagents run in isolated contexts. So the loop is split:
| Step | Who |
| Review the diff → verified, severity-graded findings | the bundled workflow (references/review-loop.mjs) |
| Apply the fixes | you (the main agent) |
| Commit round N | you (the main agent) |
| Re-review (round N+1) | the bundled workflow |
| Escalate models cheap → smart | you (the main agent) — run each tier of the chosen ladder to clean |
| Decide which severities to fix/enforce | you (the main agent) — the chosen strictness set |
| Cap the rounds per tier | you (the main agent) — maxRounds (3/5/10 or until-fixed, ceiling 20) |
You drive the outer loop; the workflow is the per-round review engine you call. The workflow is invoked directly from this skill's bundled path — nothing is written into the user's repo.
Instructions
When invoked with /review-workflow $ARGUMENTS:
1. Prerequisites
- Confirm this is a git repo (
git rev-parse --git-dir). If not, tell the user and STOP. - Determine the current branch. If on
main/master, create a working branch first (do not commit review fixes onto the default branch). - Resolve the absolute path to this skill's bundled workflow (
references/review-loop.mjs, next to thisSKILL.md) — you need it for theWorkflowcall below. The install location varies (global~/.claude/, tessl's~/.agents/skills/which~/.claude/skills/symlinks to, or a project checkout), so locate it rather than assuming.-Lfollows the tessl symlinks; trusted roots are searched before the cwd so a project-local copy can't shadow the installed one:
Use the returned absolute path asfind -L ~/.claude ~/.agents . -type f -path '*review-workflow/references/review-loop.mjs' 2>/dev/null | head -1scriptPath. If nothing is found, tell the user the skill's workflow file is missing and STOP. - Pick the reviewer agent. The workflow reviews with a subagent; it must be a runtime-registered
agent type, not a skill or an on-disk agent file. Check your available agent types (the ones you can
actually spawn): if a
code-revieweragent is available in this project, setreviewerAgentType = "code-reviewer"so the review uses the project's specialized reviewer; otherwise leave it unset and the workflow defaults togeneral-purpose. (Only agents in the live registry work — a project's PR-review skill or an unregisteredcode-reviewer.mdcannot be used as the reviewer.)
2. Ask scope (once)
Use one AskUserQuestion to pick what to review, then run the rest autonomously:
| Choice | scopeMode | What it reviews |
| Branch diff vs base (default) | branch | The whole branch: merge-base(HEAD, main/master)..HEAD. Best for a feature-branch feedback pass. |
| Working-tree changes only | working | Staged + unstaged changes vs HEAD. |
| Specific paths | paths | The branch diff (merge-base..HEAD) restricted to the paths the user names (ask for them). |
If the user already stated the scope in $ARGUMENTS, skip the question and use it. If they pick Specific
paths and haven't listed the paths, a follow-up question to collect the path list is allowed (this is the
one exception to "one question") — never pass scopeMode: "paths" with an empty paths, or it silently
reviews the whole branch.
3. Choose the model suite (the escalation ladder)
The review runs on a ladder of models, cheap → smart: it converges on the first tier, then re-converges on the next, and so on. Mechanical work (scope, file-listing) always runs on Haiku inside the workflow regardless of the ladder.
Resolve tiers (an ordered list of review models) from $ARGUMENTS:
In $ARGUMENTS | Resolved tiers |
sonnet-opus (preset) | ["sonnet", "opus"] |
sonnet (preset) | ["sonnet"] |
opus (preset) | ["opus"] |
models=<a,b,c> (explicit list) | that list, e.g. models=haiku,sonnet,opus → ["haiku","sonnet","opus"] |
If no model suite is present in $ARGUMENTS, ask with one AskUserQuestion offering exactly these
options (recommended one first):
- Sonnet → Opus (Recommended) — Sonnet clears the obvious issues cheaply, then Opus does the final,
smartest sign-off. →
["sonnet", "opus"] - Sonnet only — single cheaper/faster pass. →
["sonnet"] - Opus only — max quality from round one, higher cost. →
["opus"]
Then run the ladder:
globalRound = 0
for tier in tiers:
prevSet = null # reset the no-progress guard at the start of EACH tier
tierRound = 0 # reset the per-tier round counter (see maxRounds, step 5)
run the per-tier loop below with reviewModel = tier4. Choose strictness (which severities to enforce)
enforce is the set of severities the loop both fixes and drives to zero before a tier is clean.
Severities not in the set are ignored for the stop condition; anything in the set is fixed every round.
Resolve enforce from $ARGUMENTS:
In $ARGUMENTS | Resolved enforce |
strictness=<a,b,…> (explicit list) | that set, e.g. strictness=critical,major → {critical, major} |
| (absent) | ask, pre-checked to the default below |
If no strictness is present in $ARGUMENTS, ask with one multi-select AskUserQuestion listing all four
severities — critical, major, minor, nit — pre-checked to critical + major + minor (the
default; unchanged from prior behavior). The user ticks exactly the severities to enforce (any combination,
e.g. critical + major + nit to skip minor). At least critical should be selected; if the user picks
nothing, fall back to the default.
5. Choose max rounds (the per-tier round cap)
maxRounds caps how many review rounds run per tier (it resets at the start of each tier). The loop
still stops early the moment a tier is enforced-clean or the no-progress guard trips — maxRounds is just
the ceiling.
Resolve maxRounds from $ARGUMENTS:
In $ARGUMENTS | Resolved maxRounds |
rounds=3 / rounds=5 / rounds=10 (or any N) | that number |
rounds=until | run until fixed — capped at the 20-round safety ceiling |
| (absent) | ask, defaulting to run until fixed |
If no round count is present in $ARGUMENTS, ask with one AskUserQuestion offering (recommended
first): Run until fixed (Recommended, ceiling 20), 3, 5, 10. "Run until fixed" sets
maxRounds = 20 (a hard safety ceiling — a growing diff may keep surfacing findings and never fully
converge, so it must be bounded).
You can ask scope, model, strictness, and max-rounds together in a single AskUserQuestion call — still
"once".
6. The per-tier loop (maxRounds cap per tier; resets each tier)
Track tierRound (the round number within the current tier, reset to 0 when a tier starts) alongside
globalRound (used only for commit-message labelling). For each round in the current tier:
- Review — increment both counters (
++tierRound,++globalRound), then call the bundled workflow:
It returnsWorkflow({ scriptPath: "<this-skill-dir>/references/review-loop.mjs", args: { scopeMode, round: globalRound, paths, reviewModel: tier, reviewerAgentType } // reviewerAgentType from step 1 (omit/undefined → workflow uses general-purpose). // include base only if the user pinned one; mechanicsModel defaults to haiku. // Optional: pass focus:"<text>" to weight the reviewers toward a concern the // user called out in $ARGUMENTS. }){ round, base, scopeMode, files, confirmed, counts }whereconfirmedis the adversarially-verified findings (each{ severity, file, location, title, detail, suggestedFix }) andcountsis{ critical, major, minor, nit }. The review and its per-finding verify both run ontier. - Tier-clean check — if the sum of
countsover the enforced severities is0(e.g. forenforce = {critical, major},counts.critical + counts.major === 0), this tier is clean → break to the next tier (or, if this was the last tier, finish). Fix trivial non-enforced findings opportunistically before moving on. - No-progress guard — build the identity set of the current unresolved enforced findings
as
`${file.trim().replace(/^\.\//, '')}::${title.trim().toLowerCase()}`(normalize both halves so./xandxdon't read as different findings). If it equalsprevSet(the same issues keep coming back within this tier): escalate, don't quit — compare the sets by value (e.g. sort the keys and join to a string), not by object identity —breakto the next tier, whose smarter model may fix or dismiss them. Only if this is already the last tier do you stop the whole loop and report. Then setprevSetto the current set for the next round.prevSetstartsnullat each tier (set in the ladder above), so round 1 of a tier never falsely trips this. - Iteration guard — if
tierRound >= maxRounds, this tier has hit its cap → break to the next tier (or, if this is the last tier, stop and report). The findings from this capped review are reported but not fixed/committed on this tier.maxRoundsresets per tier, so withsonnet→opusandmaxRounds=5you get up to 5 sonnet rounds and up to 5 opus rounds. (For "run until fixed",maxRoundsis 20 — a hard ceiling so a non-converging diff can't loop forever.) If the cap fires on the first round of an escalated tier (so that tier applied zero fixes), say so in the report. - Fix — apply fixes for every
confirmedfinding whose severity is inenforce, using itssuggestedFixas a starting point (verify it's correct against the actual code — don't apply blindly). Also fix non-enforced findings opportunistically when the change is low-risk and quick, but they never block the tier-clean check. - Commit — stage only the files you actually edited (do not
git add -Aorgit add .— the working tree may hold untracked secrets like.env; prefer explicit paths, orgit add -ufor tracked-only), then commit:
No Claude attribution in the message or trailers. If the round produced no file changes, skip the commit (and treat as no progress for the guard).git add <the files you fixed> # or: git add -u git commit -m "Address code review feedback (round <globalRound>, <tier>)" - Repeat from step 1.
7. Completion report
When the loop ends, summarize:
- The ladder run (e.g. sonnet → opus), the reviewer agent used (
code-reviewerorgeneral-purpose), enforced severities (e.g. critical+major), andmaxRounds; total rounds run, and why it stopped (final tier clean / no-progress / hit themaxRoundscap). - Issues fixed per severity across all rounds; commits made (one per round).
- If stopped by a guard: list the remaining findings (file, severity, title) so the user can decide.
- Note any non-enforced findings surfaced but intentionally left unfixed, so the user knows they exist.
Notes
- Project-agnostic — no repo-specific rules baked in; the workflow reads the nearest
CLAUDE.mdand treats its conventions as review criteria. - Reviewer agent — the skill auto-detects a runtime-registered
code-revieweragent (step 1) and uses it when present, so on projects that ship one (e.g. onyx) the review uses that specialized reviewer; otherwise it falls back to thegeneral-purposeworkflow subagent, so it runs anywhere. Only live agent types qualify — workflow subagents resolveagentTypeagainst the runtime registry, not against agent files on disk or skills, so a project's PR-review skill or an unregisteredcode-reviewer.mdcannot be the reviewer. You can also force a specific agent by passingreviewerAgentTypein$ARGUMENTS. If every reviewer fails, the workflow throws rather than reporting a false "clean" — so a broken review can never be mistaken for a passing one. - Model tiering (cost-efficient, configurable) — mechanical work (scope, file-listing) runs on
Haiku; the review ladder is chosen at invocation (default Sonnet → Opus; also
sonnet,opus, or an explicitmodels=…list — see step 3). Each review round's verify phase runs on the same tier as its review. The skill passesreviewModel/mechanicsModelinto the workflowargs. Note: passingreviewModeloverrides thecode-revieweragent's own model for that call, so the tier is applied uniformly. - No attribution — never add
Co-Authored-By: Claudeor "Generated with Claude Code" to commits. - Nothing is copied into the repo — the workflow runs from this skill's bundled
references/path.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

