handoff
Skill5 starsChanged 28 days agoMITView on GitHub
v4.3 跨 session 交接:由当前 Planner 保存 CURRENT 引用和 handoffs 事实摘要,或在新 session 中先验证 schema、所有权与批准绑定再恢复;不会因读到 EXECUTING 自动续跑。
191 other projects use a version of this.
Adopted by
Most recently taken up by
- xiaoxiaosrm/dsh-mattpocock-skillstheir own version, first seen Nov 8, 2026
- ethosagent/ethostheir own version, first seen Nov 8, 2026
- dsifry/metaswarmtheir own version, first seen Nov 8, 2026
- glebis/claude-skillstheir own version, first seen Nov 8, 2026
- domengabrovsek/agent-configtheir own version, first seen Nov 8, 2026
- domengabrovsek/claudetheir own version, first seen Nov 8, 2026
Used with
Projects with it also use decision-mapping, setup-ts-deep-modules 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.
FabienDehopreSkilldecision-mapping
Turn a loose idea into a sequenced map of investigation tickets, then drive them to resolution one at a time.
Also in 8 projects that use this
liufeng1976Skillsetup-ts-deep-modules
Wire dependency-cruiser into a TypeScript repo so each package is a deep module — implementation hidden in subfolders, reachable only through its entry-point files. User-invoked.
Also in 42 projects that use this
AWSSkillto-questionnaire
Turn a decision you can't fully answer into a questionnaire for someone else to fill in.
Also in 93 projects that use this
GoogleSkillask-matt
Ask which skill or flow fits your situation. A router over the skills in this repo.
Also in 87 projects that use this
RoentekSkillloop-me
Grill me about specs for the workflows I want to build, within this workspace.
Also in 51 projects that use this
LesaniSkillwriting-beats
Shape an article as a journey of beats, choose-your-own-adventure style. The user picks a starting beat from the raw material, you write only that beat, then offer options for where to pivot next, beat by beat, until the article reaches a natural end. Use when the user has raw material and wants to assemble it as a narrative rather than an argument.
Also in 54 projects that use this
Other versions191 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 191
- mattpocock/skills★ 309ksame name
- QuivrHQ/quivr★ 40ksame name
- The-Vibe-Company/quivr★ 40ksame name
- GreyDGL/PentestGPT★ 16ksame name
- ykdojo/claude-code-tips★ 10ksame name
- ArcReel/ArcReel★ 6.3ksame name
- vinvcn/mattpocock-skills-zh-CN★ 5.5ksame name
- withcoral/coral★ 4.9ksame name
- epicenter-md/epicenter★ 4.8ksame name
- EpicenterHQ/epicenter★ 4.8ksame name
181 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 repository6 other files it gives its agents.
- dispatchSkill
- handoff-loopSkill
- orchestrateSkill
- project-scanSkill
- receiving-feedbackSkill
- role-compliance-reviewerSkill
The file
Files
Handoff — 跨 Session 上下文交接
当用户需要将当前工作交接给新的 session,或从之前的 session 恢复上下文时使用。
落盘遵循 v4.3 文件纪律:
handoffs/{task_id}_g{state_generation}_{YYYYMMDDTHHMMSSZ}.md+CURRENT.md。本技能只用于跨 session 续接,不是日常状态机。
保存上下文(当前 Session → 交接文件)
第一步:收集状态
回顾当前对话,提取以下信息:
- 现在做到哪:正在做什么?(一句话概括)+ 已完成清单(含具体文件路径)
- 关键决策:做过的技术决策及原因
- 卡住待裁决:阻塞中、需要用户裁决的事项(BLOCKED 式)
- 待办事项:下一步要做的具体任务
- 已知陷阱:遇到的坑、注意事项、避免重复的错误
- 证据位置:验收 log / 关键命令输出存在哪个文件
- 关键文件:涉及的核心文件路径列表
- 环境信息:当前分支、依赖版本、运行命令
第二步:写入交接并释放所有权
文件名使用 handoffs/{task_id}_g{state_generation}_{YYYYMMDDTHHMMSSZ}.md,精确到秒并包含 generation,同日多次不得覆盖。当前 owner 写完 handoff 后,在同一次治理更新中把 planner_session_id 置空并递增 generation;旧 session 此后不得再写。
格式要求:
- 简洁、可操作,新 session 读完就能直接开始工作
- 每个待办事项必须具体到文件路径 + 操作描述
- 标注「下一步」作为新 session 的起点
第三步:输出摘要
告知用户交接文件已保存的位置和文件大小。
三端当前都依靠用户交接触发词或长任务主动建议;不宣称有未实测的 PreCompact 自动检查点。
恢复上下文(交接文件 → 新 Session)
当用户说 "恢复上下文"、"继续上次的工作"、"resume" 时:
- 首先读 CURRENT.md,验证
schema_version: collab-v4.3、planner 所有权、state_generation 和批准绑定,再读其明确引用的 handoff - 缺失/未知 schema 禁止恢复 EXECUTING;按迁移规则回对应停点
- 快速验证关键文件、base/candidate ref 和证据仍可取得,handoff 不能覆盖 CURRENT
- owner 为空时,新 session 以“重读 generation → 写入自身稳定 session ID → generation+1”接管;owner 非空且原 session 不可用时需老板明确授权接管,不能静默抢占
- 只有老板要求继续或当前消息属于该任务时,从 CURRENT.next_action 继续;否则只汇报
- 如果交接、CURRENT 与当前工作区冲突,不覆盖新状态;记录证据并按冲突影响回停点或 BLOCKED
交接文件模板
# 交接 — {task_id} · generation {state_generation} · YYYY-MM-DDTHH:MM:SSZ
## 现在做到哪
(1-2 句话 + 已完成清单,含文件路径)
## 下一步
1. **Next**: (最优先的下一步,具体到文件和操作)
## 最近 handoff
- [最近 handoff](handoffs/{task_id}_g{state_generation}_{YYYYMMDDTHHMMSSZ}.md)
## 卡住待裁决
- (BLOCKED 式:事项 + 待裁决点 + 建议方向)
## 证据位置
- 验收 log:(路径)
- 关键命令输出:(路径)
## 关键决策(按需)
1. (决策) — 原因:(why)
## 已知陷阱(按需)
- (注意事项)
## 关键文件(按需)
- `path/to/file` — (用途)
## 环境信息(按需)
- 分支 / 依赖版本 / 运行命令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.

