Skip to content
Skill

Autocommit

Splits working tree changes into grouped Conventional Commits, one purpose each

Autocommit is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
44
Last commit
License
Apache-2.0
Listing updated

Similar skills

About Autocommit

This skill guides an agent through turning uncommitted work into a series of focused git commits instead of one large commit. It has the agent check staged, unstaged and untracked changes, look for an issue key in the branch name, and group files or individual hunks by intent such as a fix, feature, refactor, test update or dependency bump.

For each group the agent stages only that subset, reviews the staged diff, and writes a Conventional Commit message using a fixed set of types (feat, fix, docs, refactor, ci, build and others) with an optional scope. The instructions set message rules such as an imperative, capitalized summary under 72 characters, and they list safety exclusions like secrets, .env files, tokens, debug logs and build artifacts.

The skill works entirely through standard git commands and needs no scripts or extra tools. It expects a git repository with changes to commit. When finished, the agent reports the commits it made, any files it left uncommitted, and anything skipped for safety.

When your agent uses it

Create semantic conventional commits from the working tree, grouped by purpose. Use when committing changes, organizing git history, or the user invokes autocommit.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (6 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

Copy the skill folder to ~/.claude/skills/autocommit to use it in all your projects:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/redhat-cop/babylon.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/autocommit &&
cp -R "$tmp/.agents/skills/autocommit" ~/.claude/skills/autocommit &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/autocommit inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/autocommit to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/redhat-cop/babylon.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/autocommit &&
cp -R "$tmp/.agents/skills/autocommit" ~/.agents/skills/autocommit &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/autocommit inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/autocommit to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/redhat-cop/babylon.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/autocommit &&
cp -R "$tmp/.agents/skills/autocommit" ~/.cursor/skills/autocommit &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/autocommit inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/redhat-cop/babylon.git --path .agents/skills/autocommit

Or copy the folder to ~/.gemini/skills/autocommit yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/autocommit:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/redhat-cop/babylon.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/autocommit &&
cp -R "$tmp/.agents/skills/autocommit" ~/.copilot/skills/autocommit &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/autocommit inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/redhat-cop/babylon.git

Then copy babylon/.agents/skills/autocommit into your agent's skills folder as autocommit. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Semantic change grouping
Sorts modified, staged and untracked files and hunks into groups by the purpose each change serves.
Conventional Commit messages
Builds commit subjects using standard types and optional scopes such as feat, fix or ci.
Issue key detection
Reads the current branch name for an issue key and adds it to related commits, without inventing one.
Staged diff verification
Reviews each staged diff before committing and unstages anything unrelated to the group.
Safety exclusions
Keeps secrets, credentials, .env values, debug logs and temporary files out of commits.
Commit message rules
Enforces a short imperative summary, a capitalized subject and no vague wording like wip or misc.

Good for

  • Split a day's mixed edits into separate feature, fix and test commits
  • Tidy up a branch's uncommitted work before opening a pull request
  • Commit dependency updates separately from UI changes
  • Add a Conventional Commit message that includes the ticket key from the branch

Autocommit FAQ

Does the skill commit everything automatically?

It stages and commits group by group, checking each staged diff first. It may leave ambiguous or unsafe changes uncommitted and ask the user what to do with them.

Does Autocommit need any scripts or extra tools?

No scripts are included. It relies on standard git commands such as status, diff, add, restore and commit.

How does Autocommit pick the issue key?

It checks the current branch name and surrounding context for a clear key such as PROJ-123 or #123. If none is found, it commits without one.

Can the agent invoke Autocommit on its own?

The skill is marked to be invoked by the user, so it runs when a user calls autocommit or asks for committing or history organizing.

How do I install Autocommit in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/autocommit to use it in all your projects, or to .claude/skills/autocommit in one project.

Does Autocommit run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Autocommit?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Autocommit?

The closest alternatives to Autocommit are Conventional commit, Git commit, Conventional commit, Commit and Git commit.

Where this comes from

  • Description: from the skill's own SKILL.md.