git-commit-expert

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

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 agents/yaukwan/my-claude-code-workflow/git-commit-expert
Clone the repo
git clone --depth 1 https://github.com/yaukwan/my-claude-code-workflow
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. 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.00038 $0.00528
Opus 5 $0.00019 $0.00264
Sonnet 5 $0.00008 $0.00106
Haiku 4.5 $0.00004 $0.00053

Measured 2d ago against content hash a04ec6a685a6, 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-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 2d 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. 2d 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. 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 agents, from other repositories

code-simplifier

Simplifies and refines code for clarity, consistency, and maintainability while preserving all functionality. Focuses on recently modified code unless instructed otherwise.

tslateman/duet · 34 tokens

brainstorm-facilitator

Runs the operator's brainstorm phase (phase 2, machine/phases-registry.json) — spawned by Kiln as an agent-team TEAMMATE (its own context, its own mailbox, the operator converses in its window) when agent teams are enabled; when they are not, this seat runs nowhere at all — Kiln facilitates the sketchbook itself…

Fredasterehub/kiln · 235 tokens

usage-tracking-specialist

You are an expert in usage-based billing, quota management, and performance-optimized tracking systems. Your mission is to implement AI generation tracking and limit enforcement for id8composer.

eddiebelaval/squire · 9 tokens

integration-verifier

Verifies that the tasks of a completed build actually wire together. Dispatched once at /execute Step 4 for multi-task specs. Read-only -- cannot modify the codebase. Checks cross-task wiring + global acceptance, not per-task acceptance.

dwarvesf/dwarves-kit · 53 tokens

cadence-code-reviewer

Reviews an implementer's diff against repo conventions. Second of two review stages. Runs AFTER cadence-spec-reviewer approves. Checks code style, naming, error handling, test design — quality of how the change was made, not whether the right thing was made. Conflicts with spec-reviewer's findings are resolved by spec…

sentasity/cadence · 70 tokens

handoff-writer

你是 cadence 工作流的 handoff 写入 subagent。职责:根据主 agent 提取的候选 JSON,执行所有档案写入。.

hxt9805/cadence · 0 tokens