Open a finished orca deliverable branch (`feature/<slug>`) for human review in the user's own editor — orca.nvim's `:OrcaReview` in a new tmux window (quickfix file list, native side-by-side merge-base diffs, the user's LSP and colors), or orca.vscode's review session in a VS Code window opened on the worktree via `code --open-url` — then close the loop on the comments the review leaves behind: `:OrcaComment` notes persist to `.orca/review-notes/<key>.json`, a background waiter picks them up ...
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Review?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/miguelbacalhau-review)
---
description: Open a finished orca deliverable branch (`feature/<slug>`) for human review in the user's own editor — orca.nvim's `:OrcaReview` in a new tmux window (quickfix file list, native side-by-side merge-base diffs, the user's LSP and colors), or orca.vscode's review session in a VS Code window opened on the worktree via `code --open-url` — then close the loop on the comments the review leaves behind: `:OrcaComment` notes persist to `.orca/review-notes/<key>.json`, a background waiter picks them up when nvim closes, and — on the user's say-so, never on its own — a dedicated agent addresses them and writes resolutions back for the next `:OrcaReview` to render inline. Use after a run's report, before landing with `git merge --no-ff`. Reads the `editor` and `terminal` keys from `.orca/config` — absent → detect (nvim first, then vscode), pinned → loud fail, `none` → opt out to a printed command. Not the automated review stage (that runs inside orca:run runs), and never merges anything itself.
args: <optional deliverable branch, e.g. feature/rate-limiting>
user-invocable: true
disable-model-invocation: true
---
# Orca: review
Hand a run's or an objective's deliverable to the human, in their editor — and take their comments back. A finished run, or an objective's done phases, leaves a branch — `feature/<slug>` — checked out in a worktree; this skill opens that worktree in the user's editor running an orca review session — orca.nvim's `:OrcaReview` in a new tmux window, or orca.vscode's review session via `code --open-url` — so the user walks the merge-base diff with their own file list, LSP, and colors. Comments they leave with `:OrcaComment` persist to `.orca/review-notes/<key>.json`; when the review session ends, this skill reads them, lays out a per-comment plan, and — only with the user's consent to that plan — converts them into fixes and answers, writing each resolution back into the same file, where the next `:OrcaReview` renders it inline under its anchor. When the review comes back clean, the user lands the branch with `git merge --no-ff`.
The deterministic spine — deliverable discovery, editor/terminal resolution, probes, the launch, the window wait, and the validated notes read — lives in the bundled script; its header comment documents the full output contract. This skill is the conversational shell around it: triage, failure translation, the per-comment plan, the consent gate, and the parting message.
**The notes file is the source of truth; window-exit is only the wake signal.** The plugin creates the file lazily on the first comment and deletes it with the last — no file and no comments mean the same thing. Every mutation is a whole-file snapshot, the workflow is one-writer-at-a-time by design, and both sides fail loud on a schema version they don't speak. Unconsumed comments are discoverable state, like queued briefs: whatever kills the wake signal (session death, the vscode tier, a multi-sitting review), the next triage finds them.
## Step 1: Discover deliverables
```bash
bash ${CLAUDE_PLUGIN_ROOT}/scripts/orca.sh review discover
```
Exit 1 with a typed `FAIL:` (`NOT_GIT`, `NOT_BARE`) means there is nothing to review outside the bare-repo layout — say so and point at `/orca:init`. Otherwise read the `DELIVERABLE:` lines — tab-separated `branch`, `worktree`, `ok`/`missing` — and triage in the house style, offering the first match, never forcing it:
- **None** → say so plainly: nothing to review; runs and objectives produce deliverables, so point at `/orca:run` or `/orca:new`.
- **One** → open it (Step 2 onward).
- **Several** → ask which. An `<args>` branch that names one skips the ask; an `<args>` branch that names nothing discovered is a loud miss — list what was found, never guess.
- **`missing`** → the branch is unmerged but its worktree is gone; still reviewable. Offer to add the worktree back on the existing branch, and on consent run — both values verbatim from the `DELIVERABLE:` line, never rebuilt by guessing —
```bash
git worktree add <worktree> <branch>
bash ${CLAUDE_PLUGIN_ROOT}/scripts/orca.sh secrets place <worktree>
```
then re-run `discover` to pick up the path. The `place` call links the user's secrets (`.orca/secrets/`, the mirror-tree convention) into the fresh worktree as relative symlinks — part of the same consent as the add, and best-effort: typed skips (`UNIGNORED:`, `SKIPPED_EXISTS:`) are worth a mention, never a stop. Deliberately `secrets place` and not `provision`: a review reads a diff and needs no build, and running the repo's install here would spend minutes on a worktree the user is about to read and close. If they want to build in it, `orca.sh provision <worktree> reused` is theirs to run.
**Unconsumed comments.** A `DELIVERABLE:` followed by a `NOTES:` line (path, then `open,addressed,answered` counts) has review comments waiting from an earlier session — the decoupled pick-up that covers the vscode tier and any session where the waiter died. When the open count is nonzero, offer the choice before the plain open: "the review of `<branch>` has N unaddressed comments — address them, or open the review again?" Addressing goes to Step 4's gate (lay out the per-comment plan first, then ask — the same three-way gate); re-opening proceeds to Step 2 with the comments intact. A `NOTES_VERSION:` line after a deliverable is a version skew — surface it as Step 4 describes before anything else touches that deliverable.
**Where it came from.** A `DELIVERABLE:` may be followed by an `OBJECTIVE_DIR:` line — `<objective-dir>`, the live objective that owns the branch, named by its `objective.md` whether or not it has a report yet — and by a `REPORT:` line — `<report.md>` and `run` or `objective` — naming the report that records the branch as its deliverable. The deliverable's **objective directory** is the `OBJECTIVE_DIR:` line's; its **run directory** is a `run` report's parent. Neither line means nothing orca ran produced it. Never grep for either yourself.
Carry the selected deliverable forward as the pair `<branch>` + `<worktree>`, exactly as emitted, with its `OBJECTIVE_DIR:` and `REPORT:` lines when it has them.
## Step 2: Open
```bash
bash ${CLAUDE_PLUGIN_ROOT}/scripts/orca.sh review open <worktree>
```
The script resolves the `editor` and `terminal` keys from `.orca/config` (each with the same three-state contract as `reviewer` — absent → detect, nvim probed before vscode; pinned → loud fail; `none` → opt out), runs the plugin probes, and launches: a focused tmux window named `review` running `:OrcaReview` for nvim, or orca.vscode's URI handler for vscode. Every outcome first emits a `NOTES:` line — the absolute path where `:OrcaComment` notes will land for this deliverable; hold onto it. Act on the exit code:
- **0** — launched; the `OPEN:` line says which path. Go to Step 3.
- **1** — a typed `FAIL:`; nothing was launched. Translate it and stop: a failed probe on a pinned editor (`PINNED_PROBE_FAILED`) → `/orca:doctor` prescribes the fix; `PINNED_TERMINAL_UNSET` → start claude inside tmux, or unpin `terminal`; `UNKNOWN_VALUE` → name the allowed values and point at `/orca:config`. Never work around a loud fail by downgrading to the print-only path.
- **2** — `PRINT_ONLY:` plus a `COMMAND:` line; nothing was launched, and that is a clean outcome, not an error. Print the command for the user to run themselves, with any `PROBE_FAILED:` context summarized once — a single `/orca:doctor` pointer covers every failed tier. Then close with Step 3's parting message (no waiter — there is no window to wait on). Do not guess at detached tmux sessions, terminal emulators, or other editors — hard-coded implementations behind config gates, on purpose.
## Step 3: Launch the waiter, leave the message behind
**nvim tier (`OPEN: nvim-tmux <window-id>`):** launch the waiter with `run_in_background` — never foreground; the turn must end cleanly while the user reviews:
```bash
bash ${CLAUDE_PLUGIN_ROOT}/scripts/orca.sh review wait <window-id>
```
It polls until the window is gone, then completes — re-invoking this session with the wake signal. Then end the turn with the parting message. The user's focus just moved, so this output is what they read when they return. State, in order: the review is open in tmux window `review`; `:OrcaComment` leaves line-anchored notes; `:qa` hands them back — orca picks the comments up automatically when nvim closes; and, when satisfied, land the branch from their own worktree:
```bash
git merge --no-ff <branch>
```
**vscode tier and every `PRINT_ONLY` path:** no window-lifetime handle, no waiter. The parting message names where the review is (a VS Code window on `<worktree>` — close it when done; or the printed command), that comments left with the editor's orca comment command are picked up by the next `/orca:review`, and the same landing command.
The *skill turn* still ends cleanly after launching the waiter — never wait on, poll, or watch the window in the foreground — but the session now has a standing background task; window death is what brings the flow back as Step 4.
## Step 4: The wake — read, summarize, and gate
On the wake (the background `wait` task completes with `CLOSED:`), run the validated read:
```bash
bash ${CLAUDE_PLUGIN_ROOT}/scripts/orca.sh review notes <worktree>
```
- **`NOTES_NONE`** → no comments: say "no comments — ready to land" and print the `git merge --no-ff <branch>` command. Done.
- **`NOTES_VERSION:` `<found>` `<spoken>`** → loud stop, touch nothing. Name both versions and which side to update: the file is newer than orca speaks → update the orca plugin; older/other → update orca.nvim. This mirrors orca.nvim's own refusal behavior — either side clobbering the other's format is the one unrecoverable failure.
- **`NOTES:` with open comments** → Read the file (the script only counts; the text is the skill's job) and lay out, per open comment, both what the user wrote and what orca would do about it. Lead with `#N` — the id the editor showed the user, the name they know the comment by — then file:line, the comment text, and the quoted anchor line; follow with the intended handling: which of the address agent's four buckets it lands in (fix / answer / decline-as-answered / too-big-for-review) and, for a fix, a one-line approach. A comment whose intent is genuinely open gets a direct question here instead of a guess — the user is present, and this substitutes for a plan stage. Then **stop and ask — addressing never starts on its own.** Window death means "nvim closed," not "review finished"; this gate is what distinguishes done from paused. Consent is to the stated plan, not a blank check: a misread caught at the gate costs one correction in conversation; caught at re-review it costs a full round. The ask is three-way:
- **Address now** → Step 5. The plan as consented — buckets, approaches, and any corrections or answers from the conversation — rides along in the agent's task message.
- **Resume the review** → re-run Step 2's `open` on the same deliverable and relaunch the waiter — the wait-and-collect loop restarts as if the window had never closed, existing comments intact. Multi-sitting reviews and an accidental `:qa` cost nothing.
- **Leave for later** → end the turn; everything stays in place. The file persists, and the next `/orca:review` triage rediscovers it.
However many times the loop comes back around, the same gate applies.
On an objective's deliverable, a comment that changes the objective's direction — not a fix to what was built, but a different choice about what to build — is not addressed here: plan it as too-big-for-review and tell the user it becomes a decision at the next `/orca:open`. Plain fixes go through the address flow as usual.
- **`NOTES:` with zero open** (all `addressed`/`answered` — the user was re-reviewing resolutions) → say so and print the landing command.
## Step 5: Address — consented, one agent, one snapshot
Only ever entered through Step 4's gate (or the identical gate offered from Step 1's pick-up).
**An objective's deliverable: this session must own it, idle.** When the deliverable has an `OBJECTIVE_DIR:` line — with or without a report — run, before anything below:
```bash
bash ${CLAUDE_PLUGIN_ROOT}/scripts/orca.sh objective idle <objective-dir>
```
A frame → this session owns the objective and no phase is mid-loop; its claim holds for the whole address flow, so no other session can open it meanwhile. A typed `FAIL:` → do not archive, spawn, or commit anything: `NOT_OWNER` — another session drives it, or none does — refuse and point at `/orca:open <slug>` in the session that should address the comments, then `/orca:review` there; `PHASE_ACTIVE` — a phase's implementer works the same worktree — refuse: finish or block the phase through `/orca:open` first; `PHASE_BLOCKED` / `RESTART_PENDING` — a phase keeps a base a commit now would fall inside — refuse: settle and run it through `/orca:open` first; anything else (`ARCHIVED`, `NO_SESSION_ID`) — relay it. The comments stay in the notes file for that later round.
**Stand in the deliverable's worktree.** After that gate and before item 1 below: when this session stands in a worktree other than `<worktree>`, the integration worktree — never when it stands at the repository root, where every worktree is inside the session already — move into it, the way `${CLAUDE_PLUGIN_ROOT}/skills/new/provision.md`'s Standing in the worktree does: `ExitWorktree({action: "keep"})` first when the session stands in another `orca-*` worktree (a `No-op` answer is fine), then `EnterWorktree({path: "<worktree>"})` (deferred tools: one `ToolSearch`, `select:EnterWorktree,ExitWorktree`). Outside `bypassPermissions` the address agent can read and write the deliverable only from a session standing in it. An objective's deliverable is this session's own claim, so the move is not asked about; a run's deliverable has no claim, and Claude Code asks the user once. A move that fails or is declined stops the flow here: nothing is archived, spawned, or committed, and the comments stay in the notes file. A session that moved into a **run's** worktree for this leaves again (`ExitWorktree({action: "keep"})`) after item 4's check; one standing in its objective's worktree stays.
Around the agent, in order:
1. **Archive first.** The deliverable's directory from `discover`: the `OBJECTIVE_DIR:` line's, else a `run` report's parent. Found → copy the pre-addressing notes file to `<dir>/reviews/comments-<timestamp>.json` (timestamp via `date +%Y%m%d-%H%M%S`). Neither — orca.nvim works in any orca-managed repo, so a notes file can exist for a branch nothing orca ran produced — archive beside it as `.orca/review-notes/<key>.<timestamp>.json`.
2. **Spawn the `orca:address` agent.** The spawn runs in the background: wait for its task notification before the commit in item 3, and never fabricate the result. Its task message opens with this block, these lines in this order and nothing before them — `<worktree>` the integration worktree path, and `Run directory: none` when there is no run directory:
```text
Worktree: <worktree>
Notes file: <notes-file>
Run directory: <run-dir>
```
After a blank line it carries the rest: with no run directory, that there is no spec and the comments themselves are the intent — and for an objective's deliverable, that its intent is recorded in `<objective-dir>/objective.md` and `<objective-dir>/decisions.md` — and the per-comment plan as consented at the gate — bucket and approach per `#N`, with any corrections or answers from the conversation folded in. The agent classifies, fixes change requests, answers questions, and writes the notes file back as one whole-file snapshot with statuses and human-readable resolutions.
3. **Commit** the fixes on the deliverable branch in the integration worktree — same attribution rules as every run commit: a subject shaped like an ordinary review-feedback commit, never mentioning Claude, AI, agents, or orca, no Co-Authored-By or Generated-with trailers. Read the message back from `git log` to check before moving on. Nothing to commit (answers only) → skip, and say so.
4. **Verify the write-back:** re-run `orca.sh review notes <worktree>` — zero `open` remaining, version still 1. Anything else → report what the agent left undone rather than papering over it.
5. **Record the round in the report.** A directory found in item 1 with a `report.md` (an objective has none until its first phase is done; then skip this item) → edit it — a run's is otherwise a pre-review snapshot, an objective's is rewritten only by its phases, which keep this section as it is: `/orca:pr` composes the PR body from it without reading the diff, and gates on its `**Deliverable state:**` line. Keep a `## Review rounds` section immediately before `## Landing` — create it on the first round, append on later ones — with one entry per round:
```markdown
### <YYYY-MM-DD HH:MM> — <commit hash, or "no commit (answers only)">
- #N addressed: <the resolution, verbatim>
- #N answered: <the resolution, verbatim>
- Left open: <each #N the agent could not settle — omit the line when none>
- Verification: pass | fail — <the commands the agent ran, and the failure when there is one>
Comments archived at `reviews/comments-<timestamp>.json`.
```
Timestamp via `date +"%Y-%m-%d %H:%M"`, the report's own format. When verification failed and the state reads `verified`, rewrite that one line to `unverified — review-feedback fixes (<hash>) left verification failing`: a branch whose latest commit broke the suite is not the verified deliverable the report claims, and `/orca:pr` must refuse it. Never upgrade a state, and touch nothing else in the report — its other sections stay the run's or the objective's record; a later `/orca:retry` archives a run's whole file, rounds included. No directory → there is no report; skip this item.
6. **Parting message:** what was addressed vs answered (per `#N`, with each resolution), the commit hash, any Deliverable state downgrade and why, that re-running `/orca:review` shows each resolution inline under its anchor — editing a comment there re-opens it for the next round; that loop is the convergence mechanism — and the `git merge --no-ff <branch>` landing command for when they're satisfied.
There is deliberately no machine re-review after addressing: the human re-running `:OrcaReview` and seeing resolutions at their anchors *is* the review.
## Guidelines
- Never merge anything, and never write in a worktree or in `.orca/review-notes/` outside two sanctioned paths: the consented `git worktree add` in Step 1 (which touches no worktree that exists — the secrets placement that follows it, writing only symlinks into that fresh worktree, is part of the same consent), and the consented addressing flow of Step 5 (the agent's fixes and notes snapshot, the commit that follows, and the round recorded in the run's or objective's `report.md`). The deliverable is landed by the user's own hand.
- One writer at a time: never write the notes file — and never start addressing — while an editor session may be live. The gate right after window death is the sequencing; the residual race (the user reopens nvim mid-addressing) is accepted, per the contract's sequential-workflow assumption.
- Never edit `.orca/config` — pinning or clearing `editor`/`terminal` belongs to orca:config; a failed probe's install belongs to orca:doctor. Recommend both by name.
- This is the *human* half of review. The automated adversarial review stage lives inside runs (`agents.review`, the `reviewer` key) and is not touched, configured, or replaced here — and addressing comments must stay convergent (small deltas the user re-reads inline at their anchors), never become an unplanned work loop.