Skip to content

/commit

Create git commits with user approval

Create git commits for changes made during the current session. The agent reviews changes, groups related files, drafts commit messages, and asks for confirmation.

/commit
  1. Review changes — Runs git status and git diff to understand what changed
  2. Plan commits — Groups related files and drafts commit messages
  3. Present plan — Shows the proposed commits and asks for confirmation
  4. Execute — Uses git add with specific files (never -A or .) and creates commits
  • No attribution — Commits are authored solely by you. No “Co-Authored-By” or “Generated with” lines.
  • Imperative mood — Commit messages use imperative mood (“Add feature” not “Added feature”)
  • Focused on why — Messages explain why changes were made, not just what changed
  • Atomic commits — Groups related changes together, splits unrelated changes into separate commits
  • User approval — Always asks before committing