Command Palette

Search for a command to run...

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

review-loop

БесплатноЗапускает вложенные скриптыНе проверен

Adversarial review→triage→fix loop until a cold verifier signs off. Fans out lens-specific reviewer subagents, verifies every finding against the code…

Roasbeefот Roasbeef★ 33 звезды на GitHub

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

Review Loop

Run an adversarial review→triage→fix loop until a fresh cold verifier signs off. Unlike /code-review (report-only) this loop verifies every finding against the code, kills false positives, applies the confirmed fixes as fixup commits, and repeats until acceptance. All reviewing happens in subagents, so each reviewer burns its own context, not yours.

Target: $ARGUMENTS

Why this shape (and why a workflow)

This loop exists to defeat three failure modes that hit a single context window on long, adversarial tasks:

  • Agentic laziness — declaring a review done after partial coverage. The loop's fixed phases and convergence check force full coverage.
  • Self-preferential bias — grading your own findings. The triage judge and the final verifier are separate agents that never saw your reasoning.
  • Goal drift — losing the original constraints across turns. A design brief is passed verbatim to every agent.

Because those guarantees depend on the orchestration actually running every phase every time, the preferred execution path is a dynamic workflow (a deterministic JavaScript harness), not model-driven dispatch. The workflow encodes fan-out, triage, apply, loop, and verify as code that cannot drift or cut corners. The in-instance path below is the fallback when the Workflow tool is unavailable or the user passes --inline.

The four phases are mandatory — do not author a report-only variant

This skill runs Find → Triage → Apply → Verify, every invocation, in every profile. You may adapt the lens set, the cutoff, the profile, and the number of verify slices. You may NOT drop a phase. In particular:

  • Triage is what makes auto-apply safe (verify-and-reject before fixing) and is a separate agent from the finders, which is what defeats self-preferential bias. Skipping it turns adversarial noise into applied changes.
  • Apply is the entire point: this loop fixes, it does not just report.

Anti-pattern (do not do this): authoring an ad-hoc workflow named like review-loop whose phases are Review → Verify → Synthesize (or any gather-then-write-a-report shape with no Triage and no Apply). That is a report-only review — it produces findings but applies nothing. If a report is all that's wanted, use /code-review; do not rebuild it under the review-loop name. The bundled workflow/review-loop.js is the canonical harness — prefer running it (adapted via args) over writing a new script. If you do adapt the script, keep the Find/Triage/Apply/Verify phases intact.

Phase 0: Scope, baseline, and design brief (always done by the main loop)

Do this in the first turn, before any dispatch, regardless of execution path.

  1. Resolve scope into one concrete diff command and a stable description:

    git branch --show-current
    git show-ref --verify --quiet refs/heads/main && echo main || echo master
    # Range given? use it. Branch given? <base>...<branch>.
    # Else commits ahead of base? <base>..HEAD. Else uncommitted: git diff HEAD.
    git diff <range> --stat ; git log <range> --oneline
    

    Every finder and the verifier must review the same surface — record the exact diff command.

  2. Capture a pre-flight baseline so pre-existing breakage is not blamed on the change:

    make build 2>&1 | tail -5 ; make test 2>&1 | tail -5 ; make lint 2>&1 | tail -5
    

    Note what was already red (e.g. a toolchain/lint-config issue) for the brief.

  3. Write a design brief to .review-loop/brief.md — this is what makes triage accurate. Include: what the change does and why (approved intent); hard constraints and environment/protocol semantics reviewers can't infer from the diff; accepted tradeoffs and out-of-scope items; the pre-flight baseline. Front-load every scope cut you know about, but note the brief is no longer frozen at launch: triage, the finders, and the cold verifiers all re-Read .review-loop/brief.md from disk, so a mid-run edit to it is honored on the next phase (the workflow passes briefPath for exactly this).

  4. Pick lenses from the changed files and record them in .review-loop/lenses.md. Always run the baseline adversarial panel; add specialized lenses when trigger files are present:

    Lens subagent_type Trigger
    Correctness code-reviewer always
    Offensive security security-auditor always
    Differential / blast radius general-purpose + differential-review skill always
    Concurrency general-purpose goroutines, channels, mutexes, sync, atomics
    Shell / config hardening general-purpose *.sh, Dockerfiles, CI YAML, hooks, settings
    API safety & insecure defaults general-purpose + sharp-edges/insecure-defaults public interfaces, config, RPC/proto
    Deep function analysis audit-context-building:function-analyzer crypt
Полный SKILL.md на GitHub

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

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

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

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

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

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

Task
Workflow
Bash
Read
Write
Edit
MultiEdit
Grep
Glob
TodoWrite
AskUserQuestion

Вложенные файлы

workflow/review-loop.js

FAQ

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

Adversarial review→triage→fix loop until a cold verifier signs off. Fans out lens-specific reviewer subagents, verifies every finding against the code (killing false positives), auto-applies confirmed fixes as fixup commits, and repeats until a fresh verifier approves. Prefers a deterministic dynamic workflow when available; falls back to in-instance Task dispatch. Use when the user types /review-loop or asks to adversarially review-and-fix a change set, branch, or commit range until clean.

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

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

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

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

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

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