Stage and commit the changes produced during this conversation onto the current branch. Nothing more. This is the quick "save what we just did" button.
THE RULES
- Stay on the current branch. Do NOT create, switch, or rename a branch.
Commit wherever
HEADalready points — even if that'smain. Never rungit checkout -b,git switch -c, orgit branch. - Only commit what this session changed. Stage the specific files you
created or edited in this thread by path. Do NOT
git add -A/git add .blindly — that risks sweeping in unrelated working-tree changes, untracked scratch files, or another task's edits. No overcommitting. - No push, no PR. Stop after the commit unless the user explicitly asks to push or open a PR.
- One commit for the session's work unless the user asks otherwise.
Steps
- Confirm the branch and see what's changed:
git rev-parse --abbrev-ref HEAD git status --short - Identify the exact files this session touched. If anything in
git statuswas NOT changed by this session, leave it unstaged. If it's ambiguous whether a dirty file belongs to this session, ask the user rather than guessing. - Stage by explicit path (never
-A/.):git add <file1> <file2> ... - Commit with a clear message describing what this session did. End the
message with the standard trailer:
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> - Confirm:
git log --oneline -1
Don't
- Don't create or switch branches.
- Don't
git add -A,git add ., orgit commit -a. - Don't push or open a PR.
- Don't amend or rebase prior commits.
- Don't stage files you didn't touch this session (build artifacts, other in-flight work, untracked scratch).