Communitygithub.com

ever-just/agentskills

> Create videos programmatically using React components. The most mature framework for code-driven video production.

What is agentskills?

agentskills is a Claude Code agent skill that > Create videos programmatically using React components. The most mature framework for code-driven video production.

Works with~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ever-just/agentskills/tree/HEAD/skills/remotion

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

Remotion — Programmatic Video Creation with React

Create videos programmatically using React components. The most mature framework for code-driven video production.

Overview

  • Repo: github.com/remotion-dev/remotion (21K+ stars)
  • Language: TypeScript / React
  • License: Free for individuals and companies under $1M revenue
  • Install: npm install remotion @remotion/cli @remotion/transitions
  • Docs: remotion.dev/docs

Core Concepts

Composition

A <Composition> defines a video's dimensions, frame rate, and duration:

import { Composition } from "remotion";

export const RemotionRoot: React.FC = () => {
  return (
    <Composition
      id="MyVideo"
      component={MyVideo}
      durationInFrames={300}  // 10 seconds at 30fps
      fps={30}
      width={1920}
      height={1080}
    />
  );
};

Animation Primitives

useCurrentFrame() — Returns the current frame number (0-indexed):

const frame = useCurrentFrame();

interpolate() — Maps frame ranges to output values:

import { interpolate, useCurrentFrame } from "remotion";

const opacity = interpolate(frame, [0, 30], [0, 1], {
  extrapolateRight: "clamp",
});

spring() — Physics-based spring animation:

import { spring, useCurrentFrame, useVideoConfig } from "remotion";

const { fps } = useVideoConfig();
const scale = spring({ frame, fps, config: { damping: 200 } });

Sequencing

— Offsets content in time:

<Sequence from={30} durationInFrames={60}>
  <MyScene />
</Sequence>

— Places children one after another:

import { Series } from "remotion";

<Series>
  <Series.Sequence durationInFrames={90}>
    <IntroScene />
  </Series.Sequence>
  <Series.Sequence durationInFrames={150}>
    <MainScene />
  </Series.Sequence>
  <Series.Sequence durationInFrames={60}>
    <OutroScene />
  </Series.Sequence>
</Series>

— Full-frame positioned container:

<AbsoluteFill style={{ backgroundColor: "#0a0a0a" }}>
  <h1>Hello World</h1>
</AbsoluteFill>

Transitions

import { linearTiming, TransitionSeries } from "@remotion/transitions";
import { fade } from "@remotion/transitions/fade";
import { slide } from "@remotion/transitions/slide";

<TransitionSeries>
  <TransitionSeries.Sequence durationInFrames={90}>
    <Scene1 />
  </TransitionSeries.Sequence>
  <TransitionSeries.Transition
    presentation={fade()}
    timing={linearTiming({ durationInFrames: 15 })}
  />
  <TransitionSeries.Sequence durationInFrames={90}>
    <Scene2 />
  </TransitionSeries.Sequence>
</TransitionSeries>

Available transitions: fade, slide, wipe, flip, clockWipe, none

Media

import { Video, Audio, Img, staticFile } from "remotion";

// Static files go in /public
<Video src={staticFile("demo.mp4")} />
<Audio src={staticFile("music.mp3")} volume={0.5} />
<Img src={staticFile("logo.png")} />

Project Setup

# Create new project
npx create-video@latest my-video

# Or manually:
mkdir my-video && cd my-video
npm init -y
npm install remotion @remotion/cli @remotion/transitions react react-dom
npm install -D typescript @types/react

Required Files

src/index.ts (entry point):

import { registerRoot } from "remotion";
import { RemotionRoot } from "./Root";
registerRoot(RemotionRoot);

remotion.config.ts:

import { Config } from "@remotion/cli/config";
Config.setVideoImageFormat("jpeg");
Config.setOverwriteOutput(true);

Commands

# Preview in browser (Remotion Studio)
npx remotion studio

# Render to MP4
npx remotion render MyVideo out/video.mp4

# Render specific frames
npx remotion render MyVideo out/video.mp4 --frames=0-90

# Render as GIF
npx remotion render MyVideo out/video.gif --image-format=png

# Render still image
npx remotion still MyVideo out/thumbnail.png --frame=45

Best Practices

  1. Always clamp interpolations: Use extrapolateRight: "clamp" to prevent values from overshooting
  2. Use spring() for natural motion: Springs feel more organic than linear interpolation
  3. Keep scenes as separate components: Each scene should be its own React component
  4. Use for sequential scenes: Easier than calculating manual offsets
  5. Set explicit durations: Every Sequence should have durationInFrames
  6. Use AbsoluteFill: For full-frame backgrounds and overlapping layers
  7. Static assets in /public: Use staticFile() to reference them
  8. Test at different frames: Use Remotion Studio scrubber to verify animations
  9. Prefer CSS transforms: transform: scale() and translateX() are GPU-accelerated
  10. Avoid heavy re-renders: Memoize expensive computations with useMemo

Common Patterns

Fade-in text:

const frame = useCurrentFrame();
const opacity = interpolate(frame, [0, 20], [0, 1], { extrapolateRight: "clamp" });
const y = interpolate(frame, [0, 20], [20, 0], { extrapolateRight: "clamp" });

<div style={{ opacity, transform: `translateY(${y}px)` }}>
  Hello World
</div>

Staggered list items:

{items.map((item, i) => {
  const delay = i * 8;
  const opacity = interpolate(frame, [delay, delay + 15], [0, 1], {
    extrapolateLeft: "clamp",
    extrapolateRight: "clamp",
  });
  return <div key={i} style={{ opacity }}>{item}</div>;
})}

Typewriter effect:

const charsShown = interpolate(frame, [0, text.length * 2], [0, text.length], {
  extrapolateRight: "clamp",
});
<span>{text.slice(0, Math.floor(charsShown))}</span>

Extensions (all open source, npm install)

  • @remotion/transitions — Scene transitions (fade, slide, wipe)
  • @remotion/three — React Three Fiber 3D scenes in video
  • @remotion/lottie — Embed Lottie animations
  • @remotion/gif — Embed GIF files
  • @remotion/media-utils — Audio/video metadata utilities
  • @remotion/noise — Perlin noise for organic effects
  • @remotion/paths — SVG path animation utilities

Upstream Skill Sources

  • Official skills: github.com/remotion-dev/skills
  • Templates: github.com/reactvideoeditor/remotion-templates
  • Superpowers pipeline: github.com/dojocodinglabs/remotion-superpowers

Individual skills in this repo

This repo contains 9 individual skills — each has its own dedicated page.

ever-just/agentskills

> Declarative animations for React. Springs, gestures, layout animations, and page transitions. GPU-accelerated, production-ready.

ever-just/agentskills

> Create animated logos, icons, and micro-interactions as lightweight Lottie JSON files. No After Effects needed — build animations entirely in code.

ever-just/agentskills

> A TypeScript library using generators to program animations with a real-time editor. Ideal for explainer videos, code walkthroughs, and educational content.

ever-just/agentskills

> Add animated subtitles and captions to Remotion videos from .SRT files. TikTok-style word-by-word highlights, karaoke effects, and more.

ever-just/agentskills

> Copy-paste video components for Remotion. Intros, text effects, transitions, and full scene templates. Like shadcn/ui but for video.

ever-just/agentskills

Extract actionable intelligence from video content across YouTube, Vimeo, and company websites. Video reveals what text sources cannot: facility scale, team composition, product demonstrations, signage, event attendance, and operational reality.

ever-just/agentskills

Optimize and embed an existing video as a fast, crisp, autoplaying hero/background/loop on a website. Use when adding or replacing a video on a marketing site and it is too heavy, will not autoplay (especially on mobile/Safari), shows a codec error, or looks soft — to transcode it to web-safe H.264 with the right pixel format, faststart, retina-aware sizing, and a poster frame, then embed and verify it actually plays. This is optimization + embedding of footage you already have, not creating/animating a video (for that use remotion/moviepy/motion-canvas). Use when the user says "add this video to the site", "the hero video is too big / won't play / isn't crisp", "replace the homepage video", or "make this loop on the landing page".

ever-just/agentskills

Full conversion audit for any homepage or landing page. Use when someone asks to "review my homepage," "audit my landing page," "why isn't my page converting," "check my website," or wants feedback on their marketing page. Requires URL or screenshot before proceeding.

ever-just/agentskills

Automatically fetch YouTube video transcripts, generate structured summaries, and send full transcripts to messaging platforms. Detects YouTube URLs and provides metadata, key insights, and downloadable transcripts.

Related Skills