commit-all

A command that commits all pending Git changes while following the project's Git workflow rules.

In plain words
What is it for?
Use it to inspect pending changes, identify relevant commits and fixup candidates, and commit the outstanding work.
Why use it?
It gathers staged and unstaged work into commits using the branch history, base branch, and repository conventions as context.

Command

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 commands/fprochazka/claude-code-plugins/commit-all
Clone the repo
git clone --depth 1 https://github.com/fprochazka/claude-code-plugins
Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 631 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.00011 $0.00631
Opus 5 $0.00005 $0.00316
Sonnet 5 $0.00002 $0.00126
Haiku 4.5 $0.00001 $0.00063

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

Security

Grade A, and why

commit-all 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 2d 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/commands/commit-all.md · 56 lines

How it starts

The opening of the file, as written. The whole thing — 56 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Context

  • Current branch: !git branch --show-current

Git status

!`git status`

Recent commits

!`git log -n 10 --oneline --abbrev-commit`

Changed files (staged and unstaged)

!`git diff HEAD --numstat`

Commits on this branch since it diverged from the base branch (fixup candidates)

Pushed or not, these stay rewritable until the branch merges.

!`base=$(git symbolic-ref -q --short refs/remotes/origin/HEAD 2>/dev/null); base=${base:-$(git rev-parse -q --verify master >/dev/null 2>&1 && echo master || echo main)}; git log --oneline "$base..HEAD" 2>/dev/null; [ -n "$(git log --oneline "$base..HEAD" 2>/dev/null)" ] || echo "(none — HEAD is at or behind $base)"`

Files touched by those commits

!`base=$(git symbolic-ref -q --short refs/remotes/origin/HEAD 2>/dev/null); base=${base:-$(git rev-parse -q --verify master >/dev/null 2>&1 && echo master || echo main)}; git diff --name-only "$base...HEAD" 2>/dev/null | sort -u`

Your task

Load the git-workflow skill and commit all pending changes (both staged and unstaged) according to its rules. Read file diffs as needed via git diff HEAD -- <path> before staging.

Work in this order:

  1. Check for fixups first. For each pending change ask: would one of the branch commits above have looked different if you had known this at the time? If yes it belongs inside that commit — git commit --fixup <sha>, not a new commit. Repairing, simplifying or rearranging code this branch introduced is a fixup. Adding new work on top of a commit that was correct as written is not, even when it touches the same files.
  2. Apply the sibling/ancestor test to whatever remains. Ancestors — pieces that only exist because the next one needs them — are one commit, cut vertically through every layer. Siblings — independent, revertible in any order, each meaningful to someone reading master who never saw this branch — stay separate.
  3. Order by dependency: quarantined noise and standalone prerequisites first, payload next, unlocked cleanups and docs last.

Read the full file on GitHub · 56 lines

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. 2d ago First seen · 56 lines · 11 tokens per session scan A 683c6bf77f52

Subscribe to this mod's changes

commit-all is a command published in the GitHub repository fprochazka/claude-code-plugins (11 stars, last pushed 4d ago), licensed MIT. It adds 11 tokens to every session and 631 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.