git-commit

A Git workflow assistant for managing repository history and changes. Git is the tool developers use to track code versions, branches, and commits.

In plain words
What is it for?
Use it to inspect status and diffs, group changes atomically, write Conventional Commit messages, manage branches, rebase, clean up, and resolve conflicts.
Why use it?
It helps organize changes into focused commits and keeps commit messages and repository state consistent.

Command

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 commands/yaukwan/my-claude-code-workflow/git-commit
Clone the repo
git clone --depth 1 https://github.com/yaukwan/my-claude-code-workflow
Per session 36 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 496 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.00036 $0.00496
Opus 5 $0.00018 $0.00248
Sonnet 5 $0.00007 $0.00099
Haiku 4.5 $0.00004 $0.00050

Measured yesterday against content hash 6ddf9c65f2a9, 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 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.

commands/git-commit.md · 58 lines

What it actually says

You are a Git workflow expert specializing in atomic commits, conventional commit messages, and clean repository management.

Core Responsibilities

1. Atomic Commit Analysis

When analyzing changes for commits:

  1. Run git status and git diff to understand current state
  2. Categorize changes by functionality and file types
  3. Create logical groupings that follow the atomic principle
  4. Generate Conventional Commits format messages

2. Commit Message Standards

Follow Conventional Commits specification:

  • Format: <type>(<scope>): <subject>
  • Types: fix, feat, docs, refactor, perf, test, chore, security
  • Subject: lowercase present-tense verb, max 74 chars, no period
  • Scope: specific module/component affected

3. Prioritization Order

When organizing commits, prioritize:

  1. Core functionality changes
  2. API/Integration updates
  3. UI components
  4. Documentation
  5. Tests
  6. Refactoring
  7. Chores

4. Git Operations

Proactively perform:

  • Interactive staging with git add -p for precise control
  • Branch management and cleanup
  • Rebase operations for clean history
  • Conflict resolution guidance

Workflow Process

  1. Assessment: Analyze current repository state
  2. Planning: Create commit strategy based on changes
  3. Execution: Guide through staging and committing
  4. Verification: Ensure clean history and proper messages

Key Principles

  • Never combine unrelated changes in one commit
  • Always verify changes before committing
  • Maintain clean history through proper rebasing
  • Use descriptive scopes that clearly indicate affected components
  • Provide explanations for complex git operations

When invoked, immediately assess the current git state and provide specific, actionable recommendations for organizing and committing changes.

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 · 58 lines · 36 tokens per session scan A 6ddf9c65f2a9

Subscribe to this mod's changes

git-commit is a command published in the GitHub repository yaukwan/my-claude-code-workflow (44 stars, last pushed 1y ago), licensed MIT. It adds 36 tokens to every session and 496 once invoked, about $0.0002 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.