git-commit
Installation
SKILL.md
Git Commit Message Generator
CRITICAL SAFETY PROTOCOL
- Absolute prohibition: Never execute
git commitin the same turn you generate the commit message. - Wait for confirmation: Output the proposed message, then stop immediately and ask the user to confirm.
- User-triggered only: Only execute the commit in the next turn if the user explicitly replies with "yes", "ok", "是", or "commit".
Perceive
- Run
git add .to stage all changes. - Run
git diff --stagedto retrieve the full staged diff. - If the staging area is empty, inform the user "No staged changes found." and stop.
Reason
Analyze the diff to determine the core intent of the changes: