You help the user commit and push work related to a specific task or ticket.
High-level flow
Understand the task scope.
Identify impacted files.
Stage only those files.
Show a summary and get confirmation.
Create a good commit message.
Push to the current branch.
Detailed procedure
Clarify task
If $ARGUMENTS is present, treat it as the task ID or short description (e.g. "ABC-123 user settings bug").
If $ARGUMENTS is empty, ask the user to briefly describe the task or ticket ID.
Inspect current changes
Run git status -sb.
Run git diff (for unstaged changes) and git diff --cached (for staged changes).
Present a concise summary to the user, grouped by file.
Determine impacted files
Infer which files are related to the task from filenames, paths, and diff content.
List the candidate files and ask the user to confirm or adjust the selection.
Never stage files the user has explicitly excluded.
Stage files
After confirmation, run git add <file1> <file2> ... with the confirmed list.
Avoid git add -A or git add ..
Prepare commit message
Analyze the diff for the staged files only (use git diff --cached).
Propose a concise, descriptive commit message (Conventional Commits style is preferred).
Show the proposed message and ask the user to confirm or edit it.
Create commit (requires explicit approval)
Only after the user confirms both the staged files and the commit message:
Run git commit -m "<final commit message>".
If the commit fails (e.g. hooks), show the error and ask how to proceed.
Push to remote (requires explicit approval)
Show the current branch (e.g. git rev-parse --abbrev-ref HEAD) and the configured remote (e.g. git remote -v).
Ask the user: "Do you want to push this commit to <remote>/<branch> now?"
Only if the user clearly agrees:
Run git push (or git push <remote> <branch> if necessary).
If push fails (e.g. non-fast-forward), explain the error and ask how to proceed (do NOT force-push unless the user explicitly requests it).
Safety guidelines
Never modify git configuration.
Never run force pushes (git push --force or --force-with-lease) unless the user explicitly requests it in that turn.
If anything is unclear about scope, ask the user for clarification instead of guessing.
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: interworks-tcm-manager-git-task-commit-push3description: Git Task Commit & Push4---5# Git Task Commit & Push67You help the user commit and push work related to a specific task or ticket.89## High-level flow10111. Understand the task scope.122. Identify impacted files.133. Stage only those files.144. Show a summary and get confirmation.155. Create a good commit message.166. Push to the current branch.1718## Detailed procedure19201. **Clarify task**21 - If $ARGUMENTS is present, treat it as the task ID or short description (e.g. "ABC-123 user settings bug").22 - If $ARGUMENTS is empty, ask the user to briefly describe the task or ticket ID.23242. **Inspect current changes**25 - Run `git status -sb`.26 - Run `git diff` (for unstaged changes) and `git diff --cached` (for staged changes).27 - Present a concise summary to the user, grouped by file.28293. **Determine impacted files**30 - Infer which files are related to the task from filenames, paths, and diff content.31 - List the candidate files and ask the user to confirm or adjust the selection.32 - Never stage files the user has explicitly excluded.33344. **Stage files**35 - After confirmation, run `git add <file1> <file2> ...` with the confirmed list.36 - Avoid `git add -A` or `git add .`.37385. **Prepare commit message**39 - Analyze the diff for the staged files only (use `git diff --cached`).40 - Propose a concise, descriptive commit message (Conventional Commits style is preferred).41 - Show the proposed message and ask the user to confirm or edit it.42436. **Create commit (requires explicit approval)**44 - Only after the user confirms both the staged files and the commit message:45 - Run `git commit -m "<final commit message>"`.46 - If the commit fails (e.g. hooks), show the error and ask how to proceed.47487. **Push to remote (requires explicit approval)**49 - Show the current branch (e.g. `git rev-parse --abbrev-ref HEAD`) and the configured remote (e.g. `git remote -v`).50 - Ask the user: "Do you want to push this commit to `<remote>/<branch>` now?"51 - Only if the user clearly agrees:52 - Run `git push` (or `git push <remote> <branch>` if necessary).53 - If push fails (e.g. non-fast-forward), explain the error and ask how to proceed (do NOT force-push unless the user explicitly requests it).5455## Safety guidelines56- Never modify git configuration.57- Never run force pushes (`git push --force` or `--force-with-lease`) unless the user explicitly requests it in that turn.58- If anything is unclear about scope, ask the user for clarification instead of guessing.5960---61> Converted and distributed by [TomeVault](https://tomevault.io/claim/interworks) — claim your Tome and manage your conversions.62<!-- tomevault:4.0:skill_md:2026-04-14 -->
Run npx skillmds@latest add tomevault-io/interworks-tcm-manager-git-task-commit-push in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Git Task Commit & Push It is listed under Productivity on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.