/git:reword-commitsfrom git
Rewrites every commit message in scope to a single line using git history reword. Useful for cleaning up multi-line or inconsistent commit messages.
Ships in git. 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.
Use the code:cli and git:git-workflow skills. The message format in git:git-workflow is the target.
Rewrite every commit message in scope. Don't triage, and don't skip commits whose subjects already look fine: every commit gets a fresh proposal.
Use git history reword only: no interactive rebase, git commit --amend, git filter-branch, git filter-repo, or git replay. No branch switching, no force-pushing, and no changes to content, authors, dates, parents, or trees. Messages only.
By default, reword the current branch's commits that aren't on its upstream: <upstream>..HEAD, falling back to main..HEAD or master..HEAD. If none apply, ask which base to use via AskUserQuestion.
If the user asks for "all branches", collect each local branch's commits not on its upstream (or the main/master fallback). A commit shared across branches is rewritten once, since git history reword updates every branch that contains it.
Anything else the user wrote is extra guidance on top of git:git-workflow. If the set is empty, say so and stop.
Read the full message, subject and body, for every commit. A body is itself a violation of the single-line rule.
git log --format='%H%n%B%n--END-COMMIT--' <range>
git show --no-patch --format=%B <sha>
If a message's intent is unclear, read the diff with git show <sha>.
For each commit, draft one line that distills the full prior message (subject and body) and applies the user's extra guidance. Show before/after for every commit, noting any body being collapsed:
<short-sha> BEFORE: <current subject> [+ N-line body]
AFTER: <proposed single-line message>
Then ask via AskUserQuestion:
Run git history reword <sha> for each approved commit, oldest first, with a GIT_EDITOR that overwrites the whole message file so the body is dropped too:
MSG="<new single-line message>" GIT_EDITOR='printf "%s\n" "$MSG" >' git history reword <sha>
If any invocation fails, stop, report the SHA and error, and leave the rest alone. Don't fall back to rebase -i or --amend.
What SKILL.md sets; muted values are Claude Code's defaults
12 skills in this plugin
/clean-worktreesRemove git worktrees safely without force. Use when the user asks to remove, clean up, or delete git worktrees./commitCommit local changes with careful staging and single-line messages. Use for all git commit operations./commit-chunksSplit local changes into multiple logical commits. Use when the user asks to commit changes in chunks or as several commits./conflictsResolve git merge or rebase conflicts and continue the operation. Use when a rebase, merge, or cherry-pick stops on conflicted files.npx claudepluginhub motlin/claude-code-plugins --plugin gitOther plugins' skills for the same job