Agent skill · remotion-dev
offload-r2
Upload Remotion repository media assets to the Cloudflare R2 bucket behind remotion.media, switch source code to hosted URLs, verify the public objects, and remove repository-local copies.
What it needs
About 1k tokens when loaded.
What this skill does
Offload R2 Asset Host media on https://remotion.media/, update every in-scope source reference to the public object, and remove the repository-local copy after verification. Workflow 1. Find the main worktree with git worktree list --porcelain. Prefer the worktree on refs/heads/main, normally /Users/jonathanburger/remotion. 2. Choose a stable, descriptive object key. Use a feature-specific directory prefix when it prevents collisions, for example studio-close-ups/demo.mp4. When replacing an asset, prefer a new versioned key so browser and Studio caches cannot serve the previous bytes. 3. Load credentials from the main worktree without printing them: The required variables are AWSACCESSKEYID and AWSSECRETACCESSKEY. 4. Upload to the parser-media bucket with Bun's S3-compatible client: 5. Verify the public object and compare its SHA-256 hash with the local file before removing anything: 6. Replace every in-scope source usage with the public URL. Do not wrap remote URLs in staticFile() because it rejects http:// and https:// URLs. 7. After the public hash matches and source references are remote, remove the local copy. Use git rm -- <local-file> for a tracked file or remove the exact untracked/ignored file directly. Remove obsolete asset-specific .gitignore entries and empty asset directories. Do not use recursive deletion or broad globs. 8. Verify the local copy is gone and search the affected package for remaining local references: 9. Run focused lint or style checks for touched packages. Commit or push only when requested.
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills remotion-dev/offload-r2