/brief2mp4:brief2mp4from brief2mp4
Turns a written brief into a finished, checked MP4 motion graphic using HyperFrames (HTML + GSAP), Three.js, Blender, and ffmpeg. Supports 2D/3D animation, explainers, kinetic typography, and film mode with narrator.
Ships in brief2mp4. 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.
A brief goes in. final.mp4 comes out, and for every line of the brief you can point to the frame or the command output that shows the video meets it.
Work in this order every time: spec, build, self-check, fix, deliver. Do not skip the self-check. A render that finished is not a video that is right.
Run the doctor once per machine. It checks every tool and prints the install command for this OS:
bash <this skill's folder>/scripts/doctor.sh
Required: Node.js 22 or newer and ffmpeg. Optional: Blender (realistic product shots) and the 3D pack (physics, exploded views, CAD models). If a required tool is missing, tell the user the command the doctor printed and stop. If the whole machine needs setting up, follow SETUP.md in the brief2mp4 repository.
Windows. The scripts are bash. Run them with Git Bash (bash script.sh ...; from PowerShell: & "C:\Program Files\Git\bin\bash.exe" script.sh ...). If Git for Windows is missing, ask the user to install it: winget install -e --id Git.Git. Write paths with forward slashes inside bash. macOS. Blender is often not on the PATH: use /Applications/Blender.app/Contents/MacOS/Blender.
Work inside one project folder. Never write outside it.
The scripts, templates and the 3D pack named below sit next to this SKILL.md. Call them by their full path, for example <this skill's folder>/scripts/finish.sh; use the folder this SKILL.md was loaded from. A script install puts it in ~/.claude/skills/brief2mp4/ or ~/.codex/skills/brief2mp4/; a plugin install puts it in the app's plugin cache.
SPEC.md is the contract you will check against. It has six parts:
Delivery, as a table. If the brief is silent, use these defaults and say so:
| Item | Default |
|---|---|
| File | final.mp4 in the project root |
| Frame | 1920x1080 (16:9). Vertical briefs: 1080x1920 |
| Frame rate | 30 fps |
| Duration | exactly what the brief says, to the frame |
| Video | H.264, yuv420p |
| Audio | AAC, 48 kHz, stereo, -14 LUFS integrated, true peak at or below -1 dBTP. Silent only if the brief says silent (still include a silent track) |
Exact text. Every word that appears on screen, copied character for character from the brief. Spelling, capitals and punctuation are part of the spec.
Look. Palette as hex codes, one or two typefaces, background, the mood in five words or fewer. If the brief names an art form or describes a look ("claymation", "like a paper cut-out", "anime", "hand-drawn"), name it here with its cadence: see Art forms below.
Beat sheet. Time ranges (0.0-2.0 s), what is on screen, what moves, and where the one hero moment lands. Something must be visible by 0.3 s. The final message holds for the last 1.5-2.5 s.
Tool choice (section 2) and one sentence on why.
Done when. One checklist line per requirement in the brief, each one checkable by a command or by looking at a named frame: "final.mp4 is 12.0 s", "at 9.5 s the words FINISH SOMETHING TODAY are fully on screen, nothing cut off".
If the brief leaves a choice open, make it, write it under Decisions in SPEC.md, and continue. Ask the user only when the gap makes the video impossible.
A blank spec to copy is in templates/SPEC.md.
If the brief names a kind of video (explainer, maths, tutorial intro, skit, Short or Reel, data story, launch, logo sting, lyric video) or is vague about structure, read references/formats.md first and use its beat sheet, route and checks for that format. Vertical videos have safe zones; that file lists them.
| The brief asks for | Use | Reference |
|---|---|---|
| Type, layouts, UI, charts, icons, 2D shapes, captions | HyperFrames (HTML + CSS + GSAP) | references/hyperframes.md |
| Stylised 3D, particles, many objects, flying cameras | Three.js inside HyperFrames | references/threejs.md |
| Realistic products, materials, soft light and shadows | Blender, scripted with Python, run headless | references/blender.md |
| A product or object that falls and settles, explodes into parts, turns on a turntable; a logo made 3D; a CAD part | The 3D pack, if installed (see below) | 3d/README-3D.md |
| Loops that join seamlessly, beats retimed between markers, cloth that drops, a hinged chain, a sheet that folds, a figure that walks forward | The Blender motion recipes (tested scripts, headless; the 3D pack's b2m3d recipe) | references/blender-recipes.md |
| Real footage cut on a timeline (tutorials, vlogs, skits from recordings), a multitrack voice + music + SFX mix with ducking, layered keyframed compositing, a thumbnail or title card, an SVG logo or lower third | The edit pack, if installed (see below) | edit/README-EDIT.md |
| Characters that walk, talk, blink and act: a story, a skit, a dialogue scene, in an art-form look | The character kit (rigs, lip sync, skins) | characters/README-CHARACTERS.md |
| Joining clips, adding sound, exact duration, loudness, encoding | ffmpeg (scripts/finish.sh) | references/ffmpeg.md |
Blender can also run live: an open window driven through blender-mcp, for deciding a look by eye (references/blender-live.md); the headless route stays the default for every render. A prop from an image or text, or a liquid, comes from optional tools you install (references/generators-3d.md, scripts/gen3d.py).
Mixing is normal: render a Blender shot to frames, then use it as a video layer under HyperFrames type, or join HyperFrames and Blender clips with ffmpeg. Every path ends with scripts/finish.sh and scripts/check_delivery.sh.
82 art forms have a recipe each, in 7 families: craft and handmade: claymation, stop-motion look, paper cut-out, felt and fabric craft, origami, shadow puppetry, collage and mixed media, risograph and halftone print, pop-up book, papercut and sanjhi, brick toy, string puppet and kathputli; drawn and painted: anime and cel shading, 2D flat vector explainer, whiteboard and doodle, watercolour, ink wash, line art, rotoscope look, motion comic, UPA and mid-century modern, rubber-hose cartoon, linocut and woodcut print, pencil sketch, charcoal, oil painting and impasto, gouache storybook, crayon and oil pastel, chalkboard, one continuous line, paint-on-glass, sand animation, retro anime, manga, chibi, modern TV cartoon, gothic cartoon; geometry, pixels and 3d: isometric, low-poly 3D, voxel, pixel art, 3D product render, stylised 3D cartoon, Toon 3D, point cloud and lidar scan, tilt-shift miniature diorama, parallax 2.5D; type, data and retro: kinetic typography, infographic and data animation, lyric video, VHS and glitch, blueprint and technical drawing, neon sign, maths diagram, sticker explainer, Memphis design; folk and print traditions: Madhubani, Warli, Pattachitra, Gond, Indian miniature, engraving and banknote hatching, silkscreen poster, art deco, stained glass, ukiyo-e woodblock; screens and cinema: synthwave and outrun, cyberpunk night city, ASCII art, 1-bit dither, CRT terminal, hologram HUD, thermal camera, silent film, newsreel, film noir, archive documentary; abstract and generative: particles, liquid metaball, flow-field generative, psychedelic, Bauhaus geometric.
python3 <this skill's folder>/scripts/art_route.py BRIEF.md # proposes one, with the reason, or says none fits
Read references/art-forms.md (the index and the three rules), then only the page for the form you chose in references/art-forms/. Each page gives the visual rules, the timing, how to build it in HyperFrames, canvas, SVG or Three.js, what assets it needs, the sound that fits, what makes it look wrong, and a tested demo from art-forms/looks.js. The router is a keyword scorer: a look the brief names always wins, and when it suggests none, do not force one.
Three rules carry every look. The picture is a function of time (no clock, no Math.random()). Handmade looks hold their drawings: quantise time to 8 to 12 changes a second (Math.floor(t * 12) / 12, or GSAP ease: "steps(12)") while the video stays at 24 or 30. Imperfection (line boil, paper jitter, flicker, misregistered ink) is seeded by the drawing number, so two renders match. Write the cadence into the beat sheet, and add a Done when line for the look: "at 4.0 s the frame shows flat paper layers with a shadow under each; the bird's wings change at most 12 times a second".
An art form sets the look and the timing. The format (references/formats.md) still sets the beats and the tool table above still sets the route.
Run bash <this skill's folder>/scripts/detect_3d.sh. If it prints 3d: ready, build 3D product beats with it: model (CAD or mesh spec to GLB), material (presets), physics (a baked, deterministic Jolt track), hf (shot JSON to a HyperFrames project) and blender (photoreal hero). Read 3d/README-3D.md first: it maps brief language to shot JSON ("parts fall and settle" is physics plus camera.auto, "show what's inside" is explode, "hero product" is blender --look dramatic) and lists the look rules (Neutral tone mapping, a dim environment around 0.35, a shadow-catcher floor, linear colours, bloom only for emissive parts).
Snapshot every 3D shot before the full render (npx hyperframes snapshot --at 1,3,5) and look at the frames: a camera framing the fall instead of the landing zone, or parts too small, shows up in seconds.
If it prints 3d: not installed, use the Three.js template for 3D beats, animate physics and exploded views by hand, and say so in REPORT.md. Mention once how to add the pack: bash <this skill's folder>/3d/install_3d.sh --components core (Windows: powershell -ExecutionPolicy Bypass -File <this skill's folder>\3d\install_3d.ps1 -Components core). This works for plugin and script installs alike.
Run bash <this skill's folder>/scripts/detect_edit.sh. If it prints edit: ready (...), the listed ArtCraft editors are installed as pinned command-line tools: FilmCraft (timeline editing), SoundCraft (multitrack mixing, automation, bounce), EffectCraft (layered compositing and keyframes), PhotoCraft (image editing), VectorCraft (vector drawing) and LightCraft (raw photo grading with presets). Read edit/README-EDIT.md first. Start from the tested recipes in edit/recipes/ (film_timeline.sh, sound_mix.sh, effect_title.sh, photo_thumbnail.sh, vector_lower_third.sh, light_grade.sh) rather than writing commands from memory. These apps are alpha: before any command a recipe does not already use, list the real ids with <app>-cli commands (or --help) for the pinned version. Use the CLI by default and an app's MCP server only when the brief needs interactive back-and-forth.
Edited output is a layer or a soundtrack like any other: a FilmCraft cut or an EffectCraft render goes into HyperFrames as video, a SoundCraft bounce goes to finish.sh --audio, and every route still ends with finish.sh, check_delivery.sh and the stills you look at.
If it prints edit: not installed, cut with ffmpeg (references/ffmpeg.md) and mix with ffmpeg filters, and mention once how to add the pack: bash <this skill's folder>/edit/install_edit.sh --components film,sound (Windows: powershell -ExecutionPolicy Bypass -File <this skill's folder>\edit\install_edit.ps1 -Components film,sound).
When the brief has characters that move and talk ("two characters talk", "a duel", "a short story"), read characters/README-CHARACTERS.md first. The kit is plain JavaScript and JSON and needs nothing beyond what the skill already uses. A rig turns a pose track into the position of every part at time t (a pure function of time, so the render is repeatable); cycles for walking, running and waving hold 8 to 12 drawings a second; scripts/lipsync.py turns the word timestamps that npx hyperframes transcribe writes into a mouth-shape track (or, with only a WAV file, an open, half-open and closed mouth); and six skins redraw the same character as line art, paper cut-out, shadow puppet, anime, motion comic or flat vector. The starter cast is a child, an adult man, a crow and a tomato chef; your own characters can be SVG-style shapes or PNG part images, passed to a scene with --character-file.
Order of work: pick the look (art_route.py names the kit when the brief has characters), render a sheet of each character in that look (scripts/character_sheet.py --character child --skin paper-cutout) and look at it, write the scene file (cast, tracks, captions; examples/09-story-characters/scene.json is a working one), build the project with scripts/character_project.py --scene scene.json --skin <look> --out project/, render it with HyperFrames, then finish.sh --audio voice.wav and the usual checks. The same scene renders in any skin by changing --skin. For characters standing in a 3D set use scripts/character_project.py --stage3d (the starter is templates/threejs/characters-stage.html). character_project.py validates the scene file against characters/schema/scene.schema.json and stops when a character is outside the frame for over half a second; remember that move positions are absolute pixels, that "walk": true on a move key walks there with the feet planted (the README has recipes for walking in, landing on a perch, leaving and turning), and that speakers face each other (facing). No recording yet? scripts/standin_voice.py words.json voice.wav makes a preview voice from word timings. Check the mouth: pull four frames from a spoken line and confirm at least three different shapes, and a closed mouth in the pauses.
When the brief asks for a complete explainer or documentary with a narrator ("a 3-minute explainer on how undersea cables carry the internet, documentary look, my voice from take.wav"), read the section "Explainer and documentary (film mode)" in references/formats.md and drive it with scripts/film.py. Put BRIEF.md in a project folder and run python3 <this skill's folder>/scripts/film.py run --project <folder>: story, script, storyboard, assets, voice, retime, build, captions, mix, render, check, report, each reading and writing a file you can open (STORY.md, SCRIPT.md, STORYBOARD.json, ASSETS.json, TIMINGS.json, REPORT.md). You write SCRIPT.md from STORY.md: one block per narration line with a source URL, or the line is UNVERIFIED and blocks the render. The pieces also work alone: fetch_archive.py (public domain, CC0 and CC BY pictures with their credits), make_map.py (a country or region map with markers and routes from Natural Earth), sfx_synth.py (effects made in code), split_takes.py (one recording cut into lines), retime.py (picture re-timed to the voice), mix.py (voice, ducked music and effects at -14 LUFS). The look is the archive desk template in templates/film/. The voice is never time-stretched. F5-TTS and MusicGen are optional installs with non-commercial model licences (references/sound.md).
For briefs that mix tools, read references/pipelines.md (architecture, recipes for each mix, how layers meet in HyperFrames). For tools outside this stack (Remotion, Motion Canvas, Manim, Lottie, Rive, PixiJS, R3F, Babylon.js and more), read references/ecosystem.md: when each one beats the default, and how to bring its output in frame-exact.
Starters that already render: templates/threejs/index.html (run scripts/vendor_libs.sh <project> --three after copying it) and templates/blender/scene.py. Copy one into the project and change it, rather than starting from an empty file.
Rules for every tool:
Math.random() (use a seeded generator), no network calls while rendering: vendor GSAP and fonts into the project (references/hyperframes.md shows how). Render the same frame twice and you must get the same pixels.references/motion-doctrine.md: read it before animating.fromTo that shows early, an entrance racing an exit, durations rounding up a frame, SVG drawing, heavy overlays). references/render-traps.md lists each with its fix.references/sound.md. scripts/beat_grid.py fits a grid to music (needs librosa, optional); scripts/fetch_music.py finds CC0 and CC BY music with an attribution file.sed -i. sed -i behaves differently on macOS and Linux and can fail silently; if an edit did not apply, the next render shows the old file.After every full render, do all three:
scripts/check_delivery.sh final.mp4 --seconds <N> [--size WxH] [--fps N] [--silent-ok] [--joins T,T] [--flash-ok T,T] [--strict-flicker] must end with RESULT: PASS. A FAIL is a fix, not a footnote. It includes scripts/check_seams.py: one-frame flicker (WARN; list planned flashes with --flash-ok, and use --strict-flicker when the brief wants no flicker at all), a pop at each join of separately rendered acts (--joins), cuts classified hard or soft, and true freezes (WARN; slow pans over a detailed picture do not count, over a flat plate they can). Then run the layout check and the placeholder sweep: python3 scripts/check_clutter.py --dom index.html --at <seconds at rest> (or --boxes boxes.json; no card on card, 24 px between text, at most 4 text blocks, nothing clipped at the edge) and bash scripts/ocr_sweep.sh final.mp4 (TODO, lorem, {{ }}, /Users/, C:\; needs tesseract, otherwise it prints the install command and skips). A check that could not measure never passes: a decode error, a broken tesseract or a page with no timeline is a FAIL, and a missing optional tool is a SKIP with exit 3 (check_delivery.sh then ends RESULT: INCOMPLETE). Say in REPORT.md what was skipped; an absent optional tool does not fail a delivery, but it is not a pass either.scripts/contact_sheet.sh final.mp4 --at <beat starts, hero moment, last second> writes one PNG per moment. Open and view each image. For every frame ask: is the text spelled exactly as the spec says? Is anything cut off or overlapping? Are the colours from the palette? Is the beat that should be on screen at this time actually there? To measure instead of eyeballing (text height, distance from the edge, safe zones on a vertical video), run python3 scripts/bounds.py <still.png> --bg "#rrggbb" [--region x0,y0,x1,y1] [--margin 96,54 | --safe top=288,bottom=672,left=64,right=192]: it prints the pixel box of everything that is not background and whether it sits inside the zone.references/review-checklist.md on the MP4 and key frames, without your reasons: muted test, phone test, 480 px test, amateur tells. Fix one class of problem at a time.To check a mix (for example "the bed is 10 dB under the voice"), measure the stems you bounced separately, not the final mix, where other sounds fall inside the same window.
Run the skill's scripts with bash (they are bash scripts); in your own shell loops, remember that zsh, the default shell on macOS, does not split $var on spaces the way bash does.
If you cannot view images in this environment, say so plainly in the report. Never claim a visual check you did not do.
Fix the worst miss first, re-render, and run section 4 again. To save time, re-render only what changed where the tool allows it (hyperframes render --start/--end, a Blender frame range). Stop after three fix rounds; if something still fails, deliver and list it honestly.
final.mp4 in the project root.REPORT.md: the Done-when list with met / not met and evidence, the render settings you used, render time, and anything still open.| Path | While iterating | Final |
|---|---|---|
| HyperFrames | npx hyperframes render . -o draft.mp4 --quality draft --workers 4 | npx hyperframes render . -o render.mp4 --quality delivery --fps 30 |
| Three.js (in HyperFrames) | same as above; renderer pixel ratio 1, preserveDrawingBuffer: true | same as above |
| Blender | --preview (3 stills) with EEVEE, 16-32 samples | EEVEE 32-64 samples; Cycles 64-128 with denoising only when the brief asks for realism. Render PNG frames |
| ffmpeg finish | n/a | scripts/finish.sh: H.264 CRF 18 preset slow, yuv420p, AAC 192k 48 kHz, -14 LUFS, true peak -1.5 dBTP, exact duration |
Render speed: measure, then split. More workers is not always faster. On one Apple M-series laptop an 18 s 1080p60 composition took 58 s with --workers auto, 46 s with --workers 8 and 75 s with 12 (too many Chrome processes): that is one data point, so time a short span (--start/--end) with 4, 8 and one more value on your machine and keep the fastest. For a long film:
ffmpeg -f concat -safe 0 -i list.txt -c copy joined.mp4, references/ffmpeg.md), then lay one continuous music bed and measure loudness once over the joined file (finish.sh --audio). Check each join with check_delivery.sh --joins.For a render over about a minute, set HF_SEGMENTED_CAPTURE=true and add --resume so an interrupted render reuses finished segments instead of starting again. Do not run heavy renders or encodes while a screen recording is being made on the same machine.
That message means: re-read the original brief (not your spec), go through it line by line, and for each line show the evidence that final.mp4 meets it. Fix every miss, re-render, run section 4 again, and update REPORT.md. Do this without asking first.
references/hyperframes.md: composition rules, commands, audio, sub-compositions, common failuresreferences/threejs.md: time-driven 3D, seeded randomness, text over 3D, performancereferences/blender.md: headless Blender, engines, light, camera, text, framesreferences/blender-recipes.md: six tested Blender motion recipes (loop, retime, cloth, rigid, fold, walk) and the options they sharereferences/blender-live.md: working in a running Blender through blender-mcp: live or headless, install, safety, sending a recipereferences/generators-3d.md: optional image or text to 3D (Hunyuan3D-2, TRELLIS) and liquids (FLIP Fluids), with licence notesreferences/ffmpeg.md: finishing, joining, overlays, sound, loudness, inspectionreferences/formats.md: beat sheets, routes and checks per format (explainer, film mode, maths, tutorial, story, Short, data, launch, logo, lyric, captions)references/art-forms.md and references/art-forms/<id>.md: 82 art forms, each with visual rules, timing, a build recipe, assets, sound, pitfalls, sources and a tested demo (generated from references/art-forms.json)art-forms/looks.js, art-forms/gallery.html: one deterministic demo per look, and a viewerreferences/motion-doctrine.md: the rules behind motion that looks finished: easing, variety, scene shape, transitions, pacing per formatreferences/render-traps.md: timelines that look right and render wrong, each with its fixreferences/review-checklist.md: the second-reader pass: viewing tests, checklist, amateur tellsreferences/sound.md: beat-grid fitting, effect pinning, ducking, loudness, free music with credit, optional generators and their licencesreferences/pipelines.md: architecture diagram, route per beat, recipes for mixed pipelines, methodsreferences/ecosystem.md: 45+ open-source motion, 3D and agent-skill repos, when to use each, how to connect themcharacters/README-CHARACTERS.md: the character kit (rig, poses, skins, lip sync, image parts, scenes) with a starter cast in characters/cast/3d/README-3D.md: the optional 3D pack (components, commands, shot JSON, brief-to-shot mapping, look rules)edit/README-EDIT.md: the optional edit pack (ArtCraft editors: install, verification, recipes, command discovery, MCP)scripts/finish.sh, scripts/check_delivery.sh, scripts/check_seams.py (flicker, join pops, cut classification, freezes), scripts/check_clutter.py and scripts/dom_boxes.js (layout rules from page boxes), scripts/ocr_sweep.sh (placeholder text in the final file), scripts/beat_grid.py (beats, downbeats, onsets, snap), scripts/cut_points.sh (scene cuts), scripts/fetch_music.py (CC0 and CC BY audio with ATTRIBUTION.md), scripts/contact_sheet.sh, scripts/sound_bed.sh, scripts/doctor.sh, scripts/detect_3d.sh, scripts/gen3d.py (optional image or text to mesh through a tool you install), scripts/bounds.py, scripts/vendor_libs.sh (and scripts/vendor_libs.ps1 on Windows), scripts/detect_edit.sh, scripts/art_route.py (brief to art form), scripts/build_art_forms.py (regenerates the art-form pages), scripts/lipsync.py (word timestamps or a WAV to a mouth-shape track), scripts/standin_voice.py (word timestamps to a preview WAV), scripts/build_character_docs.py (regenerates the kit README's tables from the code), scripts/character_sheet.py (a PNG sheet of any character in any skin), scripts/character_project.py (a character scene or the 2D-in-3D starter to a HyperFrames project), scripts/film.py and its stages scripts/film_script.py, scripts/film_story.py, scripts/film_storyboard.py, scripts/film_assets.py, scripts/film_voice.py, scripts/film_captions.py, scripts/film_build.py, scripts/film_render.py, scripts/film_check.py, scripts/film_report.py, scripts/film_lib.py (film mode), scripts/fetch_archive.py, scripts/make_map.py (with scripts/map_projection.py, scripts/build_map_data.py and data/), scripts/sfx_synth.py, scripts/split_takes.py, scripts/retime.py, scripts/mix.pytemplates/SPEC.md, templates/film/ (the archive desk look for film mode), templates/threejs/index.html, templates/threejs/characters-stage.html (rigged characters in a 3D set), templates/blender/scene.py3d/README-3D.md (opens in a new tab)3d/b2m3d/__init__.py (opens in a new tab)3d/b2m3d/__main__.py (opens in a new tab)3d/b2m3d/blender.py (opens in a new tab)3d/b2m3d/cli.py (opens in a new tab)3d/b2m3d/doctor.py (opens in a new tab)3d/b2m3d/encode.py (opens in a new tab)3d/b2m3d/glbio.py (opens in a new tab)3d/b2m3d/hf.py (opens in a new tab)3d/b2m3d/hf_html.py (opens in a new tab)3d/b2m3d/material.py (opens in a new tab)3d/b2m3d/model.py (opens in a new tab)3d/b2m3d/paths.py (opens in a new tab)3d/b2m3d/physics.py (opens in a new tab)3d/b2m3d/recipes.py (opens in a new tab)3d/b2m3d/run.py (opens in a new tab)3d/examples/04-3d-product/build.py (opens in a new tab)3d/examples/04-3d-product/device.py (opens in a new tab)3d/examples/04-3d-product/scene.json (opens in a new tab)3d/examples/04-3d-product/shot.json (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub qualixar/brief2mp4 --plugin brief2mp4Other plugins' skills for the same job