/fsh:claude-desktop-handofffrom fsh
Hand one GUI-only step to Claude Desktop running on the same machine, over a shared temp directory, so this session can keep working autonomously instead of stopping. Use when the step needs the user's own logged-in browser (a vendor console with no API, an OAuth app registration, an SSO-gated admin page, anything behind a password manager or passkey), this session is non-interactive (Conductor, `-p`, cloud) or has only a headless browser, and Claude Desktop is installed on this machine — that last fact is what picks this skill over its sibling. Prints one prompt for the user to paste into Claude Desktop; the two sessions then talk through files, so Desktop can ask a question mid-task and get an answer without the user relaying it. Use `desktop-handoff` instead when the hand might be a different runtime, a different OS, or not Claude at all.
Ships in fsh. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Same machine, two Claude sessions, one shared directory. That single fact is what this skill trades on:
The user pastes the prompt. That is the approval gate. Never spawn Desktop yourself.
The decision to hand off is already made — by the user, or by you after finding no API or CLI that reaches the target. Don't re-open it. Start at step 1.
PARENT="${TMPDIR:-/tmp}/claude-desktop-handoff"
mkdir -p "$PARENT" && chmod 700 "$PARENT"
HANDOFF="$(mktemp -d "$PARENT/$(date +%Y%m%d-%H%M%S)-<slug>-XXXXXX")"
mktemp -d rather than a bare mkdir -p: under the usual 022 umask that would create a
world-readable directory at a guessable path, and this one carries a brief naming internal
URLs and account handles — plus, here, whatever Desktop writes back.
Short kebab-case <slug>. Keep the absolute path — the prompt and every later step need
it. Use $TMPDIR, not a repo path: one writer per repo, and this brief will name
internal URLs.
Before writing anything, sort the task's outputs:
| Output | Route |
|---|---|
| Public identifiers (an app id, a URL, a record id) | Desktop reports them in RESULT.md. Fine. |
| A secret that does not exist yet | Stop Desktop before it exists. Have it do the structural work and leave the page open; you or the user generate and store the secret. Cleanest option — prefer it. |
| A secret already on screen | The user clicks the copy button, not Desktop — then you read the clipboard and pipe it straight into the store, and verify. See the warning below. |
| A secret Desktop must handle itself | Only if it has a shell: have it pipe the value into the store in one command, never into a file or a reply. |
Do not ask a browser agent to click a copy button "without looking". It cannot. To find the control it reads the page, and the accessibility snapshot carries the value sitting next to it — so the secret lands in its context in the same breath. This skill shipped with that mistake and its first real run proved it: the agent generated a GitHub client secret, read the page to check state, and captured the value verbatim. It then correctly refused to copy it onward, and the credential had to be rotated.
The shared clipboard is still the right channel — but a human has to load it. So the rule is: Desktop does the structural work and stops at the threshold; a person crosses it.
Reading the clipboard is OS-specific and Claude Desktop ships for macOS and Windows, so
don't hardcode one: pbpaste on macOS, powershell -Command Get-Clipboard on Windows,
wl-paste or xclip -o on Linux. Pipe it into the store in a single command — never into
a file, never through an echo — and verify the stored value before relying on it. Anything on screen may land in a GUI session's context and logs, and a mid-task
re-auth wall makes it worse, because the pending action can complete while the agent is
away and it comes back to a page it didn't expect.
Write for a session with no memory of this conversation. Include the why, so it can tell when a page doesn't match.
# Task: <one line>
## Context
<2-4 sentences: what this is part of, why it needs your browser.>
## Do this
1. <step, exact URL>
2. <step, exact field values — spell out everything you already know>
## Guardrails
- Do not edit files in any git repository. Another session owns those.
- Do not change any other setting, account, or resource.
- Do not read, copy, or repeat any secret, token, or password.
- If a page does not match this description, stop and report what you saw.
- If something already exists, stop and report it — do not create a duplicate.
## Talking to me
We share a directory. <HANDOFF>
- **Blocked or unsure?** Write your question to `ASK.md` and wait — poll for
`REPLY.md` every 15s for up to 5 minutes. I am watching and will answer. When the
answer arrives, delete `REPLY.md` and carry on — leave `ASK.md` to me, I clear it
when I answer.
- **Done or stopped?** Write `RESULT.md`. That ends the handoff.
`RESULT.md` must cover: what you did and the end state; anything that did not match
these instructions; any non-secret identifier I need; and if you could not finish,
where you stopped and what blocked you.
The ASK.md loop is what makes this worth its own skill. Without it a wrong assumption
costs a whole round trip through the user.
Claude Desktop takes a pasted prompt, so give one block, ready to copy:
Read <HANDOFF>/TASK.md and do what it says, using my logged-in Chrome.
Follow its "Talking to me" section — write ASK.md if you get stuck, RESULT.md when done.
If you cannot read or write files in that directory, say so in this chat instead and
I will relay.
Then say in one line what you'll do when it lands, so the user can redirect you.
Two preconditions, each with its own consequence — check them separately, because they fail differently:
desktop-handoff.$TMPDIR for the file channel. Losing this costs
the back-channel, not the task: the prompt above already tells Desktop to report in chat
instead, and you relay. Degrade, don't abandon.Note either only if it might not hold.
One background loop, watching for either file. Do not poll in the foreground and do not ask "is it done yet?":
end=$(( $(date +%s) + 3600 ))
until [ -f "$HANDOFF/RESULT.md" ] || [ -f "$HANDOFF/ASK.md" ] || [ "$(date +%s)" -ge "$end" ]; do sleep 5; done
[ -f "$HANDOFF/ASK.md" ] && echo "ASK" || { [ -f "$HANDOFF/RESULT.md" ] && echo "RESULT" || echo "timeout"; }
date +%s, not $SECONDS — that one is a bash/ksh/zsh builtin, and under a POSIX sh
such as dash it expands to nothing, making the guard [ -ge 3600 ]: a syntax error, not
a false condition. The loop then waits forever on a handoff nobody completed.
On ASK: answer into REPLY.md, delete ASK.md, re-arm the loop. Deleting ASK.md
is yours, not Desktop's — the loop's exit condition is that file existing, so re-arming
while it is still there fires instantly on a question you already answered, forever. Answer from what you
know — going back to the user defeats the point. Escalate only if the question reveals
the brief was wrong about something you cannot decide.
On timeout: tell the user, don't silently re-arm.
Expect re-auth walls, and name them as stop conditions in the brief. Vendor consoles
gate secret generation, deletion and ownership changes behind a fresh identity check
(GitHub calls it sudo mode; AWS, Google and Stripe all have equivalents). No REPLY.md
can unblock that — only the user can. A brief that anticipates it gets a clean "stopped
here, a human must authenticate" instead of a session improvising around a password
prompt. The resume is cheap: those grants persist for hours, so once the user clears it,
re-running the same brief usually goes straight through. Archive the first
RESULT.md rather than deleting it, so the second run starts on a clear channel.
Re-brief before re-running, though. Clearing the wall can submit the pending action, so the second run may open on a page where the work is already done. Say so explicitly — "the secret may already exist; verify before clicking anything" — or the session will inspect the page to orient itself, which is exactly when it reads what it was told not to.
While waiting, do any part of the work that doesn't depend on the result.
Never trust the report. A session saying it worked is not proof. Check the resource yourself through an API that doesn't need a GUI, and prefer a check that distinguishes success from failure rather than merely not erroring — an endpoint that answers differently for a real id and a bogus one, a readback, a status query. If a secret came through the clipboard, verify it authenticates before you rely on it.
Then continue the original work autonomously — that is what this skill buys. Tell the
user they can close the Desktop conversation, and rm -rf "$HANDOFF".
rm -rf "$HANDOFF" — the brief may name
internal URLs and account handles. Nothing in this skill writes a secret to a file, and
nothing should start: step 2 routes every secret through the clipboard or straight into
its store.What SKILL.md sets; muted values are Claude Code's defaults
35 skills in this plugin
/blacksmithMigrate a repository's GitHub Actions workflows to Blacksmith runners — inventory every job, move the ones that build, run or test the app (image builds get the sticky-disk Docker actions, a size-capped cache and a Dockerfile audit for cache killers), leave glue, deploy and credential-bound jobs on GitHub, capture a per-step timing baseline, hand off to `deliver --no-merge` with the decision table in the PR, and measure real rebuilds on that PR when the existing runs can't settle it. Use when asked to "move CI to Blacksmith", "cut GitHub Actions spend", "make the image build faster", or right after the Blacksmith app was installed on an org. Args: a repo path (default: the current repo), plus `--audit-only` to print the decision table and write nothing./brainstormDivergent conversation before any artifact exists — question the idea, weigh alternatives including building nothing, then converge on one routed next step (drop it, park it as a ticket, kick off implementation, or bug-hunt) with a handoff brief. Use when the user says "should we build this", "I have an idea", "let's think this through", or "is this worth doing". Read-only until the routing is confirmed./broRestate the last message in plain human language, with no jargon.npx claudepluginhub fullstackhouse/skills --plugin fsh