convert-video-prompt — промпт Claude Code: установка
Промпт convert-video-prompt для Claude Code пересобирает видео в SVG-анимацию внутри одного index.html. Он запускает проверку кадров и переходов.
MIT ★ 361 обновлён 2026-10-20
/plugin marketplace add lovisdotio/motion2code
/plugin install motion2code@motion2codeЧто делает convert-video-prompt
Промпт convert-video-prompt задаёт агенту workflow для пересборки видео в один самодостаточный index.html. Результат использует inline SVG, одну GSAP timeline и контракт window.anim, а также поддерживает seek, параметр ?t=, ?external=1, data-ready, autoplay и loop.
Сначала запускается study_video.py, затем изучаются лист и кадры до написания кода. После сборки frame_diff.py проверяет видео каждые 0.5 s и каждый переход, а check_anim.py index.html --runtime тестирует шов, детерминизм, консоль и сеть. Для работы нужны исходное видео, generation prompt и папка вывода; опционально создаются site.html, anim.mp4 и side_by_side.mp4. Без study_video.py workflow не проходит первый обязательный этап.
Какие задачи решает
- пересобрать видео как SVG-анимацию в
index.html - проверить совпадение кадров и переходов с исходным видео
- сохранить читаемый текст из generation prompt
- проверить loop, autoplay и контракт
window.anim - сформировать отчёт о различиях с исходником
Примеры запросов агенту
- Пересобери видео из
<path>в одинindex.html, сохранив нужные beats, characters или words. - Запусти workflow для видео
<path>и generation prompt из<path to the .txt, or paste it, or blank>. - Проверь результат через
frame_diff.pyиcheck_anim.py index.html --runtime, создавcompare.htmlв<folder>.
Как установить convert-video-prompt
1Через маркетплейс плагинов
/plugin marketplace add lovisdotio/motion2code/plugin install motion2code@motion2code2Вручную: положить файлы
.claude/commands/convert-video-prompt.mdКак использовать
Вставьте текст в начало диалога или в инструкции проекта
Вопросы о convert-video-prompt
Как установить convert-video-prompt в Claude Code?
Добавь marketplace командой /plugin marketplace add lovisdotio/motion2code, затем установи плагин командой /plugin install motion2code@motion2code. Файл команды находится по пути .claude/commands/convert-video-prompt.md.
Что делает convert-video-prompt?
Он задаёт процесс пересборки видео в самодостаточный index.html с inline SVG и одной GSAP timeline. Процесс включает изучение кадров, сравнение переходов и runtime-проверку анимации.
Что нужно для работы convert-video-prompt?
Нужны исходное видео, generation prompt и папка вывода. Для анализа и проверки используются study_video.py, frame_diff.py и check_anim.py; дополнительные site.html, anim.mp4 и side_by_side.mp4 создаются по выбору.
Исходный текст
convert-video-prompt.md · MIT
# Prompt: rebuild a video as SVG + GSAP code Use the **motion2code** skill (read its `SKILL.md` first and follow its workflow) to rebuild the video below as one self-contained `index.html`: inline SVG, one GSAP timeline, `window.anim` contract, seamless loop. Fill these in before sending (leave a line blank to let the agent measure it): - **Source video:** `<path>` - **Generation prompt (exact words):** `<path to the .txt, or paste it, or blank>` - **Output folder:** `<folder>` (files: `index.html`, `compare.html`, optionally `site.html`) - **Must keep:** `<the beats, characters or words you care about most, or blank>` - **Interface recording?** `<yes: also build site.html with real scroll and clicks / no>` - **Proof videos?** `<yes: anim.mp4 and side_by_side.mp4 / no>` The video is the spec. You derive everything from its frames. ## Done means - `study_video.py` was run and the sheet and frames were looked at before any code. - `index.html` follows the page contract (`seek`, `?t=`, `?external=1`, `data-ready`, autoplay and loop). - Only the source video was used; nothing regenerated, embedded or traced. - Every readable word is the prompt's word, spelled exactly. - `frame_diff.py` was run every 0.5 s and frame by frame on each transition; the worst times were fixed or are explained. - `check_anim.py index.html --runtime` prints `[ok]` (seam, determinism, console, network). - The report lists what differs from the source, with numbers.
© Lovis Odin · MIT · lovisdotio/motion2code