/open-agent-hub:remotion-markupfrom open-agent-hub
Guides writing Remotion React markup with frame-driven animations, inline interpolations, and editable timeline structure. Covers performance, timing, and interactivity patterns.
Ships in open-agent-hub. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
This is guidance for writing Remotion React Markup.
If this is not relevant, load Remotion Best Practices (remotion-best-practices skill) instead.
MUST marks requirements, SHOULD recommendations, MAY optional actions, and CAN capabilities. Apply them to the requested task.
Users may make edits in the code outside of the conversation.
If you detect a surprising change made in the meanwhile, don't overwrite it, assume it was intentional or ask for confirmation.
Keep useCurrentFrame() in the smallest component that needs it. Extract
frame-dependent audio volume, titles, and overlays into their own components
instead of subscribing the whole composition or scene; otherwise unrelated
descendants re-render on every frame. Preserve the existing frame coordinates
when extracting across timing boundaries, and keep editable interpolations
inline on the item's props.
Inside a composition or scene component, get fps from useVideoConfig() for
all seconds-to-frames calculations, including timing props such as from,
trimBefore and durationInFrames. Keeping the expression on
the JSX node, such as trimBefore={4 * fps}, lets Studio edit the timing and
keeps it correct if the composition frame rate changes.
Drive animations using useCurrentFrame() and interpolate().
CSS transition or animation will not render correctly, they need to refactored.
Tailwind animation class will not render correctly, they need to be refactored.
Use Easing.bezier() and Easing.spring() to customize timing.
Before choosing the markup hierarchy, read
editable timeline structure (timeline-structure.md in the remotion-interactivity skill).
Choose editing units first, then the tracks or shared timing boundaries they
need. It includes a complete example with interactive components and their
registrations. For source-editable styles, schemas, and keyframes, see
Remotion Interactivity (remotion-interactivity skill).
import { useCurrentFrame, useVideoConfig, Easing, interpolate, Interactive } from "remotion";
export const FadeIn = () => {
const frame = useCurrentFrame();
const {fps} = useVideoConfig();
return (
<Interactive.Div
name="Title"
style={{
opacity: interpolate(frame, [0, 2 * fps], [0, 1], {
extrapolateRight: "clamp",
extrapolateLeft: "clamp",
easing: Easing.bezier(0.16, 1, 0.3, 1),
}),
}}
>
Hello World!
</Interactive.Div>
);
};
Keep the interpolate() call inline in the style prop.
Use scale, translate, rotate CSS properties over transform.
// 👍 Inline editable keyframes and transform shorthands
style={{
scale: interpolate(frame, [0, 100], [0, 1], {
extrapolateLeft: 'clamp',
extrapolateRight: 'clamp',
easing: Easing.spring({damping: 200}),
output: 'perceptual-scale' // For `scale` animations, use "output: 'perceptual-scale'"
}),
translate: interpolate(frame, [0, 100], ["0px 0px", "100px 100px"], {
extrapolateLeft: 'clamp',
extrapolateRight: 'clamp',
easing: Easing.spring({damping: 200}),
}),
rotate: interpolate(frame, [0, 100], ["20deg", "90deg"], {
extrapolateLeft: 'clamp',
extrapolateRight: 'clamp',
easing: Easing.spring({damping: 200}),
}),
}}
// 👎 Non-inline values and transform strings become harder to edit in Studio
const scale = interpolate(frame, [0, 100], [0, 1]);
style={{
transform: `scale(${scale})`,
}}
Place assets in the public/ folder at your project root.
Use staticFile() to reference files from the public/ folder.
Add video and audio using <Video> and <Audio> from @remotion/media.
Add images using the <CanvasImage> component.
Add animated GIFs, APNG, WebP or AVIF images using <AnimatedImage>, use @remotion/gif if not using Chrome.
Use staticFile() for files in public/ or pass a remote URL directly:
import { Audio, Video } from "@remotion/media";
import { staticFile, CanvasImage, AnimatedImage } from "remotion";
export const MyComposition = () => {
return (
<>
<Video src={staticFile("video.mp4")} style={{ opacity: 0.5 }} />
<Audio src={staticFile("audio.mp3")} />
<CanvasImage
src={staticFile("logo.png")}
style={{ width: 100, height: 100 }}
/>
<Video src="https://remotion.media/video.mp4" />
<AnimatedImage src={staticFile('nyancat.gif')} />
</>
);
};
If the composition is primarily a timeline of video or audio clips, read video-editing.md before choosing its source structure.
Use sequencing to choose the timing boundary and timing props for the supported props and order of operations.
See Remotion Maps if wanting to include maps in the video.
See text-highlights.md for text highlights (highlight markers), circles, underlines, strike-throughs, crossed-off text, boxes.
See multi-scene-video.md if planning to make a video with multiple subsequent scenes.
Read connected compositions when a scene or group needs its own editable timeline, or when handling a Studio pre-compose request. It covers extraction, registration, inherited styles, and verification in both the parent and standalone views.
See embedding-videos.md for advanced knowledge about embedding videos - trimming, volume, speed, looping, pitch.
See audio.md for advanced audio features like trimming, volume, speed, pitch.
See cropping.md if needing to crop the visible rectangle of a component.
For background removal, text behind a subject, background blur or replacement,
and effects applied only to a subject, read video-matting.md.
Generate reusable foreground layers with @remotion/video-matting before composing them.
See transitions.md for scene transition patterns.
When adding motion blur or a movement trail, read motion-blur.md for <HtmlInCanvasMotionBlur>, transition motionBlur, Studio controls, and preview requirements.
When adding a visual effect, first identify the element or group it should affect.
If the target component supports effects and a built-in effect below matches the
request, prefer that effect over a CSS approximation. For example, apply
vignette() directly to a <Video>'s effects prop when the vignette should
affect that video.
These components accept effects directly:
| Import from | Components |
|---|---|
remotion | <Img>, <CanvasImage>, <AnimatedImage>, <Solid>, <HtmlInCanvas> |
@remotion/media | <Video> |
@remotion/gif | <Gif> |
@remotion/rive | <RemotionRiveCanvas> |
@remotion/shapes | <Arrow>, <Callout>, <Circle>, <Ellipse>, <Heart>, <Pie>, <Polygon>, <Rect>, <Spark>, <Star>, <Triangle> |
Ordinary HTML elements, <Interactive.*> DOM wrappers, <AbsoluteFill>, and
<Sequence> do not accept effects directly. To apply effects to their content,
wrap them in <HtmlInCanvas> and put the effects prop on the wrapper.
For other elements, prefer regular HTML and CSS where suitable. Consider wrapping
a group in <HtmlInCanvas> when post-processing the whole
group is appropriate and the environment supports it.
Read effects.md before applying an effect for imports, parameters,
and setup. It also covers reusable custom effects with createEffect() when no
built-in effect matches.
Built-in effects from @remotion/effects:
brightness(), colorCorrection(), colorKey(), contrast(), curves(), duotone(), exposure(), grayscale(), hue(), invert(), levels(), linearGradient(), linearGradientTint(), lut(), saturation(), shadowsHighlights(), thermalVision(), tint(), vibrance(), whiteBalance().blur(), lightTrail(), linearProgressiveBlur(), radialProgressiveBlur(), regionBlur(), zoomBlur().dropShadow(), longShadows(), glow(), lightLeak(), shine(), starburst(), vignette().barrelDistortion(), chromaticAberration(), cornerPin(), fisheye(), mirror(), noiseDisplacement(), scale(), skew(), tile(), uvTranslate(), wave(), xyTranslate().burlap(), checkerboard(), contourLines(), dotGrid(), emboss(), flannel(), gridlines(), halftone(), halftoneLinearGradient(), lines(), liquidContours(), noise(), paper(), pattern(), rings(), scanlines(), speckle(), tvSignalOff(), waves(), whiteNoise(), zigzag().outline(), roughenEdges(), shrinkwrap(), tear().evolve(), linearProgressivePixelate(), pixelate(), pixelDissolve(), radialProgressivePixelate(), venetianBlinds().Read color-correction.md for primary adjustments with
colorCorrection(), tonal mapping with levels() or curves(), their Studio
editors, and 3D .cube color grades with lut().
See ./3d.md for 3D content in Remotion using Three.js and React Three Fiber.
When needing to use sound effects, load the ./sfx.md file for more information.
When needing to visualize audio (spectrum bars, waveforms, bass-reactive effects), load the ./audio-visualization.md file for more information.
For static maps, animated routes and markers, geographic explainers, Mapbox, MapLibre, MapTiler, GeoJSON, or 3D geographic flyovers, load Remotion Maps.
When dealing with captions or subtitles, load the Remotion Captions (remotion-captions skill) skill for more information.
For Arabic, Persian, Urdu or Hebrew text, read arabic-text.md: set the base direction, animate by word, and split letters only in a way that keeps them joined.
Is the recommended way to load fonts in Remotion. See google-fonts.md for how to load Google Fonts.
See local-fonts.md for how to load local fonts.
See gifs.md for how to display GIFs synchronized with Remotion's timeline.
See images.md for sizing and positioning images, dynamic image paths, and getting image dimensions.
See lottie.md for embedding Lottie animations in Remotion.
See timing.md for more timing techniques for interpolate().
See parameters.md for making a composition parametrizable by adding a Zod schema.
See measuring-dom-nodes.md for measuring DOM element dimensions in Remotion.
See measuring-text.md for measuring text dimensions, fitting text to containers, and checking overflow.
For some video operations, such as trimming videos or detecting silence, FFmpeg should be used. Load the ./ffmpeg.md file for more information.
When needing to detect and trim silent segments from video or audio files, load the ./silence-detection.md file.
See calculate-metadata.md for dynamically set composition duration, dimensions, and props.
Before registering <Composition> or <Still> elements, read compositions.md for source-editable registrations, folders, default props and nesting. For Studio navigation into a scene's own timeline, use connected compositions.
See sequencing.md for more sequencing patterns - delay, trim, limit duration of items.
Use npx remotion add to add new packages with the right version:
npx remotion add @remotion/media
This goes for @remotion/* packages, mediabunny, @mediabunny/*, zod, and @huggingface/transformers.
Visual changes CAN be inspected in Remotion Studio (remotion-studio skill)
or rendered frames (remotion-render skill). Comparisons CAN include visible
layers, cut timing, and synchronized content across the full composition and
connected components.
3d.md (opens in a new tab)agents/openai.yaml (opens in a new tab)arabic-text.md (opens in a new tab)assets/remotion-icon.png (opens in a new tab)assets/remotion-icon.svg (opens in a new tab)audio-visualization.md (opens in a new tab)audio.md (opens in a new tab)calculate-metadata.md (opens in a new tab)color-correction.md (opens in a new tab)compositions.md (opens in a new tab)connected-compositions.md (opens in a new tab)cropping.md (opens in a new tab)effects.md (opens in a new tab)embedding-videos.md (opens in a new tab)ffmpeg.md (opens in a new tab)gifs.md (opens in a new tab)google-fonts.md (opens in a new tab)html-in-canvas.md (opens in a new tab)images.md (opens in a new tab)light-leaks.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub guanyang/open-agent-hub --plugin open-agent-hub109 skills in this plugin
/academy-guideStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials, and use cases from Claude Academy (academy.claude.com), Anthropic's learning hub. Trigger on: "how do I", "how can I", "getting started with", "what can Claude do", "teach me", "learn to use"; questions about artifacts, projects, skills, plugins, connectors, MCP; requests about rolling Claude out to a team, class, or organization; and any ask for training materials, onboarding content, or learning resources. Use it when the user is learning how to use a feature or product — not when they are mid-task and just want the task done. This skill composes with other skills: after consulting product documentation to answer how a Claude feature works, also check here for a matching course or tutorial — a docs-grounded answer and an Academy recommendation belong together. Only recommend on a strong match; never invent Academy content.
/advanced-evaluationThis skill should be used for advanced LLM evaluation: LLM-as-judge systems, direct scoring, pairwise comparison, rubric calibration, evaluator bias mitigation, confidence scoring, and automated quality assessment./algorithmic-artCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations./baoyu-article-illustratorAnalyzes article structure, identifies positions requiring visual aids, generates illustrations with Type × Style × Palette three-dimension approach. Use when user asks to "illustrate article", "add images", "generate images for article", or "为文章配图"./baoyu-comicKnowledge comic creator supporting multiple art styles and tones. Creates original educational comics with detailed panel layouts and batch-capable image generation. Use when user asks to create "知识漫画", "教育漫画", "biography comic", "tutorial comic", or "Logicomix-style comic"./baoyu-compress-imageCompresses images to WebP (default) or PNG with automatic tool selection. Use when user asks to "compress image", "optimize image", "convert to webp", or reduce image file size.Other plugins' skills for the same job