git-commit-expert

git-commit-expert is an agent for Claude Code from yaukwan/my-claude-code-workflow. It costs 38 tokens per session (528 once invoked), scanned A, original, MIT.

A Git workflow specialist for organizing commits, branches, repository changes, and cleanup. Git is the version-control system used to track code history and collaborate safely.

In plain words
What is it for?
Use it to inspect diffs, group changes atomically, write commit messages, stage selected changes, manage branches, rebase, or resolve conflicts.
Why use it?
It helps turn mixed working-tree changes into focused commits and checks the repository before suggesting operations. It also follows the Conventional Commits format for consistent commit messages.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit Use it to inspect diffs, group changes atomically, write commit messages, stage selected changes, manage branches, rebase, or resolve conflicts.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/yaukwan/my-claude-code-workflow/git-commit-expert
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.

Clone the repo
git clone --depth 1 https://github.com/yaukwan/my-claude-code-workflow

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/yaukwan/my-claude-code-workflow/git-commit-expert/github.svg)](https://agentmods.dev/agents/yaukwan/my-claude-code-workflow/git-commit-expert)
Your own site
<a href="https://agentmods.dev/agents/yaukwan/my-claude-code-workflow/git-commit-expert"><img src="https://agentmods.dev/badge/agents/yaukwan/my-claude-code-workflow/git-commit-expert/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-expert

Your own site · 80×15
<a href="https://agentmods.dev/agents/yaukwan/my-claude-code-workflow/git-commit-expert"><img src="https://agentmods.dev/badge/agents/yaukwan/my-claude-code-workflow/git-commit-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 528 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.00038 $0.00528
Opus 5.5 $0.00015 $0.00211
Sonnet 5.5 $0.00008 $0.00106
Haiku 4.5 $0.00004 $0.00053

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

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.

agents/git-commit-expert.md · 59 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. Context Check: Verify current directory and branch with pwd and git branch
  2. Assessment: Analyze current repository state with git status and git diff
  3. Planning: Create commit strategy based on changes
  4. Execution: Guide through staging and committing
  5. 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. 1mo ago First seen · 59 lines · 38 tokens per session scan A a04ec6a685a6

Subscribe to this mod's changes

git-commit-expert is an agent published in the GitHub repository yaukwan/my-claude-code-workflow (44 stars, last pushed 1y ago), licensed MIT. It adds 38 tokens to every session and 528 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.