src/claude/skills/captain-review/SKILL.md
Captain-only. Review all draft PRs (or a specified PR / project) and generate per-workstream dispatch files routing findings to worktree agents. Formerly `/captain-review` v1 — v2 migration preserves semantics.
npx skillsauth add the-agency-ai/the-agency captain-reviewInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Captain-only multi-PR review pass. For each draft PR in scope, invoke /code-review and materialize the findings as a dispatch file under the owning workstream so the worktree agent picks up the review as part of its normal dispatch flow.
Draft PRs accumulate. A worktree agent cannot self-review their own open work with the captain's fleet-wide lens, and posting review comments directly on each PR floods worktree agents with low-signal noise when the same findings could be routed as a single coherent dispatch.
This skill:
/code-review on each — the 7-agent confidence-scored local review, not GitHub PR comments.The boundary is deliberate: this is a captain-side triage pass, not a gate. Boundary gates with the fix cycle live in /iteration-complete, /phase-complete, and /pr-prep.
Before running, Read the files listed in required_reading: frontmatter.
agency/REFERENCE-CODE-REVIEW-LIFECYCLE.md — distinguishes the review tools, PR lifecycle, review/dispatch file conventions.agency/REFERENCE-ISCP-PROTOCOL.md — dispatch format, filenames, addressing; this skill emits dispatches./captain-review # fleet-wide (all open draft PRs)
/captain-review --all # same as above, explicit
/captain-review 123 # single PR by number
/captain-review mdpal # all draft PRs on the mdpal project
$ARGUMENTS (optional): one of
--all or empty — review every open draft PR.paths: [] keeps it out of worktree autocomplete and the captain-family name signals scope. The captain must verify main-checkout/master before running; this skill has no Step-1 runtime refuse-from-wrong-context check yet (follow-up tracked). Do not run from a worktree.gh is authenticated against the repo's origin./code-review is available (Batch 4 v2 skill).Resolve $ARGUMENTS:
gh pr list --state open --draft filtered to PRs whose branch prefix matches the project.--all or empty: gh pr list --state open --draft — every open draft PR.If the scope resolves to zero PRs, stop and report "no draft PRs in scope" — do not emit empty dispatch files.
For each PR in scope, invoke /code-review via the Skill tool with the PR number. /code-review handles the 7-agent confidence-scored local review; this skill does not re-implement it.
For each workstream that produced findings, create a dispatch file at:
agency/workstreams/{workstream}/code-reviews/{workstream}-dispatch-{YYYYMMDD-HHMM}.md
Contents:
/code-review confidence score).The workstream is derived from the PR branch name (segment before /).
Show a summary table of all reviews performed this pass:
Captain Review Complete:
Project PR Findings Dispatch
─────────────────────────────────────────────
mdpal #12 8 issues agency/workstreams/mdpal/code-reviews/mdpal-dispatch-20260401-1430.md
mock-and-mark #15 3 issues agency/workstreams/mock-and-mark/code-reviews/mock-and-mark-dispatch-20260401-1430.md
Stage and commit the review and dispatch files as coordination artifacts via /git-safe-commit --force (or /coord-commit if the caller prefers the wrapper). These are coordination artifacts — not application code — so the commit does not route through the full QG.
/code-review fails on a PR (Step 2): record the failure in the summary and continue with the remaining PRs. A single-PR failure does not abort the pass — other worktrees still benefit from their dispatches.gh not authenticated / network error: surface the error verbatim; this skill has no offline mode.--no-verify. The dispatch files exist on disk regardless; do not delete them to make the commit clean./pr-review./iteration-complete, /phase-complete, and /pr-prep./sync or /release.active (v2 migrated from v1 in the sister-repo v1→v2 Batch 8+9 captain cluster). Surface preserved from v1; behavior identical. Composes /code-review + dispatch file emission + coord commit.
/code-review — the per-PR review this skill invokes in a loop./pr-review — ad-hoc single-PR review with human-approved comments posted to GitHub./pr-respond — respond to existing review threads on a PR./dispatch — dispatch lifecycle; the recipient worktree processes what this skill writes./captain-sync-all — fleet-wide sync that often precedes or follows a review pass.OFFENDERS WILL BE FED TO THE — CUTE — ATTACK KITTENS!
business
Sync worktree with master — merge, copy settings, run sandbox-sync, report changes
tools
List all git worktrees with status info (branch, clean/dirty, deps)
tools
Remove a git worktree and optionally delete its branch
development
Create a new git worktree with dedicated branch and bootstrapped dev environment