Agent Skills: Upload Element Previews

Upload a Remotion Element's preview assets to remotion.media and replace local preview URLs. Use when given an Element slug, or when exactly one Element's preview assets are present in the current worktree.

UncategorizedID: remotion-dev/remotion/upload-element-previews

Repository

remotion-devLicense: NOASSERTION
58,9764,495

Install this agent skill to your local

pnpm dlx add-skill https://github.com/remotion-dev/remotion/tree/HEAD/.agents/skills/upload-element-previews

Skill Files

Browse the full folder contents for upload-element-previews.

Download Skill

Loading file tree…

.agents/skills/upload-element-previews/SKILL.md

Skill Metadata

Name
upload-element-previews
Description
Upload a Remotion Element's preview assets to remotion.media and replace local preview URLs. Use when given an Element slug, or when exactly one Element's preview assets are present in the current worktree.

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.