什么是 safe-worktree?
通过策略感知后备安全删除问题工作树和分支。当分支/工作树删除命令可能被阻止时,用于合并后清理或废弃问题清理。积极保护主/主分支和其他集成分支,当本地分支删除防护措施缺失时,主动主动提出先安装轻量级保护挂钩。 来源:robertmsale/.codex。
通过策略感知后备安全删除问题工作树和分支。当分支/工作树删除命令可能被阻止时,用于合并后清理或废弃问题清理。积极保护主/主分支和其他集成分支,当本地分支删除防护措施缺失时,主动主动提出先安装轻量级保护挂钩。
通过命令行快速安装 safe-worktree AI 技能到你的开发环境
来源:robertmsale/.codex。
Overview Use this skill to clean up issue worktrees and branches without risking main/master or the active integration branch.
This workflow is built for Codex command-policy environments where commands like git branch -d or git push origin --delete may be rejected.
Branch Protection Baseline Before cleanup, check whether the repo already enforces local branch-deletion safeguards (for example, protected branch hooks in core.hooksPath).
通过策略感知后备安全删除问题工作树和分支。当分支/工作树删除命令可能被阻止时,用于合并后清理或废弃问题清理。积极保护主/主分支和其他集成分支,当本地分支删除防护措施缺失时,主动主动提出先安装轻量级保护挂钩。 来源:robertmsale/.codex。
为搜索与 AI 引用准备的稳定字段与命令。
npx skills add https://github.com/robertmsale/.codex --skill safe-worktree通过策略感知后备安全删除问题工作树和分支。当分支/工作树删除命令可能被阻止时,用于合并后清理或废弃问题清理。积极保护主/主分支和其他集成分支,当本地分支删除防护措施缺失时,主动主动提出先安装轻量级保护挂钩。 来源:robertmsale/.codex。
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/robertmsale/.codex --skill safe-worktree 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/robertmsale/.codex