Arguments. [self|code|code-design|architecture|security|spec|close-out|downstream|pr|criteria|slice…]; the full set ends slice|restatement]. spec takes [--spec <path|id>], close-out takes [--container <id>] [--dry-run], and slice takes <name>. Every mode also takes the phase-boundary inputs [--worktree <path>] [--base <sha>] [--quality-bar <prototype|internal|production>] [--report-only] ("Shared inputs").
Repository context. Gather first
<!-- BEGIN GENERATED: gather-block. Edit docs/conventions/gather-block/block.md, then run scripts/sync-gather-block.py -->
Run each command below as its own Bash call, all sent together in one message (worktree isolation).
Keep any bound in the command's own pipe (output limits).
Unless this section says otherwise, treat a failure (not a repository, git unavailable) as an unknown value and carry on. Keep these as body calls, never ## Pre-computed context lines (gather-block convention).
<!-- END GENERATED: gather-block -->
- Current branch,
git branch --show-current - Working tree status (empty = clean),
git status --porcelain | head -20
With --worktree <path>, run both as git -C <path> ... ("Shared inputs").
Purpose
Review is the quality checkpoint between "code works" and "code is ready." This skill structures that step so changes are inspected for consistency, correctness, and alignment with the project's conventions before verification or PR creation. Self-review catches errors tests miss. Inconsistencies, loose ends, convention drift, design shortcuts. Delegated reviews (code, architecture, security) bring specialized scrutiny the implementer's tunnel vision would miss.
Depth, not breadth. This skill picks one lens per invocation. For a multi-surface fan-out that runs many reviewers at once and ranks their combined findings, use this plugin's fanout skill instead.
Shared inputs
- Phase-boundary inputs.
--worktree,--base,--quality-barand--report-onlylet an
orchestrator review a phase diff in a worker's worktree. Their table, the base-SHA pre-flight and
the reviewer's brief are in context/phase-boundary.md; read it
whenever any of them is passed. **A base SHA overrides the ladder below: with --base, no
pull-request lookup, fetch or remote read runs.**
- Review diff base. mode-scoped override first:
close-outdoes not use this base at all.
A spec container is not a branch, so that mode derives a container-scoped basis of its own, per
execution shape (context/close-out.md "Why it needs its own diff basis").
Every other mode uses the base below. When an open PR exists for the branch, its baseRefName is the base: dispatched reviewers diff git merge-base origin/<baseRefName> HEAD. Find it with /source-control:pull-request list --head <current-branch> (if enabled), invoked via the Skill tool, or the forge's own list of open PRs by head branch otherwise. One row gives the base; an empty array means no open PR. A failed read is not "no PR": the base is unresolved, so stop and report it rather than substitute another base. With no PR, git merge-base origin/HEAD HEAD (falling back to the remote's resolved default branch via git ls-remote --symref, then origin/main; when none yields a merge-base the base is unresolved, never HEAD) so committed-clean branches still show their changes; untracked files come from git ls-files --others --exclude-standard.