Generate a commit message for the currently staged changes.
Steps:
- •Run
git diff --stagedto see what's staged. If nothing is staged, tell the user and stop. - •Analyze the changes — what was added, modified, or removed and why.
- •Write a commit message following the Conventional Commits format:
code
<type>(<scope>): <short summary> <optional body explaining the "why">
- •Use the appropriate type:
feat,fix,refactor,docs,test,chore,style,perf,build,ci.
If $ARGUMENTS is provided, treat it as hints about the type or scope (e.g., fix auth means it's a fix in the auth scope).
Output only the commit message — no extra commentary. The user can then copy it or ask you to commit with it.