c-cloud-media
Installation
SKILL.md
Cloud Media — R2 Upload & CFW Social API
R2 Upload
Method A: Upload Script (Recommended)
# Single file
bash _scripts/upload-to-recordings.sh "$LOCAL_FILE"
# Returns CDN URL: https://media.cfw.social/brand-assets/{brandId}/{folderId}/{timestamp}-{uuid}.{ext}
Method B: rclone Direct
TIMESTAMP=$(date +%s)
UUID=$(python3 -c "import uuid; print(uuid.uuid4().hex[:12])")
R2_KEY="brand-assets/$BRAND_ACCOUNT_ID/$FOLDER_ID/${TIMESTAMP}-${UUID}.$(echo $LOCAL_FILE | rev | cut -d. -f1 | rev)"