Video made or edited on your own machine, with measured quality gates. Make a narrated motion-graphics video from a topic (brag's storyboard, then whatever TTS, renderer and editor you have), or edit a recording professionally: dead air and filler words out, clean levelled audio, captions, vertical reframing. 3D and motion graphics for both. Every tool sits behind a contract that makes it swappable.
Most AI video tools generate pixels and hope. CraftVideo is the pipeline around them: the part that decides what is true, what is said, when each thing appears on screen, and whether the file that comes out is actually good. It records the narration first and times every on-screen event to a spoken cue, writes only claims it can source, builds the picture by script so any scene can be re-rolled, makes its own music, and refuses to call a video finished until loudness, peak level, sync and the poster frame have all been measured.
It does not care which tools do the work. Voice, picture and mix are three stages, each with a written contract and swappable providers: VoiceStudio or any OpenAI-compatible or command-line TTS; EffectCraft, HTML/CSS in headless Chromium, or any renderer; FilmCraft, plain ffmpeg, or any editor. The dispatchers check every provider's output against its contract, so swapping a tool cannot quietly degrade the result, and a tool the skill has never seen is a ten-line adapter or a command template.
The same discipline applies to editing. Point it at a talking-head, screen recording or podcast and it measures the audio, finds the speech, cuts the dead air and the ums, cleans and levels the sound to a target loudness, burns in captions built from the real transcript, and writes the whole edit as a readable edit.json before applying it. Afterwards it reports every cut with the words that were removed and shows the frames either side, because a cut that dropped a real sentence is the one failure no measurement catches.
Both modes can use the motion layer: Three.js 3D scenes (with models built by img2threejs), WebGPU shaders, GSAP typography, and transparent overlays composited onto footage, rendered deterministically on the GPU or in software.
The storyboard method is brag's: a hook, a reveal, a few sharp highlights and a punchline, under creative laws about readability and specificity. The render pipeline runs locally; only the research step touches the web.
Built for Claude Code. Developed and tested on Linux with an NVIDIA GPU (see Requirements).
- Scenes follow words. The narration is generated first.
tighten_voice.pyfinds where each sentence starts, and every count-up, panel and cut is placed on that cue, not the other way round. Cuts happen only inside pauses, so the speech is never time-stretched. - Only supportable claims. Each fact is checked at its primary source, the nuance the source states is kept, press-only claims are labelled "reported" on screen, illustrative content is labelled EXAMPLE, and the sources go on the end card. No invented numbers, no invented quotes.
- Nothing ships unmeasured. The finish step gates on loudness (-16 +/- 1 LUFS), true peak, narration sync and the baked poster frame, independently of which tools made the file. An edit is gated on length, size, fps, loudness, peak and A/V skew. A failing gate means fix and re-run.
- A frame is a function of time, and an edit is data. Every scene draws the same pixels every time it is asked for the same instant (the renderer checks), and every cut lives in an
edit.jsonyou can read and change, with the words it removes listed in a review report.
| Stage | What happens | Script |
|---|---|---|
| Preflight | check the core tools, resolve a provider per stage, check extras for what was chosen | preflight.sh |
| Plan | primary-source research, brag storyboard, claims table | storyboard.md |
| Narrate | script (one sentence per line) to speech, any TTS provider, normalised to 48 kHz mono | narrate.sh |
| Verify | transcribe the take and list every script line that came back different (a dropped, added or swapped word) | verify_narration.py |
| Tighten | land on an exact length, find every sentence start, write the cues (when the voice runs sentences together, split_narration.py finds the boundaries from word times first) |
tighten_voice.py |
| Anchor | name the words a scene must land on (a count-up that ends on "45%", a reveal on "padlock"); timeline.json gains moments, so a new voice re-times everything |
anchors.py |
| Scenes | scripted picture timed to the cues, any render provider, exact size, fps and frame count. The html provider also takes --look (ten art directions as data), --workers (parallel capture, identical frames), --shutter and --grain, refuses a scene that depends on history before encoding, and --lint 1 audits the layout (text cut off, overlapping, hidden, too small, in the caption band, low contrast) |
render.sh, looks/ |
| Review | contact sheet of stills for every scene and mid-transition, before the full render, then a scored critic pass (hook, hierarchy, readable, alive, sound, truth) | render.sh --stills, visual-craft.md |
| Score | generated music that follows the scene cuts and ducks under the voice | synth_music.py |
| Mix | picture + voice + music to one mp4 at the target loudness, optional editor timeline | assemble.sh |
| Finish | poster baked into frame 0, the file named after the video's title and carrying it in its metadata, then the QA gates, including one for the picture (blank frames fail; still stretches and a long end hold warn) | finish.sh, qa_frames.py |
For a Reel, Short or TikTok the same pipeline runs at 1080x1920 with a different set of defaults (speech from the first 0.2 s, about 3 words a second, large captions with one accent, no bar wipes, a loudness of -14, music at 120 to 130 BPM). They were measured on five public reels and are in short-form.md.
| Stage | What happens | Script |
|---|---|---|
| Analyze | find speech against the recording's own noise floor; loudness, noise, black and frozen spans | analyze.py |
| Transcribe | word timings from any speech-to-text, snapped onto the voiced audio | transcribe.sh |
| Plan | segments, filler cuts, zoom, audio chain, captions, loudness as an edit.json you can read and change |
plan_edit.py |
| Apply | cuts with 8 ms fades, denoise, EQ, compression, music ducking, two-pass loudness, zoom, colour, captions, overlays, chapters | edit.sh |
| Gate | length, size, fps, loudness, true peak, A/V skew, caption sidecar; click and black-frame warnings | qa_edit.py |
| Review | every cut with the words removed, plus the frames before and after each cut | review_edit.py |
| Hand off | the cut as OpenTimelineIO or a CMX 3600 EDL for Resolve, Premiere, Final Cut, Kdenlive | edit.sh --interchange |
The script proposes and checks; the choosing is a reading of the text, done by Claude with a rubric, so there is no model call, no download and no key in the loop.
| Stage | What happens | Script |
|---|---|---|
| Shortlist | sentence-aligned windows from the transcript, scored on the opening line (a question, a number, a story turn), pace, loudness peaks, how the window ends, and a penalty for sponsor reads and lines that need what came before; each score shows its signals | find_clips.py candidates |
| Pick | Claude reads the candidates and the transcript around them and writes picks.json: start, end, a 3 to 9 word title, a score for hook, engagement, value and shareability, a reason (rubric in clips.md) |
|
| Check | a pick must sit inside the recording, run 15 to 60 s, start and end on sentence edges (--snap moves it), have a plain title and not overlap another |
find_clips.py validate |
| Follow | a face detector (YuNet through OpenCV, installed on request) finds the speaker; the 9:16 crop follows them with a deadzone and a spring, jumps at scene cuts, and shows a shot with no face (a slide) whole over a blur | face_track.py, get_face.sh |
| Cut | one edit.json per clip (pauses and fillers cut inside it, kinetic captions, 1080x1920, -14 LUFS), then the usual edit.sh and gates |
find_clips.py edl, edit.sh |
Each stage has a contract (providers.md) and the dispatcher enforces it on whatever a provider returns. Five stages: three make a video, two cut a recording.
| Stage | Contract (what must come out) | Bundled providers |
|---|---|---|
voice narrate.sh |
speech with audible pauses between sentences; normalised to 48 kHz mono | voicestudio (VoxCPM2: design, cloning, 30 languages) · openai (any OpenAI-compatible server) · command (any CLI) · file (your recording) · dryrun (placeholder) |
picture render.sh |
silent H.264 mp4 of the exact size, fps and frame count; audio is stripped | effectcraft (scripted compositions) · html (anything a browser draws) · command (any renderer) |
mix assemble.sh |
mp4 with video and audio, picture length unchanged, loudness near target | filmcraft (also writes editor timelines) · ffmpeg (no editor needed) · command (any editor or mixer) |
transcribe transcribe.sh |
word timings, in order and inside the recording, from JSON, OpenAI verbose_json, faster-whisper segments, SRT or VTT | faster-whisper (local) · openai (any OpenAI-compatible server) · command (any STT CLI) · file (a transcript you have) |
edit edit.sh |
an mp4 as long as the kept segments, at the asked size and fps, with audio; unsupported EDL parts are named in a warning | ffmpeg (everything) · filmcraft (cuts and loudness) · command (any editor or script) |
bash scripts/providers.sh list # every provider, usable here or not, and exactly why
bash scripts/providers.sh set render html # remember a choice (project, or --global)
bash scripts/conformance.sh all # prove each usable provider honours its contractChoice order: --provider, CRAFTVIDEO_TTS / _RENDER / _ASSEMBLE / _TRANSCRIBE / _EDIT, ./craftvideo.json, ~/.config/craftvideo/config.json, then the first usable provider. dryrun, file and command are never auto-selected, so a fake voice or an unintended command can't slip in silently.
Adding a tool: set a template (TTS_CMD, RENDER_CMD, ASSEMBLE_CMD, STT_CMD, EDIT_CMD) or copy a provider and implement --info, --check and the work. conformance.sh then fails with the exact mismatch (size, frames, silence, missing pauses, a lost word, a lost sync). Recipes for Piper, espeak-ng, edge-tts, Kokoro-FastAPI, Speaches, hosted APIs, Remotion, Manim, Blender, Resolve and Kdenlive are in the reference, labelled by whether they were actually run.
- Researches before it writes. It fetches the primary source (the author's own post, the project tracker), records each claim with a link and date, and keeps the nuance. The first video's source said AI helped "at least partially", so the video says AI helped, but so did experts and tooling.
- Plans with brag's storyboard. Hook first, then a reveal, two or three sharp highlights, a punchline. Every line the viewer must read stays settled for about 0.3 s per word.
- Times everything to the voice. Count-ups land as the number is spoken; panels arrive 0.1 to 0.3 s before the sentence they illustrate.
- Reviews its own frames. It renders a contact sheet for every scene and mid-transition, looks at it, fixes overflow and collisions, and looks again before the full render.
- Makes the music. A generated score in a real key (pad, sub, arpeggio that thickens with each scene, boom hits on scene changes, a riser into the punchline, quiet ticks under count-ups), ducked under the voice. Nothing is fetched, so nothing gets muted.
- Adapts to the tools it finds. It checks what is installed, uses the best usable provider per stage, tells you what it chose, and falls back instead of failing when something is missing.
- Edits from measurements, not guesses. Speech is found against each recording's own noise floor; cuts snap to the quietest point within 40 ms so they land in a breath; a pause is only cut when that saves at least 0.2 s, because a smaller trim buys a visible jump cut for nothing.
- Shows its work.
edit.jsonis the edit;review.mdlists the words removed at every cut;cuts.jpgshows the frames either side. - Lays 3D and motion graphics over anything. Three.js, WebGPU, GSAP and CSS scenes render to frames or to transparent ProRes overlays that composite onto the footage under the captions.
- Puts a hand-painted mascot on a video where it fits. Clawd, the Claude Code mascot, walks on, reacts to the words you name with acted faces, can wave hello, and walks off: a transparent overlay with a review sheet first, laid over a made video or an edit (
reference/mascot.mdsays when a mascot fits and when it does not). - Animates vectors as pure functions of time. An SVG scene sets every attribute from t (a line that draws itself, springs, a morph between any two outlines, a packet on a path, squash and stretch), so it is exact and can render in parallel; any animated SVG (SMIL, CSS, Web Animations) can be played as a video or a transparent overlay (
vector.sh). - Makes pixel art that stays pixel art. A scene is drawn at a small size and shown at an even integer scale with a fixed palette, whole-pixel positions and stepped time; footage or an image becomes pixel art with
pixelate.py(ordered dither, one palette for the whole clip);qa_pixels.pyproves the blocks are one colour. Every rule was measured: an odd scale loses half the pixels to 4:2:0 chroma, and ffmpeg's default dither changes a third of them every frame. - Cuts shorts out of a long recording. A transcript-first shortlist with the signals shown, a rubric for the choice, a check that refuses a clip that starts mid-sentence, then one vertical edit per clip with kinetic captions. The script never decides what is worth posting; it lists candidates, and a clip's title must say what the clip says.
- Keeps the speaker in frame at 9:16. The crop window follows the face instead of sitting in the middle, eases in and out, jumps at scene cuts instead of panning across them, and a slide or screen recording is shown whole over a blurred copy.
- Hands off to a real editor. FilmCraft can write a made video's timeline as OpenTimelineIO, FCPXML, FCP7 XML, EDL, AAF or OMF; an edit can be written as OTIO or EDL.
- Discloses and asks. The share copy states the voiceover is AI-generated; cloning needs the speaker's permission; a hosted provider is used only when you have agreed the text may leave the machine; nothing is posted anywhere.
Status is honest. Proven: made and measured in this repo's tests. Built in: the code path and flags exist and the contract is tested, but no real video has exercised that exact case. Possible: the underlying apps can do it and the skill does not wire it up yet.
Subjects
| What | Status | Notes |
|---|---|---|
| Narrated explainer on a news or technical topic | Proven | the first video: facts, count-ups, bars to scale, a diagram, a quote, a sourced end card |
| Data story: a few numbers with count-ups, bars, progress | Proven | the same building blocks |
| Launch or announcement clip, release notes, one highlight per change | Built in | from copy and facts you supply; brag's own "render the product's live UI from its code or URL" is not part of this skill |
| How-it-works or tutorial overview over diagrams | Built in | |
| Stat or quote card for social, 10 to 15 s | Built in | |
| Title, intro, outro or bumper | Built in | |
| Narration over waveform visuals (audiogram) | Possible | EffectCraft has an Audio Spectrum effect |
Formats and length
| What | Status | Notes |
|---|---|---|
| 1920x1080 at 30 fps, 30 s | Proven | |
| Other sizes and rates (1280x720, 24 fps) and lengths from 1 to 30 s | Proven | through the render and assemble conformance tests and the all-alternative-providers run |
| 15 to 60 s | Built in | any duration flows through the dispatchers |
| Vertical 9:16 and square 1:1 | Built in | width and height are parameters; you re-lay each scene (HTML scenes in vw/vh adapt easily); no automatic reflow |
| One script in several formats | Built in | reuse the voice and music, re-lay the scenes |
| Over 60 s, or 4K | Possible | nothing caps it; untested |
Voice
| What | Status | Notes |
|---|---|---|
| Designed narrator from a text description, fixed seed for repeatable takes | Proven | voicestudio |
| Any OpenAI-compatible TTS server | Proven | against VoiceStudio's own /v1; Kokoro-FastAPI, Speaches, LocalAI and hosted endpoints are Built in |
| Any CLI TTS (Piper, espeak-ng, edge-tts, your script) | Built in | the template mechanism is proven with a stand-in; each engine is a recipe |
| Your own recording or a voice actor's take | Built in | file provider |
| Cloned narrator from a short clip (with permission) | Built in | cloning verified at VoiceStudio's API; refused by providers that cannot clone |
| Another language | Built in | --language; English is the proven case |
| Preview with no model | Proven | dryrun: the whole pipeline in about 20 s |
| Multi-speaker dialogue | Possible | two narration passes on separate tracks, not wired |
Sound
| What | Status | Notes |
|---|---|---|
| Generated score cued to scenes, ducked under the voice | Proven | A minor, 100 BPM |
| Other keys, tempos, chord progressions | Built in | cues.json (triads) |
| Your own music file; voice only; music only | Built in | |
| Sound effects beyond booms, risers and ticks | Possible | extend synth_music.py |
Picture
| What | Status | Notes |
|---|---|---|
| EffectCraft scenes (After Effects-style scripting, 306 effects, expressions, 3D) | Proven | |
| HTML, CSS, SVG, canvas, WebGL or React scenes | Proven | two example scenes, including CSS keyframes driven by seek(t) |
| Any other renderer (Remotion, Manim, Blender) | Built in | RENDER_CMD; mechanism proven with a stand-in, each tool is a sketch |
| Your brand: palette and fonts | Built in | brand file for EffectCraft, CSS for HTML |
| Photos, screenshots, screen recordings in the picture | Possible | both renderers can; no helper yet |
| Transparent overlays (ProRes 4444) | Proven | render.sh --alpha 1 with the html provider; real alpha measured |
Vector animation: an SVG scene written for seek(t) (draw-on, springs, morphs, a path follower, squash and stretch) |
Proven | examples/vector-svg/: 0 lint errors, byte-exact between visits |
| An animated SVG file as a video or an overlay | Proven | vector.sh: SMIL is byte-exact, CSS animations differ by a sub-pixel between visits (49 dB) so that preflight is tolerant; Lottie is Possible (lottie-web is not shipped) |
| Pixel art: a scene with sprites, a palette, stepped time, crisp text | Proven | examples/pixel-art/: 99.95% of the 6 x 6 blocks one colour, 100% of them in the palette |
| Footage or an image turned into pixel art | Proven | pixelate.py with a named palette or auto:16, Bayer dither; the output passes qa_pixels.py (100% on a busy test pattern, 99.9% on real clips); small text does not survive 320x180 |
| Lottie, GIF or EXR sequences | Possible | EffectCraft export formats, not wired |
| Burned-in captions or SRT for a made video | Possible | captions for edited recordings are Proven (below); a made video's script could feed the same builder, not wired |
Mix, export and hand-off
| What | Status | Notes |
|---|---|---|
| FilmCraft mix and export | Proven | same size to the byte as the first video's export |
| ffmpeg-only mix, no editor | Proven | two-pass loudness normalisation |
| Any editor or mixer (Resolve scripting, melt/Kdenlive, Shotcut, Blender VSE) | Built in | ASSEMBLE_CMD; mechanism proven, each tool is a sketch |
| Timeline hand-off (OTIO, FCPXML, FCP7 XML, EDL, AAF, OMF) | Built in | files produced and structurally checked; importing them into other editors is not tested |
| Poster in frame 0, plan with claims table, share copy | Proven |
Editing a recording
| What | Status | Notes |
|---|---|---|
| Cut dead air and filler words (um, uh, er, repeats) from speech | Proven | synthetic footage with ground truth, for the ffmpeg and filmcraft providers; and real speech (49.1 s to 29.4 s, the edited video re-transcribes to the same words) |
| Denoise, EQ, compress, normalise to a target loudness | Proven | speech-to-noise gap 37 to 48 dB; loudness within 0.1 LU of -16 |
Burned-in captions (box, plain, karaoke), sidecar SRT |
Proven | all three styles rendered and inspected; words remapped through the cuts |
| Jump-cut punch-in zoom | Proven | alternating 1.08 on talking-head |
| Reframe to 9:16 (blurred fill or centre crop) | Proven | both rendered |
| Reframe to 9:16 following the speaker's face, with a slide or screen shot shown whole | Proven | a real talking-head reel sliding across a landscape canvas: the speaker stays in the middle of the output, a no-face shot gets the blurred fit, the audio has no click at the joins; one face at a time, no stacked two-person layout |
| Shorts from a long recording: shortlist, picks, vertical clips with kinetic captions | Proven on a short source | two clips cut from a 54 s reel pass every QA gate; a made-up 3.5 minute talk exercises the shortlist and the checks; an hour-long recording, several speakers and languages other than English are untested |
| Titles, chapters, overlay clips | Proven | rendered and inspected |
| Music bed ducked under the voice | Built in | runs and passes QA; the ducking depth was not measured |
| Colour: auto-level, saturation/contrast | Proven | a .cube LUT is Built in |
| Stabilise shaky footage | Built in | the vidstab path runs and passes QA; no shaky footage was tested |
| Cut hand-off to another editor (OTIO, EDL) and the caption sidecar (SRT) | Proven in FilmCraft | FilmCraft's importer takes the OTIO and EDL with media linked and the cuts survive a round trip, and takes the SRT with every caption; not tried in Resolve, Premiere, Final Cut or Kdenlive |
| Recordings of tens of minutes, several speakers, noisy rooms | Possible | untested; speaker-aware cuts, multi-camera and B-roll are not part of it |
3D and motion graphics (either mode)
| What | Status | Notes |
|---|---|---|
| Three.js scene: procedural 3D, particles, bloom, camera keyed to narration cues | Proven | 133 ms per frame in software, 66 ms on the GPU (1280x720); frames deterministic |
| GPU-accelerated rendering | Proven | --gpu auto picks Vulkan or EGL, falls back to software with a message |
| WebGPU/WGSL shader backgrounds | Proven | GPU and software frames agree to 0.017/255 |
GSAP, CSS and WAAPI timelines driven by seek(t) |
Proven | |
| Transparent lower thirds, stings and 3D objects over footage | Proven | composited under the captions; present only between start and end; the 3D overlay renders without bloom |
| 3D models from a photo with img2threejs | Built in | the generator, bundler and scene playback are proven with a toy spec; a real reconstruction (80k to 180k tokens) was not run |
| vgpu, p5.js generative art, logo animation, interface sounds (other OmniSkill skills) | Possible | not wired or run here |
| 4K, or 3D scenes over a minute | Possible | nothing caps them; untested |
Out of scope: generated live-action or photoreal video, talking-head avatars, lip-sync, photos of real people · creative editing judgement beyond what a transcript and the audio show (it cuts speech and silence from measurements and shortlists clips from the words, but it does not see the picture, choose shots, build a story from hours of footage or grade by eye; picking the clips worth posting is Claude's reading, not a measurement) · songs with lyrics or vocals · live or real-time output · posting anywhere (it delivers files, you publish).
Built and tested against a real 30-second video, then generalised:
- Cues. All 8 sentence boundaries of the real narration were recovered automatically, within 12 ms of a hand-built timeline; the same step finds the breaks in the placeholder voice too.
- Music. The generalised synth reproduces the original soundtrack bit-exactly.
- Picture. The refactored library and the render dispatcher reproduce the delivered video's frames (mean pixel difference 0.02 to 0.05 out of 255).
- Mix. FilmCraft reproduces the original export at the identical size to the byte (14,095,482). The ffmpeg mixer needs no editor, takes about 2.4 s for 30 s of video, and landed within 0.5 LU of the target in every test (0.1 on the real video).
- Every provider. Each bundled provider that can run here passes
conformance.sh(filewas checked throughnarrate.shwith a real recording); deliberately broken adapters fail with the specific reason (wrong size, wrong frame count, silent audio, no sentence pauses, noseek()). - The adapter that taught the lesson. The generic OpenAI adapter first sent the whole script in one request. VoiceStudio's endpoint returned run-on speech, and conformance failed on missing pauses. The adapter now synthesises per sentence with a fixed gap, which also gives exact boundaries on any server.
- A full video with none of the original stack: placeholder voice, an HTML scene and an ffmpeg mix, through the same dispatchers: about 20 s, every QA gate passed.
- Editing, against ground truth. A synthetic recording with known speech runs, two filler sounds and a marker that is on exactly while speech plays: 100% of every speech run kept, both fillers removed, picture and sound within one frame after the cuts, loudness -16.0 to -16.1 LUFS, hiss gap up from 37 to 48 dB.
conformance.sh editruns the same checks on any provider. - Editing, on real speech. The first video's narration with 1.5 to 3 s of room tone between sentences: 49.1 s to 29.4 s, all 80 words in the captions, and re-transcribing the edited video gave exactly the original words.
- The bug real speech found. Whisper stretched the first word of a sentence up to 0.7 s back into the silence, so three sentence openers fell inside "removed" spans and vanished from the captions. Word times are now snapped onto the voiced audio, and captions warn about any word the cuts drop without a planned reason.
- The Three.js bug that broke determinism. With a composer and output pass, setting the background through the clear colour double-encoded it (
0x0a0a0brendered as0x38383b) and made the first frame differ from every later one.scene.backgroundfixes it, and the renderer now seeks back to 0 after a run and warns if the frame changed. Also found: ffmpeg 9 removed-filter_complex_script;acompressor'smakeupis linear, not dB (it silently undid the denoise);drawtextmangles%; a barerequestAdapter()returns null on a hybrid-GPU machine; a headless WebGPU canvas reads back empty (render to a texture and read it back); thesin()hash differs between GPU and software. - Five reels, measured. Five public vertical reels about AI-made video were measured with these same tools (pace, cuts, how much of the picture barely changes, tempo, loudness). All five speak within 0.2 s, run 117 to 298 words a minute (median 185, against 156 here), and sit at -14 LUFS after the platform's normalisation. The new picture gate then found that two videos made with this suite barely change for 56% and 66% of their length, with stretches of up to 6.9 s, against 2% to 69% and at most 4.2 s in the reels. Details and what changed in the skill:
reference/short-form.md,reference/visual-craft.md. - The renderer, measured. With default options the rewritten
htmlprovider reproduces the previous output frame for frame;--workers 4cut a DOM scene from 35 to 9 ms a frame with identical frames (software WebGL gains nothing: it already uses every core); the shutter turns a hard-edged mover into a 16-level soft one; a scene that depended on how often it was seeked is refused before encoding. The layout lint found every planted fault and nothing else, raised no errors on four real scenes of an 87 s video (after a first version raised three false overlap errors, fixed by measuring ink instead of line boxes), and caught a bad body-text size in its own Swiss look. - Clips and the face-following crop, measured. Two clips (23.6 s and 14.0 s) were cut from a real 54 s talking-head reel placed on a landscape canvas where it slides sideways, so a centred crop would lose the speaker: both came out 1080x1920 with the
speaker in the middle, kinetic captions, -14.0 LUFS and every
qa_edit.pygate passing; the face analysis took 3.5 s and each render 11 to 17 s on the CPU. The work found three faults: a spring that only looks backward made the frame trail a moving face by about 0.9 s (now run forward and backward), a thumbnail difference missed real cuts whose size was below the noise of a moving speaker (now ffmpeg's scene score plus face jumps), and a clip cut on its last word failed the caption gate because the last cue was held for 0.6 s past the end of the video (it now ends with it). On a made-up talk the shortlist never offered the sponsor read or the call to action, and it also offered four windows of pure filler: the script cannot tell a window is empty, so the picks are read by a person or Claude. - Vector and pixel art, measured. The research said what to build; the tests found what the sources did not. x264 4:2:0 keeps every pixel block at an even scale (2, 4, 6, 8) and loses half of them at S=3 and S=5, and nearly all 1-pixel detail at S=1; ffmpeg's default dither (
sierra2_4a) changed 47% of the pixels of real footage every frame, Bayer 14.5% like no dither at all;paletteusewants a palette image of exactly 256 pixels;croprounded an odd 135-pixel height down to 134 on yuv420p and quietly lost the integer upscale (found by the conformance test); and an SVG scene failed the renderer's own determinism check until Chromium's partial raster was switched off (33 pixels, up to 69 levels, on a circle's edge). CSS animations on a transform still differ by a sub-pixel between visits (49 dB); SMIL does not. - Not yet tested: a second video made from scratch by a fresh agent following only
SKILL.md; a--workersrender on a real GPU; the lint on the one scene that needs WebGPU; importing the interchange files into other editors; vertical and square formats for made videos; long recordings; a real img2threejs reconstruction.
claude plugin marketplace add IPedrax/CraftVideoclaude plugin install craftvideo@craftvideoclaude plugin marketplace add ./CraftVideo && claude plugin install craftvideo@craftvideoRestart Claude Code after installing, then
/craft-videois available and the skill auto-triggers on video requests.
Prefer to let Claude install it? Paste this into a new chat: "Install this Claude Code plugin for me from https://github.com/IPedrax/CraftVideo and walk me through anything you need."
The skill needs one usable provider per stage; scripts/preflight.sh reports what you have and providers.sh list shows every option.
| You want | You need |
|---|---|
| anything | ffmpeg/ffprobe, python3 with numpy, soundfile and Pillow (VIDEO_PY points at one) |
| the default voice | VoiceStudio built from source with VoxCPM2 (VOICESTUDIO_DIR), an NVIDIA GPU with about 8 GB free |
| another voice | an OpenAI-compatible TTS server (OPENAI_BASE_URL), or any CLI through TTS_CMD, or your own recording |
| the default picture | effectcraft-cli from the storytold/effectcraft release tarball |
| an HTML picture | Node, Playwright and a Chromium (PLAYWRIGHT_DIR, CRAFTVIDEO_CHROMIUM); a full system Chromium is preferred (the bundled headless shell has no WebGPU) |
| 3D scenes | three.js (scripts/get_three.sh <path> copies it; CRAFTVIDEO_ALLOW_DOWNLOAD=1 fetches it); bun or esbuild to bundle TypeScript models; a Vulkan or EGL GPU is optional (--gpu auto) |
| the mascot | the html provider and scripts/get_mascot.sh (CRAFTVIDEO_ALLOW_DOWNLOAD=1 fetches the pinned ClaudeAnimationBase, p5.js and p5.brush; or pass a checkout that has had npm install); no GPU needed |
| vector and pixel art | the html provider; Pillow for pixelate.py and the example's make_sprites.py; Node for the pixel helper's self-test. Nothing is downloaded: fonts, palettes (three ship) and Lottie are optional (reference/pixel-art.md, reference/vector-animation.md) |
| the face-following crop | scripts/get_face.sh with CRAFTVIDEO_ALLOW_DOWNLOAD=1: OpenCV 4.13 (opencv-python-headless, Apache-2.0, about 55 MB from PyPI) in its own venv and the 232 KB YuNet model (MIT, from opencv_zoo), both pinned by SHA-256; needs uv, curl and a python3 with numpy. Only face_track.py analyze uses it, no GPU |
| clips from a long recording | the editing and transcription rows above; find_clips.py itself needs only python3 (numpy and ffmpeg for --audio) |
| img2threejs models | a checkout of img2threejs (IMG2THREEJS_HOME) |
| transcription | faster-whisper in the python VIDEO_PY points at, with a model already cached (or CRAFTVIDEO_ALLOW_DOWNLOAD=1); or an OpenAI-compatible STT server; or any STT CLI |
| editing | ffmpeg with loudnorm, afftdn, sidechaincompress, ass (libass) and drawtext; vidstab and prores_ks are optional (preflight.sh checks) |
| the default mix | filmcraft-cli from the storytold/filmcraft release tarball, or nothing (the ffmpeg provider) |
Describe the video:
- "make a 30 second video about the new decompilation boom"
- "a 20 second launch video for this project, polished tone"
- "make it vertical" · "re-roll the third scene as deadpan" · "use my voice sample, here is the clip and what it says"
- "build it with the HTML renderer and the ffmpeg mixer" · "give me the timeline as OTIO for Resolve"
- "edit this recording: cut the dead air and ums, clean up the audio, add captions" · "make a vertical version with burned-in captions"
- "make it pixel art" · "an 8-bit style intro with a sprite walking in" · "animate this SVG over the footage"
- "cut the best three clips out of this podcast for Reels" · "make this landscape talk vertical and keep me in frame"
- "add a 3D intro" · "put a lower third over this clip" · "turn this product photo into a 3D model and spin it in the video"
Or go straight in:
/craft-video asks what the video is about
/craft-video <topic> researches, storyboards, and builds it
Make: preflight → research → brag storyboard → script → narrate → tighten (cues) → scenes → review stills → music → render → assemble → finish and QA → deliver.
Edit: preflight → analyze → transcribe → plan (edit.json) → review the plan → apply → gate → review cuts → deliver.
Clips: analyze → transcribe → shortlist → pick → check → face track → one edit.json per clip → apply → gate → review → deliver.
SKILL.md is the mode router, the workflows and the house rules; the scripts do the mechanical parts and the references hold what is only needed when a step goes wrong.
skills/craft-video/
├── SKILL.md mode router (make / edit / motion layer), house rules, quality gates, troubleshooting
├── scripts/
│ ├── narrate.sh render.sh assemble.sh make-mode dispatchers (they enforce the contracts)
│ ├── transcribe.sh edit.sh edit-mode dispatchers
│ ├── providers/{tts,render,assemble,transcribe,edit}/*.sh the bundled providers
│ ├── analyze.py plan_edit.py captions.py qa_edit.py review_edit.py interchange.py transcript_norm.py the editing core
│ ├── get_three.sh bundle.sh the 3D toolchain (three.js, TypeScript bundling)
│ ├── providers.sh conformance.sh preflight.sh lib.sh
│ ├── tighten_voice.py split_narration.py verify_narration.py anchors.py synth_music.py finish.sh qa_sync.py qa_frames.py
│ ├── find_retakes.py check_looks.py
│ ├── find_clips.py face_track.py get_face.sh the long-to-short tools (shortlist and checks; the face-following crop and its installer)
│ ├── pixelate.py qa_pixels.py vector.sh pixel art from footage, the pixel-exact gate, an animated SVG as video
│ ├── mascot.sh mascot.py get_mascot.sh the mascot overlay
│ └── build.sh stills.sh voicestudio-backend (EffectCraft and VoiceStudio helpers)
├── looks/ ten looks (colour, type, motion, sound roles as JSON; a pixel block for the pixel-art one) and their README
├── jsx/ EffectCraft helper library + the default brand
├── pixel/ cvpixel.js (screen, held time, Aseprite sheets, hit-stop, shake, dither, palette cycling), palettes.json, a self-test
├── vector/ player.html: plays an animated SVG by the frame's time
├── mascot/ Clawd's overlay page (the kit itself is installed by get_mascot.sh, not stored here)
├── reference/ providers.md, edit.md, clips.md, motion-graphics.md, vector-animation.md, pixel-art.md, mascot.md, visual-craft.md, short-form.md, storyboard.md, html-scenes.md, effectcraft-scripting.md
├── fixtures/ tiny inputs for the conformance tests (script, real speech, synthetic footage and its ground-truth check)
└── examples/ decomp-30s, html-hello, html-css-animation, three-3d, img2threejs-bridge, webgpu-shader, gsap-timeline, overlay-lowerthird, looks-demo, continuous-camera, mascot, clips, vector-svg, pixel-art
claude plugin validate .bash skills/craft-video/scripts/preflight.sh && bash skills/craft-video/scripts/conformance.sh allCraftVideo makes videos out of graphics, text, numbers, diagrams and a voice. It is not a way to produce footage of people or events, and it cannot hear or watch its own result: it checks frames and measurements, and a person should still play the file before it goes out. Its claim discipline is only as good as the sources it can reach, so read the claims table in the plan. Clone a voice only with the speaker's permission, say the voiceover is AI-generated, check the licence of any speech model before client work (VoiceStudio's default VoxCPM2 is Apache-2.0; its OmniVoice weights are non-commercial), and remember that a hosted TTS provider receives the script text.
CraftVideo is MIT.
The storyboard method is from latent-spaces/brag (MIT), read at runtime from an OmniSkill install when present and condensed in reference/storyboard.md. The default brand fonts (Big Shoulders Display, IBM Plex Mono) are SIL OFL. VoiceStudio (AGPL-3.0), EffectCraft and FilmCraft (MIT or Apache-2.0) and every speech model keep their own licences and are not redistributed here.
Studied, not copied. Design rules, measured numbers and ideas in reference/visual-craft.md, reference/short-form.md, the render options, the layout lint and the looks come from reading the public repositories of
Motionmaxxing (Apache-2.0), HyperFrames (Apache-2.0), Lemo-Opuscar (MIT, whose
style notes became the colour and type data in looks/) and the HyperFrames student kit (MIT, the idea behind find_retakes.py), and from measuring five public reels. onetake
(PolyForm Noncommercial), Hypit (source-available, commercial use restricted) and SupoClip (AGPL-3.0: a transcript-first clip shortlist with a rubric for the choice,
and a face-following crop with a deadzone and a spring, the ideas behind find_clips.py and face_track.py) were read for ideas only. None of their code, prompts or prose is in this repository: each tool here is our own
implementation and its header or reference says where the idea came from. SupoClip asks a language model to pick the clips and downloads from YouTube; find_clips.py does neither. The videos analysed are not included.
Studied, not copied (round 5). The pixel-art rules and numbers come from reading Slynyrd's Pixelblog, Saint11's articles, Derek Yu's tutorial, Mark Ferrari's colour-cycling write-up, TASVideos' encoding guide, YouTube's upload guidance and ffmpeg's palette filters; the vector rules from NN/g, Material 3, Apple's spring documentation, MDN and Blink's SMIL source; the idea of seeking SMIL, CSS and Lottie by a frame's time from HyperFrames (Apache-2.0) and Remotion's docs. The Aseprite sprite sheet is read with our own code from the fields its exporter documents (Aseprite is source-available under an EULA; none of it is bundled), the PICO-8 palette is CC0 per Lexaloffle, and every sprite, scene and animated SVG here is original. Sources are listed in reference/pixel-art.md and reference/vector-animation.md.
Installed, not included. The mascot is ClaudeAnimationBase by John Heibel (MIT): Clawd and its painting engine, fetched by scripts/get_mascot.sh at a pinned commit with every file checked against its
SHA-256, together with p5.js (LGPL-2.1) and p5.brush (MIT) from npm. None of it is stored in this repository, only our page (skills/craft-video/mascot/clawd.html) and the tools around it. Clawd is a character of Anthropic: it is for videos about
Claude and its world, never for suggesting that Anthropic endorsed a video.
The face detector is YuNet (MIT, Shiqi Yu) from opencv_zoo, run through OpenCV (Apache-2.0): scripts/get_face.sh fetches the model at a pinned commit and OpenCV's wheel from PyPI, checks both against their SHA-256 and the model's licence,
and installs them under ~/.local/share/craftvideo/face. Neither is stored in this repository.