A tiny agent skill that uploads a local file to files.myslop.app and returns a permanent URL, viewable by anyone signed in to myslop unless you make it public or private. This is exactly what gets installed — read it before you do.
When your agent needs a shareable link to a local file (a screenshot for a PR, a log for Slack, an HTML report), this skill tells it how to upload the file with your API token and hand back the resulting URL. It only ever runs an upload curl against files.myslop.app using a token you minted — it has no other capabilities and reads no other files.
Adds this repo as a plugin marketplace, then installs the skill. Updatable with one command later.
Drop the file into your skills directory. Works for Claude Code and anything that reads SKILL.md files.
Or just paste this to any capable agent:
First upload will prompt you to authenticate — the skill runs curl -fsS https://files.myslop.app/setup.sh | bash, which opens a page that mints your token. See setup.sh before running it.
---
name: file-upload
description: Upload a local file (screenshot, recording, log, HTML artifact) to files.myslop.app and return a permanent URL, viewable by anyone signed in to myslop by default. Use whenever a shareable link to a local file is needed, including for GitHub pull requests, Slack messages, or sharing HTML documents.
---
# file-upload
Upload files to https://files.myslop.app and get back a permanent URL.
## Visibility
Every file has one of three visibilities, set with `?visibility=` on upload:
| Visibility | Who can open it |
| --- | --- |
| `protected` (default) | Anyone signed in to myslop. Browsers are sent to sign in first. |
| `public` | Anyone with the link, including services that fetch it anonymously. |
| `private` | Only the account that uploaded it. |
Use `?visibility=public` whenever something other than a signed-in person
fetches the file: images or videos embedded in a GitHub PR, issue or comment
(GitHub proxies them anonymously), images embedded in a plan or another page,
Slack link previews, or links for people without a myslop account. Leave the
default for links that myslop users click and open themselves.
## Token
Resolve the API token in this order:
1. `$MYSLOP_APPS_TOKEN` if set — the myslop platform token authenticates here
directly
2. The file `${XDG_CONFIG_HOME:-$HOME/.config}/myslop-apps/token`
3. Legacy: `$MYSLOP_FILES_TOKEN` or the file
`${XDG_CONFIG_HOME:-$HOME/.config}/myslop-files/token`
If none exists, or an upload returns `401 unauthorized` (token revoked), have
the user run the platform setup in an interactive terminal, then retry:
```sh
curl -fsS https://myslop.cloud/setup.sh | bash
```
One platform token covers the myslop-apps CLI and every myslop app (files,
mail, plans) — no per-app setup.
## Upload
```sh
cfg="${XDG_CONFIG_HOME:-$HOME/.config}"
TOKEN="${MYSLOP_APPS_TOKEN:-$(cat "$cfg/myslop-apps/token" 2>/dev/null || cat "$cfg/myslop-files/token")}"
curl -sS --fail-with-body -X PUT -T <local-path> \
-H "Authorization: Bearer $TOKEN" \
"https://files.myslop.app/<filename>"
```
- The response body is the permanent URL (files are stored under a random,
non-enumerable prefix — always use the returned URL, never construct it).
- `<filename>` is the basename you want in the URL; prefer descriptive kebab-case.
- Content-Type is inferred from the extension; pass `-H "Content-Type: ..."` to override.
- Uploaded HTML is served as a browsable page (sandboxed), so sharing HTML
artifacts/reports works directly.
- Append `?visibility=public` or `?visibility=private` to change who can open
it (see Visibility above). The older `?private=1` / `?private=0` still work
and mean private / public.
## Update a file in place
To publish a new version of a file you uploaded, PUT to its existing URL. The
URL stays the same, so links already shared show the new version:
```sh
curl -sS --fail-with-body -X PUT -T <local-path> \
-H "Authorization: Bearer $TOKEN" \
"https://files.myslop.app/<prefix>/<filename>"
```
- Returns `200` and the same URL. Only the owner can replace a file; an unknown
URL or someone else's file returns `404` and nothing is created.
- Visibility is kept unless you append `?visibility=...`.
- Public and protected files revalidate by ETag, so readers get the new version on reload.
Files first served before replace existed were cached as immutable; a
browser that already opened one needs a hard refresh.
- Prefer this over a fresh upload whenever the file is a new version of
something already shared.
## Delete a file
```sh
curl -sS --fail-with-body -X DELETE \
-H "Authorization: Bearer $TOKEN" \
"https://files.myslop.app/<prefix>/<filename>"
```
Owner only. Returns `200`, or `404` for an unknown URL or someone else's file.
## After uploading
Return the URL to the user or embed it where they asked (PR body, Slack message,
etc.). Files are managed — visibility, delete, list — at
https://files.myslop.app/dashboard.