| description | Draft a Conventional Commit message from the staged git diff. |
|---|
Draft a commit message for the currently staged changes.
Steps:
- Run
git diff --staged. If empty, rungit status --shortand tell the user nothing is staged — stop. - Summarize the diff into a Conventional Commit:
type(scope): summary. - Use
typefrom:feat,fix,refactor,docs,test,chore,perf,build,ci. - Keep the summary line under 72 chars, imperative mood, no trailing period.
- Add a short body only if the diff spans multiple concerns — bullet the key changes.
- Never add a co-author line or attribute the commit to an AI tool.
Output:
Outcome:
Message:
Next Step: