remotion-best-practices
Skill4.3k starsChanged 11 months agoMITView on GitHub
Use this skill when the user asks about creating videos with React, Remotion framework, programmatic video generation, video animations, or needs help with Remotion projects
88 other projects use a version of this.
Trending
Quiet since September.thin dataabout the whole repository
Most recently taken up by
- Mazalucas/El-DT-Lightweight-Armytheir own version, first seen Oct 5, 2026
- remotion-dev/claude-code-plugintheir own version, first seen Oct 5, 2026
- remotion-dev/kimi-code-plugintheir own version, first seen Oct 5, 2026
- Sma1lboy/rovetheir own version, first seen Oct 4, 2026
- calesthio/OpenMontagetheir own version, first seen Oct 3, 2026
- STARDUSTLC666/dsh-remotiontheir own version, first seen Oct 3, 2026
Who's talking about composio-community/open-claude-cowork
The biggest 1 of 1 mention linking to the repository that our crawl found. Each line is their own headline.
Used with
Projects with it also use remotion-saas, remotion-maps and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
OpenAISkillremotion-saas
Build an app with Remotion
Also in 11 projects that use this
OpenAISkillremotion-maps
Remotion Map animation knowledge
Also in 9 projects that use this
xerocSkillwebsite-to-video
Capture a general website/URL and turn it into a video OF the site — tour, showcase, or social clip built from captured screenshots and the site's own brand assets. Use for portfolio / blog / docs / landing-page showcases. Not a product launch or promo, even from a URL (/product-launch-video). Unclear → /hyperframes.
Also in 3 projects that use this
- +9 more from openai
Other versions88 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 88
- calesthio/OpenMontage★ 63ksame name
- vercel-labs/json-render★ 18ksame name
- openai/plugins★ 7.3ksame name
- remotion-dev/skills★ 4.8ksame name
- digitalsamba/claude-code-video-toolkit★ 2.2ksame name
- dtsola/xiaoyaosearch★ 1ksame name
- freestylefly/wesight★ 941same name
- coleam00/second-brain-skills★ 832same name
- freestylefly/canghe-skills★ 461same name
- Hainrixz/editor-pro-max★ 259same name
78 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repositoryOne other file it gives its agents.
- brand-guidelinesSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. 0 are common, 8 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 86 edited versions we read keep these.
8
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
Use this to animate properties, states, and styles
- Distinctive: line 44
Write React code just like for a web app
- Distinctive: line 45
Keep compositions modular and reusable
- Very specific: line 77
When using lazyComponent, wrap it in useCallback() to avoid constant re-rendering:
- Distinctive: line 121
Use environment variables for API keys
- Very specific: line 126
Use delayRender() and continueRender() for async operations
- Very specific: line 129
Use staticFile() for local assets
- Very specific: line 179
Check Node.js version (16+ required)
- Distinctive: line 181
Check port 3000 isn't already in use
- Very specific: line 184
Ensure you're using interpolate() correctly
- Distinctive: line 185
Check frame rate (fps) setting
- Very specific: line 186
Use extrapolateRight: 'clamp' to prevent values from going beyond range
- Distinctive: line 189
Don't re-render Player unnecessarily (see best practices above)
- Distinctive: line 190
Use refs instead of state for player controls
“Common” is measured: kept by at least 6 in 10 of the 86 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Remotion Best Practices
You are an expert in Remotion, the React framework for creating videos programmatically. Help users build video projects following best practices.
Core Concepts
The Fundamentals
Remotion gives you a frame number and a blank canvas. You render anything you want using React components, but instead of rendering UI to a browser, Remotion renders frames to a canvas.
Key Hooks
useCurrentFrame()
- Returns an integer identifying the current frame being viewed
- Use this to animate properties, states, and styles
- Example:
const frame = useCurrentFrame();
interpolate()
- Helper function that maps values to another range using concise syntax
- Makes animations more readable
- Example:
interpolate(frame, [0, 100], [0, 1])
Getting Started
Create New Project
# Requires Node.js 16+ or Bun 1.0.3+
npx create-video@latestStart the Studio
npm startThe studio will open on port 3000 with a visual editor for your compositions.
Best Practices
1. Component Architecture
- Use React components to define parts of your video (text, images, animations, scenes)
- Write React code just like for a web app
- Keep compositions modular and reusable
- Separate logic from presentation
2. Player Component Optimization
⚠️ Critical: The <Player> should NOT be re-rendered every time updates occur.
Do this:
// Render controls and UI as siblings to the Player
// Pass a ref to the player as a prop
function VideoApp() {
const playerRef = useRef(null);
return (
<>
<Player ref={playerRef} component={MyComp} />
<Controls playerRef={playerRef} />
</>
);
}Don't do this:
// ❌ Avoid re-rendering Player on every state change
function VideoApp() {
const [currentFrame, setCurrentFrame] = useState(0);
return <Player component={MyComp} frame={currentFrame} />;
}3. Dynamic Loading with lazyComponent
When using lazyComponent, wrap it in useCallback() to avoid constant re-rendering:
const MyLazyComponent = useCallback(() => {
return lazyComponent(() => import('./MyComponent'));
}, []);4. Animation Patterns
Basic Frame-based Animation:
import { useCurrentFrame, interpolate } from 'remotion';
export const MyComponent = () => {
const frame = useCurrentFrame();
// Fade in over 30 frames
const opacity = interpolate(frame, [0, 30], [0, 1], {
extrapolateRight: 'clamp',
});
return <div style={{ opacity }}>Hello World</div>;
};Position Animation:
const translateY = interpolate(
frame,
[0, 60],
[100, 0],
{ extrapolateRight: 'clamp' }
);
return (
<div style={{ transform: `translateY(${translateY}px)` }}>
Sliding text
</div>
);5. Working with External APIs
- Fetch data during rendering using React hooks
- Use environment variables for API keys
- Handle loading states appropriately
- Cache responses when possible
6. Performance Optimization
- Use
delayRender()andcontinueRender()for async operations - Optimize heavy computations
- Preload assets when possible
- Use
staticFile()for local assets
Common Patterns
Composition Structure
import { Composition } from 'remotion';
export const RemotionRoot = () => {
return (
<>
<Composition
id="MyVideo"
component={MyVideo}
durationInFrames={150}
fps={30}
width={1920}
height={1080}
/>
</>
);
};Sequence and Series
import { Sequence, Series } from 'remotion';
// Show components in parallel at different times
<Sequence from={0} durationInFrames={60}>
<Scene1 />
</Sequence>
<Sequence from={30} durationInFrames={60}>
<Scene2 />
</Sequence>
// Show components one after another
<Series>
<Series.Sequence durationInFrames={60}>
<Scene1 />
</Series.Sequence>
<Series.Sequence durationInFrames={60}>
<Scene2 />
</Series.Sequence>
</Series>Troubleshooting
Studio won't start
- Check Node.js version (16+ required)
- Clear node_modules and reinstall
- Check port 3000 isn't already in use
Animations not smooth
- Ensure you're using
interpolate()correctly - Check frame rate (fps) setting
- Use
extrapolateRight: 'clamp'to prevent values from going beyond range
Player performance issues
- Don't re-render Player unnecessarily (see best practices above)
- Use refs instead of state for player controls
- Optimize heavy components inside compositions
Licensing Note
Remotion has a special license. For commercial use, you may need to obtain a company license. Check the official documentation for details.
Resources
- Official Docs: https://www.remotion.dev/docs/
- GitHub: https://github.com/remotion-dev/remotion
- Discord Community: Join for support and examples
When to Use This Skill
- User asks about creating videos with code
- User mentions Remotion or programmatic video generation
- User needs help with video animations in React
- User wants to build video rendering features
- User asks about frame-based animations
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

