remocn/remocn-studio/remotion-interactivity
Claude Code and agent skill by remocn/remocn-studio
- community
Checking that the SKILL.md file is still in the repository.
Structure Remotion markup for interactivity
Install
npx vskill@latest install remocn/remocn-studio/remotion-interactivitySKILL.md
By writing Remotion markup in a specific way, the Remotion Studio is able to recognize the structure of the code and makes it interactive:
- Allowing items to be selected by clicking on them
- Allowing drag+drop, resizing and rotation
- Editing the CSS styles
- Making keyframes and easing values editable
If the markup is too complex for the Studio to make it interactive, then the values become grayed out.
Prefer interactive components with their own timelines
Use Interactive.withSchema({wrapInSequence: true, layout: 'absolute-fill'}) for components that fill their parent. The wrapper provides their visual root and timeline item, and clips overflow by default, so the inner component can return a fragment. Put timing, premounting, dimensions, and per-instance styles on the exported component.
Keep visuals that belong together in the same component, so they move and trim together. An inner layout container can still provide alignment, clipping within a smaller area, or an animated group; a container that only fills the scene is usually unnecessary. Cards, text boxes, and SVGs with their own bounds can keep the default layout: 'none' and forward style to their visual root.
Choose schema fields
Each key in the schema is a prop that Studio can read and edit at the call site. Props that are not in the schema still work, but are not editable in Studio. Keys may use dot notation, such as style.color.
| Type | Use for | Keyframable | |
|---|---|---|---|
string | Strings, such as a title, prompt, or code snippet | No | |
number | Numbers, with optional min, max, step, integer | Yes | |
boolean | On/off switches | Yes (hold) | |
color | CSS color strings | Yes | |
enum | A choice between variants, each with its own nested schema | Opt-in (hold) | |
array | Lists of numbers, colors, enums and more | No | |
asset | Media sources, with optional assetType | No | |
font-family | CSS font family | No | |
font-weight | Font weight | Yes | |
translate, scale, rotation-css, rotation-degrees, transform-origin | Transforms | Yes | |
uv-coordinate | A normalized [x, y] point on the element | Yes | |
svg-path | SVG path data | Yes | |
remotion-captions | Caption[] data | No | |
hidden | A value kept out of the controls | — |
Every field needs a default and should have a description, which Studio shows as the label. Set keyframable: false to show a static control.
Expose content and per-instance appearance, such as the text and an accent color. Do not add fields for style.translate, style.scale, style.rotate, style.transformOrigin and style.opacity: wrapInSequence: true already adds them.
To make CSS properties of the root editable per instance, spread the built-in schema fragments:
Also available: Interactive.borderSchema, and Interactive.captionsSchema for components that accept captions. For components that accept React.ReactNode children, add ...Interactive.childrenSchema. It provides controls for children content and may evolve to support richer content. Currently, it uses a string field labeled "Text" with a default of ''. If a component requires string-only children, declare an explicit children field with type: 'string' instead. Interactive.textSchema controls typography styles; childrenSchema controls content. The children fragment is not included in baseSchema or automatically added to custom components. Nested markup and computed children are currently read-only. text-content is a deprecated alias for the string field type. See `InteractivitySchema` for all options.
Register reusable components as connected compositions
Register substantial scenes and reusable components with their own layers or animation as standalone compositions. Studio calls these connected compositions: they can be opened in their own timeline while sharing the same component implementation with the parent video.
Define required styles and load fonts inside the component so it works without its parent. See parent independence.
Register the same exported component reference that the parent renders. For the example above, use component={Scene}, not SceneInner or an inline wrapper. With wrapInSequence: true, no extra <Sequence> is needed for the connection.
Choose a unique ID, representative inline defaults, and dimensions, fps, and duration suitable for previewing the component. Registration defaults do not automatically copy props from a parent instance. See connected compositions for registration and extraction details.
Put timing directly on the component
Avoid a separate <Sequence> around one component that already accepts timing props. Built-in interactive components and custom components made with wrapInSequence: true can receive name, from, durationInFrames, trimBefore, playbackRate, and premountFor directly.
When removing a redundant sequence, move its timing and name to the child. Preserve any existing child timing; do not overwrite or double-apply offsets. A useCurrentFrame() call inside the component reads its local frame, while a style expression at the call site still uses the caller's frame. Preserve that distinction when moving animation styles.
Keep a <Sequence> when it provides shared timing for multiple siblings, wraps a component that does not handle timing, or supplies dimensions the child cannot accept directly. Managed roots also accept width and height for useVideoConfig(). Keep <TransitionSeries.Sequence> for consecutive layout, with or without transitions; direct from props do not replace those behaviors.
Give every independently editable item its own JSX node
The Studio edits the JSX source node that created an item. If multiple runtime items come from the same JSX node, they share one source-editing target.
For every composition registration, clip, scene, layer or sequence that should be editable on its own, write a separate JSX node and keep its editable props on that node. This applies to <Composition>, <Still>, built-in media components, <Sequence>, <TransitionSeries.Sequence> and custom components.
For example, author an editable timeline like this:
A .map() or another programmatic loop would create multiple runtime items from one JSX source node. That is appropriate for repeated output that is intentionally controlled as one template, such as visualization bars or particles. It is not appropriate when the instances need independent IDs or names, props, metadata, timing, ordering, deletion or duplication in the Studio.
Make an HTML element interactive using Interactive
Every HTML and SVG element (except <Img>, it already is interactive) such as <div> can be turned interactive using Interactive:
This allows styles and keyframes to be set in the Studio. Be sensible, if a component has many elements, the timeline might get messy.
Prefer inline text
If text is fixed and only used once, write it directly inside the interactive element instead of extracting it into a constant.
Use a prop or variable only when the text is dynamic or reused.
Give interactive elements a descriptive name
Add a name prop to elements to make them easily identifyable. Avoid computed names, hardcode them.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingagent/skills/remotion-interactivity/SKILL.md
Popularity
- Repository stars
- 199
- Repository forks
- 16
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/remocn/remocn-studio/remotion-interactivity)