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
- Run
git status --shortto see the current changes. - Stage the changes with
git add— stage everything by default; if the user asked to commit only specific files, stage just those. - Run the
/commit-messagecommand to draft the commit message. Follow its output exactly — it defines the format, types, scopes, and style rules. - Show the drafted message to the user and ask for confirmation.
- 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-messagecommand.