wormhole
Skill18 starsChanged 10 months agoMITView on GitHub
Send and receive files, directories, or text between computers using magic-wormhole. Guides the user through the transfer interactively. Use when the user says "wormhole", "send a file", "receive a file", or invokes /wormhole.
- Installs packages
In this repository14 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- adrSkill
- context-statusSkill
- direnvSkill
- governance-citeSkill
- project-pulseSkill
- shipSkill
- think-consistencySkill
- think-reactSkill
- thinkSkill
- think-stepbackSkill
- think-treeSkill
- think-trilemmaSkill
- ways-testsSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 26
If missing, detect the platform and install:
- Very specific: line 41
Use AskUserQuestion to confirm the install method before running it.
- Very specific: line 50
If you are a subagent, skip all AskUserQuestion calls and use the parameters from your task prompt directly.
- Very specific: line 69
Interactive: Use AskUserQuestion to get the transfer target.
- Very specific: line 113
Interactive: Ask the user in plain text to paste their wormhole code.
- Distinctive: line 126
Automated: Use the destination from the task prompt.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Magic Wormhole File Transfer
Secure, simple transfers between computers using magic-wormhole codes.
When to Suggest Wormhole
| Scenario | Tool |
| Ad-hoc transfer between two machines, no prior setup | wormhole |
| Recurring transfers, SSH already configured | scp, rsync |
| Transfer within same machine or LAN with shared filesystem | cp, rsync |
| Transfer to/from cloud storage | provider CLI (aws s3, gsutil, etc.) |
Step 0: Check Installation
command -v wormhole 2>/dev/null && echo "installed" || echo "missing"If missing, detect the platform and install:
uname -s # Darwin = macOS, Linux = check distro
cat /etc/os-release 2>/dev/null | grep -E '^(ID|ID_LIKE)='| Platform | Command |
| Arch Linux | sudo pacman -S magic-wormhole |
| macOS (Homebrew) | brew install magic-wormhole |
| Debian / Ubuntu | sudo apt install magic-wormhole |
| Fedora | sudo dnf install magic-wormhole |
| pip (fallback) | pip install magic-wormhole |
Use AskUserQuestion to confirm the install method before running it. Stop the skill flow until installation succeeds.
Step 1: Determine Mode
There are two modes depending on who is running the skill:
- Interactive — a human is in the loop. Use
AskUserQuestionfor choices, plain text for free-form values (codes, text content). - Automated — a subagent is running this. All parameters (path, code, destination) must be provided in the prompt. No elicitation, no blocking waits for human input.
If you are a subagent, skip all AskUserQuestion calls and use the parameters from your task prompt directly.
Step 2: Ask What They Want To Do
Interactive: Use AskUserQuestion:
- Send a file — transfer a file to another machine
- Send a directory — transfer an entire directory (sent as zip)
- Send text — send a short text snippet
- Receive — receive an incoming transfer using a wormhole code
Automated: The operation, path/code, and destination must be specified in the task prompt.
Send Flow
Determine what to send
Interactive: Use AskUserQuestion to get the transfer target. If the user is vague ("send my config"), use Glob to find candidates and present options via AskUserQuestion. For text, ask the user to provide the content.
Automated: The path or text content is in the task prompt.
Confirm before sending (interactive only)
Show the user what will be sent (filename, size, path) and ask for confirmation.
ls -lh <path> # Show size
file <path> # Show typeFor directories:
du -sh <path> # Show total size
ls <path> | head -20 # Show contents previewExecute the send
# File or directory
wormhole send --hide-progress <path>
# Text
wormhole send --text "<content>"Important: The send command blocks waiting for the receiver. Run it and surface the wormhole code to the user or leader. The code appears in the first lines of output (format: <number>-<word>-<word>...).
Interactive — tell the user:
- The wormhole code to share with the recipient
- That the transfer completes once the other side runs
wormhole receive <code> - The command is blocking — it sits waiting until the receiver connects or times out
Automated — return the wormhole code to the leader via SendMessage so they can relay it.
Receive Flow
Get the code
Interactive: Ask the user in plain text to paste their wormhole code. Do NOT use AskUserQuestion for this — it only offers radio buttons, not a text input field.
Automated: The code is in the task prompt.
Determine where to save
Interactive: Use AskUserQuestion:
- Current directory — save to the working directory
- Downloads — save to
~/Downloads - Desktop — save to
~/Desktop - Custom path — let the user specify
Automated: Use the destination from the task prompt. If none specified, default to the current working directory.
Execute the receive
wormhole receive --accept-file --hide-progress -o <target-dir> <code>--accept-file— auto-accept (confirmation already happened via elicitation or task prompt)--hide-progress— cleaner output for parsing-o <target-dir>— explicit output location
Key Principles
- Interactive mode uses elicitation at decision points — don't assume paths, codes, or intent
- Automated mode uses task prompt parameters — no human interaction, no blocking prompts
- Show before acting (interactive) — display file sizes, paths, and commands before executing
- Surface the code prominently — the wormhole code is the whole point of the send flow
- Always use
--accept-fileand--hide-progress— the non-TTY environment can't handle interactive prompts or progress bars
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.

