用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Bendzae/showrunner --skill commit-push-task命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | commit-push-task |
| description | Commit changes on the current branch, get them onto the task branch, and push the task branch |
| user-invocable | true |
Commit any pending changes, get them onto the task branch, then push the task branch to origin. Never push a worktree branch.
The session's startup system reminder identifies:
If the "Task branch" line is missing, abort and ask the user for the task branch name.
Two shapes, decided by that reminder:
Confirm the current branch matches the reminder — the worktree branch if you have one, otherwise the task branch:
git rev-parse --abbrev-ref HEAD
If it does not match, abort and report the mismatch.
Check for uncommitted changes:
git status --porcelain
If there are changes, stage and commit them on the current branch:
git add -A
git commit -m "<short message describing the change>"
Choose a concise, conventional commit message based on the diff. Do NOT include any "Generated by" / co-author trailers.
Find where the task branch lives:
git worktree list --porcelain
The entry with branch refs/heads/<task-branch> gives that worktree's path; the first entry is the main repository.
Get your commits onto the task branch:
git -C <task-branch-worktree> merge --ff-only <worktree-branch>
git -C <main-repo-path> fetch . <worktree-branch>:<task-branch>
The fetch . src:dst form fast-forwards <task-branch>; it refuses to run when the update would not be fast-forward.If this fails, abort and report. Do NOT force, rebase, or merge non-ff without explicit user confirmation. The two common causes:
m) instead;Push only the task branch:
git -C <main-repo-path> push origin <task-branch>
Do NOT push a worktree branch. Do NOT use --force or --force-with-lease unless the user explicitly asks.
Report a one-line summary: commit SHA (if a new commit was made), task branch updated to that SHA, and push result.
--no-verify. Report the failure and stop.