convert-video-prompt — Claude Code prompt: installation
convert-video-prompt is a Claude Code prompt that rebuilds a video as SVG animation in one index.html. It checks frames and transitions.
MIT ★ 361 updated 2026-10-20
/plugin marketplace add lovisdotio/motion2code
/plugin install motion2code@motion2codeWhat convert-video-prompt does
convert-video-prompt gives an agent a workflow for rebuilding a source video as one self-contained index.html. The output uses inline SVG, a single GSAP timeline, and the window.anim contract, with support for seek, ?t=, ?external=1, data-ready, autoplay, and looping.
The process starts with study_video.py; its sheet and frames are inspected before code is written. Afterward, frame_diff.py checks the animation every 0.5 s and at each transition, while check_anim.py index.html --runtime tests the seam, determinism, console, and network. The inputs are a source video, a generation prompt, and an output folder. site.html, anim.mp4, and side_by_side.mp4 are optional outputs. The workflow requires study_video.py at its first stage.
What it helps with
- rebuild a video as SVG animation in
index.html - compare rendered frames and transitions with the source
- keep every readable word from the generation prompt
- verify autoplay, looping, and the
window.animcontract - record numbered differences from the source video
Example prompts for the agent
- Rebuild the video at
<path>into oneindex.html, keeping the beats, characters, or words listed in the prompt. - Run the workflow with the source video at
<path>and the generation prompt from<path to the .txt, or paste it, or blank>. - Check the result with
frame_diff.pyandcheck_anim.py index.html --runtime, writingcompare.htmlto<folder>.
How to install convert-video-prompt
1Plugin marketplace
/plugin marketplace add lovisdotio/motion2code/plugin install motion2code@motion2code2Manually: put the files in place
.claude/commands/convert-video-prompt.mdHow to use
Paste the text at the start of a chat or into project instructions
Questions about convert-video-prompt
How do I install convert-video-prompt in Claude Code?
Add the marketplace with /plugin marketplace add lovisdotio/motion2code, then install it with /plugin install motion2code@motion2code. The command file is .claude/commands/convert-video-prompt.md.
What does convert-video-prompt do?
It gives the agent a process for rebuilding a video as a self-contained index.html with inline SVG and one GSAP timeline. The process covers frame study, transition comparison, and runtime checks.
What does convert-video-prompt need to run?
It needs a source video, a generation prompt, and an output folder. The workflow uses study_video.py, frame_diff.py, and check_anim.py; site.html, anim.mp4, and side_by_side.mp4 can be produced as optional outputs.
Source text
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