Commit
Quick checks:
!git status
!git diff --cached
Create a concise conventional commit based on staged changes. Follow repo conventions: no Co-Author-By, no "Generated with" tags, present tense, no trailing period, keep description under 50 chars, omit scope unless it adds clarity. Use minimal messages for tiny changes.
Workflow
- •Review staged changes (run the quick checks above).
- •If nothing is staged, auto-stage based on context:
- •Prefer files mentioned by the user in the current request.
- •Include files modified in this session that are directly related to the task.
- •If multiple unrelated areas are modified and the user didn’t scope it, ask before staging.
- •Avoid staging unrelated changes. Do not stage generated files unless they are the expected output.
- •Decide the commit type from changes:
- •
feat,fix,docs,style,refactor,chore,test,build,ci.
- •
- •Compose the message:
- •Small changes:
type: short(e.g.,fix: typo). - •Normal changes:
type(scope): descriptionwhen scope helps clarity.
- •Small changes:
- •Commit with
git commit -m "...".
Guardrails
- •Be concise; avoid bodies unless needed for complex changes.
- •Prefer
type: descriptionover verbose phrasing. - •Do not amend or add co-author lines unless explicitly requested.