commit

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

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/aretw0/agents-lab/commit
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.

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. 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.00009 $0.00411
Opus 5 $0.00005 $0.00205
Sonnet 5 $0.00002 $0.00082
Haiku 4.5 $0.00001 $0.00041

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

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. yesterday 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 2mo ago), licensed MIT. It adds 9 tokens to every session and 411 once invoked, about $0.0000 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.