phase-review

A pre-merge review command for checking a development phase against its written specification. It examines the phase's branch, commits, expected files, and verification result.

In plain words
What is it for?
Use it to review one phase of a multi-step project, compare its changes with FINAL.md, and decide whether the phase is done, needs context, has concerns, or is blocked.
Why use it?
It catches missing deliverables and failed checks before work is merged into the main branch. It also flags cases where the specification is missing or unclear.

Command for Claude Code

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 commands/olo-dot-io/uni-cli/phase-review
Clone the repo
git clone --depth 1 https://github.com/olo-dot-io/Uni-CLI

Made for: Claude Code.

Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 466 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 $0.00000 $0.00466
Opus 5 $0.00000 $0.00233
Sonnet 5 $0.00000 $0.00093
Haiku 4.5 $0.00000 $0.00047

Measured 3d ago against content hash 089408ebea50, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

phase-review 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 3d 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.

.claude/commands/phase-review.md · 56 lines

What it actually says

/phase-review — cross-phase review before merge

Review a phase's worktree against the spec before merging into main.

Usage

/phase-review <phase-number>

Example: /phase-review 8 reviews Phase 8 output.

What it does

  1. Locates the phase's branch/worktree from .claude/plans/sessions/.
  2. Reads the spec section from FINAL.md.
  3. Runs git log --oneline main..HEAD to see all commits on the branch.
  4. Runs git diff main...HEAD --stat for a file-level summary.
  5. For each deliverable in the spec, checks whether a matching commit exists and whether the expected files are present.
  6. Runs npm run verify one last time.
  7. Returns one of:
    • DONE — every deliverable present, verify green.
    • DONE_WITH_CONCERNS — all deliverables present, but something non-blocking is off (test count lower than promised, skipped tests without comments, etc.).
    • NEEDS_CONTEXT — cannot verify against spec (missing FINAL.md, ambiguous deliverable).
    • BLOCKED — a deliverable is missing or verify fails.

Ground rules

  • Never approve a phase that claims files exist when they do not.
  • Never approve a phase where npm run verify failed locally.
  • Trust the spec, not the implementer's summary.
  • Show evidence: commit SHAs, file paths, test count deltas.

Output shape

Phase N review: <DONE | DONE_WITH_CONCERNS | NEEDS_CONTEXT | BLOCKED>

Commits:        <count> (SHAs: abc1234, def5678, ...)
Files touched:  <count> (<adds> additions, <dels> deletions)
Test delta:     +<n> new tests
Verify:         <green | red with first error>

Deliverables:
  8.1  [✓] Changesets + verify-changesets gate
  8.2  [✓] OIDC npm publish + --provenance
  ...

Concerns: <none | bulleted list>
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. 3d ago First seen · 56 lines · 0 tokens per session scan A 089408ebea50

Subscribe to this mod's changes

phase-review is a command published in the GitHub repository olo-dot-io/Uni-CLI (270 stars, last pushed 12d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 466 tokens. 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-30.