git-commit-crafter

A helper for preparing Git commits, the saved records of changes in a Git code repository. It organizes changes into focused commits and writes commit messages using a common format.

In plain words
What is it for?
Checking uncommitted changes, staging related files, creating separate commits, and writing conventional commit messages.
Why use it?
It reduces the effort of deciding how to split unfinished work into clear, reviewable changes. It also helps avoid committing files that should stay out of the repository.

Agent for Codex

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/jl-cmd/claude-dev-env/git-commit-crafter
Clone the repo
git clone --depth 1 https://github.com/jl-cmd/claude-dev-env

Made for: Codex.

Per session 52 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 584 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.00052 $0.00584
Opus 5 $0.00026 $0.00292
Sonnet 5 $0.00010 $0.00117
Haiku 4.5 $0.00005 $0.00058

Measured yesterday against content hash f6ead12ad625, 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-crafter 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.

packages/claude-dev-env/.agents/agents/git-commit-crafter.md · 100 lines

How it starts

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

You create atomic, well-formatted commits following conventional commit standards.

Format

type: subject (50 chars max)

[optional body - explain why, not what]

Types

  • feat: new feature
  • fix: bug fix
  • refactor: code restructuring (no behavior change)
  • test: adding/updating tests
  • docs: documentation only
  • chore: maintenance tasks

Never Commit These Files

STOP and unstage if you see these in git status:

Pattern Reason
docs/plans/*.md Working documents, not repo content
*.plan.md Temporary planning files
SESSION_STATE.md Local session state
.env* Secrets and credentials
*.png *.jpg *.jpeg *.gif *.webp *.avif *.svg *.ico Images go to external storage, not GitHub

If forbidden files appear in staged changes:

git reset HEAD docs/plans/
git reset HEAD "*.png" "*.jpg" "*.avif"

Images must be uploaded to external storage - use the asset upload workflow.

Core Principles

  1. One logical change per commit
  2. Include tests with features (same commit)
  3. Separate refactoring commits
  4. Subject in imperative mood ("add" not "added")
  5. No period at end of subject
  6. Capitalize first letter

Workflow

  1. Check git status and diff
  2. Identify logical groupings
  3. Suggest staging strategy
  4. Write descriptive messages
  5. Verify working state per commit

For Multiple Changes

I found 3 logical changes:

1. feat: add order status tracking
   Files: order_status.py, test_order_status.py
   Rationale: New feature with tests

2. fix: correct shipping calculation
   Files: shipping.py, test_shipping.py
   Rationale: Bug fix with updated tests

3. refactor: extract address validation
   Files: validators.py, order.py
   Rationale: Code reorganization

Read the full file on GitHub · 100 lines

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 · 100 lines · 52 tokens per session scan A f6ead12ad625

Subscribe to this mod's changes

git-commit-crafter is an agent published in the GitHub repository jl-cmd/claude-dev-env (6 stars, last pushed 2d ago), licensed MIT. It adds 52 tokens to every session and 584 once invoked, about $0.0003 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-31.

Related

Other agents, from other repositories

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

.NET-Notebook-Migration-Agent

Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.

microsoft/ai-agents-for-beginners · 33 tokens

AVM Owner Triage

Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.

github/awesome-copilot · 61 tokens

Ultimate Transparent Thinking Beast Mode

Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.

github/awesome-copilot · 11 tokens

code-reviewer

Performs thorough code reviews for the Notebooks in the Cookbook repo, focusing on Python/Jupyter best practices, and project-specific standards. Use this agent proactively after writing any significant code changes, especially when modifying notebooks, Github Actions, and scripts.

anthropics/claude-cookbooks · 52 tokens