handoff
Skill99 starsChanged 24 days agoMITView on GitHub
Dev 写 handoff 给协调端 / 任务完工交接 / /handoff / 提交 handoff doc / 交接给协调端。任务执行完毕,Dev 写一份结构化 handoff doc 把改动 / verify 证据 / escalation 候选交给协调端。当用户说"写 handoff""提交 handoff""交接给协调端""跑完了写交接"时触发。**handoff 必含 5 段强制**,缺段会被 PreToolUse hook `check_handoff_verify.py` 拦截。
We split this skill into the rules it gives an agent
2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.
0
Common
Most of the 169 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 130
Write handoff doc(hook 通过)
- Very specific: line 151
Read 你的 handoff doc(SessionStart 已扫 .ai-workspace/handoff/active/)
“Common” is measured: kept by at least 6 in 10 of the 169 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/handoff — Dev 完工交接 doc
任务执行结束 → 写 handoff doc 给协调端。5 段强制(缺一段 → hook 拦 Write),路径固定 {frontend}/.ai-workspace/handoff/{YYYY-MM-DD}-{slug}-result.md。
§0 何时写 handoff
| 场景 | 写? | 命名后缀 |
| 跑完 task md(成功) | ✅ | -result.md |
| 跑 task md 中途遇阻 / 需协调端拍板 | ✅ | -block.md(无 -result) |
自发改动(非 task md 驱动 — 受 self-fix-boundary.md 约束) | ✅ | -selffix.md |
| 跑 audit / 诊断 subagent | ✅ | -audit.md |
| 真机 verify 抓的诊断数据 | ✅(归 .ai-workspace/diag/ 不归 handoff) | n/a |
写入路径:{frontend}/.ai-workspace/handoff/{YYYY-MM-DD}-{slug}-{result|block|selffix|audit}.md
§1 5 段强制内容(全含 → hook 放行)
handoff doc 必含以下 5 段(段标含关键字串,被 hook 字面检测):
§ 改动文件清单
列本次改了哪些文件 + 改了什么(用 file:line 引用,不空话)。
模板:
## § 改动文件清单
- `feature-foo/src/main/java/.../FooView.kt:42-68` — 加 onAppear delay 150ms 防 jank
- `feature-foo/build.gradle.kts:14` — bump compose 1.6.1 → 1.6.2
- `.ai-workspace/diag/<date>-foo-before.png` — 截图归档(verify 用)禁忌:写"改了 FooView 相关逻辑"(太抽象)— 必引用 file:line。
§ verify(build / install / runtime 三联实证)
assign skill §5 跑的 4 步必复述结果。无 verify = handoff 不合格:
## § verify
### Build$ ./gradlew :app:assembleDebug BUILD SUCCESSFUL in 32s
### Install$ adb install -r app-debug.apk Performing Streamed Install Success
### Runtime log(10s)
- 无 crash / fatal / 新增 error
- 关键路径触达:adb logcat 抓到 `FooView onAppear` log 1 次,delay 后批量绑定开始
### Screenshot diff
- before:`.ai-workspace/diag/<date>-foo-before.png`
- after:`.ai-workspace/diag/<date>-foo-after.png`
- 视觉对照 design-truth `<docs-hub>/design-truth/<page-a>.md` 对应章节 → ✅ 相符禁忌:"build 过了 / 没问题" 一行 — 必贴命令 + 输出 / 路径。
§ escalation 候选(协调端待办)
跑过程中发现的"应给协调端拍板的问题",不要自行扩 scope。预登记:
## § escalation 候选
- [ ] iOS 也有相同代码路径(`Sources/FeatureFoo/FooView.swift:55`)— 是否对称 fix?(scope 扩散,需协调端拍板)
- [ ] design-truth `<page-a>` 对应章节字号 25/600 vs scaffold AppTopBar 20sp 偏 5sp — 是 scaffold 应改 / 还是接受?
- [ ] 无 → 写 "本任务无 escalation"§ 时序约束 / 性能数据(若 task 涉及性能)
若 task md 含"时序约束"或 "perf" 段 → handoff 必含真机数值:
## § 时序约束 / 性能数据(本 task perf 相关)
- 进场动画 P50:120ms(before)→ 95ms(after,Profiler `gfxinfo dumpsys`)
- jank frame ratio:8.2%(before)→ 0.3%(after)
- 主线程 spike:无(after,Perfetto trace `diag/foo-trace.perfetto-trace`)非 perf task → 写"本任务无性能指标"或省略本段。
§ baseline 反向 verify(可选,推荐)
如果 §0 baseline 验证(assign skill)过程中发现 task md baseline drift → 在 handoff 里说明:
## § baseline 反向 verify
- task md `§起草前 baseline 实证` Step 4 引用 `AppTopBar.kt:56` → 当前 commit `abc1234` 已 rename 为 `AppTopBarView.kt:58`(发现于 §0 step 2 grep)
- 不阻塞本任务执行(改动点不依赖该 symbol),但**协调端起草 fix task 时需 re-baseline**§2 文件名规则
{YYYY-MM-DD}-{frontend}-{slug}-{result|block|selffix|audit}.md
例:
<date>-android-foo-jank-fix-result.md(成功完工)<date>-ios-bar-state-block.md(中途阻塞,需协调端拍板)<date>-android-removed-stale-dep-selffix.md(自发清理 stale dep,在 self-fix-boundary 内)
§3 完工后动作
- Write handoff doc(hook 通过)
git add改动 + handoff doc + diag 截图 + log file- 不 commit — 等 §1 § verify 段被你自己 Read 一遍 review 通过
git as-<alias> commit -m "..."(走 alias,被 pre-commit hook check_commit_alias 校验)- push 由 Agent 收尾 — 合同已授权远端与目标分支时直接执行;否则展示宿主原生 Allow/Deny,Allow 后由 Agent 执行,不把命令交给用户 / 协调者代跑
§4 反模式(常见错误,不要做)
- ❌ 直接对协调端说 "跑完了" / "改完了" / "done" 不写 handoff doc
- ❌ handoff 只写 § 改动文件清单 / 缺 § verify → hook 拦
- ❌ § verify 写"build 过了"一行无命令 / 无输出
- ❌ § escalation 候选写"无" 但实际发现了相邻问题没登记
- ❌ 把 verify 截图 / log 散在
.ai-workspace/screenshots/.ai-workspace/log/→ 统一归.ai-workspace/diag/{date}-{slug}-{purpose}.{ext}方便协调端 grep - ❌ handoff doc 内出现
AI / Claude / GPT / generated字样 → pre-commit hook 拦
§5 协调端如何用这份 handoff
写完后协调端会:
- Read 你的 handoff doc(SessionStart 已扫
.ai-workspace/handoff/active/) - § verify 三联实证 cross check
- § escalation 候选 → 走
coordinator-maintenanceskill 派 follow-up task - handoff 处理完归档到
.ai-workspace/handoff/archive/
你的 handoff 质量 = 协调端能不能信任 "Dev 跑完了" — 直接影响下个 task md 是否还需重新 verify。
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
- GreyDGL/PentestGPT★ 16ksame name
- ykdojo/claude-code-tips★ 10ksame name
- ArcReel/ArcReel★ 6ksame 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
- davidondrej/skills★ 4.2ksame 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.
Used alongsideProjects 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 32 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 77 projects that use this
GoogleSkillask-matt
Ask which skill or flow fits your situation. A router over the skills in this repo.
Also in 76 projects that use this
RoentekSkillloop-me
Grill me about specs for the workflows I want to build, within this workspace.
Also in 43 projects that use this
GoogleSkillsetup-matt-pocock-skills
Configure this repo for the engineering skills — set up its issue tracker, triage label vocabulary, and domain doc layout. Run once before first use of the other engineering skills.
Also in 122 projects that use this
In this repository28 other files it gives its agents.
- AGENTS.mdAGENTS.md
- codex-preflight-scaffoldSkill
- configure-suldeSkill
- coordinator-maintenanceSkill
- curate-to-kbSkill
- dispatch-parallel-taskSkill
- handoff-code-reviewSkill
- multi-source-reviewSkill
- record-prd-supplementSkill
- reverse-source-completenessSkill
- sediment-from-codeSkill
- update-designSkill
- writing-task-mdSkill
- assignSkill
- bug-huntSkill
- code-reviewSkill
- crash-fixSkill
- parallel-devSkill
- perf-diagnoseSkill
- postmortemSkill
- ui-implSkill
- dispatch-taskSkill
- import-codex-sessionSkill
- intent-guardianSkill
- kb-searchSkill
- memory-distillSkill
- sedimentSkill
- sulde-add-sensitive-fileSkill
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.

