Git Commit
Review all staged changes and create a well-crafted commit message.
Steps
- Run
git statusto see staged and unstaged changes - Run
git diff --cachedto review staged changes in detail - If nothing is staged, run
git diffand suggest what to stage based on the changes - Run
git log --oneline -5to see recent commit message style in the repo - Draft a concise commit message following conventional commits format:
feat:— new featurefix:— bug fixrefactor:— code restructuring without behavior changedocs:— documentation changestest:— adding or updating testschore:— build, tooling, config changes
- Focus the message on why not what — the diff shows what changed
- Keep the first line under 72 characters
- Add a body paragraph if the change is non-trivial
- Create the commit
Do NOT push unless explicitly asked. Do NOT use --no-verify or skip hooks.
$ARGUMENTS