name: commit description: Create a git commit following project conventions. Use when asked to commit, create a commit, or finalize changes.
Create a git commit following the rules below.
Before creating any commit in this repository:
- Read
.ai/commit-message.md - Explicitly mention that you checked
.ai/commit-message.md
Workflow
- Run
git statusand review staged and unstaged changes. - Inspect diffs with
git diff --stagedandgit diffas needed. - Stage only the intended files. Prefer specific paths over broad staging.
- Check recent commits with
git log --oneline -10to match local tone and scope conventions. - Write the commit message using
.ai/commit-message.md. - Create the commit.
Notes
- If the user says
only staged filesorstaged only, review onlygit diff --staged, do not rungit addunless explicitly asked, and create the commit from the current staged set only. - Prefer scoped subjects like
<area>: <message> - Keep the subject concise and lowercase
- Focus on intent and user-visible behavior
- Avoid vague subjects like
misc fixes