commit

commit is a skill for Claude Code, Codex from aretw0/agents-lab. It costs 9 tokens per session (411 once invoked), scanned A, original, MIT.

A guide for creating Git commits, which are saved snapshots of changes in a repository. It defines a short standard format for commit messages and limits the commit to the intended files.

In plain words
What is it for?
Use it before committing code changes, especially when a specific file set or conventional commit subject is required.
Why use it?
It helps produce consistent history and avoids accidentally including unrelated changes or pushing them to a remote repository.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it before committing code changes, especially when a specific file set or conventional commit subject is required.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aretw0/agents-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.

Any agent
npx skills add aretw0/agents-lab --skill commit
Clone the repo
git clone --depth 1 https://github.com/aretw0/agents-lab

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/aretw0/agents-lab/commit/github.svg)](https://agentmods.dev/skills/aretw0/agents-lab/commit)
Your own site
<a href="https://agentmods.dev/skills/aretw0/agents-lab/commit"><img src="https://agentmods.dev/badge/skills/aretw0/agents-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/skills/aretw0/agents-lab/commit"><img src="https://agentmods.dev/badge/skills/aretw0/agents-lab/commit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 9 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 411 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.00009 $0.00411
Opus 5.5 $0.00004 $0.00164
Sonnet 5.5 $0.00002 $0.00082
Haiku 4.5 $0.00001 $0.00041

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

packages/git-skills/skills/commit/SKILL.md · 40 lines

What it actually says

Create a git commit for the current changes using a concise Conventional Commits-style subject.

Format

<type>(<scope>): <summary>

  • type REQUIRED. Use feat for new features, fix for bug fixes. Other types: docs, refactor, chore, test, perf, style, ci.
  • scope OPTIONAL. Short noun in parentheses for the affected area (e.g., api, auth, ui, cli).
  • summary REQUIRED. Short, imperative, lowercase, ≤ 72 chars, no trailing period.

Rules

  • Body is OPTIONAL. If needed, add a blank line after the subject and write short paragraphs.
  • Do NOT include breaking-change markers or footers.
  • Do NOT add sign-offs (Signed-off-by).
  • Only commit — do NOT push.
  • Always pass the message on the command line, never rely on an interactive editor:
    git commit -m "fix(auth): handle expired token on refresh"
    
  • If it is unclear which files to include, ask before staging.
  • Treat caller-provided arguments as additional commit guidance:
    • Freeform text → influences scope, summary, and body
    • File paths/globs → limit which files to stage and commit
    • Combined → honor both

Steps

  1. Check if the user provided specific file paths/globs and/or instructions.
  2. Run git status and git diff to understand current changes.
  3. (Optional) Run git log -n 20 --pretty=format:%s to see commonly used scopes in this project.
  4. Ask for clarification if there are ambiguous extra files.
  5. Stage only the intended files.
  6. Run git commit -m "<subject>" (add -m "<body>" if a body is needed).
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 · 40 lines · 9 tokens per session scan A 4494e711830a

Subscribe to this mod's changes

commit is a skill published in the GitHub repository aretw0/agents-lab (11 stars, last pushed 3mo ago), licensed MIT. It adds 9 tokens to every session and 411 once invoked, about $0.0000 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-08-30.