From shipyard
Performs on-demand code review of uncommitted changes, git diff ranges, files, or branches, producing a report on spec compliance and code quality.
How this command is triggered — by the user, by Claude, or both
Slash command
/shipyard:review [target] — file, diff range (main..HEAD), or current (default: uncommitted changes)The summary Claude sees in its command listing — used to decide when to auto-load this command
# /shipyard:review - On-Demand Code Review You are executing an on-demand code review. Follow these steps precisely. <prerequisites> ## Step 1: Parse Arguments Extract from the command: - `target` (optional): What to review. Accepts: - **No argument / "current"**: Review uncommitted changes (`git diff` + `git diff --cached`) - **Diff range** (e.g., `main..HEAD`, `abc123..def456`): Review commits in range - **File/directory path**: Review current state of specific files - **Branch name**: Review branch changes vs main (`main..<branch>`) If no target and no uncommitted changes ex...
You are executing an on-demand code review. Follow these steps precisely.
Extract from the command:
target (optional): What to review. Accepts:
git diff + git diff --cached)main..HEAD, abc123..def456): Review commits in rangemain..<branch>)If no target and no uncommitted changes exist, ask the user what they want reviewed.
.shipyard/ exists (optional — this command works anywhere)..shipyard/config.json exists, read model_routing.review for model selection.docs/PROTOCOLS.md) — detect worktree context.Based on the target, collect the code to review:
git diff + git diff --cachedgit diff <range> + git log --oneline <range>git diff HEAD -- <path> (or read files directly if untracked)git diff main...<branch>If the diff is empty, inform the user and stop.
Assemble context per Agent Context Protocol (see docs/PROTOCOLS.md):
.shipyard/PROJECT.md (if exists) — for project understanding.shipyard/ exists)Dispatch a reviewer agent (subagent_type: "shipyard:reviewer") with:
model_routing.review (default: sonnet)Display the review report to the user.
If findings exist, offer follow-up:
"Would you like me to:
- Fix the critical/important issues
- Review additional files or a different scope
- Run a security audit on the same scope (
/shipyard:audit)"
npx claudepluginhub lgbarn/shipyard --plugin shipyard/reviewDispatches the reviewer agent to review current branch code changes against code quality principles.
/reviewLaunches a lightweight Review Team to audit current changes with a two-stage review (spec compliance + code quality). Accepts optional file path or commit range; defaults to git diff.
/reviewReviews staged or recent git changes against codebase patterns, security best practices, and acceptance criteria. Supports reviewing specific files or feature IDs.
/reviewReviews staged changes or recent commits across five axes—correctness, readability, architecture, security, performance—producing categorized findings with file:line references and fixes.
/reviewRuns Codex code review on local git state (working tree or vs base branch). Supports --wait/--background, --base <ref>, --scope auto|working-tree|branch.
/reviewInvokes multiple external AI CLIs (Gemini, Claude, Codex, etc.) to independently review a phase plan and produces a structured REVIEWS.md with per-reviewer feedback.