git-commit

git-commit is a skill for Claude Code from microsoft/hve-core. It costs 48 tokens per session (1,762 once invoked), scanned C, original, MIT.

A guarded Git workflow for staging selected files and creating one Conventional Commit, a commit message format with a standard type and description. It can also generate a message for changes that are already staged without committing.

In plain words
What is it for?
Use it to stage confirmed paths, make a local commit, or generate a ready-to-paste commit message from staged changes.
Why use it?
It helps prevent unrelated files from entering a commit and makes the exact staged set visible before committing. Message-only mode lets you review or edit the proposed message first.

Skill for Claude Code ✓ vendor

Written for Claude Code: disable-model-invocation in frontmatter.

Good fit Use it to stage confirmed paths, make a local commit, or generate a ready-to-paste commit message from staged changes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/microsoft/hve-core/git-commit
About the project

HVE Core is a collection of agents, prompts, coding instructions, and skills for building repeatable software-development workflows with GitHub Copilot. It is intended for individuals and teams that want structured AI-assisted research, planning, implementation, and review, while the catalogue entries provide many of its reusable workflow components.

microsoft/hve-core · 1,606 stars · on GitHub

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 microsoft/hve-core --skill git-commit
Clone the repo
git clone --depth 1 https://github.com/microsoft/hve-core

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/microsoft/hve-core/git-commit/github.svg)](https://agentmods.dev/skills/microsoft/hve-core/git-commit)
Your own site
<a href="https://agentmods.dev/skills/microsoft/hve-core/git-commit"><img src="https://agentmods.dev/badge/skills/microsoft/hve-core/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/microsoft/hve-core/git-commit"><img src="https://agentmods.dev/badge/skills/microsoft/hve-core/git-commit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,762 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00048 $0.01762
Opus 5.5 $0.00019 $0.00705
Sonnet 5.5 $0.00010 $0.00352
Haiku 4.5 $0.00005 $0.00176

Measured yesterday against content hash c1fcbbb90d6c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

git-commit scanned grade C with 1 finding 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.

Hidden instructionshighPrompt injection

Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.

<!-- cspell:ignore pathspecs unstages -->
.github/skills/hve-core/git-commit/SKILL.md · 107 lines

How it starts

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

Git Commit

Goal

Create one local Conventional Commit from whole paths the user selects and confirms, or generate a message for the currently staged changes without touching the index.

Inputs

  • mode (optional): commit (default) runs the select, stage, confirm, and commit protocol. message-only generates a message for the staged changes and never stages, unstages, or commits.

Message Rules

Generate every message by following references/commit-message.md. It owns types, scopes, description and body limits, and the footer line. Once generated, the message is authoritative for the commit.

Message-Only Mode

  1. Read the staged changes with git --no-pager diff --staged. Use the host's staged-changes tool instead when the user asks to avoid the terminal or no terminal is available.
  2. When nothing is staged, output No changes to commit. and stop.
  3. Generate the message from the complete staged diff.
  4. Output the message in a fenced code block and tell the user to copy it as-is or edit it before committing.

Commit Protocol

  1. Inventory candidate paths. Before changing the index, run git status --porcelain=v1 -z --untracked-files=all and git rev-parse --verify HEAD in the target repository.
    • Record tracked, untracked, deleted, renamed, copied, and initially staged paths. Treat only an R or C status record that supplies both old and new paths as one logical selection. Present a separate deletion and untracked addition as independent candidates without inferring a rename.
    • If HEAD cannot be verified, stop, because this workflow cannot restore a rejected staging change safely.
    • If any path has both staged and unstaged changes, stop and ask the user to resolve its hunk-level intent outside this workflow. Do not restage a partially staged path.
    • If there are no candidate changes, output No changes to commit. and stop.
  2. Confirm whole-path intent. Present the candidate paths and their states without file contents, then ask the user to select the whole paths intended for this commit.
    • Every initially staged path must be selected. If the user excludes one, stop before changing the index; never unstage prior user work.
    • A status-reported rename or copy is selected only as its complete old-and-new path pair.
    • If the selection is empty, ambiguous, unsafe to represent as shell arguments, or absent, stop without staging or committing.
  3. Stage only the selection with git --literal-pathspecs add -- <safely quoted selected paths>. Never use an unscoped git add -A or git add -u path.
    • Quote each path for the active shell and keep -- before path arguments. If a path cannot be represented safely, stop.
    • Record only the selected paths that were not initially staged as this invocation's staging delta.
    • If staging fails, report a concise error and stop without retrying.
  4. Inspect and confirm the staged set. Use the host's staged-changes tool, such as get_changed_files with sourceControlState set to staged and repositoryPath set to the full project path.
    • Verify that the exact staged path set contains every selected path, contains every initially staged path, and contains no unselected path. If it differs, restore this invocation's staging delta and stop.
    • Present the exact staged paths without file contents or suspected sensitive values. Ask the user to confirm that these paths and their staged content are intended for the local commit.
    • If the user rejects, does not respond, or gives an ambiguous answer, restore this invocation's staging delta and stop without committing.
    • If no staged changes remain, output No changes to commit. and stop without creating an empty commit.
  5. Generate the message from the staged changes and commit once, without showing the message first.
    • Pipe the exact message, including body and footer line, through STDIN, for example echo "<full message>" | git commit -F -. Preserve newlines exactly and end with the footer line followed by a newline.
    • Run no other Git command at this step (no push, pull, fetch, diff, show, status, log, branch, switch, merge, rebase, or tag).
  6. After the commit succeeds, print Commit created successfully with the following message:, a blank line, and the full message in a fenced markdown code block.
  7. If the commit fails, for example because a hook rejects it, report a concise error with a suggested fix and stop without retrying.

Read the full file on GitHub · 107 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. yesterday Changed c1fcbbb90d6c
  2. 1mo ago First seen · 107 lines · 48 tokens per session scan C 30bcb4638b00

Subscribe to this mod's changes

git-commit is a skill published in the GitHub repository microsoft/hve-core (1,606 stars, last pushed today), licensed MIT. It adds 48 tokens to every session and 1,762 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it C with 1 finding (hidden instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-08.

Related

git-commit compared with skills from other repositories

git-commit next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
git-commitmicrosoft/hve-coreSkill1.6ktodayMITC48Claude Code
create-prprisma/ormSkill48kyesterdayApache-2.0A48Claude Code, Codex
git-commitThinkInAIXYZ/deepchatSkill6.4ktodayApache-2.0A15Claude Code, Codex
repo-syncdavidondrej/skillsSkill4.3ktodayMITA25Claude Code, Codex
engineer-bot-opsmakecindy/cindySkill9.5ktodayApache-2.0A57Claude Code, Codex
mcore-split-prNVIDIA/skillsSkill3.9kyesterdayApache-2.0A25Claude Code
contributingHugoRCD/evlogSkill1.9kyesterdayMITA68Claude Code, Codex