phase-pr-review-loop

phase-pr-review-loop is a skill for Claude Code, Codex from dirtybits/agent-skills. It costs 89 tokens per session (1,489 once invoked), scanned A, original, MIT.

A process for delivering a large engineering project in separate phases, with one pull request per phase. Each phase is planned, reviewed, implemented, checked against review comments, and recorded in a status ledger.

In plain words
What is it for?
Use it to plan and review phases, manage branches and pull requests, run cross-agent code reviews, verify each requested fix, merge completed phases, and track rollback or remaining work.
Why use it?
It prevents the written plan from drifting away from the code and prevents review findings from being marked fixed without evidence. The ledger also lets another agent or session continue with the current status.

Skill for Claude CodeCodex

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

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.

agentmods
npx agentmods add skills/dirtybits/agent-skills/phase-pr-review-loop
Any agent
npx skills add dirtybits/agent-skills --skill phase-pr-review-loop
Clone the repo
git clone --depth 1 https://github.com/dirtybits/agent-skills

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 phase-pr-review-loop

README.md
[![agentmods](https://agentmods.dev/badge/skills/dirtybits/agent-skills/phase-pr-review-loop.svg)](https://agentmods.dev/skills/dirtybits/agent-skills/phase-pr-review-loop)
Your own site
<a href="https://agentmods.dev/skills/dirtybits/agent-skills/phase-pr-review-loop"><img src="https://agentmods.dev/badge/skills/dirtybits/agent-skills/phase-pr-review-loop.svg" alt="Measured on agentmods" height="20"></a>
Per session 89 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,489 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00089 $0.01489
Opus 5 $0.00044 $0.00745
Sonnet 5 $0.00018 $0.00298
Haiku 4.5 $0.00009 $0.00149

Measured 5d ago against content hash 421f2cde40ec, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

phase-pr-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 5d 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/phase-pr-review-loop/SKILL.md · 78 lines

How it starts

The opening of the file, as written. The whole thing — 78 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Phase PR Review Loop

Why this skill exists

Large changes shipped by agents fail in two characteristic ways: the plan drifts from what was built, and review findings get "fixed" in bulk without anyone verifying each fix. This loop prevents both. It has shipped multi-month, multi-agent migration work reliably because every unit is independently reviewable, every finding is closed with evidence, and a fresh session can take over by reading the ledger alone.

1. The loop

plan PR  →  plan review  →  implement (one phase = one branch)  →  phase PR
   →  reviewer briefing  →  findings as review threads
   →  fix each thread + reply with evidence  →  re-review  →  merge
   →  update the phase ledger  →  next phase

Plan first, and review the plan as a PR

  1. Non-trivial phases start as a .plan.md (see the plan-writing skill): goal, in/out scope, exact files, verification commands, done-when, rollback.
  2. Open the plan itself as a PR before implementation and have a different agent (or the human) review it. Plan review is where scope creep, missing gates, and wrong sequencing get caught cheaply — a finding here costs minutes; the same finding post-implementation costs a rework cycle.
  3. Dated notes in the plan override its original ordering. When implementation diverges, append a dated note at the point of divergence — never let the plan lie.

One phase = one PR

  1. Each phase lands as one PR off current main, on its own branch (feat/<work>-phase-<N>). Never stack multiple phases on a branch; the handoff boundary must be clean enough that a different session can take over between phases.
  2. The PR description states: what the phase did, the verification that ran (commands + results), and what was explicitly NOT verified (e.g. "browser wallet smoke not run — tracked in the plan"). An honest "not verified" beats a false "done".

Reviewer briefing

  1. When handing a PR to a reviewing agent, write a briefing rather than "please review": the phase's goal, the invariants that must hold (link the plan section), the riskiest diff areas, what was already verified, and what the reviewer should try to break. Ask for adversarial review — findings the author would dispute are the valuable ones.
  2. The reviewer posts findings as inline review threads (one finding per thread), each with: file/line, the defect stated as a failure scenario ("with input X, Y happens"), and severity. Vague findings ("could be cleaner") are comments, not threads.

Read the full file on GitHub · 78 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 5d ago First seen · 78 lines · 89 tokens per session scan A 421f2cde40ec

Subscribe to this mod's changes

phase-pr-review-loop is a skill published in the GitHub repository dirtybits/agent-skills (2 stars, last pushed 1mo ago), licensed MIT. It adds 89 tokens to every session and 1,489 once invoked, about $0.0004 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.