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.
npx agentmods add skills/dirtybits/agent-skills/phase-pr-review-loopnpx skills add dirtybits/agent-skills --skill phase-pr-review-loopgit clone --depth 1 https://github.com/dirtybits/agent-skillsWrote 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.
[](https://agentmods.dev/skills/dirtybits/agent-skills/phase-pr-review-loop)<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>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.
| Model | Per session | Once 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 |
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.
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
- Non-trivial phases start as a
.plan.md(see the plan-writing skill): goal, in/out scope, exact files, verification commands, done-when, rollback. - 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.
- 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
- 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. - 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
- 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.
- 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.
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.
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.
- 5d ago First seen · 78 lines · 89 tokens per session scan A 421f2cde40ec
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.
Other skills, from other repositories
mpm-workflow
Manage and customize MPM workflow configurations with local overrides.
stream-chain
Stream-JSON chaining for multi-agent pipelines, data transformation, and sequential workflows.
agent-orchestrator
Meta-skill que orquestra todos os agentes do ecossistema. Scan automatico de skills, match por capacidades, coordenacao de workflows multi-skill e registry management.
ai-loop
Runs a bounded spec-build-review development loop with explicit scope, stop conditions, and human approval gates for risky or ambiguous work.
project-orchestration
Orchestrate multi-agent workflows for feature development using planning agents, context handoff, and stage management.
workflow
Use when a task is too large for turn-by-turn orchestration and should run through the big-task workflow lane: system-wide changes, large migrations, repo-wide audits, high-confidence verification, or tasks explicitly asking to run a workflow. Claude Code uses native dynamic workflows; Codex, OpenCode, and Grok use…