remotion · oakoss — скилл для Claude Code: видео на React
Скилл для Remotion: агент собирает видео из React-компонентов и держит анимацию в таймлайне, а не в CSS.
MIT 141 установок ★ 29 обновлён 2026-08-17
npx skills add oakoss/agent-skills --skill remotion -a claude-codeЧто делает remotion
Скилл даёт агенту правила работы с Remotion — библиотекой, которая собирает видео из React-компонентов. Композиция задаёт свои width, height, fps и duration. Движение строится на useCurrentFrame() и interpolate(), а CSS-анимации и классы Tailwind в этой схеме дают артефакты при рендере.
Внутри таблица паттернов и список типичных ошибок. Пружины через spring(), Sequence и Series, переходы TransitionSeries, медиа из @remotion/media, ThreeCanvas для 3D, схема Zod на <Composition schema>, прозрачный WebM через --pixel-format=yuva420p --codec=vp9. Файлы в references/ разбирают анимации, композиции, медиа, субтитры и переходы, а поиск готовых композиций агент отдаёт подагенту Explore.
Нужен проект на React, где Remotion уже стоит. Скилл не для обычной вёрстки интерфейсов: общий React-фронтенд в его задачи не входит. Карты Mapbox рендерятся с --gl=angle --concurrency=1, а схема Zod на композиции требует той версии Zod, что указана в документации Remotion.
Какие задачи решает
- собрать композицию с явными width, height и fps
- прикрутить пружинную анимацию без отскока
- склеить сцены через fade или slide и посчитать длительность
- вывести субтитры в стиле TikTok с подсветкой слов
- вставить 3D-сцену через
ThreeCanvas
Примеры запросов агенту
- Сделай композицию Remotion: заголовок выезжает слева, фон плавно темнеет.
- Добавь переход fade между сценами и посчитай итоговую длительность.
- Собери субтитры в стиле TikTok и подсвети слова по таймингу.
Как установить remotion
1Через Skills CLI (Vercel)
npx skills add oakoss/agent-skills --skill remotion -a claude-code2Вручную: положить файлы
~/.claude/skills/remotion/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/remotion/
1Через Skills CLI (Vercel)
npx skills add oakoss/agent-skills --skill remotion -a codex2Вручную: положить файлы
.agents/skills/remotion/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add oakoss/agent-skills --skill remotion -a cursor2Вручную: положить файлы
.cursor/skills/remotion/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install oakoss/agent-skills skills/remotion2Вручную: положить файлы
.github/skills/remotion/SKILL.md1Через Skills CLI (Vercel)
npx skills add oakoss/agent-skills --skill remotion -a gemini-cli2Командой платформы
gemini skills install https://github.com/oakoss/agent-skills --path skills/remotionВручную: положить файлы
.devin/skills/remotion/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add oakoss/agent-skills --skill remotion -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о remotion
Как установить remotion в Claude Code?
Выполните npx skills add oakoss/agent-skills --skill remotion -a claude-code. Файл скилла появится по пути ~/.claude/skills/remotion/SKILL.md.
Что делает скилл remotion?
Описывает агенту, как строить видео из React-компонентов: композиции с явными размерами и fps, анимации от useCurrentFrame(), переходы, аудио, субтитры и рендер.
Почему скилл запрещает CSS-анимации?
Таймлайн в Remotion двигает useCurrentFrame(). CSS-анимации и классы Tailwind идут мимо него, поэтому при рендере появляются артефакты.
Исходный текст
SKILL.md · MIT
---
name: remotion
description: 'Best practices for Remotion - Video creation in React. Use when creating programmatic videos with Remotion, adding animations or transitions, working with audio/captions, rendering compositions, embedding 3D content, building charts, or using Mapbox maps in video.'
license: MIT
metadata:
author: oakoss
version: '1.0'
source: 'https://www.remotion.dev/docs'
user-invocable: false
---
# Remotion
## Overview
Remotion enables programmatic video creation using React components. Compositions define renderable videos with explicit width, height, fps, and duration. All animations must be driven by `useCurrentFrame()` -- CSS animations and Tailwind animation classes are forbidden as they cause rendering artifacts. Use this skill for Remotion compositions, animations, audio, captions, transitions, media handling, or rendering. Not intended for general React UI development.
## Quick Reference
| Pattern | API / Approach | Key Points |
| ----------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
| Basic animation | `useCurrentFrame()` + `interpolate()` | Always clamp with `extrapolateRight: 'clamp'` |
| Spring animation | `spring({ frame, fps })` | `{ damping: 200 }` for smooth, no-bounce motion |
| Composition | `<Composition id, component, durationInFrames, fps, width, height>` | Always set explicit dimensions |
| Dynamic metadata | `calculateMetadata` on `<Composition>` | Set duration, dimensions, props before render |
| Sequencing | `<Sequence from, durationInFrames>` | `useCurrentFrame()` returns local frame (starts at 0) |
| Series | `<Series>` with `<Series.Sequence>` | Sequential playback; negative offset for overlaps |
| Transitions | `<TransitionSeries>` with `fade()`, `slide()`, `wipe()` | Total duration = sum of scenes minus transition durations |
| Audio/Video | `<Audio>` / `<Video>` from `@remotion/media` | Use `staticFile()` for local assets |
| Captions | `createTikTokStyleCaptions()` | Token-level word highlighting via `page.tokens` |
| Images | `<Img>` from `remotion` | Never use native `<img>` or Next.js `<Image>` |
| GIFs | `<AnimatedImage>` from `remotion` | Synced with timeline; `playbackRate` for speed control |
| Fonts | `@remotion/google-fonts` or `@remotion/fonts` | Call `loadFont()` at top level; blocks rendering until ready |
| 3D content | `<ThreeCanvas>` from `@remotion/three` | Must set `width`/`height`; `useFrame()` from R3F is forbidden |
| Text measurement | `measureText()`, `fitText()` from `@remotion/layout-utils` | Load fonts first; match properties for measurement and render |
| Parameters | Zod schema on `<Composition schema>` | Top-level must be `z.object()`; exact Zod version required (check Remotion docs) |
| Transparent video | `--pixel-format=yuva420p --codec=vp9` | WebM for browser; ProRes 4444 for editing software |
| Maps | Mapbox with `useCurrentFrame()` | Set `interactive: false`, `fadeDuration: 0`; render with `--gl=angle --concurrency=1` |
## Common Mistakes
| Mistake | Correct Pattern |
| --------------------------------------------------------------- | -------------------------------------------------------------------------- |
| Using CSS animations or `setTimeout` | Use `interpolate()` and `useCurrentFrame()` for timeline-synced animations |
| Using native `<img>`, `<video>`, `<audio>` tags | Use `<Img>`, `<Video>`, `<Audio>` from Remotion for proper preloading |
| Hardcoding video duration | Use `calculateMetadata` to dynamically set duration from content |
| Not specifying width/height on compositions | Always define explicit dimensions to avoid rendering issues |
| Using `useFrame()` from React Three Fiber | Use `useCurrentFrame()` from Remotion inside `<ThreeCanvas>` |
| Forgetting `premountFor` on sequences | Always premount sequences to preload components before playback |
| Not clamping `interpolate()` output | Set `extrapolateRight: 'clamp'` to prevent values exceeding target range |
| Placing `<Sequence>` in `<ThreeCanvas>` without `layout="none"` | Set `layout="none"` on any `<Sequence>` inside `<ThreeCanvas>` |
## Delegation
- **Discover available Remotion components and their props**: Use `Explore` agent to search the codebase for composition definitions and asset usage
- **Build a multi-scene video with transitions and audio**: Use `Task` agent to compose sequences, transitions, and audio tracks step by step
- **Plan a video generation pipeline with dynamic data**: Use `Plan` agent to design the architecture for parametrized compositions and rendering workflow
## References
- [Animations and Timing](references/animations-and-timing.md) -- Interpolation, springs, easing, and frame-driven animation patterns
- [Compositions and Sequencing](references/compositions-and-sequencing.md) -- Defining compositions, stills, folders, sequences, series, and trimming
- [Media and Assets](references/media-and-assets.md) -- Audio, video, images, GIFs, fonts, and static file handling
- [Captions and Text](references/captions-and-text.md) -- Transcription, SRT import, TikTok-style captions, and text animations
- [Transitions](references/transitions.md) -- Scene transitions with fade, slide, wipe, flip, and duration calculation
- [Advanced Features](references/advanced-features.md) -- 3D content, charts, maps, parameters, transparent video, and DOM measurement
© oakoss · MIT · oakoss/agent-skills
Похожие скиллы
Все скиллы по теме «Фронтенд и UI» →Сначала — remotion от других авторов.