返回 Skill 列表
GitHub进阶
handoff:跨会话续接
把当前会话压缩为 Markdown,关掉 AI 再打开它还记得上次聊到哪。
📋 SKILL.md 完整代码
--- name: handoff-skill description: >- 把当前会话压缩为 Markdown,关掉 AI 再打开它还记得上次聊到哪。 Use when working on handoff skill tasks. allowed-tools: Read,Write,Bash --- # handoff:跨会话续接 ## Quick Start 1. Save as `~/.claude/skills/handoff-skill/SKILL.md` 2. Restart Claude Code 3. Type `/handoff-skill` or describe your task naturally 4. Claude auto-triggers when your task matches the description ## Instructions - Understand the user's specific context and needs - Apply domain best practices consistently - Provide actionable, specific guidance with examples - Verify all outputs before presenting to user ## Gotchas - Test with a fresh Claude instance after changes - Keep SKILL.md under 500 lines; use references/ for details - Description is the trigger key — make it specific and keyword-rich
🚀 怎么用
1. 复制上面的 SKILL.md 代码 2. 保存为 ~/.claude/skills/handoff-skill/SKILL.md 3. 重启 Claude Code 4. 输入 /handoff-skill 或直接描述任务触发 5. AI 自动按 Skill 流程执行
场景
长项目不想每次打开 AI 都重新解释一遍上下文。handoff 一键导出当前会话的核心信息,下次打开直接粘贴——AI 无缝衔接。
SKILL.md 模板
name: handoff description: Compress current session into transferable markdown. Use when continuing work across sessions. # Handoff ## Export Format - Current task status - Key decisions made - Files modified - Next steps - Open questions