upyun-upload-image

Uploads local PNG, JPEG, GIF, or WebP images to Upyun S3-compatible storage and returns HTTPS URLs.

5|1|Updated Jul 31, 2026
One-click install
npx skills add https://github.com/shiker1996/wechat-editroom --skill upyun-upload-image-shiker1996
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: upyun-upload-image
Source: https://github.com/shiker1996/wechat-editroom/tree/main/skills/upyun-upload-image
Command: npx skills add https://github.com/shiker1996/wechat-editroom --skill upyun-upload-image-shiker1996

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @aws-sdk/client-s3, dotenv.

What problem does it solve? Local images cannot be referenced in WeChat article previews or public web pages. This Skill uploads local image files to a configured Upyun S3-compatible bucket and returns a public HTTPS URL and object key, so images become accessible online without manual console operations. ## Core Features & Use Cases - Authorized external upload: Runs only after the user explicitly requests an upload, public image, or copy-page preview; credentials are injected by the workbench tool runtime and never read from .env files or echoed in logs. - Structured JSON output: Returns {"success":true,"data":{"url":"https://...","key":"..."}} on success and a credential-free error message on failure, so callers can safely update documents only on verified success. - Batch-safe behavior: Uploads images one by one, records the local-path-to-URL mapping, keeps original references on failure, and never deletes local files afterward. - Use Case: While typesetting a WeChat article, you need a local cover image to be publicly accessible for preview. Invoke the upload, receive the HTTPS URL, and insert it into the article HTML. ## Quick Start Ask the assistant to upload a specific local image file to the configured Upyun storage and return its public HTTPS URL.

Frequently Asked Questions about upyun-upload-image

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I upload a local image to Upyun storage from the command line?

Run node upyun-upload-image.js with the image path and explicit --bucket, --operator, --password, and --domain flags. The script uploads via the S3-compatible endpoint and prints a JSON result containing the HTTPS url and object key.

What image formats does Upyun image upload support?

The upload supports PNG, JPEG, GIF, and WebP files. The extension is normalized before upload, with jpeg converted to jpg, and the content type is inferred from the extension unless overridden with --content-type.

Does the upload script read credentials from .env files?

No. The script requires all credentials to be passed explicitly as CLI arguments and does not read .env files or UPYUN_* environment variables. In the workbench, credentials are injected by the cap_image_cdn_upload tool runtime.

Why does the image upload return needs_configuration or fail?

Upload fails when bucket, operator, or password are missing, when the file does not exist or is empty, or when the extension is unsupported. Complete the Upyun image upload configuration in the workbench system settings before retrying.

What happens to local files after a successful CDN upload?

Local files are never deleted after upload. For batch uploads, each file is processed individually and the original reference is kept if any single upload fails, so no placeholder URLs are substituted.