一键导入
guardian-delete-worktree
Use when the user asks Guardian to delete a worktree, orphan branch, stale branch, or explicitly abandon unmerged Guardian work.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when the user asks Guardian to delete a worktree, orphan branch, stale branch, or explicitly abandon unmerged Guardian work.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when the user asks Codex to drive the repo to the configured Guardian desired end state, such as commit, land, push, clean Guardian worktrees/branches, and safe hygiene cleanup.
Use when the user asks Codex to run Guardian workflows such as guardian status, guardian done, guardian finish, guardian recover, or worktree cleanup. Routes through the Codex Guardian adapter instead of raw git cleanup commands.
Use when the user asks Guardian to initialize, bootstrap, or write the repo-local Guardian config.
Use when the user says Guardian done, finish the job, complete the implementation, land and clean up, or asks Codex to run the normal Guardian completion workflow.
Use when the user asks Guardian to plan or apply the implementation-done cleanup workflow for redundant merged worktrees and branches.
Use when the user asks Guardian to inspect project roadmap, milestone, plan, or ULW execution evidence.
| name | guardian-delete-worktree |
| description | Use when the user asks Guardian to delete a worktree, orphan branch, stale branch, or explicitly abandon unmerged Guardian work. |
Plan explicit worktree deletion through the Guardian Codex adapter:
node <adapter-path> tool guardian_delete_worktree '{"mode":"plan"}'
Include an exact targetPath, sessionId, or branch when the user provided one. Inspect blockers, ignored files, target identity, branch, HEAD, and token posture. Apply only after explicit confirmation with mode: "apply", the same target options, and the confirm token handled by the adapter.
Use deleteBranch: true only when branch deletion is explicitly intended. Use abandonUnmerged: true only when the user explicitly confirms abandoning unmerged local Guardian work.