/colin-shipping:colin-squash-mergefrom colin-shipping
Squash-merges a branch onto master/main with per-author commits and AI-generated summaries. Handles stale branch detection, conflict warnings, and author grouping optimization.
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.
Merge branch $ARGUMENTS onto master (or main—detect which exists) using an author-aware squash strategy. The goal: one clean commit per author (ideally no more than 1–3 each), each with a concise AI-generated summary.
git status --porcelain). Abort if dirty.main if it exists, otherwise master.git merge-base <trunk> $ARGUMENTS. Save this as $MERGE_BASE.backup/$ARGUMENTS-<timestamp> pointing at the current branch tip.Before doing any work, check if the branch has diverged significantly from trunk:
git log --oneline $MERGE_BASE..<trunk> | wc -lgit diff --name-only $MERGE_BASE <trunk>git diff --name-only $MERGE_BASE $ARGUMENTSIf there is overlap, display the overlapping files and warn the user:
"This branch diverged from trunk N commits ago. The following M files were modified on both trunk and this branch, which means the squash-merge will overwrite trunk's changes to these files with the branch's versions. Consider rebasing the branch onto trunk first."
If vendor/ or composer.lock appear in the overlap, warn specifically:
"WARNING: vendor/ and/or composer.lock differ between this branch and trunk. The squash will replace trunk's dependency state with the branch's. This is almost certainly wrong unless the branch intentionally updated dependencies."
STOP and ask the user to confirm before proceeding if any overlap exists.
temp/smart-merge-<timestamp> from the trunk.$ARGUMENTS onto this temp branch (prefer rebase).
git log --format='%H %ae %an' <trunk>..$ARGUMENTS (use the original branch to analyze).%s).Count the number of "author switches" (adjacent commits by different authors). If reordering a small number of commits (≤3 moves) would reduce the final commit count, propose the reorder to the user and execute it with interactive rebase if approved. The constraint: never reorder commits that modify the same files (check via git diff --name-only between candidate commits) to avoid conflicts.
For each contiguous run of commits by the same author:
git reset --soft + git commit, setting:
--author="Original Author Name <email>" to preserve authorship.This step is critical to prevent accidental reverts of trunk work.
Compare the file scope of the original branch against the squashed result to mechanically detect any contamination:
Compute the original branch file set (what the branch intended to change):
git diff --name-only $MERGE_BASE $ARGUMENTS | sort > /tmp/branch-files.txt
Compute the squashed result file set (what will actually land on trunk):
git diff --name-only <trunk> HEAD | sort > /tmp/squash-files.txt
(Run this on the temp branch after squashing.)
Compute the excess files — files in the squash that were NOT in the original branch diff:
comm -13 /tmp/branch-files.txt /tmp/squash-files.txt > /tmp/excess-files.txt
Compute missing files — files in the original branch diff that are NOT in the squash:
comm -23 /tmp/branch-files.txt /tmp/squash-files.txt > /tmp/missing-files.txt
If there are ANY excess or missing files, STOP immediately. Display them and explain:
Do not proceed until the user has reviewed and approved. Suggest rebasing the branch onto trunk first as the safest fix.
Additionally, even if the file sets match exactly, compare the diff stats for a sanity check:
git diff --stat $MERGE_BASE $ARGUMENTS # original branch scope
git diff --stat <trunk> HEAD # squashed result scope
Show both summaries side by side. If the total insertions/deletions differ significantly (e.g., the squash has 2500 files changed but the branch only had 50), something is wrong — warn the user.
git diff comparing the original branch tip and the squashed temp branch tip. There should be ZERO differences. STOP and ask for direction if there are any differences.git log --oneline of the temp branch vs trunk.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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