AGENT SKILL

handto

Hand this Claude Code session over to a CodeFabric Worker, so the work goes on there with the same context and the same repository state. Use only when the user types /handto <worker>.

License 许可
Apache-2.0
最近更新
2026-11-14
Stars
★ 0
Forks
0

01 前言 Front Matter

name
handto
arguments
[ "worker" ]
description
Hand this Claude Code session over to a CodeFabric Worker, so the work goes on there with the same context and the same repository state. Use only when the user types /handto <worker>.
allowed-tools
Bash(cf handoff *) Bash(cf worker list*)
argument-hint
<worker>
disable-model-invocation
true

03 SKILL.md 正文

<!-- cf-version: {{cf-version}} -->

/handto

Hand this session over to the CodeFabric Worker $worker.

Workers known to CodeFabric right now:

!cf worker list

Steps

  1. If $worker is empty or is not one of the Workers above, say so, show the list and stop. Do not run anything else.

  2. Run exactly this command, once:

    cf handoff --session ${CLAUDE_SESSION_ID} --to $worker

  3. If it succeeds, show the user the Task, the Worker and the cf attach <task> line that it prints. Then tell them to close this session with /exit and to continue with cf attach <task>. Do not keep working in this session: the Worker now has the work.

  4. If it fails, show the CF_* code and the message exactly as printed, and stop. Do not retry, do not try another command and do not change the arguments. Never add flags to cf handoff. If the error asks for an override, for example because the session holds something that looks like a secret or because it was already handed off, show the user the command with the flag that the message names so that they run it themselves in their own terminal, and do not run it yourself.

04 同仓库更多 Skills