Files
global-skills/skills/deliver-file/SKILL.md
T

40 lines
1.3 KiB
Markdown

---
name: deliver-file
description: >
Deliver a file or directory from this host to the user's device over
Tailscale SSH. Use when the user wants to download, receive, or get a
file, document, archive, report, or folder from the host machine.
scope: global
---
# Deliver File
The user's Windows machine pulls files from this host over Tailscale SSH.
Host address: `vasily@msi.tail0b014a.ts.net` (Tailscale IP 100.67.41.125).
## Steps
1. Resolve the absolute path of the file or directory.
2. Run `t3-deliver <path>` (on PATH; source: `global-skills/bin/t3-deliver`).
3. Hand the printed `scp` line to the user verbatim and note that they run
it in cmd or PowerShell on Windows.
If `t3-deliver` is missing, print the equivalent command yourself:
```text
scp "vasily@msi.tail0b014a.ts.net:/absolute/path/to/file" .
```
Add `-r` after `scp` for directories. This command assumes OpenSSH scp with
SFTP support. For names containing shell expansion characters, use a simple
archive name rather than handing the user an unsafe command.
## Notes
- Do not start HTTP servers or other transfer machinery for deliveries;
Tailscale SSH is the established path.
- For quick text-only needs the T3 client's "Copy contents" on an open
file also works.
- Keep generated deliverables at predictable paths and tell the user the
path when done.