commit

Guidance for preparing reviewed changes as one or more Git commits. A commit is a saved, reviewable set of changes in a code repository.

In plain words
What is it for?
Use it when staging files, splitting work into logical commits, or writing commit messages.
Why use it?
It keeps unrelated changes separate so reviewers can understand them and maintainers can undo one change without affecting another. It also prevents accidentally including unreviewed files.

Skill for Claude CodeCodex

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/kreek/consult/commit
Any agent
npx skills add kreek/consult --skill commit
Clone the repo
git clone --depth 1 https://github.com/kreek/consult

Made for: Claude Code, Codex.

Per session 13 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 987 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.00013 $0.00987
Opus 5 $0.00006 $0.00494
Sonnet 5 $0.00003 $0.00197
Haiku 4.5 $0.00001 $0.00099

Measured yesterday against content hash 7c0c8f125d39, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

commit 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 yesterday.

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.

agents/.agents/skills/commit/SKILL.md · 91 lines

How it starts

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

Commit

Iron Law

COMMIT ONLY THE REVIEWED SLICE. STAGE FILES BY NAME.

Commit packaging is common and should stay lightweight. The host owns the git invocation mechanics; this skill sets the packaging standards. Load git-workflow only when branches, conflicts, rebases, history edits, recovery, or GitHub CLI use are part of the task.

When to Use

  • The user asks to commit, stage, split, or package current changes.
  • You need to group dirty files into one or more logical commits.
  • You need a right-sized commit subject or body for approved work.

When NOT to Use

  • Creating or switching branches, resolving conflicts, rebasing, bisecting, recovering history, deleting branches, or force-pushing. Use git-workflow.
  • Reviewing correctness of the diff. Use code-review before packaging non-trivial implementation work.
  • Preparing release versions, changelogs, tags, or publishing. Use release only when requested or approved.

Core Ideas

  1. A branch is not the commit boundary. Even on one branch, group changes by behavior so reviewers can understand what changed and maintainers can revert one behavior without dragging unrelated work with it.
  2. Logical commits are reader-facing history. A commit should explain one completed behavior, cleanup, or documentation change; nearby work can wait for a second commit when it would need a different rollback decision.

Workflow

  1. Check the tree state and stop on anything unexpected: wrong branch, unresolved merge state, or files you do not recognize.
  2. Separate unrelated work by behavior, even when all changes belong to the same branch. Stage only named files or approved pathspecs for the reviewed slice; never use git add . in a messy tree. Confirm the staged diff matches the slice before committing.
  3. Confirm relevant proof is current. If a broad suite is noisy for unrelated reasons, name the targeted proof and report the broader drift separately.
  4. Write a commit message that completes "When applied, this commit will ...". Use a concise subject. Add a body only when the change needs context, up to 2-3 short paragraphs. Attribution trailers are host configuration, not message content: when a host adds trailers such as Co-Authored-By by default, point the user at the host setting that disables them (for example includeCoAuthoredBy: false in Claude Code settings) instead of overriding the host's guidance from inside the message.
  5. Commit without skipping hooks.

Read the full file on GitHub · 91 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. yesterday First seen · 91 lines · 13 tokens per session scan A 7c0c8f125d39

Subscribe to this mod's changes

commit is a skill published in the GitHub repository kreek/consult (1 stars, last pushed 6d ago), licensed MIT. It adds 13 tokens to every session and 987 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-31.