agentleFS
composio-communitycomposio-community/open-claude-cowork/.claude/skills/remotion-best-practices/SKILL.md

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

Jan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 1 mentionOct 2026: 0 mentionsNov 2026: 0 mentionsDec 2026: 0 mentions
Jan 2026Jul 2026Dec 2026
Mentions a month of the composio-community/open-claude-cowork repository that our weekly crawl found: only 1 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Most recently taken up by

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.
  • OpenAISkill

    remotion-saas

    Build an app with Remotion

    Also in 11 projects that use this

  • OpenAISkill

    remotion-maps

    Remotion Map animation knowledge

    Also in 9 projects that use this

  • xerocSkill

    website-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

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
  1. Distinctive:

    Use this to animate properties, states, and styles

    line 18
  2. Distinctive:

    Write React code just like for a web app

    line 44
  3. Distinctive:

    Keep compositions modular and reusable

    line 45
  4. Very specific:

    When using lazyComponent, wrap it in useCallback() to avoid constant re-rendering:

    line 77
  5. Distinctive:

    Use environment variables for API keys

    line 121
  6. Very specific:

    Use delayRender() and continueRender() for async operations

    line 126
  7. Very specific:

    Use staticFile() for local assets

    line 129
  8. Very specific:

    Check Node.js version (16+ required)

    line 179
  9. Distinctive:

    Check port 3000 isn't already in use

    line 181
  10. Very specific:

    Ensure you're using interpolate() correctly

    line 184
  11. Distinctive:

    Check frame rate (fps) setting

    line 185
  12. Very specific:

    Use extrapolateRight: 'clamp' to prevent values from going beyond range

    line 186
  13. Distinctive:

    Don't re-render Player unnecessarily (see best practices above)

    line 189
  14. Distinctive:

    Use refs instead of state for player controls

    line 190

“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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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@latest

Start the Studio

npm start

The 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() and continueRender() 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

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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.