commit

commit is a skill for Claude Code, Codex from anilcancakir/claude-code. It costs 70 tokens per session (2,082 once invoked), scanned A, original, MIT.

A Git workflow that turns the current working-tree changes into separate, focused commits, checks them first, and can push them to the remote repository.

In plain words
What is it for?
Use it to inspect pending changes, split them by purpose, create commits that match the repository’s existing style, and optionally push them.
Why use it?
It avoids one large mixed commit and helps catch problems before changes are shared. You can request skipping the checks or the push.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; mentions OpenCode.

Good fit Use it to inspect pending changes, split them by purpose, create commits that match the repository’s existing style, and optionally push them.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/anilcancakir/claude-code/commit
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.

Any agent
npx skills add anilcancakir/claude-code --skill commit
Clone the repo
git clone --depth 1 https://github.com/anilcancakir/claude-code

Made for: Claude Code, Codex.

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 commit

README.md
[![agentmods](https://agentmods.dev/badge/skills/anilcancakir/claude-code/commit/github.svg)](https://agentmods.dev/skills/anilcancakir/claude-code/commit)
Your own site
<a href="https://agentmods.dev/skills/anilcancakir/claude-code/commit"><img src="https://agentmods.dev/badge/skills/anilcancakir/claude-code/commit/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for commit

Your own site · 80×15
<a href="https://agentmods.dev/skills/anilcancakir/claude-code/commit"><img src="https://agentmods.dev/badge/skills/anilcancakir/claude-code/commit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,082 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00070 $0.02082
Opus 5.5 $0.00028 $0.00833
Sonnet 5.5 $0.00014 $0.00416
Haiku 4.5 $0.00007 $0.00208

Measured 14d ago against content hash 7923819aaf83, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 14d 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.

opencode/ac/skills/commit/SKILL.md · 126 lines

How it starts

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

commit

Commit the working tree as atomic commits in the repo's own style, then push. Rebase, squash and history tracing live in two references that load only when the request asks for them.

The request text is the input; this skill takes no other arguments.

Phase 0: Parse the request and pick the mode

  1. --skip-preflight in the request text sets SKIP_PREFLIGHT.
  2. --no-push in the request text sets NO_PUSH. Also set NO_PUSH when .ac/state/active-auto.json exists with harness: "opencode" and a session_id equal to the root_session_id the ac_session tool returns: that is an ac/auto away run, which publishes only from its own close, after its verification gate, and only what the user named. A push from here would land before the gate has judged the work. NO_PUSH holds in every mode.
  3. Mode, from the request:
    • COMMIT (the default): Phases 1 to 5 below.
    • REBASE (rebase, squash, autosquash, reorder, split a commit, cherry-pick, update the branch): read references/rebase.md and follow it instead of Phases 1 to 5.
    • HISTORY (when was X added, who changed this, blame, bisect, history of a file): read references/history.md and follow it instead of Phases 1 to 5.
  4. Other tokens are a free-form note. When they name files or one unit of work, plan only those.

Phase 1: Context

Run these with the shell tool, in parallel; together they are the whole git picture, so do not gather it again.

  • Branch: git branch --show-current
  • Status: git status --short
  • Staged stat: git diff --staged --stat
  • Unstaged stat: git diff --stat
  • Last 30 commits: git log -30 --pretty=format:"%h %s"
  • Upstream: git rev-parse --abbrev-ref @{upstream} 2>/dev/null || echo "NO_UPSTREAM"
  • Unpushed commits: git log --oneline @{upstream}..HEAD 2>/dev/null || git log --oneline $(git merge-base HEAD main 2>/dev/null || git merge-base HEAD master 2>/dev/null)..HEAD 2>/dev/null || echo "NO_BASE"

Read the full file on GitHub · 126 lines

Files

What ships with it

2 files 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. 14d ago Changed · +6 lines · +35 tokens per session 7923819aaf83
  2. 15d ago Changed 707e1b25488a
  3. 18d ago First seen · 120 lines · 35 tokens per session scan A ff2c0934b83f

Subscribe to this mod's changes

commit is a skill published in the GitHub repository anilcancakir/claude-code (4 stars, last pushed 2d ago), licensed MIT. It adds 70 tokens to every session and 2,082 once invoked, about $0.0003 per session on Opus 5.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-10-28.

Related

commit compared with skills from other repositories

commit next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
commitanilcancakir/claude-codeSkill42d agoMITA70Claude Code, Codex
claude-code-bash-patternssecondsky/claude-skillsSkill24915d agoMITB52Claude Code
catchupAvijit07x/claude-dbSkill2359d agoApache-2.0B71Claude Code, Codex
workflowclaude-world/director-mode-liteSkill8025d agoMITA52Claude Code
smart-commitclaude-world/director-mode-liteSkill8025d agoMITA49Claude Code
commit-push-prOutlineDriven/odin-claude-pluginSkill401mo agoApache-2.0A46Claude Code, Codex
commitOutlineDriven/odin-claude-pluginSkill401mo agoApache-2.0A46Claude Code, Codex