Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Upload local files to SurgePix cloud storage and return a public HTTPS URL. Use when the user says "upload", "get a URL", "上传文件", "传到CDN", needs a remote-accessible URL for an API call, or wants to convert a local file path into a public link.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-03 | ✗→✓ | ▲ Improved | -26% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 20% | 0% |
| case-06 | ✗→✓ | ▲ Improved | -30% | 0% |
| case-07 | ✗→✓ | ▲ Improved | -8% | 0% |
| case-11 | ✗→✓ | ▲ Improved | 37% | 0% |
Upload a local file to SurgePix storage and get back a public CDN URL.
This skill does not generate on-image text. Reply to the user in the same language they used in their request.
SURGEPIX_API_KEY configured (see Step 0)Before running upload, verify config:
bashnode "<skills-dir>/surgepix-setup/scripts/check_env.mjs"
.env, then retryDo NOT check $SURGEPIX_API_KEY in shell — the script loads .env automatically.
bashnode "<skills-dir>/surgepix-upload/scripts/file_upload.mjs" "<absolute-file-path>"
Success (stdout):
json{"ok":true,"url":"https://...","filename":"photo.png","size":12345,"contentType":"image/png","existing":false}
Failure (stderr, non-zero exit):
json{"ok":false,"error":"..."}
If error is "API_KEY not found" → run surgepix-setup first.
url to the userOther measured skills in the registry, with their headline benchmark lift.