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.
npx claudepluginhub lgbarn/shipyard --plugin shipyard[target] — file, diff range (main..HEAD), or current (default: uncommitted changes)# /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...
/reviewDispatches the reviewer agent to review current branch code changes against code quality principles.
/reviewDispatches code-reviewer agent to review git diff or specified files/range without creating session, producing Stage 1 spec compliance + Stage 2 code quality report.
/code-reviewReviews git changes from main to current branch HEAD, producing structured report with documentation quality, code quality assessments, and merge verdict (APPROVED/NEEDS CHANGES/CRITICAL ISSUES).
/reviewInvokes external AI CLIs (Gemini, Claude, Codex, OpenCode, Qwen, Cursor) to peer review specified phase plans, producing structured REVIEWS.md with feedback.
/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.
Share bugs, ideas, or general feedback.
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)"