commit
Installation
SKILL.md
Stage files and create commits following conventional commit standards. Analyzes the diff to determine the appropriate commit type, scope, and message. Supports granular commits (splitting unrelated changes into separate commits).
Workflow
-
Check state — Run
git statusandgit diff --statto see all changes (staged + unstaged + untracked). -
Analyze changes — Read the diff to understand:
- What files changed and in what areas
- Whether changes are related or should be split into multiple commits
- The nature of each change (new feature, bug fix, refactor, docs, test, chore)
-
Determine commit strategy:
- If all changes are related → single commit
- If changes span unrelated areas → suggest splitting into granular commits
- Ask the user if unsure about grouping
-
Stage files —
git addthe relevant files for each commit. Stage specific files by name, notgit add -Aorgit add .. -
Draft commit message — Follow conventional commit format: