handoff-opus
把关键决策/验收类任务交给 Claude Opus 执行。后台运行,完成后自动通知。支持并行多任务,支持续接(resume)上次会话继续派发后续任务。
npx skills add dazuiba/handoff --skill handoff-opus --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# handoff-opus Skill <interaction_contract> This skill is executed by Claude Code (an AI agent). The rules below are BINDING — follow them exactly; do not simplify or reinterpret. 派发一个任务 = 两条命令 + 等通知。照抄模板,不要改结构。 ## 第 1 步:建任务文件(前台,秒回) ```bash handoff new --backend opus --slug <≤3个英文单词的任务助记词> --write <<'__HF_EOF__' [prompt 内容] __HF_EOF__ ``` 它只打印一行绝对路径,例如: ``` /Users/x/.handoff/tasks/0720-op-06-fix-auth.prompt.md ``` 去掉目录和 `.prompt.md` 后缀,剩下的 `0720-op-06-fix-auth` 就是本次任务的 **RUN_ID**。 记住它。三个文件路径由它直接推出,**不需要再从任何输出里捕获**: | 路径 | 用途 | | --- | --- | | `~/.handoff/tasks/<RUN_ID>.prompt.md` | 你刚写的 prompt | | `~/.handoff/tasks/<RUN_ID>.result.md` | **结果**,任务完成后读这个 | | `~/.handoff/tasks/<RUN_ID>.out.txt` | 进度日志,仅诊断时才读 | ## 第 2 步:执行(必须 `run_in_background: true`) ```bash handoff run --backend opus ~/.handoff/tasks/<RUN_ID>.prompt.md ``` 必须后台启动——handoff 耗时 2~20 分钟,前台会阻塞整个会话。 用户提到 `pro`(或要求更强/专业模型处理复杂任务)时,在 `handoff run` 后加 `--pro`。 ## 第 3 步:等通知,然后读结果 等 Claude Code 的后台任务完成通知。收到后用 `Read` 读 `~/.handoff/tasks/<RUN_ID>.result.md` 汇报。 **通知一定会到。在它到达之前,禁止用任何手段去"看看好了没"**——禁止 `BashOutput`、`TaskGet`、`TaskOutput`、`Monitor`、`sleep`、`tail`、`cat`,禁止提前 `Read` 结果文件,也不要去搜索这类等待/轮询工具。 命令输出里的 `RUN_ID=` 和 `RESULT=` 都不
- 第 1 步:建任务文件(前台,秒回)
- 第 2 步:执行(必须 runinbackground: true)
- 第 3 步:等通知,然后读结果
- 其它硬规则
- 多任务
- 续接上次会话(resume 续派)
handoff new --backend opus --slug <≤3个英文单词的任务助记词> --write <<'__HF_EOF__' handoff run --backend opus ~/.handoff/tasks/<RUN_ID>.prompt.md handoff new --backend opus --slug <任务助记词> --write <<'__HF_EOF__' handoff resume <首次RUN_ID> --backend opus ~/.handoff/tasks/<新RUN_ID>.prompt.md
What does the handoff-opus skill do?
把关键决策/验收类任务交给 Claude Opus 执行。后台运行,完成后自动通知。支持并行多任务,支持续接(resume)上次会话继续派发后续任务。
How do I install it?
Run `npx skills add dazuiba/handoff --skill handoff-opus --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From dazuiba/handoff, a repository with 80 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.