/agent-resources:squash-branchfrom agent-resources
Reviews commits in a Git branch and groups related work into a clean, linear commit stack without changing the final code tree. Verifies tree integrity and runs quality gates before pushing.
Ships in agent-resources. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Turn noisy Git history into a small, reviewable commit stack without changing the final code.
--force-with-lease.Use the range named by the user:
<base>..HEAD<ref>..HEADConfirm the current branch, working tree, remote, and selected base before changing history.
If there are uncommitted changes, commit them only when the user asks. Otherwise, ask whether to commit or stash them.
Read the log, messages, and file statistics:
git log <range> --reverse --format="%H %s%n%b---"
git diff <base>...HEAD --stat
git show --stat <sha>
Group commits by purpose. Combine fixups, tests, documentation, and polish with the change they support. Keep unrelated features, infrastructure changes, and reverts separate.
Prefer a few clear commits, but do not force unrelated work into an arbitrary commit count.
git branch backup/<branch>-<date> HEAD
Record the original tip and base commit. The backup protects the exact tree while history is rebuilt.
Reset to the base only after the backup exists:
git reset --hard <base>
For contiguous groups, restore the tree at each group's tip:
git read-tree -u --reset <group-tip>
git commit -m "<clear subject>" -m "<why this group exists>"
For non-contiguous groups, apply the selected commits without committing, then create one new commit:
git cherry-pick -n <sha-1> <sha-2> <sha-3>
git commit -m "<clear subject>" -m "<why this group exists>"
Keep commits in their original order unless reordering is required to form a logical group. Stop and report conflicts rather than guessing how to resolve them.
Do not use git checkout <sha> -- . to restore a full tree. It can leave files
that later commits deleted.
The rebuilt tree must exactly match the backup:
git diff --exit-code backup/<branch>-<date> HEAD
git log <base>..HEAD --oneline
git status --short
Run the repository's normal quality gates. Include tests and a production build when available.
If the tree differs or a quality gate fails, do not push.
Rewriting main or master requires clear user approval. Warn that other
checkouts may need to reset after the push.
git push --force-with-lease origin <branch>
Never use a plain --force push. Delete the backup only after verification and
the push both succeed.
Report:
What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (jcottam/agent-resources) — no native marketplace selected
npx claudepluginhub p/jcottam-agent-resources14 skills in this plugin
/advisorActivate rigorous, no-nonsense advisory mode for deep analysis, research, critical review, or honest assessment. Use when the user says "advise", "advise me", "give me your honest take", "don't sugarcoat", "be brutally honest", "rigorous mode", "devil's advocate", "second opinion", "challenge this", "stress-test this", "poke holes", "what am I missing", or any variation of wanting unfiltered expert analysis. Also use when the user asks a complex research question, requests a critical review of a plan or architecture, or wants a decision evaluated with full intellectual honesty rather than encouragement./babysit-prBabysit review comments on the current branch's pull request. Bugbot comes first: wait for its review, fix each valid finding, commit, and push. Handle every other open comment too, from human reviewers and other bots. Repeat for up to three rounds, or until nothing new is open. Use when the user says "babysit PR", "babysit this PR", "wait for Bugbot", "address review comments", "address Bugbot comments", "loop until Bugbot is clean", or wants open PR feedback fixed without merging./cleanup-hardenRuns a cleanup and hardening pass on an application or website covering security fixes, DRY consolidation, orphan and dead-code removal, doc drift, dependency audit, error handling, config validation, performance, and repo hygiene, without changing user-facing behavior. Use when the user asks to clean up, prune, harden, audit, tidy, or de-cruft a codebase, remove dead code, fix doc drift, or do a security pass.Other plugins' skills for the same job