cloud-handoff
БесплатноБез исполняемых скриптовНе проверенPush the current task to a branch and continue it in a cloud session. Use when asked to "send this to a remote agent", to "run it in the cloud", or when the…
от Chemaclass★ 31 звезда на GitHubОб этом скилле
cloud-handoff
Send the current task to a cloud session that goes on without this computer. Push the work first, then write down the goal, then launch. Claude Code can upload local files and history when the GitHub App is missing, so launch it only from the clean snapshot below.
When
- Only when the user asks, or agrees after you offer. Never at session start, at session end, or on your own: it pushes code and starts paid work in the cloud.
- To pass the task to the next local agent instead, with no push and no network call, use the
handoffskill if it is installed.
Preflight
Check each of these before you change anything. If one fails, stop and say which one and what the user can do.
git rev-parse --is-inside-work-treeprintstrue. Otherwise there is nothing to push.git remote get-url origin >/dev/nullsucceeds. Without a remote the cloud cannot clone the work. Keep the URL out of the output.command -vfinds the launch command of the row you will use in the Launch table below.- The row's other needs are met: a terminal wrapper for the Claude Code launch, a Codex environment id (saved in
agnostic-ai.codex-cloud-envor given by the user in this session, as the Codex section says), or aghsign-in for GitHub Copilot (gh auth status >/dev/null 2>&1succeeds). - The push and the launch need network access. In a sandbox without it, ask the user to allow it, or give them the lines to run, and stop.
Branch, commit, push
- Never push to the default branch (the one
git symbolic-ref --short refs/remotes/origin/HEADnames, elsemainormaster). On the default branch or a detached HEAD, create a new branch first, such ascloud/<short-task-slug>, and name it in your reply. - Show
git status --short. Stage only the files of this task, by path. Never stage a.envfile, a key or certificate file, or anything else that looks like a secret; leave it out and say so. - Commit with a short message that names the task. If the commit fails, for example a hook or signing fails, stop and show its output. Do not skip the hook. Do not change Git settings, such as signing, to get the commit through.
- Immediately before the push, record the branch from
git symbolic-ref --quiet --short HEADand its exact commit fromgit rev-parse "<recorded-branch>". Usegit push -u origin <branch>with that recorded branch. If it fails, stop and show the error. Never force-push. - After the push succeeds, keep those recorded values. Set and export
CLOUD_BRANCHandCLOUD_COMMITto them in the launch shell. Do not replace them with a later local HEAD. Include the commit in the prompt's Branch section.
Write the prompt
The prompt is all the cloud session knows. Write it like this:
<The goal, as one plain sentence.> [<branch>]
## Done
## Next step
## Agent and limits
## Branch
## Verify
- First line: the goal in one plain sentence, with the branch name at the end in brackets. Some tools use it to make the session title.
- Done: what this session finished, with paths relative to the project root.
- Next step: the first thing to do, then what remains.
- Agent and limits: when the next step calls for a named agent or skill, describe its job in ordinary words. Include any required independence, tool and path restrictions, and approval requirements. Name the relevant project instructions or skill paths if they exist at the pushed commit. Keep personal paths, chat history and secrets out of the prompt.
- Tell the receiver to check its available agents, skills and tool permissions after setup. A different agent name is fine if its role and enforced restrictions match. If delegation is optional, the receiver can do the step itself under the same restrictions. If a required reviewer, skill or restriction is unavailable, stop before that step and report the gap. A prompt cannot enforce a tool restriction.
- Branch: the pushed branch, that the work is committed on it, and that any pull request targets this branch, not the default branch.
- Verify: give the exact check command, its working directory and the expected result. Ask for the diff or commit and the check result, or the first blocker.
- Keep it under 60 lines. Never write secrets, tokens, or
.envvalues. - Write it to a file through a quoted heredoc, so the shell expands nothing in it, then read the file into a variable. Keep the heredoc outside
$( ): an older bash, such as macOS/bin/bashand/bin/sh, breaks on quotes and parentheses there. Set it and launch in one shell command: a variable does not survive to the next tool call, and the launch refuses an empty prompt. The file stays in the temp folder, which the system clears.
f=$(mktemp)
cat >"$f" <<'PROMPT'
Finish the parser error messages. [cloud/parser-errors]
## Done
The parser now reports the input line for an empty value.
## Next step
Review the change independently and return findings with file paths.
## Agent a
Установить cloud-handoff в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл cloud-handoff?
Push the current task to a branch and continue it in a cloud session. Use when asked to "send this to a remote agent", to "run it in the cloud", or when the user is "closing my laptop".
Как установить скилл cloud-handoff?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл cloud-handoff запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic