This guide explains how to find an Element page, register its library when needed, and use Remotion CLI dry runs before installing an Element. It then covers adapting the component and checking its render in Remotion Studio, including when to ask the user before proceeding.
95%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Medium
Suggest reviewing before use
An Element is a reusable video component written in React. Element libraries publish each Element on its own page, the Element page. Installing an Element copies its source code into the project. The user owns that copy and can edit it and combine it with other Elements like any other component.
If no Remotion project exists yet, load Create a new Remotion video first.
Any website can be an Element library, and all Element libraries are peers.
Fetch https://www.remotion.dev/elements/libraries.md for the current list of Element libraries, with each library URL and Markdown index.
The CLI needs an Element page URL. To find one in an Element library that is not listed, fetch its Markdown index, usually at /llms.txt on its domain or by appending .md to a page.
Installing an Element library lists it in Browse Elements in Remotion Studio, where the user can preview its Elements and drag them into a composition. Before adding an Element from an Element library, install the library. Run exactly:
npx remotion elements add-library <library-url>Config.addElementLibrary() call to remotion.config.ts. If the library is already in the config, it changes nothing.--display-name <name> to override it.No Remotion config file found: create remotion.config.ts with import {Config} from '@remotion/cli/config'; and run the command again.Config.addElementLibrary({url: '<library-url>'}) call to remotion.config.ts yourself.Copy this checklist and track progress:
- [ ] 1. Get the Element page URL and install its Element library
- [ ] 2. Dry run succeeds
- [ ] 3. Element installed
- [ ] 4. Element adapted and previewedMarkdown indexes link to Markdown documents, which the installer cannot use.
Fetch the Element's Markdown document and use the Element page URL it names near the top, for example after Element page: or URL:.
If it names none, remove .md from the document's URL.
If the Element comes from a known Element library, install the library. Given only an Element page URL, skip this.
Run exactly:
npx remotion elements use <element-page-url> --composition <composition-id> --dry-runRead the output and fix the cause before continuing:
No Element found: search the page's HTML for application/vnd.remotion.element+json. If a <link> with that type has an href, resolve the href against the Element page URL and dry run that JSON URL instead. If there is no payload, the component is not an Element. Follow the install instructions on its Markdown page, for example a shadcn command, and skip to step 4.--element <slug>.elements use or --dry-run not recognized: Remotion is older than 4.0.543. Load Remotion Upgrade or ask the user.Repeat until the dry run prints the Element, the files it creates and changes, the packages and the assets.
Run the same command with --yes instead of --dry-run:
npx remotion elements use <element-page-url> --composition <composition-id> --yesThe command installs missing packages, saves assets to public/, writes an .element.tsx file next to the composition's component and inserts the Element at frame 0.
.element.tsx file already exists with different contents, the command fails. Add --overwrite only if the user agrees.<Sequence> for timing and placement.npx remotion elements use: all flagsremotion-dev/remotion
8e7b9e9
npxnpx remotionnpx remotion elementsnpx remotion elements add-librarynpx remotion elements useshadcnhttps://www.remotion.devIf you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.