publish
Installation
SKILL.md
Publish
Upload any file to Cloudflare R2 and get back a shareable public URL.
SCRIPTS below refers to the scripts/ directory next to this file.
Prerequisites
- Node.js (for
npx wrangler) - Cloudflare account with an R2 bucket that has public access enabled
- Wrangler auth via one of:
wrangler login(interactive OAuth -- run once, persists in~/.wrangler)CLOUDFLARE_API_TOKENenvironment variable
Step 1 — Check configuration
Look for ~/.publish.json. If it doesn't exist, run $SCRIPTS/setup.sh and walk the user through the prompts. The setup script creates the config file with: