git-reword-commits

git-reword-commits is a skill for Claude Code, Codex from motlin/claude-code-plugins. It costs 26 tokens per session (263 once invoked), scanned A, original, Apache-2.0.

A guided way to replace commit messages on the current Git branch with short, single-line descriptions.

In plain words
What is it for?
It helps review and rewrite messages for commits that are not yet part of the upstream branch, using Git’s history-rewrite command after confirmation.
Why use it?
It helps clean up unclear commit history while keeping the code changes, authors, dates, and other commit details unchanged.

Skill for Claude CodeCodex

Part of the git plugin — 11 skills, 8 commands, 3 agents shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/motlin/claude-code-plugins/git-reword-commits
Any agent
npx skills add motlin/claude-code-plugins --skill git-reword-commits
Clone the repo
git clone --depth 1 https://github.com/motlin/claude-code-plugins

Made for: Claude Code, Codex.

Or install git, the plugin that ships this one along with the rest of its 11 skills, 8 commands, 3 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for git-reword-commits

README.md
[![agentmods](https://agentmods.dev/badge/skills/motlin/claude-code-plugins/git-reword-commits.svg)](https://agentmods.dev/skills/motlin/claude-code-plugins/git-reword-commits)
Your own site
<a href="https://agentmods.dev/skills/motlin/claude-code-plugins/git-reword-commits"><img src="https://agentmods.dev/badge/skills/motlin/claude-code-plugins/git-reword-commits.svg" alt="Measured on agentmods" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 263 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00026 $0.00263
Opus 5 $0.00013 $0.00131
Sonnet 5 $0.00005 $0.00053
Haiku 4.5 $0.00003 $0.00026

Measured 3d ago against content hash e6fdf766aa66, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

git-reword-commits scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/git/skills/git-reword-commits/SKILL.md · 29 lines

What it actually says

Git Reword Commits

Use the code:cli and git-workflow skills.

Use git history reword only. Do not use interactive rebase, amend, filter-branch, filter-repo, or replay. Do not change commit content, authors, dates, parents, or trees.

Default scope is commits on the current branch not on upstream, or not on main/master when no upstream exists. If the user asks for all branches, collect every local branch's unique commits not on its upstream or fallback base.

Read full messages:

git log --format='%H%n%B%n--END-COMMIT--' <range>

Draft a replacement one-line message for every commit. Show before/after for every commit and ask for confirmation.

Apply approved rewrites oldest first:

MSG="<new single-line message>" GIT_EDITOR='sh -c "printf %s\\n \"$MSG\" > \"$1\"" --' git history reword <sha>

If any rewrite fails, stop and report the SHA and error. Do not push.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 29 lines · 26 tokens per session scan A e6fdf766aa66

Subscribe to this mod's changes

git-reword-commits is a skill published in the GitHub repository motlin/claude-code-plugins (15 stars, last pushed 4d ago), licensed Apache-2.0. It adds 26 tokens to every session and 263 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories