Commit

Stage the current changes and create a git commit with a conventional commit message. Use when committing, saving, or recording changes to git — e.g. "commit my changes", "stage and commit", "create a commit". Do NOT use for only drafting a commit message without committing (that is the commit-message command), or for pushing or amending commits.

christiangalsterer 0f8c41e 1.4 KB Updated

File contents

Commit

Stage the current changes and create a git commit. All commit message formatting rules (types, scopes, subject/body conventions) are defined in the commit-message command — do NOT duplicate them here. This skill only adds staging and committing on top.

Steps

  1. Run git status --short to see the current changes.
  2. Stage the changes with git add — stage everything by default; if the user asked to commit only specific files, stage just those.
  3. Run the /commit-message command to draft the commit message. Follow its output exactly — it defines the format, types, scopes, and style rules.
  4. Show the drafted message to the user and ask for confirmation.
  5. On confirmation, create the commit with git commit -m "<message>". Quote the message safely and do not append any Co-Authored-By line.

Rules

  • Do NOT push the commit unless the user explicitly asks.
  • Do NOT amend existing commits.
  • Do NOT invent commit message rules — defer to the commit-message command.

christiangalsterer/claude-git-plugin/tree/main/skills/commit commit 0f8c41e307

Frequently asked questions

npx skillmds@latest add christiangalsterer/commit