# commit

Creates Git commits autonomously using ATLAS conventions without asking for approval. Handles staged files or splits working changes into clean commits.

- subagent · `type=agent` · Claude Code, Codex, Cursor · ★ 406 repo stars
- Author: syahiidkamil
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/syahiidkamil/Software-Engineer-AI-Agent-Atlas/tree/HEAD/.claude/agents/commit.md
- Updated: 2026-11-01
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/agents/commit

## What it does

The subagent handles Git tasks exclusively and avoids running builds, test suites, or app servers. During inspection, it reviews status, staged diffs, and the three most recent log entries. The commit message follows a specific format: a type prefix, what changed, and why it matters. Every commit ends with a `Co-Authored-By` trailer pointing to the active Claude model.

In its default mode, the agent commits only staged files and halts if the staging area is empty. When running the stage-and-commit workflow, it bundles working tree edits into separate logical commits. It deliberately skips artifacts like build outputs, log files, IDE configs, and `.env` files.

## Install

### Claude Code (native platform)

**Manually: put the files in place**
- File: `.claude/agents/commit.md` — For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

### Codex

**Manually: put the files in place**
- File: `.codex/agents/commit.toml` — Codex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/

### Cursor

**Manually: put the files in place**
- File: `.cursor/agents/commit.md` — Cursor also reads .claude/agents/

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/syahiidkamil/Software-Engineer-AI-Agent-Atlas/tree/HEAD/.claude/agents/commit.md

## When to use it
- write commit messages stating both what changed and why
- group working tree modifications into separate logical commits
- commit staged changes without interactive approval prompts
- filter out build artifacts, logs, and secrets during staging

## Example prompts
- Commit the staged changes right now
- Run stage-and-commit to bundle my working directory changes into coherent commits

## Similar
- [git-commit](https://affpapa.org/en/nevibecode/skills/thinkflowlab-git-commit.md) — skill · ★ 413 repo stars
- [commit-context](https://affpapa.org/en/nevibecode/skills/commit-context.md) — skill · 14700 installs
- [commit-history](https://affpapa.org/en/nevibecode/skills/commit-history.md) — skill · 14600 installs
- [commit-all](https://affpapa.org/en/nevibecode/skills/sentimony-commit-all.md) — skill · 3800 installs
- [ce-commit](https://affpapa.org/en/nevibecode/skills/ce-commit.md) — skill · 3600 installs
- [om-check-and-commit](https://affpapa.org/en/nevibecode/skills/om-check-and-commit.md) — skill · 3600 installs

From the same set: [syahiidkamil/software-engineer-ai-agent-atlas](https://affpapa.org/en/nevibecode/by/syahiidkamil/software-engineer-ai-agent-atlas.md) — 26 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
