ワンクリックで
git-commit-reword
Review every commit message since base branch and add reword fixups where the message needs improvement (non-interactive)
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Review every commit message since base branch and add reword fixups where the message needs improvement (non-interactive)
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Create a Claude Code rule, skill, or agent — global (~/.claude) or project-local (.claude)
Code review using OpenAI Codex CLI with project context (rules, diff, conventions)
Multi-perspective code review from base branch with 3 independent reviewer agents
Analyze working tree changes, map to existing commits, and create fixup commits for autosquash
Analyze working tree changes, plan logically minimal NEW atomic commits per hunk (no fixup), and execute them
Analyze working tree changes and commit them — fixup into existing commits where appropriate, otherwise new atomic commits
| name | git-commit-reword |
| disable-model-invocation | true |
| argument-hint | [context] |
| description | Review every commit message since base branch and add reword fixups where the message needs improvement (non-interactive) |
Follow ~/.claude/skills/git-commit/COMMON.md for the invocation contract,
conventions, language policy, base branch detection, and autosquash
presentation — read it first if it is not already in context. This file
defines only what is specific to /git-commit-reword. The COMMON.md execute
procedure does NOT apply here — this skill never stages files; it only
creates --allow-empty reword fixup commits (see Execute below).
context (optional): Additional context to inform the re-evaluation
(e.g., "these implement the auth refactor", "focus on tightening the
subjects"). Folded into the judgment and the new messages.Reviews every commit message since the base branch, re-judges each one
in the current context, and for each commit whose message should be
improved, creates a reword fixup commit (an amend! commit) so
git rebase -i --autosquash rewrites just that message later — the original
code is never touched. Commits whose messages are already good are left
untouched.
When a message needs reword: it is uninformative (e.g., Update, wip,
fix, bare filenames), does not follow Conventional Commits, mislabels the
change type, or its body fails to explain WHY for a non-trivial change. Also
reword when the message no longer matches the commit's actual content —
e.g., fixups squashed in grew or changed the diff so the original
subject/body now under- or mis-describes what the commit really does. Always
judge the message against the commit's current full diff, not its
original intent. Do NOT reword a message that is already accurate and
clear — avoid needless churn.
Detect base branch (per COMMON.md).
List commits since base: git log --oneline <base>..HEAD. If there
are none, inform the user and STOP.
Review each commit (read-only). For every commit in <base>..HEAD:
git log -1 --format="%H%n%s%n%b" <sha>git show --stat <sha>, and git show <sha> when
the diff is needed to judge the message.Judge & draft: re-evaluate each message against the conventions,
folding in the optional context. Decide per commit: keep as-is, or
reword. For each commit needing reword, draft an improved message
(Conventional Commits, subject + blank line + WHY-focused body).
Execute (directly via Bash) — only if at least one commit needs reword:
git backup "before reword" (or
git branch backup/$(date +%s) HEAD if the alias is unavailable).git commit --allow-empty --fixup=reword:<sha> -m "$(cat <<'EOF'
<new-message>
EOF
)"
For older Git, use an explicit amend! commit:
git commit --allow-empty -m "amend! $(git log -1 --format=%s <sha>)" -m "$(cat <<'EOF'
<new-message>
EOF
)"
Forbidden: git commit --amend, git rebase, git stash. Only
create --allow-empty reword fixup commits; the user controls the rebase.
Present (Japanese):
✅ reword fixup コミットを作成しました(N 件)).