Commit Work

Commit all uncommitted changes to the current branch with an auto-generated commit message. If untracked files exist, asks the user to confirm before including them. Use when the user asks to "commit my work", "commit changes", "save my progress", "commit everything", or wants to commit current changes.

andrewjmorrell Updated

File contents

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.

  1. Checks for uncommitted changes (staged, unstaged, untracked)
  2. If untracked files exist, asks the user to confirm they should be included
  3. Stages the appropriate files
  4. Analyzes the diff to generate a descriptive commit message
  5. Commits to the current branch

andrewjmorrell/codex-skills/tree/main/skills/commit_work commit ca873cab08

Frequently asked questions

npx skillmds@latest add andrewjmorrell/commit-work