/colin-shipping:colin-review [PR/MR number, URL, or git description] [--re-review] [--no-post] [--no-summary]from colin-shipping
Reviews GitHub PRs, GitLab MRs, or arbitrary git diffs with inline comment posting. Resolves PR/MR from URL, number, or current branch.
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.
Review a GitHub pull request, GitLab merge request, or arbitrary git diff. Post inline comments for PR/MR reviews unless --no-post is active.
For GitHub reviews, load the gh-cli skill after resolving the platform. For GitLab reviews, load the glab-cli skill. Use those skills for PR/MR resolution, API fallbacks, inline comment posting, labels, and platform-specific link details.
If no argument is provided:
git remote get-url originIf an argument is provided, resolve it as follows:
| Pattern | Mode | Resolution |
|---|---|---|
github.com/.../pull/123 | GitHub PR | Extract PR number |
gitlab.*/.../merge_requests/123 | GitLab MR | Extract MR IID |
https://github.com/OWNER/REPO | GitHub PR | Resolve PR from current branch |
| Numeric only | Platform from origin | Use as PR/MR ID |
last N commits | Git diff | git diff HEAD~N..HEAD |
whole repo or entire codebase | Git diff | Review all tracked files |
branch NAME | Git diff | git diff main...NAME or default branch |
SHA..SHA or SHA...SHA | Git diff | Use directly |
| Any other text | Git diff | Interpret as git rev spec |
Resolve current-branch reviews using the appropriate platform CLI skill.
Run this as a single standard review in the current agent context.
many-brain-one-task / MBOT skillcolin-mbot-* subagents/colin-ultra-review and continue with this single-review workflow unless they ask to switch commandsAI reviewer as the reviewer attribution in summaries and posted commentsIf --re-review is active, review only the new changes since the last review.
**AI Code Review** header (format: · Commit: <sha>)For PR/MR reviews, fetch state, draft status, title, author, and the latest commit SHA on the PR/MR branch using the loaded platform CLI skill. Record the SHA — it must be included in every **AI Code Review** header posted during this run so later re-reviews can diff against it.
Also capture the base SHA from the platform:
gh pr view <N> --json headRefOid,baseRefOid | jq -r '.headRefOid, .baseRefOid'glab mr view <IID> --output json | jq -r '.diff_refs.head_sha, .diff_refs.base_sha'Both SHAs are a precondition: they must already be present in the local repository. Verify each with git cat-file -e <sha>^{commit}. If either is missing, stop and ask the user to fetch the branch locally (e.g. gh pr checkout <N>, glab mr checkout <IID>, or git fetch origin <branch>) before re-running. Do not auto-fetch. The rest of this command uses local git diff <base>...<head> against these SHAs instead of reading a consolidated PR/MR diff blob.
Stop if:
--re-review is activeFor git diff mode, skip pre-flight entirely.
Generate the file list and per-file changed-line counts locally using:
git diff --stat <base>...<head>
Do not read the full diff yet.
Exclusions. Remove the following before bucketing:
vendor/, node_modules/, .yarn/, dist/, build/, .next/, __pycache__/, .venv/, third_party/package-lock.json, yarn.lock, pnpm-lock.yaml, go.sum, composer.lock, Gemfile.lock, Cargo.lock, poetry.lock, *.min.js, *.min.css, *.mapsample_data.sql, *_fixture.sql, *.dump, *.ndjson, *.parquet, *.tar, *.tar.gz, *.zip, *.bin; also any *.sql file that is clearly a data dump rather than a migration5000 lines (fallback catch for anything the patterns above missed)Bucketing. Let T be the total changed-line count across the filtered file set.
T ≤ 5000: one bucket containing all filtered files. A single bucket can run up to 5000 lines without splitting.K = ⌈T / 4000⌉ buckets, targeting ~T/K lines each (roughly 3000–4000 per bucket). Worked examples: 7000 → 2 buckets of ~3500; 10000 → 3 buckets of ~3333; 13000 → 4 buckets of ~3250. Minimize K — do not over-split.When splitting, use directory-aware packing:
apps/web/, packages/core/, migrations/). Keeping related files together preserves cross-file context for each reviewer.T/K lines.K unless a single file exceeds the per-bucket cap — in that rare case, it gets its own bucket and K grows by one.Materialize per-bucket diffs locally — only after bucketing, and only for files in a bucket:
git diff <base>...<head> -- <files-in-bucket>
Do not read files that are not in any bucket.
Report triage and bucketing:
Triage: <N> files, <M> excluded (<reasons>), reviewing <N-M> files (<L> diff lines)
Buckets: <K> (single bucket up to 5000 lines; otherwise ~3000 per bucket via K=⌈T/4000⌉)
1. <file count> files, <line count> lines — <top-level dirs>
... (list per-bucket breakdown only when K > 1)
Launch context gathering in parallel:
AGENTS.md files:
AGENTS.md, if presentAGENTS.md in directories containing reviewed files or their parents--re-review, gather prior comments and the incremental diffSupported external context:
clickup.com/t/<task_id> via mcp__clickup__*app.intercom.com/*/conversation/<id> via mcp__Intercom__get_conversation*.sentry.io/issues/<issue_id> via mcp__Sentry__get_issue_detailsPass external summaries to review agents, but do not post them as comments.
Run one review pass per bucket. Bucket passes execute sequentially to bound total cost.
For each bucket, review the bucket directly in the current agent context. Use no MBOT skill and no colin-mbot-* subagents. Use:
AGENTS.md context (for files in the current bucket and their parents)```suggestion:-N+M range modifier. If you cannot be precise about the replacement range, return a prose description with a fenced ``` example block instead of a ```suggestion block."Return issues tagged with AI reviewer.
Review focus:
AGENTS.md compliance for applicable paths onlyOnly flag high-signal issues:
AGENTS.md violations you can quote directlyDo not flag:
If confidence is low, do not flag the issue.
For each issue across all buckets, perform a validation pass in the current agent context and keep only issues confirmed with high confidence.
--no-summary is active```suggestion block, verify the block satisfies the platform skill's Committable Suggestion Blocks rules (line counts match the anchor range; on GitLab the :-N+M modifier is present when the replacement spans more than one line). If the block is malformed and cannot be corrected with high confidence, downgrade the fix to a prose description before posting.Skip this step if --no-summary is active.
Summarize the total issues found, the issues kept after validation, any issues discarded as false positives, and the files/buckets reviewed. Do not include model comparisons.
Always behave as if --no-post is active.
--no-post ModeDisplay the prepared comments and stop for user instructions.
Supported follow-ups:
postdrop issue 3edit issue 2 to say ...cancelPost a single summary comment:
> **AI Code Review** · Commit: <sha> · Models: <comma-separated list>
No issues found. Checked for bugs and AGENTS.md compliance.
In re-review mode, say No new issues found in the latest changes. instead. Keep the Commit: <sha> segment in the header so the next re-review can diff from this point.
Post one inline comment per unique issue using the loaded platform CLI skill.
mcp__github_inline_comment__create_inline_comment; otherwise follow gh-cli for gh api inline comment postingglab-cli for discussions API posting, MR version SHAs, and "type": "DiffNote" verificationComment rules:
> **AI Code Review** · Commit: <sha> · Flagged by: <agent-name(s)>
<issue description>
<sha> is the full PR/MR head commit SHA captured in Step 1. Use the same SHA for every comment posted in this run, including the summary comment.
Use exactly one comment per unique issue
Include links or citations when referring to source material such as AGENTS.md
For self-contained fixes of up to 5 lines, include a committable suggestion block following the loaded platform skill's Committable Suggestion Blocks rules. The block's line count MUST equal the lines being replaced at the comment's anchor — on GitLab, multi-line replacements REQUIRE the explicit ```suggestion:-N+M modifier (a bare ```suggestion only ever replaces one line, regardless of body size). Do not emit a suggestion block if the replacement range cannot be determined precisely.
If the fix is not self-contained, or the suggestion-block rules above can't be satisfied, describe the fix and include a copyable prompt instead of a suggestion block
Unless --no-summary is active, post the review summary after all inline comments.
Skip this step in git diff mode.
After comments are posted, or after the user confirms posting from --no-post mode, apply the :Reviewed-By-AI label.
Use the loaded platform CLI skill for the exact label command.
If the user cancels in --no-post mode, do not apply the label.
gh, glab, jq, gitWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
code-review, pull-request, merge-request, git-diff, inline-comments
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.Other plugins' skills for the same job