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★ 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.
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> --onelineEvery finder and the verifier must review the same surface — record the exact diff command.
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 -5Note what was already red (e.g. a toolchain/lint-config issue) for the brief.
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.mdfrom disk, so a mid-run edit to it is honored on the next phase (the workflow passesbriefPathfor exactly this).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-revieweralways Offensive security security-auditoralways Differential / blast radius general-purpose+differential-reviewskillalways Concurrency general-purposegoroutines, channels, mutexes, sync, atomicsShell / config hardening general-purpose*.sh, Dockerfiles, CI YAML, hooks, settingsAPI safety & insecure defaults general-purpose+sharp-edges/insecure-defaultspublic interfaces, config, RPC/proto Deep function analysis audit-context-building:function-analyzercrypt
Установить review-loop в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
TaskWorkflowBashReadWriteEditMultiEditGrepGlobTodoWriteAskUserQuestionВложенные файлы
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 запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic