git-commit

git-commit is a skill for Claude Code from johnqtcg/awesome-skills. It costs 52 tokens per session (3,967 once invoked), scanned A, original, MIT.

A safety checklist and workflow for creating a Git commit. A commit is a saved set of changes in a Git repository.

In plain words
What is it for?
It helps inspect repository state, stage intended files, scan the staged changes, generate an Angular-style commit message when needed, and create the commit without replacing an earlier one.
Why use it?
It checks for conflicts, secrets, unrelated changes, and repository conventions before committing. It also creates a concise standardized commit message.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions AGENTS.md.

Good fit It helps inspect repository state, stage intended files, scan the staged changes, generate an Angular-style commit message when needed, and create the commit without replacing an earlier one.

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

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/johnqtcg/awesome-skills/git-commit/github.svg)](https://agentmods.dev/skills/johnqtcg/awesome-skills/git-commit)
Your own site
<a href="https://agentmods.dev/skills/johnqtcg/awesome-skills/git-commit"><img src="https://agentmods.dev/badge/skills/johnqtcg/awesome-skills/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/johnqtcg/awesome-skills/git-commit"><img src="https://agentmods.dev/badge/skills/johnqtcg/awesome-skills/git-commit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,967 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 3 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium MCP Rug Pull · line 5
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 5
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 5
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
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.00052 $0.03967
Opus 5.5 $0.00021 $0.01587
Sonnet 5.5 $0.00010 $0.00793
Haiku 4.5 $0.00005 $0.00397

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

The scan reads SKILL.md. This mod also ships 22 executable files (scripts/detect-ecosystems.sh, scripts/eval/run_eval.sh, scripts/eval/scenarios/01_ambiguous_bulk.sh, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/git-commit/SKILL.md · 200 lines

How it starts

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

Git Commit (Safety Enhanced, Angular Convention)

Create a commit from the current working tree with safety gates first, then generate a concise Angular-style message in English.

Maintaining this skill (not needed to run it): references/design-evidence.md records the measured evidence behind every contract below and the verified environment matrix; scripts/run_cross_env_probe.sh, scripts/run_portability_matrix.sh and scripts/eval/ re-derive it.

Hard Rules

  • Never commit with unresolved conflicts.
  • Never commit secrets, credentials, keys, or .env sensitive values.
  • Subject line must fit the repo's limit — default <= 50 chars total (including type(scope): ). A commitlint/CONTRIBUTING limit discovered in §5 replaces that default; the §6 guard enforces whichever applies. There is no separate absolute 50.
  • Do not use --amend unless explicitly requested. If already pushed, warn about force push.
  • If any safety gate fails, stop and report clearly.
  • One commit = one logical change. Do not mix unrelated fixes, features, or formatting.

Workflow

Bundled scripts are always invoked as bash "<path-to-skill>/scripts/<name>.sh" — <path-to-skill> is the absolute skill directory (where this SKILL.md was loaded from), never a path relative to the repository. Keep the working directory at the target repo root; the scripts read the repo through git.

1. Preflight

git rev-parse --is-inside-work-tree                 # must print "true"
git -c core.quotePath=false status --short           # quotePath=false: see the raw path
BRANCH=$(git rev-parse --abbrev-ref HEAD)            # "HEAD" means detached (allowed)

# In-progress operation? Worktree-safe: resolve real paths, never read .git/ directly.
for state in rebase-merge rebase-apply MERGE_HEAD CHERRY_PICK_HEAD REVERT_HEAD; do
  [ -e "$(git rev-parse --git-path "$state")" ] && echo "IN_PROGRESS $state"
done

# Unresolved conflicts: this diff exits 0 regardless, so act on OUTPUT, not exit code.
git -c core.quotePath=false diff --name-only --diff-filter=U

STOP (hard block — report which one and what to resolve) if any of these hold:

  • --is-inside-work-tree did not print true;
  • any IN_PROGRESS <state> line printed (rebase / merge / cherry-pick / revert in progress);
  • the conflict diff printed any path (unresolved merge conflicts).

Read the full file on GitHub · 200 lines

Files

What ships with it

37 files 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. 1mo ago Changed · +4 lines 845d812d9d52
  2. 1mo ago First seen · 196 lines · 52 tokens per session scan A 72c30961f447

Subscribe to this mod's changes

git-commit is a skill published in the GitHub repository johnqtcg/awesome-skills (30 stars, last pushed 8d ago), licensed MIT. It adds 52 tokens to every session and 3,967 once invoked, about $0.0002 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.