git-commit

git-commit is a skill for Claude Code, Codex from adityasasidhar/claude-code-in-100-lines. It costs 18 tokens per session (233 once invoked), scanned A, original, MIT.

Instructions for creating a clean Git commit, where Git is the tool used to record project changes.

In plain words
What is it for?
They cover checking the diff, avoiding secrets and unrelated files, writing the commit message, committing only when asked, and verifying the result.
Why use it?
They help ensure commits contain only related work and have clear messages that explain why the change was made.

Skill for Claude CodeCodex

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

Good fit They cover checking the diff, avoiding secrets and unrelated files, writing the commit message, committing only when asked, and verifying the result.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/adityasasidhar/claude-code-in-100-lines/git-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 adityasasidhar/claude-code-in-100-lines --skill git-commit
Clone the repo
git clone --depth 1 https://github.com/adityasasidhar/claude-code-in-100-lines

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 git-commit

README.md
[![agentmods](https://agentmods.dev/badge/skills/adityasasidhar/claude-code-in-100-lines/git-commit/github.svg)](https://agentmods.dev/skills/adityasasidhar/claude-code-in-100-lines/git-commit)
Your own site
<a href="https://agentmods.dev/skills/adityasasidhar/claude-code-in-100-lines/git-commit"><img src="https://agentmods.dev/badge/skills/adityasasidhar/claude-code-in-100-lines/git-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 git-commit

Your own site · 80×15
<a href="https://agentmods.dev/skills/adityasasidhar/claude-code-in-100-lines/git-commit"><img src="https://agentmods.dev/badge/skills/adityasasidhar/claude-code-in-100-lines/git-commit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 233 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.00018 $0.00233
Opus 5.5 $0.00007 $0.00093
Sonnet 5.5 $0.00004 $0.00047
Haiku 4.5 $0.00002 $0.00023

Measured 2mo ago against content hash 9e808d54b21f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

git-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 2mo 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.

src/prompts/skills/git-commit/SKILL.md · 25 lines

What it actually says

Git Commit

Use this when committing work.

Before committing

  • git status and git diff — know exactly what you are about to commit.
  • Do not commit unrelated changes together. One logical change per commit.
  • Never commit secrets, large binaries, or debug cruft. Check for them.

The message

  • Subject line: imperative mood, ~50 chars, no period. "Add retry to fetch", not "Added retries" or "fixes stuff".
  • Body (when the change is not trivial): explain why, not what — the diff already shows what. Wrap at ~72 chars.
  • Reference the issue/ticket if there is one.

Rules

  • Commit only when the user asks.
  • If on the default branch (main/master), create a branch first.
  • Stage and commit, then stop. Do not git push unless explicitly told to.
  • Verify the commit landed: git log --oneline -1.
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. 2mo ago First seen · 25 lines · 18 tokens per session scan A 9e808d54b21f

Subscribe to this mod's changes

git-commit is a skill published in the GitHub repository adityasasidhar/claude-code-in-100-lines (2 stars, last pushed 3mo ago), licensed MIT. It adds 18 tokens to every session and 233 once invoked, about $0.0001 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-31.

Related

Other skills, from other repositories

comet-safe-delivery

A Chinese-language procedure for safely delivering specified Comet changes through Git. It covers checking worktrees and unrelated edits, staging exact files, validating hooks, and authorized commits or pushes.

rpamis/comet · 78 tokens

precommit

Pre-commit checks — lint:fix -> build -> test.

sd0xdev/sd0x-harness · 15 tokens

next-step

Change-aware next step advisor. Use when: user asks what to do next, workflow progression is unclear, session just started with dirty worktree. Not for: executing the suggested command (user decides), auto-loop decisions (hooks handle that). Output: findings-based suggestions or session summary with commit seed.

sd0xdev/sd0x-harness · 63 tokens

precommit-fast

Quick pre-commit checks — lint:fix -> test.

sd0xdev/sd0x-harness · 15 tokens

ship

Release pipeline for already-done local work. Dispatches /ground-state pre-flight, runs the project test suite, drafts a commit message, pushes, and opens a PR with a structured verification summary. Use when local changes are ready to hand off to review — e.g. 'ship this', 'push and open a PR', 'release this work'.…

griffinwork40/agent-afk · 93 tokens

git

Run git version control commands for repository management. Use when the user asks to check status, view history or diffs, stage and commit changes, manage branches, merge or rebase, work with remotes, stash changes, tag releases, cherry-pick commits, bisect regressions, resolve conflicts, manage worktrees or…

bug-ops/zeph · 106 tokens