一键导入
commit-sync
Use when the user asks for "commit-sync", "checkpoint", or "sync to origin" to pause the active task and commit/push dirty repo state to origin.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when the user asks for "commit-sync", "checkpoint", or "sync to origin" to pause the active task and commit/push dirty repo state to origin.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | Commit Sync |
| description | Use when the user asks for "commit-sync", "checkpoint", or "sync to origin" to pause the active task and commit/push dirty repo state to origin. |
| version | 0.1.0 |
Pause the active task first. Report the repo-scope dirty tree with git status --short --untracked-files=all, the current branch, and the origin remote via git remote get-url origin. Wait for explicit acknowledgement from the user before staging, committing, or pushing.
After acknowledgement, stage the full dirty tree with git add -A -- ., commit the complete scope, capture the commit SHA with git rev-parse HEAD, and push with git push origin HEAD:<current-branch>. Report the push result and the final clean/dirty status.
Never force push, rewrite history, rebase, reset, or discard unrelated user changes.