可恢复工作树运行
sodejm2026-10-25查看 1346复制 888
在隔离的 Git worktree 中规划并交接问题规模的工作,附带承载证据的检查点和安全的清理边界。
📘如何使用这个技能
- 1复制技能内容·点击上方「Copy SKILL.md」复制全部内容,或 Download 下载到本地
- 2打开你的 AI 客户端·支持 Claude Code、Trae、Cursor、ChatGPT、DeepSeek、Kimi 等任意 AI 助手
- 3粘贴为系统提示/知识文件·Claude Code:放入 .claude/skills/ 目录;普通对话:作为首条消息发送并说「请严格按这份技能文档执行」
- 4直接提出你的需求·AI 会按技能定义的工作流、格式和约束来处理,无需再解释背景
💡 提示:技能生效后,每次对话只需一句需求,AI 会按 SKILL.md 的流程执行。
SKILL.md1037 chars
--- name: resumable-worktree-run description: Plan and hand off issue-sized work in an isolated Git worktree with an evidence-bearing checkpoint and safe cleanup boundary. --- # Resumable worktree run Use for substantial or interruptible Git work when worktree isolation is helpful. 1. Inspect existing branches, worktrees, changes, and the intended base revision. 2. Create one clearly named branch and worktree for one workstream only when the user or project workflow authorizes it. 3. Keep a concise checkpoint containing outcome, scope, branch/worktree, base and head commits, completed validation, current step, blocker, and next action. 4. Before resuming, recheck that the worktree and hosted state still match the checkpoint; treat drift as new evidence. 5. At handoff, include exact paths and commands without private machine details in public artifacts. Never remove a worktree or branch with unique or uncommitted work. Cleanup requires fresh verification and the authority specified by the project workflow.