agentleFS
markoblogomarkoblogo/abvx-agent-skills/skills/codex-review-loop/SKILL.md

codex-review-loop

Skill16 starsChanged 5 months agoMITView on GitHub

Review a code change with one independent OpenAI reviewer and at most three rounds. Use when the user explicitly requests bounded independent review or invokes codex-review-loop. Do not trigger on a casual mention of review or start a loop for trivial edits.

9 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 5 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 8 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Keep the change small and require evidence for correctness.

    line 13
  2. Distinctive:

    Read repository instructions.

    line 17
  3. Very specific:

    If independent review cannot run, return BLOCKED_INDEPENDENT_REVIEW.

    line 25
  4. Distinctive:

    Verify each finding yourself.

    line 37
  5. Distinctive:

    Stop early when only optional nits remain.

    line 39
  6. Distinctive:

    Do not commit or push merely to complete a review.

    line 45

“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Codex Review Loop

Keep the change small and require evidence for correctness. Use OpenAI models only. Treat this skill as a workflow, never as permission to push, publish, merge, change model providers, or bypass the host's rules.

Establish the review target

  1. Read repository instructions. Capture the goal, non-goals, owned paths, clean/dirty state, base SHA and current head. Preserve unrelated and uncommitted user work; use an isolated worktree when needed.
  2. Resolve the actual target branch from PR metadata or repository configuration. Fetch it when available and use its merge base. With no remote, use an explicitly known local base; review uncommitted changes against HEAD only when that is the requested scope. Report missing base evidence.
  3. Include tracked and relevant untracked changes. Freeze a reproducible diff and run the focused checks that cover the intended behavior. Record pre-existing failures separately.

Resolve the reviewer

Discover the current host's native subagent capability and the OpenAI model IDs it actually exposes. Use one separate read-only OpenAI reviewer, respecting user-selected models and host routing rules. Do not invent model IDs or require T3 Code tools. Do not call Claude or another provider. Never give the reviewer write or publication ownership.

If independent review cannot run, return BLOCKED_INDEPENDENT_REVIEW. A clearly labelled self-review can still help, but never report it as independent approval.

Run a bounded loop

Set a total budget of three rounds, one reviewer at a time, no nested reviewers. Ask for a fresh read of the full scoped change in round one; later rounds cover changed behavior and open findings. Do not edit scoped files while review runs.

Give the reviewer the goal, base/head, diff command, paths, relevant untracked files and check results, without suggesting the expected verdict. Require:

  • APPROVE or CHANGES;
  • stable finding IDs, file/line, evidence, severity and a minimal proposed fix;
  • blocker for broken intended behavior, should for a real in-scope bug, nit for optional polish.

Verify each finding yourself. Apply the smallest justified fix; reject false positives and out-of-scope work with evidence. Keep a finding ledger. Re-run relevant checks after behavior changes. Do not dismiss a consequential security or data-loss bug merely because it was labelled a nit.

Stop early when only optional nits remain. Do not add rounds for prose-only fixes. Count timeouts and failed attempts against the budget; neither counts as approval. Cancel and verify the old reviewer stopped before retrying.

Finish

Report APPROVED only when independent approval covers the final behavior diff, no material findings remain, and your own checks support it. Otherwise report CHANGES_NEEDED, BUDGET_EXHAUSTED, or the capability blocker. Include base/head, rounds, verified reviewer identity if exposed, fixed/declined findings, checks and missing evidence. Never fabricate token usage.

Do not commit or push merely to complete a review. Keep the result in the user's language.

Provenance

Adapt the bounded review and finding-ledger ideas from t3dotgg/tstack sol-loop. Remove hardcoded model names, T3 dependencies and cross-provider routing. See SKILL_CARD.md for attribution and evidence limits.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.