← Primitives
command Workflow updated 2026-06-15

/commit command

A slash command that writes a clean commit from the staged diff.

markdown

description: Write a commit message from the staged diff and commit.

Read the staged diff with git diff --cached. Write a commit message:

  • First line: imperative, under 60 characters, no trailing period.
  • Body: why the change exists, not a restatement of the diff. Wrap at 72.
  • No AI tells in the message. No em dashes.

Show me the message, then commit on my confirmation. Never commit secrets or unrelated files.

Used in

Raw text: /primitives/commit-command.txt