Commit Work
Message shape and style follow the git-conventions skill.
Workflow
- Inspect staged changes first:
git diff --staged --stat, then the diff itself. When nothing is staged, inspectgit status --shortand the working-tree diff, and name what you would stage. - Check
git log --oneline -10for scope and phrasing precedent. - Write the first line as
type(scope): description. Add a body only when the why is not obvious from the diff; wrap it near 90 columns and use repeated-mflags or--fileso paragraphs stay separate. - Recommend a split only when the diff contains clearly unrelated changes.
- Commit when the user asked for a commit; otherwise deliver the message and the staging suggestion.
Guardrails
- Stage files only when the user asks.
- Run the repo's fast checks before committing when they exist; let hooks run and report a failure instead of bypassing it.
- Describe the change itself; plan and milestone context stays out of the message.
Output
The commit SHA and first line, or the proposed message plus what to stage.