Make a launch video with Claude Code and RemotionUI
Set up a Remotion project so Claude Code can find, install and edit RemotionUI compositions on its own, then render a launch video from the terminal. Four commands and one config file.
RemotionUI
Coding agents are good at Remotion in one way and bad at it in another. They write
React fine. What they get wrong is the video part: CSS transitions that never show
up in a render, Math.random() that flickers frame to frame, components imported
from packages that don't exist.
RemotionUI ships three things so an agent doesn't have to guess: a Claude Code
skill with the animation rules, an MCP server that exposes the registry as tools,
and a CLI whose every command has a --json mode. Here is the whole setup, run
end to end on a clean machine while writing this post.
1. Create the project with the agent skill
npx remotion-ui@latest init launch-video --agent-skill
cd launch-videoinit scaffolds a Remotion project and --agent-skill writes
.claude/skills/remotionui-agent/SKILL.md. Claude Code picks that up
automatically. It tells the agent to install components with the CLI before
importing them, to import from local paths like @/compositions/... rather than
from npm, and to animate with useCurrentFrame(), interpolate() and spring()
instead of CSS.
Already have a Remotion project? Run npx remotion-ui@latest init --existing --agent-skill from its root instead.
2. Give it the registry as tools
Add the MCP server to .mcp.json in the project root:
{
"mcpServers": {
"remotion-ui": {
"command": "npx",
"args": ["-y", "remotion-ui-mcp"]
}
}
}Now the agent can call search-components, get-component-detail and
get-install-command instead of guessing names. The server never writes files.
It returns the install command and the agent runs it, so every change goes
through the same CLI you would use yourself.
3. Ask for the video
Open Claude Code in the project and describe the video, not the components:
Make a 10-second launch video for my CLI tool "shipkit".
Open with a branded intro, then show the install command.
Use RemotionUI compositions, register them in Root.tsx, and render a still of each to check them.For that prompt the components it should land on are intro and
landing-code-showcase. The install step is the same one you would type:
npx remotion-ui@latest add intro landing-code-showcaseadd copies the source into src/compositions/, installs the npm packages each
one declares, and registers a <Composition> for each in src/Root.tsx. The
project type-checks straight after, with no edits.
4. Edit the source, not a config
The compositions are your files now, which is the point. The intro takes
title, subtitle, eyebrow, topics, accentColor and backgroundColor as
props, so "make it say shipkit in orange" is a props change in Root.tsx. If you
want something the props don't cover, like a different easing or an extra beat,
the agent edits src/compositions/intro/index.tsx directly. There is no package
to fork and no upgrade to break it later.
5. Render
npx remotion still LandingCodeShowcase out/showcase.png --frame=60
npx remotion render Intro out/intro.mp4Rendering a still first is the cheapest check an agent can do. It catches layout and font problems in a second instead of after a full encode. On a laptop the 150-frame intro encoded to a 611 kB MP4 with default settings.
Why the rules matter more than the components
Most of what goes wrong when an agent writes Remotion code isn't React. It is code that looks right in the browser and renders wrong, because the renderer takes frames one at a time and anything driven by wall-clock time or CSS state never makes it into the file. We wrote about that failure mode in why your render doesn't match the preview.
The skill puts those rules in front of the agent before it writes anything, and the components are already written to them. That is most of the difference between a first render that works and an afternoon of debugging.
Without MCP or skills
If your agent supports neither, paste the starter prompt from
AI Usage. The same component data is also at
/llms.txt and /ai/components/<name>.json. For the full list of
agent tooling, see the MCP server docs.