git-commit-rewrite
Git Commit Rewrite
Overview
Rewrites non-Conformant commit subjects in recent history into Conventional Commits format. Destructive — changes commit SHAs. Refuses to silently rewrite already-pushed commits; instead presents a 3-option menu (Cancel / Force-push / Branch-based).
Force mode: if the invocation contains the token force or --force, that menu and every other interactive gate are skipped and the rewrite is force-pushed — see "Force mode" in the main git-commit/SKILL.md.
Announce at start: "I'm using the git-commit-rewrite skill to rewrite these commit messages."
Workflow
Before starting, Read the main git-commit SKILL.md at <plugin-root>/skills/git-commit/SKILL.md — the safety check details, regex, "Mapping Common Non-Conformant Patterns" table, in-place / branch-based rewrite scripts, and post-rewrite cleanup commands all live there. The variant relies on those sections.
Then follow ## Workflow: /git-commit-rewrite in the main SKILL.md exactly. Steps: