Trigger
When the user asks to commit changes or invokes /commit.
Rules
- Stage only relevant files by explicit path (never
git add -Aorgit add .) - Use conventional commit format:
<type>(<scope>): <description> - Do NOT include any Co-Authored-By trailer in the commit message
- Do NOT push unless explicitly asked
- Run
./scripts/post-edit-check.shbefore committing if code edits were made
Commit Message Format
<type>(<optional scope>): <short description>
<optional body>
Types: feat, fix, docs, style, refactor, test, chore, ci, perf
Process
- Run
git statusandgit diff --statto review changes - If no files are staged, stage the relevant files by explicit path
- Draft a concise commit message summarizing the changes
- Create the commit via
git commit -m "..."using a HEREDOC — no Co-Authored-By line - Show the commit result with
git log --oneline -1