--- name: git-commit description: Create well-structured git commits with conventional commit messages. Use when asked to commit changes, prepare a commit, or stage and push code. license: MIT compatibility: Requires git allowed-tools: Bash(git:*) --- ## Process 1. **Run `git status`** to see all changed files. Read the output carefully. 2. **Run `git diff --stat`** to understand the scope of the change. 3. **Group related changes.** If the diff contains unrelated changes (e.g., a bug fix AND a new feature), create separate commits. Do not bundle unrelated work. 4. **Stage files intentionally.** Use `git add `, never `git add .` unless every changed file belongs in the same logical commit. 5. **Write the commit message** using Conventional Commits format: ``` ():