mx-commit

mx-commit is a skill for Claude Code from maxence2997/mx-harness. It costs 69 tokens per session (1,330 once invoked), scanned A, original, MIT.

A tool for turning pending code changes into commits, which are saved checkpoints in a version-control system. It groups changes by logical purpose and follows the project’s commit-message rules.

In plain words
What is it for?
Inspecting staged and unstaged changes, splitting them into separate logical commits, checking for secrets, and committing interactively or automatically.
Why use it?
It keeps unrelated changes from being mixed together and produces commit messages with a consistent format.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

Good fit Inspecting staged and unstaged changes, splitting them into separate logical commits, checking for secrets, and committing interactively or automatically.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/maxence2997/mx-harness/mx-commit
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.

Any agent
npx skills add maxence2997/mx-harness --skill mx-commit
Clone the repo
git clone --depth 1 https://github.com/maxence2997/mx-harness

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 mx-commit

README.md
[![agentmods](https://agentmods.dev/badge/skills/maxence2997/mx-harness/mx-commit/github.svg)](https://agentmods.dev/skills/maxence2997/mx-harness/mx-commit)
Your own site
<a href="https://agentmods.dev/skills/maxence2997/mx-harness/mx-commit"><img src="https://agentmods.dev/badge/skills/maxence2997/mx-harness/mx-commit/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 mx-commit

Your own site · 80×15
<a href="https://agentmods.dev/skills/maxence2997/mx-harness/mx-commit"><img src="https://agentmods.dev/badge/skills/maxence2997/mx-harness/mx-commit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,330 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.00069 $0.01330
Opus 5.5 $0.00028 $0.00532
Sonnet 5.5 $0.00014 $0.00266
Haiku 4.5 $0.00007 $0.00133

Measured 10d ago against content hash 50bd4e1a3dc8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mx-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 10d 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.

mx-commit/SKILL.md · 152 lines

How it starts

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

mx-commit

Auto-update

Unless another mx-* skill invoked this one, run bash "$HOME/.mx/.mx-harness-install.sh" --auto-update before anything else, if that file exists. It always exits 0 and prints nothing when there is no news. Show the user anything it prints. If the output starts with mx-harness updated, re-read this SKILL.md. Then continue with the skill; do not run the command again during this skill run, even if it reported a failure.

Trigger

/mx-commit          # interactive — shows the drafts and waits for approval
/mx-commit --auto   # non-interactive — commits all units immediately

Use --auto when invoked from an orchestrating skill (e.g. mx-flow). Use the default when invoked directly by the user.


Hard Rules (never violate)

  • Never use --no-verify or --no-gpg-sign unless the user explicitly requests it.
  • Never amend a commit that has already been pushed.
  • Never commit files that likely contain secrets (.env, credentials, private keys).

Step 1 — Load commit message rules

Read references/commit-message.md (located in the same directory as this SKILL.md). This file contains the default format, type definitions, rules, and examples to follow when drafting the commit message.

Then check whether the repository documents its own commit convention: a section on commit messages in CLAUDE.md, AGENTS.md or CONTRIBUTING.md at the repo root, or in .github/CONTRIBUTING.md. Where it differs from the defaults (subject format or length, body style, types, language), follow the repository, and keep the defaults for anything it leaves unsaid. Say which file you followed.


Step 2 — Inspect all pending changes

git status
git diff          # unstaged
git diff --staged # staged

If there are no changes at all (nothing staged, nothing modified), tell the user and stop.


Step 3 — Group by logical concern

Analyse all pending changes (staged and unstaged together) and group them into one or more logical units. A logical unit is a set of files that together represent exactly one coherent change with a single type.

Read the full file on GitHub · 152 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 10d ago Changed · +11 lines · +2 tokens per session 50bd4e1a3dc8
  2. 2mo ago Changed 747e797153aa
  3. 2mo ago Changed · +14 lines · -11 tokens per session 14b9beb48d11
  4. 3mo ago First seen · 127 lines · 78 tokens per session scan A 21e0ae492ad1

Subscribe to this mod's changes

mx-commit is a skill published in the GitHub repository maxence2997/mx-harness (5 stars, last pushed 10d ago), licensed MIT. It adds 69 tokens to every session and 1,330 once invoked, about $0.0003 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-31.

Related

mx-commit compared with skills from other repositories

mx-commit next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mx-commitmaxence2997/mx-harnessSkill510d agoMITA69Claude Code
antfu-create-prantfu/skillsSkill6.1k5d agoMITA54Claude Code, Codex
flag-cleanupkortix-ai/sunaSkill21k3d agononeA74Claude Code, Codex
create-pragent-skills-hub/agent-skills-hubSkill138yesterdayMITA36Claude Code, Codex
codex-reviewagent-skills-hub/agent-skills-hubSkill138yesterdayMITA18Claude Code, Codex
daily-retroserejaris/personal-corp-osSkill251todayMITA126Claude Code
implement-suggestionmthines/agent-skillsSkill22yesterdayMITA87Claude Code