agentleFS
zwjbendnzwjbendn/weight-loss-skill/jdcloud-oss-upload/SKILL.md

jdcloud-oss-upload

Skill1 starsChanged 8 months agoMITView on GitHub

Upload local files to JD Cloud OSS and get presigned URLs (15 min expiry). Use when needing to share local files via URL, send images to chat channels that require public URLs, or upload any file to cloud storage. Supports images, PDFs, videos, and any file type.

  • Reads credentials
Files
SKILL.md

JD Cloud OSS Upload

⚠️ SILENT OPERATION: Never narrate internal actions, skill transitions, or tool calls to the user. No "Let me check...", "Now I'll transition to...", "Reading your profile...". Just do it silently and respond with the result.

Upload a local file to JD Cloud OSS and get a presigned URL (default 15 min expiry).

Usage

uv run {baseDir}/scripts/upload.py <file_path> [--bucket BUCKET] [--prefix PREFIX] [--expires 900]

Examples

Upload an image:

uv run {baseDir}/scripts/upload.py ./screenshot.png

Upload with custom expiry (1 hour):

uv run {baseDir}/scripts/upload.py ./report.pdf --expires 3600

Upload to specific bucket and prefix:

uv run {baseDir}/scripts/upload.py ./photo.jpg --bucket my-bucket --prefix images/2026

Environment Variables

VariableDescription
JD_OSS_ACCESS_KEYJD Cloud access key ID
JD_OSS_SECRET_KEYJD Cloud secret access key
JD_OSS_ENDPOINTOSS endpoint URL (e.g. https://s3.cn-north-1.jdcloud-oss.com)
JD_OSS_BUCKETDefault bucket name

Output

The script prints two lines:

  • URL: <presigned-url> — the presigned URL
  • MEDIA: <presigned-url> — for OpenClaw auto-attach to chat

Notes

  • Presigned URLs default to 15 min expiry; use --expires to adjust.
  • Files get unique keys: prefix/timestamp-hash-filename to avoid collisions.
  • Content-Type is auto-detected from file extension.
  • JD Cloud OSS is S3-compatible; the script uses boto3 with S3v4 signatures.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

Reviews can't be read right now.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.