恢复交接

KyleMit2026-10-26查看 334复制 1781

从 docs/handoff/ 中的交接包接续进行中的工作。对照当前仓库验证该交接包,报告哪些内容已过时/缺失,删除已消费的交接包,然后继续工作。当用户说“resume”“pick up the handoff”“continue where we left off”,或指定某个交接包要接续时使用。若要编写交接包,请改用 create-handoff。

Download (.md)

📘如何使用这个技能

  1. 1
    复制技能内容·点击上方「Copy SKILL.md」复制全部内容,或 Download 下载到本地
  2. 2
    打开你的 AI 客户端·支持 Claude Code、Trae、Cursor、ChatGPT、DeepSeek、Kimi 等任意 AI 助手
  3. 3
    粘贴为系统提示/知识文件·Claude Code:放入 .claude/skills/ 目录;普通对话:作为首条消息发送并说「请严格按这份技能文档执行」
  4. 4
    直接提出你的需求·AI 会按技能定义的工作流、格式和约束来处理,无需再解释背景

💡 提示:技能生效后,每次对话只需一句需求,AI 会按 SKILL.md 的流程执行。

SKILL.md2694 chars
---
name: resume-handoff
description: Pick up in-flight work from a transfer packet in docs/handoff/. Verifies the packet against the current repo, reports what's stale/missing, deletes the consumed handoff, then continues the work. Use when the user says to "resume", "pick up the handoff", "continue where we left off", or names a handoff to resume. To write a handoff, use create-handoff instead.
---

# Resume handoff

Pick up work from a handoff packet. Your first job is **not** to continue — it is to **verify the
packet against the repo**, flag what's stale or missing, and only then proceed. Read
`docs/handoff/CLAUDE.md` for the folder conventions.

## Steps

1. **Find the handoff.** List `docs/handoff/*.md` (ignore `CLAUDE.md`).
   * **None** → tell the user there are no open handoffs and stop.
   * **One** → that's it.
   * **Several** → match the user's hint (if any) against each file's topic name *and* its
     status-line objective; a fuzzy match is fine, the user should not have to know the exact
     filename. If exactly one matches, use it. If the hint is ambiguous or absent, **ask** with
     `AskUserQuestion`, listing each open handoff as `<topic> — <date>, <objective>` so the choice
     is obvious without opening files.

2. **Read the packet and everything it points to.** Read the chosen file in full, then open the
   files, ADRs, and skills under its **Reread first** section. Check out its branch if you're not on
   it (`git fetch origin && git checkout <branch>`).

3. **Verify before continuing.** Walk the packet against reality and build a short delta:
   * **State** — do the listed commits exist on the branch (`git log --oneline`)? Are the touched
     files in the described shape? Is the PR still open?
   * **Unverified assumptions** — test each one now. This is the section most likely to have gone
     stale.
   * **Done & verified** — spot-check the cheap ones (e.g. re-run `npm run check` or the named
     `gen:*:audit`); trust the expensive ones unless something looks off.
   * Mark every item **confirmed / stale / missing**.

4. **Report the delta, then delete the handoff.** Give the user a few-line summary of what's
   confirmed and what drifted since the handoff was written. Then delete the consumed packet right
   away and commit the deletion so a later resume can't re-pick it:
   ```
   git rm docs/handoff/<topic>.md
   git commit -m "Consume handoff for <topic>"
   ```
   The packet's content now lives in this session's context; if substantial work remains when you
   stop, write a fresh handoff with the `create-handoff` skill.

5. **Proceed** with the packet's **next 3 steps**, adjusted for anything you marked stale.
来源:skillsdirectory

评论0

登录后参与评论

还没有评论,来抢沙发吧