source-video-prompt — промпт для Claude Code
Промпт source-video-prompt для Claude Code описывает создание исходных роликов для переноса плоской анимации в код. Инструмент задаёт правила для генерации видео без теней, градиентов и сложных камер.
MIT ★ 361 обновлён 2026-10-20
/plugin marketplace add lovisdotio/motion2code
/plugin install motion2code@motion2codeЧто делает source-video-prompt
Правила промпта включают использование сплошных плоских цветов, привязку тайминга к секундам и связывание переходов между кадрами. Промпт также описывает работу с текстом, палитрой из трех или четырех цветов и создание закольцованных роликов. Шаблоны подходят для генерации через MiniMax H3 Max на fal.
Инструкции запрещают использовать термины камер вроде панорамирования или зума, так как движения описываются через морфинг и слайды, которые переносятся в SVG.
Какие задачи решает
- описать плоскую 2D-анимацию без теней и градиентов
- задать тайминг роликов по секундам
- составить закольцованную последовательность кадров
- ограничить палитру в текстовом запросе
Примеры запросов агенту
- Запусти генерацию видео по промпту source-video-prompt
- Напиши промпт для видео с плоским дизайном
- Опиши тайминг кадров через source-video-prompt
Как установить source-video-prompt
1Через маркетплейс плагинов
/plugin marketplace add lovisdotio/motion2code/plugin install motion2code@motion2code2Вручную: положить файлы
.claude/commands/source-video-prompt.mdКак использовать
Вставьте текст в начало диалога или в инструкции проекта
Вопросы о source-video-prompt
Как установить source-video-prompt в Claude Code?
Выполните /plugin marketplace add lovisdotio/motion2code, затем /plugin install motion2code@motion2code, а после обратитесь к .claude/commands/source-video-prompt.md.
Что делает source-video-prompt?
Промпт задаёт правила для генерации исходных видеороликов с плоской графикой, которые проще переносить в код и SVG.
Что нужно для работы source-video-prompt?
Промпт рассчитан на генерацию видео через MiniMax H3 Max на fal с последующей разработкой кода.
Исходный текст
source-video-prompt.md · MIT
# Writing source prompts that convert well
Any flat motion clip can be rebuilt, but some videos are much easier to rebuild faithfully. When you generate the
source yourself (the gallery used MiniMax H3 Max text-to-video on fal), these habits help:
- **Flat only.** "Every shape is one solid flat color: no shadows, no shading, no highlights, no gradients, no
textures." Each extra effect is something the code must fake or drop.
- **No camera language.** Do not write "3D", "camera", "zoom", "pan" or "cut". Describe what the shapes do: they
slide, grow, split, merge, morph, wipe. Shapes map to SVG; camera moves map to guesses.
- **Linked beats.** "The last shape of each moment becomes the first shape of the next." Chains of morphs and
wipes are easy to time from the frames and read as one continuous film.
- **Second by second.** Give a time range per beat ("0.0-0.8 s: a white almond eye shape opens"). The shot list
then almost writes itself, and you can check the video against your own timing.
- **Exact words, few of them.** "Every word is spelled exactly as written and no other words appear." Short
uppercase words in a bold sans-serif match Google Fonts well.
- **Loop.** "At the end everything returns exactly to the opening frame, so the film loops seamlessly." The video
will not always obey; the code loops anyway, but a source that loops needs no invented return.
- **Small palette.** Name 3 to 4 colors. Palettes sample cleanly and stay stable across the clip.
- **Interfaces.** "A single continuous screen recording of a real, working website, no browser chrome, small
round cursor, running text shown as rows of thin flat bars, the only readable words are ..." gives a replay
that can also become a real site.
Example (the source of `gallery/eye`, abridged):
> Award-winning flat 2D kinetic typography and motion design: bold sans-serif words and only basic geometric
> shapes, solid flat colors, no gradients, no shadows, no textures. Twelve shots in ten seconds, and every
> single transition is linked. Palette: black, white and electric blue. 0.0-0.8 s: a white almond eye shape
> opens. 0.8-1.7 s: the pupil is a blue circle. 1.7-2.5 s: the pupil becomes the O of "LOOK". ...
> 9.2-10.0 s: the eye closes into a line. Snappy easing with anticipation, overshoot and squash. Every word is
> spelled exactly as written and no other words appear.
© Lovis Odin · MIT · lovisdotio/motion2code