boss-skill icon indicating copy to clipboard operation
boss-skill copied to clipboard

考虑 增加一个专门 操作 git 的skill

Open haifding opened this issue 10 months ago • 1 comments

考虑 增加一个专门 操作 git 的skill

干完了某个小任务后,用 git 提交到本地,进行记录。

每个阶段,最后都触发一下 git 提交

haifding avatar Feb 01 '26 03:02 haifding

这个需求目前已经通过 WIP checkpoint 覆盖,先关闭:

  • SubagentStop 钩子会在每个阶段 agent 结束后运行 scripts/hooks/wip-checkpoint.js,对工作区做一次可恢复的 git stash 检查点(stash 后立刻 apply,工作区保持原样,stash 条目作为存档,可用 git stash list 查看)。
  • 检查点记录在 .boss/<feature>/.meta/wip-checkpoints.json,保留最近 10 条。

之所以用 stash 而不是直接 commit,是为了不污染用户自己的提交历史。runtime 里保留了 commit / branch 策略的实现,后续有需要可以通过配置暴露出来;如果确实需要 commit 策略,欢迎再开一个 issue 说明场景。

echoVic avatar Sep 18 '26 15:09 echoVic