commit · syahiidkamil — Claude Code command: what it does, how to install
Runs a background subagent to commit staged Git changes following ATLAS conventions. Useful when you want automated commits without blocking your session.
no license ★ 406 updated 2026-06-25
.claude/commands/commit.mdWhat commit does
The command triggers the Agent tool with subagent_type: commit and run_in_background: true. It commits staged files autonomously without requesting confirmation. Any unstaged workspace modifications remain untouched.
Before execution, the prompt swaps {{CURRENT_MODEL}} for the active model identity from the environment. This keeps the attribution trailer Co-Authored-By: Claude {{CURRENT_MODEL}} <[email protected]> accurate over time. If the staging area holds no changes, the process stops immediately with a notification.
Staging and committing all repository files requires /git:stage-commit instead. Because the subagent operates in the background, Claude Code acknowledges the launch and frees the prompt right away.
What it helps with
- commit staged Git files using a background subagent
- format Git commit logs under ATLAS conventions
- record active model attribution in commit trailers
- keep the interactive session unblocked during commits
Example prompts for the agent
- Run
/commiton the staged changes - Create a commit for staged files using ATLAS style
How to install commit
Manually: put the files in place
.claude/commands/commit.mdCall it with /commit. For all projects use ~/.claude/commands/
Manually: put the files in place
~/.codex/prompts/commit.mdCall it with /prompts:commit. Codex marks this format deprecated in favour of skills
Manually: put the files in place
.github/prompts/commit.prompt.mdManually: put the files in place
.gemini/commands/commit.tomlGemini stores commands as TOML: the prompt text goes into the prompt field
Questions about commit
How do I install commit in Claude Code?
Place the command specification file at .claude/commands/commit.md.
What does commit do?
It triggers an autonomous background subagent that commits staged files and records the active model in the Git trailer.
What happens if nothing is staged in Git?
The subagent halts without modifying any files in your working tree and reports that the staging area is empty.
Similar slash commands
All slash commands for Git and GitHub →commit by other authors comes first.