Handover 标志

Handover

社区
randommonicle
handover

Produce a structured handover note when the context window fills or the user asks to wrap up. Take the real percentage from /context or, in the Claude desktop app, the get_usage tool; never estimate, and where neither exists record the gap verbatim rather than inventing a figure. Triggers when the context band reaches amber or red, when the user says "wrap up", "handover", or "hand off", or before deliberately ending a long working session.

概览

发布者randommonicle
代码仓库claude-skills
技能名称handover
星标数
27
复刻数
3
附带文件
仅含指令
许可协议Apache-2.0
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 randommonicle 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Handover AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/randommonicle/claude-skills/tree/main/handover
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/randommonicle/claude-skills.git /tmp/claude-skills
mkdir -p .claude/skills
cp -r /tmp/claude-skills/handover .claude/skills/handover
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Handover,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Handover。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Handover 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Handover note

The global operating rules define context bands: green below 50%, yellow 50 to 65%, amber 65 to 75%, red above 75%. At yellow, mention the reading and keep commits small with explicit scope cuts. At amber, take no new work units. At red, stop and hand over. This skill defines what the handover contains and how to produce it.

When this applies

  • The context band reaches amber or red.
  • The user says "wrap up", "handover", "hand off", or similar.
  • A long session is ending deliberately and the next session needs to resume cleanly.

Step 1: measure, never estimate

Run /context first and use the real figure. Do not guess or estimate the percentage. Run /context and use the figure it returns. The whole point of the bands is that the decision to wrap is made on a real reading, not a feeling.

In the Claude desktop app the agent cannot type /context, but the reading is one tool call away: mcp__ccd_session_mgmt__get_usage with session_id: "self". It is usually deferred, so load it through ToolSearch first. Its context.percentUsed is the reading; the same call reports the plan's 5-hour and weekly limits, which matter when several sessions run at once. On 2026-09-24 a desktop session wrote the gap line below into a handover while this tool sat in its deferred list, and the user had to supply the 38 % reading. Search the deferred tools for "context usage" before declaring a gap.

Where neither /context nor a usage tool is available (a non-interactive orchestrator or headless session), an honest gap is the reading. Write "no reading: /context unavailable in this harness" verbatim into the note's wrap-up context, never an invented or estimated percentage, and make the band decision from the harness's own signals (context-compaction warnings, summarisation system reminders). Five consecutive sessions on one project (2026-07-31 to 2026-08-12) wrote that gap into prose and re-declared this rule change due before the rule caught up with the harness it actually runs in.

Step 2: the handover note

A fixed shape, so the next session can read it once and resume:

  1. Session goal. One line: what this session set out to do.
  2. Branch and worktree. The working branch, and the worktree path if non-standard. The next session starts on main by default and otherwise has to rediscover this from git log.
  3. What landed. Commits and PRs with sha and a one-line description each. Mark each as verified or unverified.
  4. In flight. What is half-done, with exact file:line ranges, not bare paths. Enough that the next session can open the file at the right place.
  5. Deferred items. Every item deferred this session, each with its grep anchor, per the flag-deferred-items skill. The note records where the anchor was planted.
  6. Verification still outstanding. Migration catalog queries to run, smokes to run, post-rollout checks not yet done.
  7. Blockers and open questions. Anything waiting on a decision or an external answer.
  8. Next actions. Ordered and concrete. Each is a single first step, not a theme.
  9. Traps and working agreements. Project-specific gotchas surfaced this session, plus standing rules that bit or nearly bit (confirm before push, money is pounds not pence, grep the live schema rather than trusting handover docs).

Dates are absolute, not relative. Money is stated in pounds.

Where the project keeps a checkpoint log (per the checkpoint-log skill), synthesise items 3, 4, and 5 from the log rather than from memory; the log is the record, the handover is the digest.

Every diagnosis and causal claim in the note carries a confidence marker: verified, with the command or evidence that proved it, or unverified. The note opens with one line: "diagnoses in this note are unverified unless marked". A recommendation built on an unverified diagnosis inherits the marker. The incident behind this (2026-07-20): a second-order claim about a fix, reasoned from structure rather than probed, was written into a migration header and DECISIONS as fact, and a reader had no way to tell asserted from proven until a smoke forced the correction.

Step 3: persist it

Write the note to the project's handover location, or to DECISIONS.md / LESSONS_LEARNED.md where an item qualifies for those. If no handover location is established, write to HANDOVER.md in the project root. Append; do not overwrite. The history of handovers is itself useful, and an overwrite loses the trail. If something this session qualifies as a documented decision or a lesson learned, prompt to record it.

In a project that keeps team/NOW.md (the team-loop skill), every session end overwrites NOW.md from team-loop/templates/NOW.md, at most 40 lines: item 1 as its topic:, item 8's first step as next:, and items 2 to 6 and 9 under its headings, with landed commits still marked verified or unverified and its branches: and ask: lines current. Git keeps the trail, so the overwrite loses nothing. Item 7's open questions go to the project's Ask queue, not into NOW.md. That replaces the appended note for a routine end, amber-band wrap-ups included. An unusual end also gets a dated docs/HANDOVER_<topic>_<date>.md in the full shape above: the red band, a crash or forced stop, a move to another machine, or a scheduled run stopped by a usage limit. Steps 1, 2 and 4 apply either way.

Then get the note committed before the session ends, with the user's per-action yes. A note left untracked reaches neither the other machine nor the next reader's git log, and it is invisible to the session that resumes from a different checkout. On 2026-09-14 four handover and review notes from three sessions were found untracked in this library's docs/, one of them already superseded.

Step 4: promote before closing

Sweep the note's traps and working agreements before finishing. Anything that would change how a future session behaves is a lesson, not a handover line: promote it to the project's LESSONS_LEARNED.md now, with its misses-log line, or plant a grep-able FORWARD anchor at the landing point (flag-deferred-items). Knowledge that stops in a handover never reaches the library's admission pipeline. The incident behind this (2026-07-27): five coordination rules learned the hard way in one session sat in a handover section behind "consider folding these in later", and were never folded in.

What this skill does not do

It does not decide to wrap up; the context bands do that. It does not push or commit on its own. It produces the note and persists it, leaving the push gate intact.

Why

Long sessions fail at the seams: the next session re-discovers what the last one already knew, or misses a deferred item or an unrun verification. A fixed handover shape, produced from a real context reading, makes the seam cheap to cross and keeps deferred and unverified work from falling through it.

Additions from cross-repo lessons (ratified 2026-07-23)

  • Stamp superseded sections. A session that makes a prior handover's "next build" section stale stamps that section superseded in the same PR — a one-session-stale handover cost real rework.
  • Carry-forward items cite a live-state verification or are marked unverified. A "still open" item once rode four consecutive handovers a month after the work was done. Re-verifying at write time is cheaper than the duplicate build it prevents (see live-state-first).

Additions from the misses-log sweep (2026-11-01)

  • Report uncommitted files by status letter, never as a count. "175 uncommitted files" reads as work to save; 175 deletions reads as an incident. Give the breakdown from git status -s by letter ( M, D, ??, A ) so the next session can tell work in progress from damage, and name the branch and worktree each count belongs to. (Library 40, where the count was the whole of the misreading.)

常见问题

Handover AI 技能有什么作用?

Produce a structured handover note when the context window fills or the user asks to wrap up. Take the real percentage from /context or, in the Claude desktop app, the get_usage tool; never estimate, and where neither exists record the gap verbatim rather than inventing a figure. Triggers when the context band reaches amber or red, when the user says "wrap up", "handover", or "hand off", or before deliberately ending a long working session.

为什么在 TypingMind 中使用 Handover?

因为您只需安装一次,就能搭配任何模型使用。Handover 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Handover?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/randommonicle/claude-skills/tree/main/handover。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Handover?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Handover 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Handover 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Handover AI 技能免费吗?

是的。randommonicle 已在 GitHub 上根据 Apache-2.0 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇