From git-intent-interface
Squash all commits on the current branch into one, preserving full history in a git tag. This skill should be used when the user says "squash branch", "archive commits", "squash and archive", "clean up branch history", "collapse branch into one commit", or "g-intent-squash-archive".
How this skill is triggered — by the user, by Claude, or both
Slash command
/git-intent-interface:g-intent-squash-archiveThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Verify the working tree is clean (`git status --porcelain` returns empty). If not, stop and ask the user to commit or stash first.
Verify the working tree is clean (git status --porcelain returns empty). If not, stop and ask the user to commit or stash first.
Archive and squash all commits on the current branch:
git branch --show-current. If master or main — STOP immediately, inform the user this command cannot run on the main branch, do not proceed with any further stepsgit merge-base main <branch> (fall back to master if main doesn't exist)git log --oneline <base>..<branch>archive/<branch> already exists (git tag -l archive/<branch>). If it does, show the user what it points to and warn that it will be overwrittengit tag -f archive/<branch> HEADgit reset --soft <base>Archive: archive/<branch>git commitgit log --oneline -5 and remind about git log archive/<branch> for the full historynpx claudepluginhub maxim-uvarov/my-claude-skills --plugin git-intent-interfaceSafely rewrites git history with dry-run plans, backups, and confirmations before amending/squashing/rewording commits, updating tags, deleting branches, and force pushing.
Rewrites a feature branch's messy commit history into clean, conventional commits that tell a progressive, linear story. Handles backup, soft reset, and atomic recommit.
Rewrites Git branch history into clean, narrative-quality commits for code review. Creates backup branch, reimplements changes from main diff, verifies byte-identical, replaces original.