# Commit

> Commit all uncommitted changes with an auto-generated conventional commit message. Use when the user asks to commit, save changes, or invokes /commit.

- Skill: `driangle/commit` (Agent Skill)
- Install (CLI): `npx skillmds@latest add driangle/commit`
- Raw SKILL.md: https://api.skillmd.com/api/skills/driangle/commit/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Productivity
- Author: driangle (https://skillmd.com/u/driangle)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/driangle/commit

---


# commit

Stage and commit all uncommitted changes using an auto-generated commit message.

## Steps

1. Run `git status --short` to check for uncommitted changes (staged and unstaged). If there are no changes, inform the user there is nothing to commit and stop.
2. Run `git add -A` to stage all changes.
3. Invoke the `/commit-msg` skill to generate a conventional commit message from the staged diff.
4. Create the commit using the generated message:
   ```
   git commit -m "<message>"
   ```
   Append the co-author trailer:
   ```
   Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
   ```
5. Run `git status` after committing to confirm success.
6. Show the user the commit hash and message.

## Notes

- If `$ARGUMENTS` is non-empty, use it as the commit message directly instead of invoking `/commit-msg`.
- Do NOT push to a remote. Only commit locally.

