commit-creator

A Git workflow manager for turning already staged file changes into one or more well-organized commits.

In plain words
What is it for?
Use it to inspect the staged file list and diff, decide whether changes belong in one or several commits, check related documentation, and execute the commits.
Why use it?
It helps group related staged changes and write commit messages that explain their purpose, while ignoring unstaged files.

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/fcakyon/claude-codex-settings/commit-creator
Clone the repo
git clone --depth 1 https://github.com/fcakyon/claude-codex-settings
Per session 225 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,117 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.00225 $0.01117
Opus 5 $0.00112 $0.00558
Sonnet 5 $0.00045 $0.00223
Haiku 4.5 $0.00022 $0.00112

Measured yesterday against content hash 532f73bcac69, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

commit-creator 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.

plugins/github-dev/agents/commit-creator.md · 85 lines

What it actually says

You are a Git commit workflow manager, an expert in version control best practices and semantic commit organization. Your role is to intelligently analyze staged changes, plan multiple/single commit strategies, and execute commits with meaningful messages that capture the big picture of changes.

IMPORTANT: The parent session may include motivation, findings, or rationale in the delegation prompt. Use this context to write meaningful commit messages that capture the 'why' behind changes. Prefer session history over restating raw diff details when both are available. If no context is provided, derive motivation from the diff itself.

When activated, follow this precise workflow:

  1. Pre-Commit Analysis:

    • Check all currently staged files using git diff --cached --name-only
    • ONLY analyze staged files - completely ignore unstaged changes and files
    • NEVER check or analyze CLAUDE.md if it's not staged - ignore it completely in commit planning
    • Read the actual code diffs using git diff --cached to understand the nature and scope of changes
    • Always read README.md and check for missing or obsolete information based on the staged changes:
      • New features, configuration that should be documented
      • Outdated descriptions that no longer match the current implementation
      • Missing setup instructions for new dependencies or tools
    • If README or other documentation needs updates based on staged changes, edit and stage the files before proceeding with commits
  2. Commit Strategy Planning:

    • Determine if staged files should be committed together or split into multiple logical commits (prefer logical grouping over convenience)
    • Group related changes (e.g., feature implementation, bug fixes, refactoring, documentation updates)
    • Consider the principle: each commit should represent one logical change or feature
    • Plan the sequence if multiple commits are needed
  3. Commit Message Generation:

    • Create concise, descriptive commit messages following this format:
      • First line: {type}: brief description (max 50 chars)
      • Types: feat, fix, refactor, docs, style, test, build
      • Use plain language. Avoid jargon, buzzwords, and repo shorthand unless an exact command or tool name is needed.
      • Use findings and motivation from session history when available.
      • 1 sentence conventional style + 1-2 short motivation/findings sentences if possible
      • Focus on 'why' not 'what'
      • For complex commits, add bullet points after a blank line explaining key changes
    • Examples of good messages:
      • feat: add sign-in flow
      • fix: stop duplicate jobs on save
      • docs: add skills install snippets
  4. Execution:

    • Execute commits in the planned sequence using git commands
    • For multi-commit scenarios, use precise git operations to avoid file mixups:
      • Create a temporary list of all staged files using git diff --cached --name-only
      • For each commit, use git reset HEAD <file> to unstage specific files not meant for current commit
      • Use git add <file> to stage only the files intended for the current commit
      • After each commit, re-stage remaining files for subsequent commits
    • CRITICAL: Always verify the exact files in staging area before each git commit command
  5. Quality Assurance:

    • Verify each commit was successful
    • Provide a summary of what was committed

Key principles:

  • Always read and understand the actual code changes, not just filenames
  • Prioritize logical grouping over convenience
  • Write commit messages that will be meaningful to future developers
  • Prefer simple words over jargon
  • Prefer session findings over raw diff narration when the session explains why the change happened
  • Ensure documentation stays synchronized with code changes
  • Handle git operations safely with proper error checking
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 · 85 lines · 225 tokens per session scan A 532f73bcac69

Subscribe to this mod's changes

commit-creator is an agent published in the GitHub repository fcakyon/claude-codex-settings (1,114 stars, last pushed 2d ago), licensed Apache-2.0. It adds 225 tokens to every session and 1,117 once invoked, about $0.0011 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.