context-handoff
Skill0 starsChanged 30 days agoApache-2.0View on GitHub
Generate a safe, structured, copy-ready handoff package from the current conversation. Use this skill whenever the user says they want to switch sessions, preserve context, summarize important context, generate handoff information, or avoid repeating project/server details—even when they do not explicitly name this skill. Chinese triggers include ‘我要换会话’、‘总结上下文’、‘生成交接信息’、‘保留重要信息’ and ‘方便新会话继续’. Capture project paths, repositories, branches, servers, environments, progress, decisions, commands, risks, and next steps without guessing or leaking secrets.
24 other projects use a version of this.
Adopted by
Most recently taken up by
- RHKfullstack/CLAUDE-SKILLStheir own version, first seen Nov 29, 2026
- RHKfullstack/DEEPSEEK-SKILLStheir own version, first seen Nov 29, 2026
- andiupn/claude-code-startertheir own version, first seen Nov 29, 2026
- lxz1998/agent-workflow-disciplinetheir own version, first seen Nov 22, 2026
- FrMahon/context-handofftheir own version, first seen Nov 22, 2026
- asta-nguyen/gokotheir own version, first seen Nov 22, 2026
Used with
Projects with it also use brainstorm-feature, document-wiki and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
asta-nguyenSkillbrainstorm-feature
Use when a request is new, ambiguous, affects product behavior, or has unresolved scope, UX, API, data, or compatibility decisions, before any design or code.
Also in 3 projects that use this
asta-nguyenSkilldocument-wiki
Use when a task changes behavior that an existing wiki documents, or when a standalone wiki must be created or refreshed from current source.
Also in 3 projects that use this
shifulegendSkillreview-and-verify
Also in 3 projects that use this
utk2103Skilllean-audit
Whole-repo audit for over-engineering. Like lean-review, but scans the entire codebase instead of a diff: a ranked list of what to delete, simplify, or replace with stdlib/native equivalents. Use when the user says "audit this codebase", "audit for over-engineering", "what can I delete from this repo", "find bloat", "lean-audit", or "/lean-audit". One-shot report, does not apply fixes.
Also in 3 projects that use this
ModelEngine-GroupSkillimplement-task
根据技术方案实施任务,编写代码和测试,输出实现报告。当用户要求实施任务、开始编码、执行技术方案时触发。参数为 task-id。
Also in 3 projects that use this
JasonPaffSkillplan-feature
Generate detailed implementation plans through automated 3-4 step orchestration with optional clarification
Also in 3 projects that use this
- +5 more from asta-nguyen
Other versions24 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 24
- asta-nguyen/kamehadb★ 14same name
- asta-nguyen/goko★ 8same name
- RHKfullstack/DEEPSEEK-SKILLS★ 5same name
- asta-nguyen/agent-devkit★ 4same name
- RHKfullstack/CLAUDE-SKILLS★ 2same name
- timyeou1234/context-handoff★ 2same name
- yuanJewel/skills★ 2same name
- FrMahon/context-handoff★ 1same name
- Gaurav890/everything-agentic-engineering★ 1same name
- newyounghe-design/context-handoff-skill★ 1same name
14 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository16 other files it gives its agents.
- backend-reliability-guidelinesSkill
- code-review-specSkill
- commitSkill
- dddSkill
- design-to-developmentSkill
- development-workflowSkill
- frontend-interaction-guidelinesSkill
- git-branch-worktree-conventionSkill
- knowledge-notesSkill
- logging-boundariesSkill
- prodflowSkill
- project-context-syncSkill
- project-hygieneSkill
- rest-api-documentationSkill
- service-deploymentSkill
- task-closeout-auditSkill
The file
Files
会话上下文交接
在用户准备切换会话、担心上下文丢失,或明确要求“总结上下文 / 生成交接信息 / 保留重要信息”时使用本 skill。目标不是复述聊天,而是生成新会话可以直接继续工作的事实包。
核心规则
- 只整理当前会话中可追溯的信息。 用户消息、已经执行的工具输出和已明确确认的结论可以作为事实;计划、猜测、未执行的命令和“也许可以”不能写成已完成事项。
- 不猜测。 没有可靠证据的字段写成“未提供”或“待确认”,尤其是服务器、端口、路径、分支、仓库地址、部署方式和命令。
- 区分状态。 已确认事实、已完成事项、已确认决策、待确认问题、风险和下一步必须分开,不能把建议写成决定。
- 保留可操作上下文。 如果会话中出现,优先保留项目路径、仓库地址、分支、worktree、服务器/环境、端口、部署命令、测试命令、关键文件和失败结果。
- 先脱敏再输出。 任何密码、Token、API Key、私钥、Cookie、Authorization 值、带认证的连接字符串或疑似秘密都必须替换为
[已脱敏]。不要在输出中复述秘密的原文、前后片段或可逆变形;无法确认是否敏感时也按敏感处理,并提示通过安全渠道补充。 - 不新增事实。 不要因为当前工具可以访问某个目录或服务器,就把未在本次交接范围内的实时信息自动加入;只有会话中已有证据或用户明确要求检查时才可加入。
- 保持复制边界。 最终回复只输出一个 Markdown 代码块,代码块外不要添加标题、解释、道歉或额外建议。这样用户可以直接点击聊天界面的复制按钮。
触发与模式
- 用户说“我要换会话”“帮我保留上下文”“生成交接信息”“总结重要信息”“方便新会话继续”等,直接触发。
- 用户显式调用
/context-handoff时直接触发。 - 默认使用标准版:覆盖所有固定字段,但压缩重复描述。
- 用户要求“简洁版”时,只保留目标、项目、当前状态、关键路径/命令、待办、阻塞和下一步;仍然保留安全标记和缺失字段。
- 用户要求“完整版”时,补充决策依据、验证结果、失败尝试、风险、未决问题和证据来源。
- 用户指定字段时,优先满足指定字段,但仍保留安全脱敏、事实标记和“下一步”字段。
抽取流程
按以下顺序在内部扫描上下文,完成后只输出交接包:
- 确定当前任务目标,以及新会话必须知道的背景。
- 收集项目和环境事实:项目名、用途、本地路径、仓库、分支、worktree、服务器、环境、端口和部署方式。
- 收集执行状态:已完成、正在进行、失败或回滚的步骤,以及最近一次可靠验证结果。
- 收集决策和约束:用户明确选择的方案、不能违反的限制、接口/数据/兼容性要求。
- 收集行动项:按优先级列出下一步、阻塞项、待确认问题和风险。
- 对每一项标注状态:
已确认、待确认、未提供或推断(不要当作事实)。能避免推断时优先不写推断。 - 做一次敏感信息扫描,再渲染最终 Markdown。扫描到秘密时只保留字段用途,不保留原值。
- 检查输出:所有已完成事项都有会话证据;未提供的运行信息没有被补全;没有输出任何秘密;只存在一个代码块。
固定输出模板
按以下结构输出。字段没有信息时保留字段并写 未提供 或 待确认,不要删除关键字段来掩盖缺失信息。命令、路径和仓库地址应放在代码格式中;敏感值只能写 [已脱敏]。
# 会话交接包
## 1. 当前目标
- 目标:
- 背景/成功标准:
- 模式:标准版 / 简洁版 / 完整版
## 2. 项目与仓库
- 项目:
- 本地路径:
- 仓库地址:
- 当前分支:
- worktree:
## 3. 服务器与运行环境
- 环境:
- 主机/连接方式:
- 端口:
- 运行时与版本:
- 部署方式/命令:
- 说明:未提供的信息必须明确标记
## 4. 当前状态
- 状态:未开始 / 进行中 / 已完成 / 被阻塞
- 已完成:
- 进行中:
- 最近验证结果:
- 失败尝试或回滚:
## 5. 已确认的决策与约束
- 决策:
- 约束:
- 不要改变的内容:
## 6. 关键文件与命令
- 文件:
- 测试命令:
- 构建/启动命令:
- 其他关键命令:
## 7. 待办与下一步
1. [高/中/低] 待办事项 — 完成标准:
2. [高/中/低] 待办事项 — 完成标准:
## 8. 待确认问题、风险与阻塞
- 待确认:
- 风险:
- 阻塞:
## 9. 新会话启动提示
请基于以上交接包继续工作。先确认“当前目标”和“下一步”,不要重复询问已经列出的事实;对标记为“待确认/未提供”的内容先向用户确认。质量与安全检查
输出前逐项检查:
- 是否只有一个 Markdown 代码块?
- 是否包含用户请求的字段,以及标准字段中的目标、状态、待办和下一步?
- 是否把计划误写成完成,把建议误写成决策,或把推断误写成事实?
- 是否明确标出服务器、路径、分支、端口等缺失信息?
- 是否脱敏了所有密码、Token、私钥、Cookie、认证 URL 和疑似秘密?
- 是否保留了失败结果、风险和未决方案,而不是只留下“进展顺利”?
- 新会话是否能仅凭这份交接包判断接下来做什么?
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

