mcpField
U
upload-element-previews

upload-element-previews

github.com/remotion-devCloud & DevOps68.6k273 installsUpdated today
Repository

About upload-element-previews

A skill for uploading Element preview assets and updating their media URLs. It guides contributors through selecting the asset source and handling local review files.

Key features

  1. 01Choose render or submission assets
  2. 02Upload Element previews
  3. 03Replace image and media URLs
  4. 04Handle local review assets

Use cases

  1. 01Publish newly rendered previews
  2. 02Upload committed preview files
  3. 03Keep concurrent branch previews separate

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/remotion-dev/remotion --skill upload-element-previews

After installing, type/upload-element-previewsin Claude Code to confirm it loaded.

Details

From the project README

Upload Element Previews

  1. Identify the Element slug. Ask if it is ambiguous.
  2. Choose the source:
    • Use render for fresh files in .element-previews.
    • Use submission for committed files in static/elements.
  3. Upload the previews:
cd packages/docs
bun run upload-element-preview \
  --element=<category>/<slug> \
  --source=<render|submission>

Each upload uses a new random URL postfix, including when the Element already has hosted previews. This keeps previews from concurrent branches independent.

  1. Replace image, posterUrl, and videoUrl with the newly printed remotion.media URLs.
  2. If using submission, delete the local review assets. If using render, leave .element-previews uncommitted.
  3. Commit and push when the work belongs on a branch.

Comments

Markdown supported