Commit Work
This skill commits all uncommitted changes on the current branch with a well-crafted commit message derived from the actual changes. It handles staged, unstaged, and untracked files, confirming with the user before adding untracked files.
When This Skill Applies
This skill activates when the user's request involves:
- Committing current work or changes
- Saving progress to the branch
- Creating a commit from working directory changes
- "Commit my work", "commit everything", "save my changes"
How to Execute
Invoke the /commit_work command. No arguments required.
- Checks for uncommitted changes (staged, unstaged, untracked)
- If untracked files exist, asks the user to confirm they should be included
- Stages the appropriate files
- Analyzes the diff to generate a descriptive commit message
- Commits to the current branch