/motion-video:buildfrom motion-video
The engine behind the motion-video plugin. Turns a brief and storyboard into a Claude-Motion-style launch video - a self-contained video.html animated as a pure function of time, previewed in the browser and rendered to MP4 with the bundled headless-Chromium renderer. Use after lucky or grill has produced brief.md and storyboard.md, or whenever a user already has a brief, script or storyboard for a SaaS launch video, product demo, feature announcement or explainer and wants it built, previewed and rendered. Also the reference for the runtime API (scenes, tracks, camera, cursor, transitions) when editing any video.html made by this plugin.
Ships in motion-video. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
You are the director and the animator. The runtime handles time; you handle taste. The output is one
video.html that plays in any browser and renders to MP4 frame by frame, so what you see in the
preview is exactly what ships.
brief.md: product, audience, destination, aspect, length, the one idea, brand tokens, assets,
voice rules, what must not appear. Written by lucky or grill (templates in assets/).storyboard.md: the scene table (name, seconds, on-screen words, visual, motion, transition).assets/: logo, screenshots, fonts if self-hosted, optional music.If either file is missing, do not guess the product: run lucky (no questions) or grill
(interview). If the user handed you a script or shot list, turn it into storyboard.md first and
show it to them in one message before building.
node <this skill>/scripts/scaffold.mjs <target-dir>
(default motion-video/ inside the user's repo). It copies motion.js, render.mjs,
check-copy.mjs, preview.mjs, package.json and a starter video.html, then runs
npm install. Playwright reuses an installed Google Chrome; otherwise run
npx playwright install chromium once. ffmpeg comes from the system or ffmpeg-static.references/motion-grammar.md before writing a scene. It is the taste. Then read
references/runtime-api.md for the exact authoring API.video.html scene by scene from the storyboard. Markup in HTML and CSS (fonts, layout,
the product cards), motion in the defineVideo({...}) block. Keep the starter's structure:
brand tokens in :root, one <section data-scene="id"> per storyboard row, scene-local times.
Build product UI as HTML cards (references/ui-cards.md), not full-bleed screenshots.node beats.mjs assets/music.mp3 --out assets/beats.json
before writing scene times, and set the storyboard grid to its beat (bar lines for scene
starts, the swell for the reveal). After the build, node beats.mjs --check video.html assets/beats.json reports off-beat scene starts. See references/music.md.node check-copy.mjs video.html. It fails on em dashes and on too many words
per second, and warns on filler words, oversized cards and non-deterministic code. Fix, do not
suppress.node render.mjs --sheet --out out/sheet.png gives a 12-frame contact sheet in
under ten seconds. Read the PNG. Then render stills at the moments that matter
(--still 4.2 --out out/f.png): the end of each entrance, every click, the CTA. Use
references/review.md as the checklist. Fix, re-sheet, repeat. Expect two or three rounds.node render.mjs --from 4 --to 9 --out out/scene-check.mp4). Approval of a still
is not approval of rhythm; send the clip.node render.mjs --out out/<name>.mp4 (1080p, CRF 16, about one second of wall time
per second of video on a laptop). Add --audio assets/music.mp3 to mux a soundtrack,
--scale 2 for a supersampled master. With a track: --audio assets/music.mp3 --audio-start <s>
trims it to the film and fades it out over the last 1.5s. For 9:16 or 1:1, change width/height in
defineVideo and re-lay out the scenes; see references/motion-grammar.md "Aspect ratios".node bundle.mjs writes out/video.bundle.html, one file with the runtime and images inlined,
which pastes into claude.ai as an artifact and feeds the community Stage exporters. (Whether
Claude Motion's own editor accepts it is untested: this plugin was built without Motion access.)
Open the MP4 for the user when you can (open out/<name>.mp4 on macOS); in an unattended run
skip the open and put the paths and the sheet first. Commit the folder.setTimeout, requestAnimationFrame state, CSS
@keyframes, Date.now() or Math.random() anywhere in video.html. Otherwise the preview
and the render disagree and the user sees a different film than you did.{ target: ".btn" }), never hand-typed pixels.references/runtime-api.md: defineVideo, scenes, tracks, props, easings, transitions, camera,
cursor targets, words and chars, counters, typed text, global tracks, the export contract.references/motion-grammar.md: scene grammar, timing grid, easing discipline, the Z-axis
camera, type scale, the cardstock look, copy rules, aspect ratios, music.references/ui-cards.md: recreating product screens as HTML, screenshots as reference,
Mac and mobile chrome, sample universes, logos.references/music.md: where a track comes from, the license rule, the beat workflow.references/review.md: the contact-sheet review checklist and the fixes for common failures.references/gotchas.md: fonts, file URLs, blank frames, transforms, performance.scripts/scaffold.mjs <dir>: copies the project template and installs dependencies.assets/project-template/: motion.js (runtime), render.mjs, check-copy.mjs,
beats.mjs (BPM, beat grid, hits, swell, and an off-beat check), preview.mjs, bundle.mjs,
video.html (worked starter), package.json.assets/brief-template.md, assets/storyboard-template.md.assets/brief-template.md (opens in a new tab)assets/project-template/beats.mjs (opens in a new tab)assets/project-template/bundle.mjs (opens in a new tab)assets/project-template/check-copy.mjs (opens in a new tab)assets/project-template/motion.js (opens in a new tab)assets/project-template/package.json (opens in a new tab)assets/project-template/preview.mjs (opens in a new tab)assets/project-template/render.mjs (opens in a new tab)assets/project-template/video.html (opens in a new tab)assets/storyboard-template.md (opens in a new tab)references/gotchas.md (opens in a new tab)references/motion-grammar.md (opens in a new tab)references/music.md (opens in a new tab)references/review.md (opens in a new tab)references/runtime-api.md (opens in a new tab)references/ui-cards.md (opens in a new tab)scripts/scaffold.mjs (opens in a new tab)scripts/selftest.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub noamdorr/claude-motion-saas-video --plugin motion-video4 skills in this plugin
/editChange one thing in an existing motion video (a video.html made by this plugin) and re-render only what changed - a word, a number, a color, the timing of a scene, a scene's length, the aspect ratio, the music, or the order of scenes. Use whenever the user reacts to a cut with a correction such as "change 41% to 44%", "slow down scene two", "the headline should say X", "make the close longer", "swap the logo", "cut the third proof", "make a vertical version", "add the music", or "it feels fast". This is the Claude Motion way of editing - one value changes, the rest stays exactly as it was - so do not rebuild the video from scratch for a correction./grillGuided interview mode for a SaaS launch video, product demo, feature announcement or explainer. Runs four short rounds of questions with a default on every question (the job, the one idea and its proofs, taste from reference videos, assets), then gets a storyboard approved and a scene-one clip checked before building the full MP4 through the build skill, then an edit loop. Use when the user says grill me, interview me, let's plan the video, walk me through making a video, I have reference videos I like, I want control over the script, wants to capture taste or style from example videos, or is unhappy with a first automatic cut and wants to start over properly. This is the thorough path. For zero questions use lucky instead.