agentleFS
aaronsbaaronsb/claude-code-config/skills/wormhole/SKILL.md

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

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
  1. Distinctive:

    If missing, detect the platform and install:

    line 26
  2. Very specific:

    Use AskUserQuestion to confirm the install method before running it.

    line 41
  3. Very specific:

    If you are a subagent, skip all AskUserQuestion calls and use the parameters from your task prompt directly.

    line 50
  4. Very specific:

    Interactive: Use AskUserQuestion to get the transfer target.

    line 69
  5. Very specific:

    Interactive: Ask the user in plain text to paste their wormhole code.

    line 113
  6. Distinctive:

    Automated: Use the destination from the task prompt.

    line 126

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Magic Wormhole File Transfer

Secure, simple transfers between computers using magic-wormhole codes.

When to Suggest Wormhole

ScenarioTool
Ad-hoc transfer between two machines, no prior setupwormhole
Recurring transfers, SSH already configuredscp, rsync
Transfer within same machine or LAN with shared filesystemcp, rsync
Transfer to/from cloud storageprovider 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)='
PlatformCommand
Arch Linuxsudo pacman -S magic-wormhole
macOS (Homebrew)brew install magic-wormhole
Debian / Ubuntusudo apt install magic-wormhole
Fedorasudo 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 AskUserQuestion for 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 type

For directories:

du -sh <path>        # Show total size
ls <path> | head -20 # Show contents preview

Execute 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:

  1. The wormhole code to share with the recipient
  2. That the transfer completes once the other side runs wormhole receive <code>
  3. 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-file and --hide-progress — the non-TTY environment can't handle interactive prompts or progress bars

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.