Automatically add all changes, commit with generated message, and push to GitHub. Quick workflow for saving and syncing all your work.
Automatically save all your changes and push them to GitHub with a single command.
When /save is invoked:
Check Status: Run git status to see all untracked and modified files
Analyze Changes: Run git diff to understand what changed
Review Commit History: Run git log -5 --oneline to understand the project's commit message style
Generate Commit Message: Based on the diff analysis, create a concise commit message that:
Stage All Changes: Run git add . to stage all changes
Create Commit: Run `git commit -m "$(cat <<'EOF' [Generated or provided message]
Co-Authored-By: Claude Sonnet 4.5 noreply@anthropic.com EOF )"`
Push to Remote: Run git push to push changes to remote repository
Confirm Success: Run git status to verify everything was pushed successfully
/save
Or with a custom commit message:
/save "Add new feature for user authentication"
If any step fails: