Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

rereview-loop

БесплатноБез исполняемых скриптовНе проверен

Iteratively run /rereview, fix the findings, and loop until reviewers approve clean. Use for iterative automated review, when you want /rereview to loop until…

drnот drn★ 23 звезды на GitHub

Об этом скилле

Re-Review Loop

Run /rereview repeatedly: review → fix the findings → re-review → repeat. Stop when all three reviewers approve with zero BLOCKING and zero WARNING findings, when the iteration cap is hit, or when an iteration makes no progress.

Arguments

  • $ARGUMENTS - Optional. Forms:
    • <branch-or-range> - passed through to /rereview as its scope
    • max=<N> - cap the number of review→fix iterations (default 5)
    • severity=blocking - only auto-fix BLOCKING findings (default fixes BLOCKING + WARNING)
    • severity=all - auto-fix BLOCKING + WARNING + INFO
    • push - after each iteration commit, and push the branch with git push -u origin HEAD (opt-in; the same applies if the user explicitly asks mid-run to update the PR between loops)
    • Any combination, space-separated. Example: /rereview-loop max=3 severity=blocking

Context

  • Current branch: !git branch --show-current
  • Base ref: !git branch -r 2>/dev/null | grep -oE 'origin/(main|master)' | head -1
  • Git status: !git status --short
  • Commits vs main: !git log origin/main..HEAD --oneline 2>/dev/null | head -20
  • Commits vs master: !git log origin/master..HEAD --oneline 2>/dev/null | head -20

Overview

You are the lead coordinator for an iterative re-review loop. Your job is to drive findings to zero by alternating between review (delegated to /rereview) and fixes (applied here).

Core principle: trust the reviewers. Fix what they flag, do not argue with the verdict to escape the loop. The loop exits when reviewers say it's clean -- not when you decide it's clean.

Hard rules:

  • NEVER skip, weaken, or reword reviewer findings to make them "easier to satisfy."
  • NEVER mark a finding addressed without making (or consciously rejecting) a code change.
  • NEVER cap the loop early just because the remaining findings look minor -- run to the cap or to clean.
  • NEVER fix a finding by deleting the test that catches it.

Phase 0: Parse arguments and initialize state

Parse $ARGUMENTS:

max_iterations = 5             (override with max=<N>)
severity_filter = "blocking+warning"   (override with severity=blocking | severity=all)
rereview_scope = ""            (any non-key=value token; passed to /rereview verbatim)
iteration = 0
prior_blocking_count = -1      (B count from previous iteration; -1 = no prior)
prior_warning_count = -1       (W count from previous iteration; -1 = no prior)
prior_info_count = -1          (I count from previous iteration; -1 = no prior)
last_iteration_committed = false   (did the previous iteration produce a commit?)
total_pushbacks = 0            (cumulative judgment-call pushbacks across all iterations)
total_verified_false_positives = 0   (cumulative findings disproven by an actually-executed command, not judgment)
total_findings_addressed = 0   (cumulative findings touched, for the pushback rate)
push_each_iteration = false    (override with push)
accepted_limits = []           (running list of accepted limits and pushed-back findings, with file:line and one-line rationale)
stashed = false                (set true if Phase 0 stashes unrelated work)

Preflight:

  1. Detached HEAD guard. Run git symbolic-ref --short HEAD (or git branch --show-current). If empty, exit immediately: "Cannot run /rereview-loop in detached HEAD state -- check out a named branch first." Do not proceed.

  2. No-changes guard. If there are no commits ahead of the base branch and no uncommitted changes, tell the user "Nothing to re-review -- branch has no changes vs base." and stop.

  3. Stash unrelated work. If git status --short shows uncommitted changes that are NOT part of the work being reviewed (i.e., the user has unrelated dirty files), run git stash push -u -m "rereview-loop pre-loop" and set stashed = true. Tell the user you stashed. The stash MUST be popped on every exit path -- see Phase 4 and the failure-handling table.

Announce the run:

## Re-review loop starting

**Scope:** {rereview_scope or "current branch vs default"}
**Max iterations:** {max_iterations}
**Auto-fix severity:** {severity_filter}

Phase 1: Run /rereview

Invoke the /rereview skill via the Skill tool, passing rereview_scope as its argument (empty string if no scope was given). Pass the current accepted_limits list along (state it in the invocation so /rereview includes it in the reviewer briefing under ACCEPTED LIMITS); without it reviewers re-flag settled items every round. Wait for it to complete and capture the full final report.

/rereview will:

  1. Gather all changed files and dependents
  2. Run the test + lint baseline
  3. Launch 3 independent reviewers in parallel
  4. Synthesize a final verdict

You will receive a markdown report with: a final verdict, a per-reviewer agreement table, and consolidated lists of Blocking Issues, Warnings, Suggestions, Disagreements, and Missing Test Coverage.

If /rereview reports "no changes to review," the loop is t

Полный SKILL.md на GitHub

Установить rereview-loop в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл rereview-loop?

Iteratively run /rereview, fix the findings, and loop until reviewers approve clean. Use for iterative automated review, when you want /rereview to loop until clean, or for a paranoid pre-merge review that auto-addresses every blocker.

Как установить скилл rereview-loop?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл rereview-loop запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить rereview-loop с