git-smart-fixup
Installation
SKILL.md
Git Smart Fixup
Trigger
User invokes /smart-fixup or asks to split changes into fixup commits.
Arguments
--from-head: Use the HEAD commit instead of staged changes (will reset HEAD and recreate as fixups)--dry-run: Show what fixup commits would be created without actually creating them--base <ref>: Specify the base branch (default: auto-detect master/main)
Instructions
Step 1: Determine the Base Branch and Commit Range
- Find the merge base between current branch and main/master:
git merge-base HEAD master