Purpose and inputs
Invocation requests a commit. Inspect staged and unstaged changes and the authorized task scope before staging anything. Use the default global Git identity and repository commit rules; never bypass hooks or add attribution trailers.
Steps
- Inspect the diff and distinguish task-owned changes from unrelated work, including pre-staged files. If the intended commit cannot be separated safely, clarify the file scope.
- Check required validation evidence and documentation updates. Resolve failures caused by this task; report unrelated blockers honestly.
- Stage explicit task-owned paths or hunks. Do not sweep unrelated or untracked work into the commit with a blanket add.
- Write a Conventional Commit: lowercase type/scope, imperative summary of at most 60 characters, no period. Follow repository-specific scope conventions.
- Commit with hooks enabled; inspect the result and remaining working tree.
Verification and handoff
- Commit contains only the intended change and passes required hooks.
- Documentation and validation evidence describe that change.
- Unrelated work remains intact.
Return commit ID and concise scope. A commit request alone does not authorize pushing.