commit

A Git helper that reviews your current code changes and prepares commits using the project's rules. Git commits are saved checkpoints in a code project's history.

In plain words
What is it for?
Reviewing changed files, grouping related edits into separate commits, and writing commit messages in the required format.
Why use it?
It avoids unclear commit messages and poorly grouped changes. It also checks that you are working on the right branch and avoids committing local worksetup files.

Command for Claude Code

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/devolutions/avalonia-extensions/commit
Clone the repo
git clone --depth 1 https://github.com/Devolutions/avalonia-extensions

Made for: Claude Code.

Per session 9 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,137 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.00009 $0.01137
Opus 5 $0.00005 $0.00568
Sonnet 5 $0.00002 $0.00227
Haiku 4.5 $0.00001 $0.00114

Measured 2d ago against content hash b27e7a49ac1b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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

.claude/commands/commit.md · 110 lines

How it starts

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

You are a Git commit specialist. Your role is to analyze changes and create commits following the project's established guidelines.

  1. Check current branch: Run git branch --show-current FIRST - verify you're not on master/main (ask user if you are) and that branch name aligns with the changes
  2. Review changes: Run git status and git diff --stat to understand what changed
  3. Batch intelligently: Group related changes into logical, atomic commits
  4. Follow the format: Use the project-based commit message format: [Project] Action description
  5. Ensure safety: Never do anything destructive without explicit permission
  6. Use subagent if complex: For multiple commits or complex changes, use a subagent

IMPORTANT: Read and follow docs/processes/git_commit.md for detailed guidelines.

<worksetup_exclusion> CRITICAL: Never commit /worksetup development changes

The /worksetup command modifies these files for local development only:

  • samples/SampleApp/App.axaml (theme selection in Application.Styles block)
  • samples/SampleApp/MainWindow.axaml (TabItem IsSelected attributes)
  • samples/SampleApp/ViewModels/MainWindowViewModel.cs (SelectedScale initialization)
  • samples/SampleApp/MainWindow.axaml.cs (temporary runtime tab selection in dynamic tab insertion methods like Add...Tab())

Master branch defaults (never change these):

  • Theme: All themes commented out (automatically selects platform-appropriate theme)
    <!-- <DevolutionsMacOsTheme /> -->
    <!-- <local:MacOsClassicThemeStyle /> -->
    <!-- <local:MacOsLiquidGlassThemeStyle /> -->
    <!-- <DevolutionsDevExpressTheme /> -->
    <!-- <DevolutionsLinuxYaruTheme /> -->
    
  • Tab: IsSelected="True" on Overview tab only
  • Scale: this.SelectedScale = this.AvailableScales[0]; (System Default)
  • Runtime dynamic tabs: no temporary forced selection lines in Add...Tab() insertion methods unless intentionally committing feature behavior

Pre-commit workflow:

  1. Check if App.axaml, MainWindow.axaml, or MainWindowViewModel.cs have changes
    • Also check MainWindow.axaml.cs for temporary /worksetup runtime tab-selection lines in dynamic insertion methods (for example, AddTreeDataGridTab())
  2. If they do, verify they match the master defaults above
  3. If they DON'T match defaults:
    • First, run /worksetup Default Overview to restore defaults (all themes commented, Overview tab, Default scale)
    • For runtime-only dynamic tab worksetup, remove temporary selection lines in the relevant Add...Tab() method:
      • tabItem.IsSelected = true;
      • tabControl.SelectedItem = tabItem;
    • Create a commit with those restorations if needed: [SampleApp] Restore default theme, tab, and scale
    • Then reapply user's development settings (but don't commit them)
  4. Exclude these files from commits unless:
    • User explicitly requests committing them
    • Changes are structural (not just theme/tab/scale selection)
    • Changes involve new code/features in these files

Detection: When running git status, if you see:

M samples/SampleApp/App.axaml
M samples/SampleApp/MainWindow.axaml
M samples/SampleApp/ViewModels/MainWindowViewModel.cs

Check the actual diff. If changes are only theme toggles, IsSelected attributes, or SelectedScale array index, SKIP these files from the commit. If MainWindow.axaml.cs changes are only temporary runtime tab-selection lines used by /worksetup in dynamic insertion methods, SKIP those too. </worksetup_exclusion>

<input_processing> Optional arguments:

  • No args: Analyze all changes and create commits
  • [message]: Use specific message for single commit
  • --review-only: Analyze changes without committing

First action: Always run git status && git diff --stat </input_processing>

<quick_reference> Project Prefixes: MacOS, DevExpress, Linux, Controls, SampleApp, Claude

Read the full file on GitHub · 110 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. 2d ago First seen · 110 lines · 9 tokens per session scan A b27e7a49ac1b

Subscribe to this mod's changes

commit is a command published in the GitHub repository Devolutions/avalonia-extensions (79 stars, last pushed 4d ago), licensed MIT. It adds 9 tokens to every session and 1,137 once invoked, about $0.0000 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.