/chu-gallery:upload-to-r2from chu-gallery
Upload files to Cloudflare R2 storage. Supports images and videos with optional optimization. Returns public URLs.
Ships in chu-gallery. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Generic skill to upload files to Cloudflare R2 storage.
wrangler installed and authenticated (npm install -g wrangler && wrangler login)chu-videos for videos, chu-images for images)/upload-to-r2 {file-or-folder} {bucket-path} [--optimize]
Examples:
/upload-to-r2 ./video.mp4 cabo-2025/ - Upload single video/upload-to-r2 ./optimized/ cabo-2025/ - Upload folder contents/upload-to-r2 ./videos/ cabo-2025/ --optimize - Optimize then upload| Bucket | Domain | Use Case |
|---|---|---|
chu-videos | play.chu.fyi | Video files (.mp4) |
chu-images | images.chu.fyi | Image files (future) |
When --optimize flag is passed, runs optimization before upload:
./scripts/optimize-videos.sh {input} ./tmp-optimized
Optimization settings:
wrangler r2 object put chu-videos/{bucket-path}/{filename} --file {local-file} --remote
for file in {folder}/*.mp4; do
filename=$(basename "$file")
wrangler r2 object put chu-videos/{bucket-path}/$filename --file "$file" --remote
done
Returns URLs for uploaded files:
Uploaded 3 files to chu-videos/cabo-2025/:
- https://play.chu.fyi/cabo-2025/drinks-at-cuzi.mp4
- https://play.chu.fyi/cabo-2025/water-balloon-fight.mp4
- https://play.chu.fyi/cabo-2025/shark-attack.mp4
import LazyVideo from "../../../components/LazyVideo.svelte";
<LazyVideo
src="https://play.chu.fyi/{bucket-path}/video-name.mp4"
ariaLabel="Description of video"
client:visible
/>
This skill is used by:
/gallery - When gallery includes video contentWhat SKILL.md sets; muted values are Claude Code's defaults
5 skills in this plugin
/extract-exifExtract EXIF metadata from images to JSON. Works with any image folder. Outputs structured data including dimensions, orientation, and timestamps./galleryCreate photo galleries with AI-assisted layout curation. Orchestrates atomic scripts and sub-agents. Use when user wants to create a gallery from photos, mentions "/gallery", or asks about photo layout and sequencing./generate-astro-galleryGenerate Astro page files from an existing gallery manifest. Internal step of /gallery workflow - use directly only to regenerate from completed manifests.Other plugins' skills for the same job
npx claudepluginhub chufucious/chu-gallery-plugin --plugin chu-gallery