Before starting any task, read and follow
Commits unstaged changes by grouping them into logical micro-commits using the git-operations-specialist skill.
Analyze all unstaged changes and execute multiple micro-commits, grouping related changes together.
-
Check Current Status: Run
to identify all unstaged changes
-
Group Changes by Context: Analyze the changes and group them logically:
- By File Type: Group similar file types (e.g., all TypeScript files, all config files)
- By Feature: Group files that implement the same feature
- By Layer: Group by architectural layer (e.g., API changes, frontend changes, database changes)
- By Purpose: Group by purpose (e.g., new features, bug fixes, refactoring, configuration)
-
Create Micro-Commits: For each logical group:
- Stage only the files in that group using
- Create a focused commit with a clear message
- Verify the commit was successful
-
Commit Message Guidelines:
- Follow the template format
- Use appropriate commit type prefixes: , , , , , ,
- Each commit should describe ONE logical change
-
Final Verification: After all commits, run
to confirm no changes remain unstaged