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
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.pngUpload with custom expiry (1 hour):
uv run {baseDir}/scripts/upload.py ./report.pdf --expires 3600Upload to specific bucket and prefix:
uv run {baseDir}/scripts/upload.py ./photo.jpg --bucket my-bucket --prefix images/2026Environment Variables
| Variable | Description |
JD_OSS_ACCESS_KEY | JD Cloud access key ID |
JD_OSS_SECRET_KEY | JD Cloud secret access key |
JD_OSS_ENDPOINT | OSS endpoint URL (e.g. https://s3.cn-north-1.jdcloud-oss.com) |
JD_OSS_BUCKET | Default bucket name |
Output
The script prints two lines:
URL: <presigned-url>— the presigned URLMEDIA: <presigned-url>— for OpenClaw auto-attach to chat
Notes
- Presigned URLs default to 15 min expiry; use
--expiresto adjust. - Files get unique keys:
prefix/timestamp-hash-filenameto avoid collisions. - Content-Type is auto-detected from file extension.
- JD Cloud OSS is S3-compatible; the script uses boto3 with S3v4 signatures.
In this repository16 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- daily-notificationSkill
- diet-tracking-analysisSkill
- emotional-supportSkill
- exercise-tracking-planningSkill
- habit-builderSkill
- meal-plannerSkill
- memory-consolidationSkill
- notification-composerSkill
- notification-managerSkill
- plan-exportSkill
- restaurant-meal-finderSkill
- user-onboarding-profileSkill
- weekly-reportSkill
- weight-loss-plannerSkill
- weight-trackingSkill
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.

