Use when the user wants to rewrite existing git commit messages with git filter-repo, rename commit messages in bulk, normalize noisy auto-generated messages, or safely plan a history-wide message-only rewrite.
Safely rewrite existing git commit messages using git filter-repo.
Use this skill when the user wants to:
Do not use this skill for:
Use /commit for new commits and /squash-commits for rebase-based history cleanup.
This skill rewrites commit SHAs. Treat it as history surgery.
Before making any change:
HEAD SHA.HEAD.Always print:
Original HEAD: <full 40-char SHA>
To restore: git reset --hard <full 40-char SHA>
Backup tag: pre-filter-repo-backup
Run:
git rev-parse HEAD
git status --porcelain
git rev-parse --abbrev-ref @{upstream} 2>/dev/null || true
command -v git-filter-repo
Rules:
git-filter-repo is unavailable, stop and report it.Require explicit mappings in this format: