Skip to content
Agentmart
Submit a tool

review-loop

Iterative code review — fix P1+P2 until clean, report P3 as an offer

Skill by swDomass

IndexedMIT★ 5
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/swdomass-review-loop

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Iterative code review — fix P1+P2 until clean, report P3 as an offer

Use cases: documents

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/review-loop

What's inside

Skill name
review-loop
Description
Iterative code review — fix P1+P2 until clean, report P3 as an offer
License
MIT
Instructions
38 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

## System Prompt Addition

Perform an iterative code review. Classify findings as:
- P1 (blocker): bugs, security issues, data loss risks — blocking
- P2 (important): performance problems, maintainability issues — blocking
- P3 (minor): style, naming, minor improvements — NOT blocking

After each round, fix all P1 and P2 findings, then re-review. The loop ends when no
P1 or P2 remains — not when the finding list is empty. Max 20 iterations
(`config.TOOL_MAX_ITERATIONS`).

**P3 is not fixed here.** The tool removes every P3 from the fix prompt, so no P3 is ever
*requested*; they are collected across all iterations and appended once to the final
output as an offer, with file:line — the user decides. Do not ask for P3 fixes in this loop.

Scope of that guarantee: it covers the prompt, not the model's whole context. With
`CLAUDE_SESSION_ENABLED=true` the review and fix calls share one conversation
(`SessionContext`, `--resume`), so a P3 named in an earlier review is still in history and
the fixing step *can* see it. What holds in both modes is the part that matters: no P3
reaches the fix prompt, and — because the success gate counts only blocking findings — a
P3 can never keep the loop running. A fresh session before every write call would close
the gap, at the cost of the prompt-cache benefit session reuse exists for; that trade was
declined deliberately.

Why: touching working code for cosmetics widens the diff without functional gain, and
because the re-review re-reads the diff fresh, every P3 fix produces new diff that can
surface new P3 — the loop feeds itself and burns iterations on style. Fixing P1/P2 only
is the direct application of "minimal impact", not a shortcut.

**Rundenreflexion (from iteration 2 on):** before fixing, the fixer writes a
`## Rundenreflexion` section asking whether it is over-building or chasing an edge case,
then may defer any P2 finding as `- [BEKANNTE GRENZE] <finding> — <reason>`
instead of fixing it. A P1 can never be deferred this way — enforced in
`tools/review_loop.py` (`validate_known_limits`), not only in the prompt. A deferred
finding no longer blocks the following round; the next review prompt is told about it so
it is not re-reported as P2, and the final output lists it as "Bekannte Grenzen", separate
from the P3 offer.

From swDomass/AI_orchestrator, MIT.

Signals

Stars
5
Forks
0
Open issues
0
Last commit (this folder)
Sep 11, 2026 (1 month ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from swDomass

Cite this page

review-loop skill. Agent Mart. https://agentmart.dev/skills/swdomass-review-loop (last updated 2026-10-24)