media-cdn

Installation
SKILL.md

Media CDN

scripts/cdn.ts covers every asset operation the service exposes: a private object store where each asset flips to a public CDN URL and back. Run it with Bun (preferred) or Node >= 22.18, from the skill's scripts/ dir:

bun cdn.ts upload ~/Downloads/diagram.png --public

Commands

Command What it does
upload <file...> [--public] [--folder p] [--name f] [--type mime] Reserve, PUT bytes, mark ready, then publish when --public is given. Folder defaults to asset; --folder "" is the root. SHA-256 is checked server-side, so a truncated upload fails instead of storing a broken file. Each upload makes a new asset, even for a filename already in the workspace — list --match <name> first when replacing something, then publish the new id.
list [--folder p] [--match s] [--public|--private] [--limit n] Every asset in the workspace, filtered client-side.
get <ref> One asset, with its public URL when published.
publish <ref> / unpublish <ref> Turn the public CDN URL on or off. Reversible either way.
download <ref> [--out path] Writes the bytes to --out, or to the asset's filename in the cwd. Sends the API key, so it reaches private assets too.
whoami Workspace id, token name, scopes — run this first when a call fails with 401 or 403.
Installs
2
GitHub Stars
1
First Seen
1 day ago
media-cdn — mark-life/agent-skills