review-loop

review-loop is a skill for Claude Code, Codex from swDomass/AI_orchestrator. It costs 23 tokens per session (545 once invoked), scanned A, original, MIT.

A repeated code-review process that sorts findings into P1 blockers, P2 important problems, and P3 minor improvements. It fixes all reported issues and reviews the code again until no findings remain, up to 20 rounds.

In plain words
What is it for?
Use it to review code, fix every finding, and repeat the review until the result is clean.
Why use it?
It reduces the chance that a review leaves bugs, security risks, performance problems, or small quality issues unresolved after the first pass.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to review code, fix every finding, and repeat the review until the result is clean.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/swdomass/ai_orchestrator/review-loop
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add swDomass/AI_orchestrator --skill review-loop
Clone the repo
git clone --depth 1 https://github.com/swDomass/AI_orchestrator

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for review-loop

README.md
[![agentmods](https://agentmods.dev/badge/skills/swdomass/ai_orchestrator/review-loop.svg)](https://agentmods.dev/skills/swdomass/ai_orchestrator/review-loop)
Your own site
<a href="https://agentmods.dev/skills/swdomass/ai_orchestrator/review-loop"><img src="https://agentmods.dev/badge/skills/swdomass/ai_orchestrator/review-loop.svg" alt="Measured on agentmods" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 545 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00023 $0.00545
Opus 5 $0.00012 $0.00272
Sonnet 5 $0.00005 $0.00109
Haiku 4.5 $0.00002 $0.00055

Measured 4d ago against content hash d8a19a2fbba3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

review-loop scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/review-loop/SKILL.md · 46 lines

What it actually says

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.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago Changed · +22 lines · +4 tokens per session d8a19a2fbba3
  2. 8d ago First seen · 24 lines · 19 tokens per session scan A 09484c75ee7a

Subscribe to this mod's changes

review-loop is a skill published in the GitHub repository swDomass/AI_orchestrator (5 stars, last pushed 2d ago), licensed MIT. It adds 23 tokens to every session and 545 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.