commit

commit is a command for Claude Code from andrei-isvoran96/claude-skill-lab. It costs 0 tokens per session (526 once invoked), scanned A, original, MIT.

A Git command workflow that creates a named branch from the latest integration branch, then stages, commits, and pushes the current changes. Git is a tool for tracking changes to source code.

In plain words
What is it for?
Use it to prepare changes for review, such as a bug fix or feature, with a branch name supplied as an argument.
Why use it?
It standardizes the path from local edits to a remote branch and avoids committing directly on the integration branch.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Good fit Use it to prepare changes for review, such as a bug fix or feature, with a branch name supplied as an argument.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/andrei-isvoran96/claude-skill-lab/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.

Clone the repo
git clone --depth 1 https://github.com/andrei-isvoran96/claude-skill-lab

Made for: Claude Code.

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/commands/andrei-isvoran96/claude-skill-lab/commit/github.svg)](https://agentmods.dev/commands/andrei-isvoran96/claude-skill-lab/commit)
Your own site
<a href="https://agentmods.dev/commands/andrei-isvoran96/claude-skill-lab/commit"><img src="https://agentmods.dev/badge/commands/andrei-isvoran96/claude-skill-lab/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/commands/andrei-isvoran96/claude-skill-lab/commit"><img src="https://agentmods.dev/badge/commands/andrei-isvoran96/claude-skill-lab/commit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 526 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.00000 $0.00526
Opus 5.5 $0.00000 $0.00210
Sonnet 5.5 $0.00000 $0.00105
Haiku 4.5 $0.00000 $0.00053

Measured 1mo ago against content hash 8ac667f3c683, 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 1mo 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.

commands/commit.md · 53 lines

How it starts

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

Stage, commit, and push changes to a new branch based on origin/<BASE_BRANCH>.

Arguments

This command accepts a branch name as $ARGUMENTS. Example: /commit bug/207-fix-disappearing-flow-lines

Steps

  1. Validate the branch name. If $ARGUMENTS is empty or blank, ask the user to provide a branch name and stop. Do NOT proceed without one.

  2. Fetch the latest <BASE_BRANCH> from origin:

    git fetch origin <BASE_BRANCH>
    
  3. Check for staged/unstaged changes. Run git status and git diff (both staged and unstaged) to understand what will be committed. If there are NO changes to commit (no modified, added, or deleted tracked files), inform the user and stop.

  4. Create the branch from origin/<BASE_BRANCH>:

    git checkout -b $ARGUMENTS origin/<BASE_BRANCH>
    

    If the branch already exists locally, inform the user and ask whether to switch to it or abort.

  5. Verify the changes carried over. Run git status on the new branch to confirm the working tree changes are present. Show the user a summary of what will be committed.

  6. Stage the relevant files. Only stage files that are related to the work — do NOT stage untracked files that look unrelated (test artifacts, temporary files, .env files, credentials, etc.). When in doubt, ask the user which files to include.

  7. Draft a commit message by analyzing the staged diff:

    • Follow conventional commits format (fix:, feat:, refactor:, docs:, chore:, etc.)
    • Keep the subject line under 72 characters
    • Add a body explaining the "why" if the change is non-trivial
    • Use a HEREDOC to pass the message:
      git commit -m "$(cat <<'EOF'
      fix: short description
      
      Longer explanation if needed.
      EOF
      )"
      
  8. Push the branch to origin:

    git push -u origin $ARGUMENTS
    

Read the full file on GitHub · 53 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. 1mo ago First seen · 53 lines · 0 tokens per session scan A 8ac667f3c683

Subscribe to this mod's changes

commit is a command published in the GitHub repository andrei-isvoran96/claude-skill-lab (1 stars, last pushed 5mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 526 tokens. 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.