mx-commit

mx-commit is a skill for Claude Code from maxence2997/mx-harness. It costs 67 tokens per session (1,113 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.

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 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,113 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.00067 $0.01113
Opus 5.5 $0.00027 $0.00445
Sonnet 5.5 $0.00013 $0.00223
Haiku 4.5 $0.00007 $0.00111

Measured 24d ago against content hash 747e797153aa, 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 24d 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 · 141 lines

How it starts

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

mx-commit

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 format, type definitions, rules, and examples to follow when drafting the commit message.


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.

If all pending changes are one coherent change (single concern, one type), say so in one line and go straight to Step 4 with a single unit — no grouping analysis. Subject only, no body, when the change is trivial (typo, bump, comment); the 50-char subject limit and the type prefix still apply.

Rules:

  • A logical unit maps to exactly one commit type (feat, fix, refactor, doc, test, chore, …)
  • Files that belong to the same behaviour change belong in the same unit
  • Test files and their corresponding implementation belong in the same unit
  • Unrelated changes must be split into separate units

If changes span multiple logical units, plan the commit order (dependencies first).


Step 4 — Draft commit messages

Read the full file on GitHub · 141 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. 24d ago Changed 747e797153aa
  2. 1mo ago Changed · +14 lines · -11 tokens per session 14b9beb48d11
  3. 1mo 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 24d ago), licensed MIT. It adds 67 tokens to every session and 1,113 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

Other skills, from other repositories

antfu-create-pr

Create a reviewable GitHub pull request from the current branch with a Conventional Commits title, a concise evidence-based body, and before/after screenshots for UI changes. Use when asked to open, create, publish, or prepare a PR.

antfu/skills · 54 tokens

flag-cleanup

Weekly reusable-session feature-flag cleanup for {{targetrepo}}. Inventories every feature flag, classifies each as fully rolled out, long dead, partial rollout, or active experiment, removes the flag and the dead branch it guards on an isolated branch when the suite is green, and opens a PR — never touching a flag…

kortix-ai/suna · 74 tokens

git-workflow

Git best practices, branching strategies, commit conventions, and code review patterns.

cosmicstack-labs/mercury-agent-skills · 18 tokens

create-pr

Create pull requests following Sentry conventions. Use when opening PRs, writing PR descriptions, or preparing changes for review. Follows Sentry's code review guidelines.

agent-skills-hub/agent-skills-hub · 36 tokens

codex-review

Professional code review with auto CHANGELOG generation, integrated with Codex AI.

agent-skills-hub/agent-skills-hub · 18 tokens

implement-suggestion

Implements review-comment suggestions across one or more PRs. Multi-PR mode (default when $ARGUMENTS holds PR URLs; empty $ARGUMENTS auto-detects the active PR) resolves a worktree per PR, fetches every actionable comment from human teammates AND AI review bots (claude[bot], coderabbitai[bot], …), validates each…

mthines/agent-skills · 199 tokens