git-commit-only

git-commit-only is a skill for Claude Code, Codex from YangsonHung/awesome-agent-skills. It costs 74 tokens per session (1,247 once invoked), scanned A, original, MIT.

A Git workflow for creating one focused local commit from staged or requested changes, using a standard commit format. It does not push changes to a remote repository.

In plain words
What is it for?
Use it to inspect a diff, stage the intended files, create a Conventional Commit, and record tests or other verification in the commit body.
Why use it?
It helps prevent unrelated edits from being bundled together and avoids writing unclear commit messages. It also keeps commit-only work separate from pushing, merging, or publishing.

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/yangsonhung/awesome-agent-skills/git-commit-only
Any agent
npx skills add YangsonHung/awesome-agent-skills --skill git-commit-only
Clone the repo
git clone --depth 1 https://github.com/YangsonHung/awesome-agent-skills

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-only

README.md
[![agentmods](https://agentmods.dev/badge/skills/yangsonhung/awesome-agent-skills/git-commit-only.svg)](https://agentmods.dev/skills/yangsonhung/awesome-agent-skills/git-commit-only)
Your own site
<a href="https://agentmods.dev/skills/yangsonhung/awesome-agent-skills/git-commit-only"><img src="https://agentmods.dev/badge/skills/yangsonhung/awesome-agent-skills/git-commit-only.svg" alt="Measured on agentmods" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,247 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.00074 $0.01247
Opus 5 $0.00037 $0.00624
Sonnet 5 $0.00015 $0.00249
Haiku 4.5 $0.00007 $0.00125

Measured 4d ago against content hash 3ffb7ae1d0a2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

git-commit-only 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 4d 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.

skills/en/git-commit-only/SKILL.md · 132 lines

How it starts

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

Git Commit Only

Overview

Create one focused local Conventional Commit from the current repository's staged or requested changes without pushing to any remote.

The default output is one commit on the current branch. Analyze the actual diff, stage the requested change set, generate the commit message from the change content, and write a segmented body for non-trivial changes so reviewers can quickly see what changed by topic.

This workflow handles local commit requests only. It does not push, merge branches, rewrite history, create pull requests, or publish changes.

Conventional Commit Rules

Base format:

<type>[optional scope]: <description>

[body: optional only for trivial changes; required and segmented for non-trivial changes]

[footer(s): required for breaking changes; optional for relevant issue references]

For this skill, the body is optional only for trivial commits. For non-trivial changes, write a segmented body and include a Tests: or localized equivalent section when tests, validators, hooks, or manual verification ran.

Types:

Type Use for
feat New user-facing or product capability
fix Bug fix
docs Documentation-only change
style Formatting/style change with no logic impact
refactor Code restructure with no feature or bug fix
perf Performance improvement
test Test-only or test coverage change
build Build system, dependency, or packaging change
ci CI or automation config change
chore Maintenance or miscellaneous change
revert Revert a previous commit

Breaking changes:

  • Use ! after the type or scope, such as feat(api)!: remove legacy field.
  • Add a BREAKING CHANGE: footer when the behavioral contract changes.

Message style:

  • Use the repository's existing commit language.
  • Write the subject in present tense and imperative mood, such as fix login redirect.
  • Keep the subject under 72 characters when practical.
  • Reference issues in the body or footer when relevant, such as Closes #123 or Refs #456.

Read the full file on GitHub · 132 lines

Files

What ships with it

1 file 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. 4d ago First seen · 132 lines · 74 tokens per session scan A 3ffb7ae1d0a2

Subscribe to this mod's changes

git-commit-only is a skill published in the GitHub repository YangsonHung/awesome-agent-skills (18 stars, last pushed 26d ago), licensed MIT. It adds 74 tokens to every session and 1,247 once invoked, about $0.0004 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.

Related

Other skills, from other repositories

contributing

How to contribute to evlog, covering commit and PR conventions, changesets, the Definition of Done, testing rules, and the authored skills that walk through building a new adapter, enricher, framework integration, or map rule. Load this for any question about contributing, opening a PR, or adding something to the…

HugoRCD/evlog · 68 tokens

commit

Git commit workflow with precommit hook handling, lint/type checking, README updates, and API reference updates. Use when the user wants to commit changes. Handles precommit hooks that modify files (formatting, linting) by re-staging and retrying. Runs ruff lint and pyright type checks on staged Python files, and…

ReflexioAI/claude-smart · 122 tokens

git-commit

Creates git commits following Conventional Commits format with type/scope/subject and detailed markdown body. Use when user wants to commit changes, create commit, save work, or stage and commit. Enforces project-specific conventions from CLAUDE.md. Each change type gets its own markdown heading (# emoji + type), with…

redai-infra/Relax · 73 tokens

commit

Create a signed git commit following Conventional Commits, after running /pre-commit and /changelog when appropriate.

mihai-dinculescu/tapo · 24 tokens

commit

Read this skill before making git commits.

HazAT/pi-config · 9 tokens

et-git

ET git workflow for preparing commits and reviewing changes. Use when checking git status or diff, filtering unrelated files, staging task-scoped changes, writing Chinese commit messages, or synchronizing with remotes using rebase instead of merge.

FlameskyDexive/Legends-Of-Heroes · 50 tokens