File Uploads
Upload a single local file to the user's Zipline instance at phobos.m6.rs and return its raw link.
Workflow
Confirm that the requested artifact exists as a regular local file. If the user wants a directory or several files handed off together, create an appropriate archive first, then upload that archive.
Resolve
scripts/upload.pyrelative to thisSKILL.md; do not assume the current working directory is the skill directory.Run:
python3 /absolute/path/to/file-uploads/scripts/upload.py "/absolute/path/to/file"On success, the script prints exactly one URL. Return that URL to the user as a clickable link in the chat.
The script requests Zipline's random filename format and always emits the canonical raw form:
https://phobos.m6.rs/raw/filename.extension
Rules
- Never display, log, echo, or pass
PHOBOS_TOKENon the command line. The script reads it directly from the environment. - Never invent or predict the resulting URL. Use only the URL printed after a successful upload.
- Do not rename, move, delete, or otherwise modify the source file unless the user explicitly asks.
- Do not upload secrets, credentials, private keys, environment files, or other sensitive material unless the user explicitly identifies the exact file and asks for it to be uploaded.
- If the upload fails, report the error and do not claim the file was uploaded.
- Upload one file per script invocation. For multiple separate links, invoke the script once for each file and clearly associate every link with its source file.
Setup
PHOBOS_TOKEN must be available in the agent's environment:
export PHOBOS_TOKEN="your-zipline-token"
If it is missing, ask the user to configure it in their environment. Never ask them to paste the token into chat.