agent-commit

agent-commit is a skill for Claude Code, Codex from majiayu000/claude-skill-registry. It costs 22 tokens per session (823 once invoked), scanned A, original, MIT.

An internal Git workflow tool that examines file changes and creates a commit with a meaningful message and agent authorship.

In plain words
What is it for?
Use it to check repository status, inspect diffs, summarize changes, and create commits for completed skill output.
Why use it?
It removes the manual work of reviewing uncommitted changes and writing a suitable commit message after another skill runs.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

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 skills/majiayu000/claude-skill-registry/agent-commit
Any agent
npx skills add majiayu000/claude-skill-registry --skill agent-commit
Clone the repo
git clone --depth 1 https://github.com/majiayu000/claude-skill-registry

Made for: Claude Code, Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/majiayu000/claude-skill-registry/agent-commit.svg)](https://agentmods.dev/skills/majiayu000/claude-skill-registry/agent-commit)
Your own site
<a href="https://agentmods.dev/skills/majiayu000/claude-skill-registry/agent-commit"><img src="https://agentmods.dev/badge/skills/majiayu000/claude-skill-registry/agent-commit.svg" alt="Measured on agentmods" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 823 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.1 $0.00022 $0.00823
Opus 5 $0.00011 $0.00411
Sonnet 5 $0.00004 $0.00165
Haiku 4.5 $0.00002 $0.00082

Measured 2d ago against content hash 340551cc9415, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

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

skills/agent/agent-commit/SKILL.md · 109 lines

How it starts

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

Agent Commit

Creates a git commit with meaningful message based on skill output and actual file changes.

When to Use

This skill is called automatically by evolve_loop.py after a content-modifying skill completes. It is not intended for manual invocation.

Input

You will receive:

  1. The name of the skill that just ran
  2. A summary or excerpt of that skill's output

Instructions

1. Check for Changes

Run git status --porcelain to see if there are uncommitted changes.

If there are no changes, output "No changes to commit" and stop.

2. Analyze the Changes

Run git diff (or git diff --cached if files are staged) to understand what was modified.

Focus on:

  • Which files were changed (especially content files in obsidian/)
  • The nature of the changes (new content, edits, deletions)
  • Key themes or topics affected

3. Generate Commit Message

Create a commit message with a summary line and body:

<type>(<skill>): <summary>

<body>

Summary line (required, under 72 chars):

  • <type> is one of: feat, fix, refine, research, chore
  • <skill> is the skill name (e.g., deep-review, condense, expand-topic)
  • <summary> describes WHAT was done and to WHICH file(s)
  • File paths must include parent directory (e.g., topics/free-will.md not just free-will.md)

Body (required for content changes):

  • 2-5 bullet points summarizing key changes
  • For condense: before/after word counts, what was cut vs preserved
  • For deep-review: what issues were found and fixed
  • For expand-topic: key themes covered
  • For research: sources consulted, main findings

Good examples:

refine(condense): reduce topics/free-will.md from 9567 to 2985 words

- Cut quantum Zeno redundancy (7+ mentions → 1 via link)
- Removed extended sections on altered states, process philosophy
- Preserved core phenomenology arguments and Mary's Room
- Kept tenet connections and cross-links intact
refine(deep-review): improve clarity in concepts/qualia.md

- Fixed circular definition in opening paragraph
- Added concrete examples for inverted spectrum argument
- Strengthened connection to hard problem article

Read the full file on GitHub · 109 lines

Files

What ships with it

1 file 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. 2d ago First seen · 109 lines · 22 tokens per session scan A 340551cc9415

Subscribe to this mod's changes

agent-commit is a skill published in the GitHub repository majiayu000/claude-skill-registry (592 stars, last pushed yesterday), licensed MIT. It adds 22 tokens to every session and 823 once invoked, about $0.0001 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-09-03.