commit-work
Commit Work
Turn the requested work into coherent commits, accounting for everything in scope and verifying what Git actually recorded.
Establish the batch from current work
An unrestricted commit request covers all staged, unstaged, and non-ignored untracked changes in the selected repository and worktree, including other tasks. Do not ask again merely because a change came from another session. Honor explicit file, task, or staged-only restrictions. For message-only requests, leave Git unchanged; for stage-only requests, prepare and verify the index without committing.
On every invocation or resume, inspect the repository, branch, HEAD when present, status, staged and unstaged diffs, and untracked contents. Read enough surrounding code and history to understand each change; memory and old reports cannot replace current evidence. Follow repository instructions and exclusions. Never commit secrets; identify withheld paths and reasons without exposing sensitive values. Resolve factual uncertainties directly; ask only for a necessary unresolved choice.