Communitygithub.com

costa-marcello/skillkit

Guides Remotion video development in React, including compositions, animations, timing, audio, captions, and rendering. Use when the user works with Remotion, writes <Composition>/<Sequence>/interpolate/spring, edits remotion.config.ts, renders or deploys Lambda videos, or asks about video creation in React.

skillkit 是什么?

skillkit is a Codex agent skill that guides Remotion video development in React, including compositions, animations, timing, audio, captions, and rendering. Use when the user works with Remotion, writes <Composition>/<Sequence>/interpolate/spring, edits remotion.config.ts, renders or deploys Lambda videos, or asks about video creation in React.

兼容平台~Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/costa-marcello/skillkit/tree/HEAD/skills/remotion-video

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

When to use

Load this skill whenever you read or write Remotion code, from scaffolding a project to rendering the final video.

Common AI mistakes to avoid

Check every Remotion code change against these recurring failure modes before committing:

  • Non-deterministic randomness — use random(seed) from remotion, never Math.random(), Date.now(), or new Date(). Parallel renders produce flickering noise otherwise.
  • Unmemoised <Player> inputProps — always pass memoised props; unmemoised props cause re-render storms through the whole tree.
  • Missing delayRender() / continueRender() around async work (fetch, font load, measurement). Without them the render hangs at 30 000 ms.
  • Non-monotonic inputRange on captions — interpolate's inputRange must strictly increase. For short clips use Math.min(10, Math.floor(duration / 3)) for the fade window.
  • Linear easing everywhere — prefer spring() for natural motion; use linear only for explicit technical needs.
  • Forgotten @remotion/google-fonts imports — every font needs an explicit loadFont({ weights, subsets }) call.
  • Monolithic single-composition output — break scenes into small focused compositions and compose with <Sequence> or <TransitionSeries>.
  • Deprecated startFrom / endAt — use trimBefore / trimAfter instead.

New project setup

When in an empty folder or workspace with no existing Remotion project, scaffold one using:

npx create-video@latest --yes --blank --no-tailwind my-video

Replace my-video with a suitable project name.

Starting preview

Start the Remotion Studio to preview a video:

npx remotion studio

Optional: one-frame render check

You can render a single frame with the CLI to sanity-check layout, colours, or timing. Skip it for trivial edits, pure refactors, or when you already have enough confidence from Studio or prior renders.

npx remotion still [composition-id] --scale=0.25 --frame=30

At 30 fps, --frame=30 is the one-second mark (--frame is zero-based).

Rule index

Read individual rule files for detailed explanations and code examples.

Core

Media

Audio

Text

Advanced

Utilities

Production

Integration

Packages

相关技能