/colin-shipping:colin-ultra-review [PR/MR number, URL, or git description] [agents] [--roles=csv] [--re-review] [--max-rounds=N] [--no-post] [--no-summary]from colin-shipping
Multi-model, repository-aware bug review with focused discovery, evidence validation, and convergence rounds. Supports GitHub and GitLab PR/MR review with configurable roles and rounds.
Ships in colin-shipping. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Current version: Ultra Review 0.8. Identity lives in many-brain-one-task/ultra-review-version.json and is frozen by mbot-run init into STATE.json as ultra_review. Use ultra_review.header / ultra_review.label verbatim on every published comment and on prepared-summary.md. Do not invent, omit, or bump the version in the parent session. Bump the JSON when the control plane, roles, validation contract, or publication format changes.
Multi-model bug review. Discovery is recall-oriented; an independent evidence pass protects publication precision. Parent is a thin control plane — disk under .tmp/ultra-<id>/ is durable memory.
Default lenses: state, contracts, failure, craft, merits (+ whole-change integration). More expensive than /colin-review.
launch-*.ts / harvest.ts / batch.ts under the run dir. Use bundled drivers..out bodies into chat. Harvest via mbot-run / jq / rg '^VERDICT:'.roles/.Resolve CLAUDE_SKILL_DIR to the directory containing this SKILL.md, whether installed as a personal skill or inside a plugin cache.
| Step | Command |
|---|---|
| GitLab MR gather | bun …/glab-cli/mr-context.ts --project G/R --mr N --out-dir .tmp/ultra-N/mr-context |
| GitHub PR gather | bun …/gh-cli/pr-context.ts --repo O/R --pr N --out-dir .tmp/ultra-N/pr-context |
| Init run | bun …/many-brain-one-task/mbot-run.ts init --run-dir .tmp/ultra-N — prints and freezes ultra_review (label: Ultra Review 0.8) |
| Skill version | bun …/mbot-run.ts version |
| Assemble prompts | bun …/many-brain-one-task/assemble-prompts.ts --append context/bucket.md --out-dir prompts role.md:slot.full.md … |
| Build merits | bun …/many-brain-one-task/build-merits.ts --run-dir .tmp/ultra-N (joins roles/merits.md + context without auto issue-form) |
| OpenCode preflight | bun …/mbot-run.ts smoke --run-dir .tmp/ultra-N --attach http://127.0.0.1:4096 --model openai/gpt-6.1-sol (HTTP/binary probe, no model call; --deep for a real round trip. Launch also probes; omit --attach when OPENCODE_SERVER_HOST/PORT are already set) |
| Launch batch | bun …/mbot-run.ts launch --plan .tmp/ultra-N/plan.json (Claude Code). OpenCode host: add --detach, then barrier. Further phase plans (plan-integration.json) merge into plan.json; they do not replace it. |
| Fail-closed wait | bun …/mbot-run.ts barrier --run-dir .tmp/ultra-N — never sleep N, never until test -s empty.out |
| Harvest | bun …/mbot-run.ts harvest --run-dir .tmp/ultra-N |
| Candidate index | bun …/mbot-run.ts candidates --run-dir .tmp/ultra-N — writes candidates.json + candidate-index.md. Do not invent extract-issues.ts. |
| Prepare notes | bun …/many-brain-one-task/prepare-notes.ts --summary .tmp/ultra-N/prepared-summary.md (or --batch) — safe JSON payloads for glab api |
| Usage (wall + cost) | bun …/mbot-run.ts usage --run-dir .tmp/ultra-N (optional --title-prefix / --include-claude-children / --parent-session-id) |
OpenCode hard rules: use mbot-run (it speaks /api on OpenCode 2 and /session on OpenCode 1). Empty .out after failed meta is terminal failure, not a hang. OpenCode host must launch --detach — a 120s bash timeout on a blocking launch SIGTERMs the process group and kills the child opencode serve. Claude Code: blocking launch + Bash timeout: 1320000. GPT slots default variant: high and agent: colin-mbot-gpt-sol. Prompt/out paths may be prompts/x.md or .tmp/ultra-N/prompts/x.md; mbot-run de-duplicates — do not join run_dir onto an already-prefixed path yourself.
Load many-brain-one-task for plan schema, delivery contracts, profiles. Role templates: many-brain-one-task/roles/{state,contracts,failure,craft,merits,integration}.md.
No args → open PR/MR for current branch via origin host.
URL / numeric id / last N commits / branch NAME / SHA..SHA / other git rev as in the table:
| Pattern | Mode |
|---|---|
github.com/.../pull/123 | GitHub PR |
gitlab…/merge_requests/123 | GitLab MR |
| Numeric only | Platform from origin |
last N commits / whole repo / branch NAME / revspec | Git diff (always --no-post) |
Task type code-review. Profile: user --profile X, else code-review.md; Seamus hosts prefer seamus-bot-ultra-review. Do not add experimental models or raise effort to max/xhigh unless asked. Default OpenCode effort high. Claude discovery/validation/integration children: effort high. Parent stays host default.
state / contracts / failure: full participants × each bucketcraft: one participant (Grok slot; else Claude/Opus slot, else profile backup) per bucket — Grok carries the fewest discovery threads in the default lineup and is fast enough that the extra per-bucket thread does not extend wall-clock. Grok slots are capped at 8 minutes; if Grok times out or returns empty output, fail over immediately to Opus 5.5 rather than retrying on Grok or waiting 20 minutes.merits: full participants, once, whole-change (no prior review comments in input)integration: full participants, whole-change((3 × participants) + 1) × buckets + merits fan-out + integration fan-outA failure thread with no scale/cost assessment is incomplete — one retry under MBOT policy.
Count reviewable lines = added + deleted lines in primary artifacts (git diff --numstat <base>...<head>, excluding the context-only artifacts from triage: lockfiles, generated code, snapshots, vendored files). Pick the tier before writing plan.json:
| Tier | Reviewable lines | Discovery | Merits | Integration | --max-rounds |
|---|---|---|---|---|---|
small | ≤ 150 | one combined-lens thread per participant (state + contracts + failure + craft in one prompt) | one participant | none — the single thread already saw the whole change | 1 |
medium | 151–600 | full role grid, one bucket | one participant | round 2 only, and only if round 1 confirmed a medium-or-higher issue | 2 |
standard | > 600, or more than one bucket | Allocation above | Allocation above | Allocation above | 3 (early exit to 1 if round 1 confirms 0 high/critical) |
small up to medium when the diff touches a migration or schema, an auth/permission check, money, or locking/concurrency. Record the reason.assemble-prompts --append roles/contracts.md --append roles/failure.md --append roles/craft.md --append context/bucket.md --out-dir prompts roles/state.md:small.full.md. It must still carry the failure scale/cost requirement, and each candidate names the lens it came from.--full or an explicit --roles / agent list / --max-rounds overrides the tier. A profile may override the tier table's participants but not its thresholds.size_tier, reviewable_lines and any bump reason in the triage line and in run-summary.json.Harness-owned rows: harness: "opencode" or "grok" ("occtl" is a legacy alias of "opencode"). Native Agent rows: harness: "external" (you launch Agent; mbot-run harvest still scores .out). Prefer slot-keyed paths results/<slot>.out + *.meta.json with planned_model / actual_model.
Seamus OpenCode titles:
ultra|{gitlabProjectPath}|!{mrIid}|{bucketOr-}|{role}|{modelShort}|retry{N}
Default all five: state, contracts, failure, craft, merits.
Skip only when genuinely N/A (prose-only → skip state; no interface change → skip contracts; etc.). Record skip reasons.
--roles=csv exact subset. integration is not selectable (always the whole-change pass).
Role definitions for participants — attach from disk, do not inline:
roles/state.md — lifecycle / data / backfill windowsroles/contracts.md — callers, schema, deploy compatibilityroles/failure.md — adversarial + scale/cost (both required)roles/craft.md — dead code, duplication, false comments, coverageroles/merits.md — design worth; verdict vocabulary: sound | sound with reservations | questionable | should not land as designedroles/integration.md — cross-bucket E2E--max-rounds=N default 3. Clean round = that round produced no new confirmed issues after validation.
--re-review: delta-first (last-reviewed-sha...head from latest **AI Ultra Review header, version optional) + one full-state integration; --full forces full gridGather via mr-context / pr-context (not five serial glab/gh calls). Require base+head SHAs present locally (git cat-file -e <sha>^{commit}). Do not git fetch. If a SHA is missing, stop and tell the user. Stop if closed/merged/draft/trivial/already ultra-reviewed (unless --re-review). Git-diff mode skips pre-flight.
git diff --stat <base>...<head>
git diff --name-status <base>...<head>
git log --format='%H %s' <base>..<head>
Primary vs context-only artifacts. Bucket by behavior (~800–1500 changed lines), not only top-level dirs. Embed bucket diff only if ≤1200 lines and ≤100KB; else index + tool-driven inspection.
Triage: <N primary>, <M context-only>, <L> reviewable lines · Tier: <small|medium|standard> (<bump reason>)
Roles / Skipped / Buckets / Rounds / Allocation / Thread budget
Write under context/: instruction files, PR/MR description, prior ultra findings (not for merits), callers/schemas/tests. Merits context file omits prior review comments.
For each bucket × role, prompts = role file + bucket index (assemble-prompts). Discovery contract:
Scope is behavior introduced/changed by this diff. Inspect unchanged callers/callees/schemas/migrations/tests when needed. Optimize for candidate recall. Each candidate: agent, role, file+anchor, severity, confidence, invariant, path+trigger, harm, evidence, fix.
Launch harness slots with mbot-run launch. Launch external Agent slots in parallel with Write-to-path + ≤500-char return.
Whole-change roles/integration.md + candidate index paths (not embedded blobs). Fresh sessions each convergence round.
Build the candidate index with mbot-run candidates (not an ad-hoc extract-issues.ts). Independent validator (prefer a different model than the raiser). Status exactly one of: confirmed | rejected | unresolved.
Never reject for single-model or lack of consensus. Do not invent a clustering/dual-validator pipeline unless the user asks — one validator pass is the default. Slot-keyed validator outs; rewrite paths on backup.
Pre-publication gate (after dedupe, before summary):
**AI Ultra Review threads (any version, including unversioned) by root cause, any resolution stateGate: <N> commits landed · <A> confirmed · <B> fixed · <C> withdrawn · <D> suppressed · <E> postedSkip if --no-summary. Before declaring complete, write both artifacts under the run dir and make them agree with results/*.out + *.meta.json:
prepared-summary.md — full summary body (every comparison/severity table + Merits / Rejected / Open questions / Gate). First line starts with **AI Ultra Review <version>** using STATE.json → ultra_review.header. In --no-post, display this body; do not replace it with a narrative-only recap.run-summary.json — machine-readable accounting (see fields below). Must include ultra_review copied from STATE.json (version, label, header).Recompute every tally from disk (rg '^VERDICT:' / task markers + meta.actual_model). Never trust hand-carried chat tallies. Attribute via meta.actual_model (planned→actual reassignments are scored to the actual performer).
## Model comparison (per actual_model / display name; one row per participant):
| Column | Definition |
|---|---|
| Candidates | Distinct candidates emitted |
| Confirmed | Candidates confirmed by validation |
| Rejected | Candidates disproved |
| Unresolved | Candidates lacking enough evidence |
| Unique confirmed | Confirmed issues found only by this agent |
| Shared confirmed | Confirmed issues also found by another agent |
| Precision | confirmed / (confirmed + rejected), or — when denominator is 0 |
| Wall time | Sum of slot durations for this agent (ended_at − started_at from meta; see wall-time rules) |
| Cost | Sum of agentsview session costs for this agent’s slots (USD); — when unavailable |
| Peak ctx (max / avg) | Max and mean peak_context_tokens across that agent’s matched sessions (from agentsview) |
| Compactions | Sum of compaction_count (and note mid-task if non-zero) across matched sessions |
Also include ## Role comparison (candidates / confirmed / rejected / unresolved / unique-to-role) and ## Per-round (new candidates / new confirmed / rejected / unresolved). Add Posted findings by severity when posting.
Publication headings (verbatim, no numeric prefixes; merits verdict on the ## Merits — … line):
## Merits — <verdict>
## Rejected on validation — recorded so they are not re-raised
## Open questions
Merits: ≤3 items, one paragraph each; on split verdicts use the least favourable and report the split. Rejected register: ≤12 rows, only re-raise-worthy claims with concrete refutation; call out invented symbols/lines. Open questions: one line per unresolved candidate that needs a missing instrument.
meta.started_at / meta.ended_at (or completed_at) per slot. Duration = end − start.started_at / ended_at for the matched session.Do not hand-roll jq loops or trust OpenCode UI $0.0000 session.cost. Use the bundled helper (meta + .session sidecars + title rediscovery + optional Claude children):
bun …/many-brain-one-task/mbot-run.ts usage --run-dir .tmp/ultra-N
# optional: --title-prefix 'ultra|acme-inc/server|!2783' --since 14d --include-claude-children
# writes .tmp/ultra-N/agentsview-usage.json and prints the same JSON on stdout
The helper resolves session ids from results/*.meta.json / *.out.session, normalizes ses_… → opencode:ses_…, calls agentsview session usage + session get (or GET /api/v1/sessions/{id}/usage on AGENTSVIEW_URL when the CLI is missing), rediscovers OpenCode sessions whose first_message starts with the structured title prefix, and rolls up per-slot / per-model wall, cost, peak context, and compactions. Fold totals and by_model into run-summary.json (cost.*, wall.*, peak_context_*, compaction_*). Mark unmatched slots explicitly rather than inventing zeros. If agentsview is missing and AGENTSVIEW_URL is unset, pass --no-agentsview (wall from meta only) or accept cost_source: unavailable — do not block publication solely on cost.
Context signals (from agentsview when matched) — always separate parent vs slice (same model family can be both the orchestrator and a participant):
by_role.parent — orchestrator session(s): peak context + compaction counts answer “did the parent drown in context?”by_role.slice — participant threads only: peak min/avg/max answer “are slices too big or too small?”by_model_slices — per-model rollup with parents excluded (so Opus parent does not inflate Opus slice peaks)parents[] / slices[] — raw rowsCall out under run accounting:
compaction_count/mid_task_compaction_count > 0 or peak ≥ ~200k — control plane is context-stressed; trust disk artifacts over chat memory.session get)--out paths and any clobber/recovery/remap eventsrun-summary.json must also record: ultra_review (from STATE.json), size_tier, reviewable_lines, buckets, participants, bucket_slots (buckets × ((3 × participants) + 1) in medium/standard, participants in small), merits_slots, integration_slots, planned_primary_slots, with retries/timeouts/incomplete/auxiliary slots counted separately so they do not inflate the planned primary total.
Scoring hygiene: exit 124 with a complete .out = completed; re-stat before marking incomplete; retry + original both score if both rich; self-duplicates of an already-posted finding affect thread counts only, not Unique/Shared.
When posting the summary comment, include the Model comparison table (with wall + cost columns) and a short run-accounting note under it — not a prose-only recap.
Git-diff / --no-post: display only.
No confirmed: single summary comment with **AI Ultra Review <version>** header.
Issues: one inline per unique issue; severity order critical→low; cap 8 low posted.
Header on every inline (<version> from STATE.json ultra_review.version, currently 0.8):
> **AI Ultra Review 0.8** · Commit: <sha> · Severity: <…> · Role: <…> · Flagged by: <…>
Severities: critical | high | medium | low. Merits has no severity / no inline.
Suggestion blocks: follow platform skill line-range rules (GitLab multi-line needs suggestion:-N+M).
GitHub inline: MCP tool preferred; else gh-cli. GitLab: glab discussions API + DiffNote check.
Apply :Reviewed-By-AI-Ultra after post (not in git-diff / cancel).
gh or glab, jq, git, bun; optional agentsview CLI or AGENTSVIEW_URL (HTTP, e.g. http://100.110.251.42:4092) for per-session cost/wall/colin-review are independent comment streams--title (ultra|…) is required so agentsview can re-find sessions when meta.session_id is missingWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub colinmollenhour/dotfiles --plugin colin-shipping34 skills in this plugin
/cclsp-fix-diagnosticsScan a codebase with the CCLSP MCP and fix reported diagnostics. Language- and project-agnostic. Use for "fix all the LSP errors", "check the workspace for errors", "fix diagnostics in <path>", or auditing a branch/PR/commit range for new errors. Default scope is the whole codebase, chunked. User can narrow to files, folders, commits, ranges, branches, PRs, or MRs./clickup-task-authoringAuthor a ClickUp task from a conversation, plan, review, incident, or spec as CUFM via cup task-sync. Covers the source-fidelity ledger, the house voice for task copy (plain verbs, declarative mood, paragraphs over lists, 5% length budget), rich description structure (banners, toggles, mermaid, tldraw, tables), open-decision blocks (question, AI Recommendation, two alternatives), title conventions, workspace Value Stream / Requested By / Bug-type rules, and the post-write audit. Use when creating or updating ClickUp task content (file a bug, write a ticket, turn this into a task). Load the clickup skill from `cup skill` for CUFM syntax and task-sync flags. Workspace IDs come from `cup` or a project ClickUp skill. Formerly clickup-tasks./cli-designDesign, implement, or review CLI UX: args, flags, help, output, errors, config, interactivity, and distribution.