Assisted-animation and editing workflow for YouTube channel videos, built on Remotion.
Ships in tubeai. 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.
None: SKILL.md is the whole skill.
The user edits videos for YouTube channels. We build animated scenes in Remotion that they drop into their edit, and we can edit a creator's raw recording for them: cut it, time the inserts to the words, move the frame on the speaker, master the voice, and hand it over as a timeline they finish in Premiere Pro, Final Cut Pro or DaVinci Resolve. Each channel's branding stays consistent: its styling and animations are set once, then reused or used as the base for new ones. The user brings ideas, some of the media and sometimes a raw recording, and can share a YouTube link or a video file to show the style of the current animations. Through the optional TubeAI connector, Claude also helps find video ideas and draft scripts. Claude researches the rest, builds the animations, and cuts and renders.
Assume the user isn't technical, and make all of this as seamless as possible for them.
The user wants a quick setup with no fuss, and then videos made without friction. Every stall is yours to solve.
--accept-source-agreements --accept-package-agreements.python opens the Microsoft Store: use py -3.12.npm or npx ("running scripts is disabled"): use npm.cmd and npx.cmd.brew "isn't found" right after Homebrew installs: it's in /opt/homebrew/bin on Apple Silicon (/usr/local/bin on Intel), which the current shell doesn't know yet. Call it by that path, or load it with eval "$(/opt/homebrew/bin/brew shellenv)".xcode-select --install opens Apple's installer, and the user clicks Install.python3 is macOS's own older copy: use Homebrew's python3.12.GUIDELINES.md, and say so in a line.TubeAI is optional. Follow Connect first in the tubeai-mcp skill: if TubeAI isn't connected, offer it once, in a line, and carry on either way. If the user says no, note it under "This machine" in GUIDELINES.md, and don't offer it again unless they ask.
The project is the folder that has GUIDELINES.md and remotion.config.ts. If there's none and the user wants to start, run Setup. If the current folder is another project or isn't empty, ask where the video project should live before installing anything.
Otherwise read GUIDELINES.md, README.md and PROJECTS.md, and use PROJECTS.md to find the channel and video to work on:
PROJECTS.md yet (the project was set up before it existed): build it first from the channels/ folders and their BRIEF.md files, and add @PROJECTS.md to CLAUDE.md.Then read that channel's CHANNEL.md and, for a video, its BRIEF.md. Sum up where things stand in 2–3 lines, ending with the next step, and carry on.
If the project is missing something this skill describes (a script, an agent file, a folder, a tool), it was set up with an older version of the skill. Add what the current task needs while doing it, and mention it in a line. Never hold a task back to ask about it.
The main chat is for discussing ideas and drafting scripts with the user, and for exploring YouTube data through TubeAI when it's connected (the tubeai-mcp skill). Turn each agreed idea into a brief, send it to sub-agents, check what they return, show the user (SendUserFile) and iterate. As a rule of thumb, research, editing and animation happen in sub-agents, not in the main chat.
A scene needs 1–2 sub-agents, all running Opus 5.5 at xhigh effort. video-researcher runs first, and only when the scene needs media we don't have yet. Then video-animator builds and renders the scene with that media.
A raw recording goes to video-editor (see Editing a recording). The inserts planned on top of it are then scenes like any other. When there are many, group them by type (overlays, data boards, article cards, charts): one video-animator per group, each in its own folder, all sharing the one timing table.
Run at most two heavy agents at a time: more hits the user's usage limit. For revisions, continue the same agent (SendMessage) so it keeps its context.
Mind the machine too: one transcription at a time, at most two still renders at once, and a recording's final renders in one batch at the end, under the render lock (see Rendering). A verbatim transcriber (about 6.5 GB of RAM), Whisper, Chrome renders and several agents at once have crashed a laptop.
Don't overengineer: no verification rounds between agents, demo compositions, catalog write-ups, mock sets or renders nobody asked for.
Record every decision in the video's BRIEF.md, and turn every correction the user makes into a written rule, so it never has to be made twice: in CHANNEL.md when it's about this channel's look, voice or pacing, in GUIDELINES.md when it's about how we work.
Spawn the agents by subagent_type (their files are in .claude/agents/) without a model override. If those types aren't available in this session (for example, they were just created), use general-purpose with model: opus and paste the agent file's body above the brief. Tell the user that effort follows the session setting until a new chat loads the agents.
The agent files already hold the default instructions (read the MDs and the channel in full). The brief you send adds only the specifics:
Channel: <slug> · Video: <yyyy-mm-dd-slug> · Scene: <CODE>-<video>-s<nn>
Goal: <what the viewer should take away, 1–2 lines>
Specs: <resolution and fps; mp4 | full-frame card (split render) | overlay (alpha); the length comes from the window>
On screen: <exact copy, numbers, what gets highlighted and when>
Window: <its row in cut/insert-windows.json (a recording) or its beats in timings.json (a voiceover): start word, end word, the word that brings in each element, and how it enters and exits>
Media: <user-provided paths, links, researcher output>
Reference: <YouTube link or video file (+ timestamps) whose style to match, if any>
Reuse: <templates and channel animations to use; what's new>
When an agent returns, check that the files exist and passed QA (see Rendering), show the user the stills or render, and update the scene's status in BRIEF.md and the video's row in PROJECTS.md.
<project>/
├─ CLAUDE.md # "@GUIDELINES.md" and "@PROJECTS.md", so every new chat loads the rules and the current work
├─ GUIDELINES.md # workflow rules, the source of truth for chats and agents
├─ PROJECTS.md # every channel and video: where each stands and what's next
├─ README.md # for the user: preview and render by hand
├─ remotion.config.ts # public dir = media/, GPU settings (from core/lib/render-settings.ts)
├─ .claude/agents/ # video-researcher.md, video-animator.md, video-editor.md
├─ .claude/skills/ # remotion-best-practices (Remotion's official agent skill), and tubeai-mcp if it didn't come with the plugin
├─ .venv/ # Python: Qwen3-TTS voices, Whisper and CrisperWhisper transcripts
├─ core/ # logic shared by all channels (no branding)
│ ├─ index.ts, Root.tsx # entry; mounts each channel's <Folder> and the template demos
│ ├─ templates/ # XPostCard, RedditPostCard, ArticleHighlight, DocumentCard, Montage, CTA, transitions
│ ├─ components/, lib/ # shared building blocks; the timing-table helpers, render settings
│ └─ scripts/ # capture, clip, voice, transcribe, cut, master, assemble, timeline, render, qa; lib/ for the code they share
├─ channels/<slug>/ # one per channel; <slug> is its name in kebab-case
│ ├─ CHANNEL.md # brand guide, voice, glossary, style reference, animation catalog
│ ├─ theme.ts # brand tokens
│ ├─ animations/ # reusable branded animations
│ ├─ index.tsx # the channel's compositions
│ └─ videos/<yyyy-mm-dd-slug>/ # BRIEF.md, scenes/, and cut/ for a recording (cuts, timing table, versions)
├─ media/<slug>/
│ ├─ user-provided/ # the user's files, read-only for Claude
│ └─ automated-research/ # everything Claude finds or makes: <video>/, style-refs/ and voice/, each with SOURCES.md
├─ recordings/<slug>/ # raw recordings, outside media/ so renders never copy them
├─ archive/<slug>/ # research media of shipped videos, kept out of media/
└─ out/<slug>/<video>/ # renders, the voice master, and timeline/ with the .xml, .fcpxml and .otio exports, REVIEW.md and any LUT
PROJECTS.md, at the project root, maps the current work: every channel and video, where each one stands, and what's next. CLAUDE.md loads it into every chat, so a new chat knows where to start without searching.
CHANNEL.md and BRIEF.md.# Projects
<n> channels · <n> videos in progress · <n> shipped. Update this file whenever a channel or video is added, a video's status or next step changes, or a video ships.
## <Channel name> · `channels/<slug>/` · <n> in progress, <n> shipped
Channel work: <e.g. starter animations, 4 of 6 built> · next: <e.g. build the lower third>
| Video | Folder | Status | Next step | Updated |
|---|---|---|---|---|
| <working title> (<other names>) | `videos/<yyyy-mm-dd-slug>/` | <e.g. 4 of 6 scenes rendered> | <e.g. animate s05> | <yyyy-mm-dd> |
Shipped: `<yyyy-mm-dd-slug>` (<title>), …
Each channel gets one folder in channels/ and one in media/, both named by its slug (the channel's name in kebab-case). Channels come from the user: the first one is whichever they name at setup.
CHANNEL.md is the brand guide, and every agent reads it in full. It covers:
theme.ts holds the same values as tokens. Scenes never hard-code brand values.
Reuse first, then derive, then create. Compose existing animations first. Make variants through props or wrappers, never by copying and editing. Build something new only when needed. A pattern used twice moves to animations/ with a one-line catalog entry.
New channel: ask the user for brand inputs (logo, colors, fonts) and, if they have one, a style reference: a YouTube link or a video file that shows the channel's current animations. Fill the remaining gaps by researching the channel's look (banner, thumbnails, recent videos). Propose the theme, the motion style and a starter set of animations, for example:
Build once the user approves.
The user can share a new style reference at any time, to refresh a channel's look or to match one specific animation.
The user can provide a YouTube link or a video file to show the style of the current animations, for a whole channel or for one specific animation. When there's a reference, match it instead of guessing.
npm run clip into media/<slug>/automated-research/style-refs/. If the user gives timestamps, clip only those parts; otherwise take the whole video. Read a video file from the user where they put it, and never move it.ffmpeg -i ref.mp4 -vf "select='gt(scene,0.3)',scale=640:-1,tile=4x4" -fps_mode vfr sheet-%02d.png.CHANNEL.md under "Style reference", and from there into theme.ts and the animations. When an animation is rebuilt from a reference, show the user side-by-side stills (the reference frame next to ours) before building on it.video-researcher gets the video, pulls the frames and writes the findings. video-animator builds from them.media/ is Remotion's public dir, so files load with staticFile('<slug>/user-provided/…'). Every render copies all of it, so raw recordings never go there: they live in recordings/<slug>/, or wherever the user keeps them.user-provided/ belongs to the user. Never rename, move, re-encode or delete anything there. Converted or cropped copies go to automated-research/.automated-research/ holds everything Claude downloads, captures or generates, including from links the user supplied: <video>/ for a video's media, style-refs/ for style references, voice/ for a designed channel voice.
s03-article-screenshot.png).SOURCES.md: file · source URL · date captured · what it shows · scene.ArticleHighlight in the outlet's own look: its logo (for identification only), page colours and the closest free fonts. Compare the rebuild side by side with the screenshot before using it: a stand-in font that looks off gets noticed.DocumentCard). Never use raw screenshots of them: they come out small, cluttered and cropped.tubeai-mcp skill), otherwise on YouTube itself, then use yt-dlp and download only the section needed (npm run clip). If downloads fail with HTTP 403, see Troubleshooting. Videos on other sites (X, Reddit, Vimeo, news sites and most others) download the same way: npm run clip takes their links too, since yt-dlp supports them.user-provided/. Synthetic voiceovers from npm run voice go in automated-research/<video>/vo/ and are logged in SOURCES.md. Never reuse the narration or music of a reference video or another channel.BRIEF.md.REVIEW.md lists it. The host's joke names for companies never go on screen.REVIEW.md, with the upload date it assumes.REVIEW.md lists the credits), and on screen too only when the channel wants it. Logos are for identification only.npm run capture (headless Chromium): the files that go into the videonpm run voice runs Qwen3-TTS locally, in the project's Python environment. The hardware check picks the model size, 1.7B or 0.6B, and CHANNEL.md records the channel's voice. The models are on Hugging Face under Qwen/: Qwen3-TTS-12Hz-1.7B-CustomVoice, Qwen3-TTS-12Hz-1.7B-VoiceDesign and Qwen3-TTS-12Hz-1.7B-Base; Qwen3-TTS-12Hz-0.6B-CustomVoice and Qwen3-TTS-12Hz-0.6B-Base.
--samples) and let the user pick by ear. For English, Ryan and Aiden are the native speakers.--instruct) or for one beat. The channel's default instruction comes from its audience and tone in CHANNEL.md: draft it with the user and settle it by ear with a few samples, the same way as the speaker. A beat gets its own instruction only when the script calls for a different delivery. VoiceDesign makes a new voice from a description the user agrees on (gender, age, pitch, pace, character). A designed voice can drift from line to line, so to make one the channel's voice, render a reference clip with it once, save it in media/<slug>/automated-research/voice/, and voice every line with Base cloning that clip.beats.json ({ "beats": [{ "id", "text", "pauseAfter"?, "instruct"? }] }). Output is vo.wav (48 kHz, loudness-normalized to -16 LUFS), one WAV per beat, and timings.json.npm run transcribe runs two models locally, in the project's Python environment, on a 16 kHz mono WAV with word timestamps on. The hardware check picks their size.
transformers) gives the words. It takes a prompt, so the channel glossary (and the script's names, when there is one) goes in, and names and terms come out spelled right. But it hides stumbles: it folds a restart and its retake into one clean sentence, and drops repeats and fillers, so a re-check with the same Whisper pass looks clean too.crisperwhisper package: large, medium or turbo) is the verbatim pass that finds them: fillers, stutters, repeated words and false starts stay in, with word timings accurate to about 30–40 ms, so scenes sync to them directly. It takes no prompt, so it misspells names: the transcript keeps its words and timings, with Whisper's spelling of names and terms. mode="intended" gives a clean, formatted version when one is wanted, such as for captions. forced_align(audio, text) times a known text against the audio, such as a script line or a join being checked. verbatimize(audio, text) adds the real disfluencies to a clean transcript.timings.json is the one timing format both scripts write, in seconds: { duration, beats: [{ id, text, start, end }], words: [{ text, start, end }] }. voice gets its word timings by aligning its own text to its output (CrisperWhisper's forced_align). A voiceover's scenes time off this file; a recording's scenes time off the timing table built from it (see Editing a recording). Neither ever hard-codes a time.When the user hands in a creator's raw recording (a file in recordings/<slug>/, or a path), edit it into a timeline they finish in their own editor. The recording itself is never changed, so there's nothing to approve before cutting. video-editor does the transcript, the cut, the voice master, the timing table, the moves on the speaker and the final assembly; video-animator builds the inserts.
The deliverable is a timeline, not a video. Editors polish and export in Premiere themselves. Deliver the Final Cut Pro 7 .xml (Premiere imports it as a ready sequence: File → Import), an .fcpxml for today's Final Cut Pro (File → Import → XML) and an .otio (DaVinci Resolve 18.5+: File → Import → Timeline; Premiere Pro 25.6+). Render an MP4 only when the user asks for one. With the timeline go REVIEW.md (see The review list) and, when the editor has graded a frame, a LUT (see Colour).
Give the user a rough time for the whole edit up front, then work in this order:
npm run transcribe, see Voice and transcripts).BRIEF.md: every proposed insert with the sentence it goes on (see Inserts). The user approves the brief before any cutting, and usually adds more inserts, articles especially.npm run master, see Sound).npm run assemble: it builds the timeline spec from the windows, renders, moves and voice master, writes the .xml, .fcpxml and .otio (npm run timeline), and runs every check in the Timeline recipe.REVIEW.md, giving the exact path to each file.Cutting
CHANNEL.md). By default, every natural pause stays. For a new host, measure their pauses and confirm the policy with the user before cutting.cut/cuts.json holds only this video's decisions: the removed ranges, each with its reason, and the word fixes. The shared cut library (core/scripts/lib/) turns them into the frame-accurate kept segments at any frame rate, the cut's word timings and a reference WAV of the cut, with a 15 ms fade at each cut, for the checks. Write cut/CUTS.md too: the transcript with every removal struck through and its reason, a short "your call" list of the genuine judgement calls, and a "listen to these" list of joins between words.The timing table (in cut/, rebuilt on every re-cut)
words-cut.json: every kept word with its start and end in cut time, with the word fixes from cuts.json.insert-windows.json: for each insert, its start phrase, end phrase, the spoken text, its start and end in cut seconds, its beats (the word that brings in each element), its role (full-frame card or overlay), and how it enters and exits (its own transition, a hold or a dissolve; see Inserts).findPhrase(phrase, { after, before }), findAll, wordsBetween), ignoring case, punctuation, number words against digits, currency signs and thousands separators.Feedback comes as timecodes from the version the user reviewed. Keep each delivered version's cuts.json in cut/versions/, and map feedback through that version, not the current one. If the timecodes look offset, match by content.
To fix an insert after the editor has imported the timeline, re-render it under the same file name and frame count, and the timeline stays valid. On Windows, check first that Premiere isn't holding the file: an exclusive open succeeds.
Keep the recording's frame rate throughout, including NTSC rates like 29.97 and 23.976, as the exact fraction: 30000/1001 at 29.97 (1,601.6 audio samples per frame at 48 kHz), never rounded through 30.
The review list. REVIEW.md goes with every delivered timeline, in timeline/, with times on the cut:
An insert is a scene laid over a recording: an article or document card, a chart, a graphic, a montage, a clip, a CTA.
Planning
Sync (most corrections land here)
A scene's length is its narration window plus its exit (or its hold, see Joins): frame 0 is the start word, and the exit starts right after the end word.
Joins
Design
overflow: hidden that cuts off the left curve of a first C, G, O or S and the ends of T and W. For a vertical reveal, clip with clip-path: inset(0 -<pad> 0 -<pad>) instead.<transitionitem>s first: how they map to Premiere's own or third-party transitions is uncertain.CHANNEL.md). Make them with FFmpeg. Card renders are silent: each sound goes on the timeline as a clip of its own (see Sound). An overlay carries its own audio.In a recording's timeline, the frame also moves on the speaker: cuts to a new framing, and eased zooms and pans. They're written into the timeline (see Timeline recipe), so the editor can still adjust them. These are the defaults; CHANNEL.md wins where it sets its own.
When to move
Moving for an overlay
Every move gets a sequence marker and a line in REVIEW.md. For scale, one 24-minute edit had 54 moves: 1 intro push, 13 punch-ins, 17 resets under cards, 19 panel pans and 4 window cuts.
The voice master. A raw recording usually plays well under YouTube's -14 LUFS reference (one played at -20.5 LUFS). Process the whole recording's audio into a voice master, a new 48 kHz, 24-bit WAV; the recording itself is never touched. The FFmpeg chain:
highpass=f=70,
acompressor=threshold=-20dB:ratio=2.5:attack=8:release=150,
volume=<make-up>dB,
aresample=192000,
alimiter=limit=-1.7dB:attack=5:release=50:level=0:latency=1,
aresample=48000
REVIEW.md for a listen.Effects
Checks
Premiere's FCP7 XML import doesn't recreate adjustment layers or Lumetri, as far as we know (a round-trip test is still to do). So in a recording's timeline, V2 stays empty for the editor's own adjustment layer, with every other video track above it.
A LUT that matches the editor's grade. When the editor grades one frame the way they like it and shares it, build a LUT from it:
.cube in timeline/. Check the mean error (the first one came to 4.6/255) and show the user a before/after.Simpler matching fails: matching the mean and standard deviation washed the image out, and per-channel histogram matching turned whites pink, because the two frames' content differed.
The editor applies it once in Premiere: New Item → Adjustment Layer, laid on V2 across the sequence → Lumetri Color → Creative → Look → the .cube. Nothing adds it after import yet, so give them these steps.
They live in core/templates/, carry no channel branding and are driven by props. Each one has a zod schema with sample defaults (editable in Studio), dark and light variants, and a demo composition. Channel scenes wrap them with theme tokens for framing, fonts and motion.
XPostCard copies the real X layout: avatar, name, verified badge, handle, time, text (with optional word highlights), media and metrics.RedditPostCard shows the subreddit, user, post age, flair, title, body or media, votes and comments.ArticleHighlight shows the outlet, headline, byline/date and paragraphs.
DocumentCard rebuilds a document (a regulator page, filing, PDF or paper) as clean text or a table, sized to its content.Montage shows one photo per item named in a row, each landing on its name, with a credit line when the channel shows credits on screen.CTA is an original like-and-subscribe with the channel's real name and avatar.theme.ts, rendered into the insert. Their sounds are separate files for the SFX track, except in an overlay, which carries its own audio.Chromium renders frames on the GPU through ANGLE, on Windows and Mac alike (Direct3D 11 on Windows): --gl=angle with Chrome for Testing (chromeMode: 'chrome-for-testing'). Remotion's default, Chrome Headless Shell, couldn't even show its GPU status in testing. npm run gpu passes --chrome-mode=chrome-for-testing --gl=angle itself, because remotion gpu ignored the config's GL setting. It should report "Hardware accelerated" for Compositing, Rasterization and WebGL.
Encoding runs on the GPU with --hardware-acceleration=required:
--hw disable), and say which one ran. Without NVENC (AMD or Intel graphics, or an NVIDIA chip without an encoder), the hardware check has already set CPU encoding, so there's nothing to ask.Set quality with --video-bitrate, because hardware encoders don't accept --crf.
Alpha overlays for the editing software use ProRes 4444 (--image-format=png --pixel-format=yuva444p10le --codec=prores --prores-profile=4444). Frames still render on the GPU. On Windows the encode runs on the CPU, because NVENC can't encode ProRes; it's the one exception there, so say so whenever you use it. On a Mac, VideoToolbox encodes ProRes: use --hardware-acceleration=if-possible, so it falls back to the CPU if it won't take the alpha channel. These files are large, so budget time and disk.
Split renders save most of that for full-frame cards (npm run render:split). A card renders in three parts, placed back to back on one track: a head in ProRes 4444 with alpha, holding the entrance until the card covers the shot; an opaque H.264 body, encoded on the GPU; and a ProRes 4444 tail, holding the exit. An overlay stays a single ProRes 4444 file. ffprobe checks every part's frame count.
Any video can also go out as a timeline, the professional output: the Premiere .xml, the Final Cut .fcpxml and the .otio (see Editing a recording), with the scenes at their start times over the voiceover when there is one, and a marker on each. It's the default for a recording. For other videos, offer it when the user finishes in Premiere, Final Cut or Resolve, and make it whenever they ask.
angle can leak memory on long renders. Keep each composition to one scene, and split with --frames if one runs long.
Never put a live CSS filter: blur() on a large photo: rendered on the GPU across parallel tabs, it flashes single white frames and black flicker. Pre-blur each background once (cached copies at 2560 px or less), crossfade from sharp to blurred by opacity, and hold each frame until its images are decoded.
The hardware check sets the concurrency (how many frames render at once) for this machine. If a render runs out of memory or the computer slows to a crawl, halve it, save the new value in render-settings.ts and under "This machine" in GUIDELINES.md, and render again.
Every final render takes a machine-wide render lock (a lock file in the system's temp folder) in render and render:split, so no two overlap, whichever agent starts them. A recording's inserts render in one batch at the end. Stills run at most two at a time.
Every render run bundles the project, and bundling copies all of media/. Three things keep that cheap:
render script bundles once per run and accepts several IDs.recordings/, never in media/: a 4 GB recording there is copied on every render.automated-research/<video>/ to archive/<slug>/<video>/. Suggest the same for the user's large files, but never move them yourself.Render flags live in one module, core/lib/render-settings.ts, read by both remotion.config.ts and the render script, because Remotion's Node APIs don't read the config file.
Resolution and fps come from CHANNEL.md (or, for a cut recording, from the recording), so renders match the user's timeline.
Everything runs through npm scripts, so nobody has to remember flags: studio, render, render:alpha, render:split, still, qa, capture, clip, voice, transcribe, cut, master, assemble, timeline, gpu. Renders go to out/<slug>/<video>/<composition-id>.<ext>, outside media/, so they never get bundled.
QA before anyone sees a render:
npm run qa scans every frame's brightness (FFmpeg signalstats, YAVG). It flags any single-frame jump or drop of more than about 40 (8-bit) against both neighbours, and any all-white or all-black frame that isn't at an edge. A structure pass, comparing each frame's detail with its neighbours', catches the blank frames a brightness scan misses on white pages. Alpha files are scanned over mid-grey.An MP4 with sound lands its audio about 43 ms late (AAC priming with no edit list): trim or flag the priming samples when muxing.
After a reboot or a usage limit, probe every render (ffprobe duration) before trusting it, and redo only what's missing or broken.
The first step of setup. It takes seconds, needs nothing from the user, and fits everything below to this machine.
What to check (built-in commands, nothing to install): the CPU (model, cores, threads), RAM (total and free), every GPU (model, memory, driver), free space on the system drive and on the project's drive, and whether it's a laptop.
Win32_Processor, Win32_ComputerSystem, Win32_OperatingSystem, Win32_VideoController and Win32_Battery (a laptop has one). For NVIDIA cards, read VRAM and the driver version from nvidia-smi --query-gpu=name,memory.total,driver_version --format=csv, because Win32_VideoController reports 4 GB at most.sysctl (machdep.cpu.brand_string, hw.physicalcpu, hw.logicalcpu, hw.memsize), uname -m (arm64 is Apple Silicon), system_profiler SPDisplaysDataType for the GPU, pmset -g batt (a laptop shows a battery) and df -h. Apple Silicon shares its memory between the CPU and the GPU, so the RAM total is the GPU's budget too.What it decides:
--hardware-acceleration=required). A few entry-level chips, like the GT 1030, have no encoder; the test render shows it, and they encode on the CPU.--hardware-acceleration=disable).--hardware-acceleration=required, and if-possible for ProRes 4444 overlays).mps device). Test one line first; if mps misbehaves, use the 0.6B models on the CPU.large (Whisper large-v3).medium.turbo (Whisper large-v3-turbo).npx remotion benchmark <id> --concurrencies=<a>,<b>,<c> --frames=0-89), and save the fastest in core/lib/render-settings.ts.Then:
GUIDELINES.md under "This machine", so later chats don't check again.For the user, setup is a single request. Claude does every step below and only stops for install approvals and the user's decisions (which channel, its brand). Steps that don't depend on each other run side by side, with the big downloads started first (see Keep it fast and smooth).
Run the Hardware check and tell the user in two or three plain lines what it means for them.
Install the tools, and ask before installing:
OpenJS.NodeJS.LTS), FFmpeg (Gyan.FFmpeg), yt-dlp (yt-dlp.yt-dlp), Deno (DenoLand.Deno) and Python 3.12 (Python.Python.3.12).node, ffmpeg, yt-dlp, deno and [email protected]. If Homebrew is missing, installing it needs the user once: give them the one line from brew.sh to paste into Terminal, and tell them it asks for their Mac password and installs Apple's command line tools too.Deno is the JavaScript runtime yt-dlp needs for YouTube (or have the clip script pass --js-runtimes node).
Install Remotion (latest, TypeScript, blank) in the chosen folder:
remotion, @remotion/cli, react, react-dom@remotion/bundler, @remotion/renderer, @remotion/google-fonts, @remotion/fonts, @remotion/layout-utils, @remotion/transitions, @remotion/media-utils, @remotion/shapes, @remotion/paths, @remotion/noise, @remotion/captions, @remotion/zod-types, and the zod version @remotion/zod-types is built againsttypescript, tsx, playwright (then npx playwright install chromium), @mozilla/readabilitynpx skills add remotion-dev/skills --skill remotion-best-practices -a claude-code -y. The animator and editor agents preload it, so they use current Remotion APIs.tubeai-mcp skill, if it isn't installed yet (it comes with the tubeai plugin): npx skills add tubeai-app/tubeai-skills --skill tubeai-mcp -a claude-code -y. The researcher agent preloads it.Every @remotion/* package must be on exactly the same version as remotion.
Set up the Python environment in .venv/:
torch.cuda.is_available()), otherwise the CPU build. On a Mac, the standard build, which on Apple Silicon includes the mps GPU device (confirm with torch.backends.mps.is_available()).qwen-tts. It pins its own transformers version, which is one reason it gets its own environment.crisperwhisper[transformers], for transcripts, with Whisper running through the same transformers. CrisperWhisper only needs transformers 4.40 or newer, so it shares this environment with qwen-tts; if their versions ever clash, give it its own. Its faster CTranslate2 runtime only exists for Linux.opentimelineio with its Final Cut Pro 7 XML and Final Cut Pro X adapters (otio-fcp-adapter, otio-fcpx-xml-adapter), to read every exported timeline back as a check.Download the transcription models the hardware check picked, in the background, then transcribe a 10-second test clip. They should run on the GPU where there is one (CUDA on NVIDIA, mps on Apple Silicon), and on the CPU otherwise.
Create the layout above. The entry point core/index.ts registers core/Root.tsx, which mounts a <Folder> per channel plus a templates folder of demos.
In core/lib/render-settings.ts, which remotion.config.ts and the render script both read, set the public dir to media, angle, Chrome for Testing, the hardware acceleration the hardware check picked, and the video bitrate. The concurrency comes in step 9, once there's a template demo to benchmark.
Write the scripts in core/scripts/. None of them write into user-provided/. capture and clip log their files in SOURCES.md when given --note (and --scene).
capture: saves a URL as a PNG at 2× device scale, either the full page or a CSS selector, in light or dark mode, with cookie and consent overlays hidden. It also saves the article text as JSON (Readability).clip: runs yt-dlp --download-sections "*<start>-<end>" --force-keyframes-at-cuts -S "vcodec:h264,res,acodec:m4a" --merge-output-format mp4 -o <path> <url>. H.264 MP4 cuts cleanly into an edit. Drop the h264 preference when 4K is needed. Without a section, it downloads the whole video (for style references). When a download fails, it loops through YouTube clients (see Troubleshooting) and prints which one worked and the resolution.voice: Qwen3-TTS through the .venv Python, at the model size the hardware check picked. Options: --speaker, --speed, --samples (one line per preset speaker), --instruct "…" (tone, 1.7B only), --design "…" (a new voice from a description, 1.7B only), --clone <ref.wav> --ref-text "…" (the Base model; a real person's voice only with their permission).transcribe: runs Whisper (prompted with the glossary) and CrisperWhisper's verbatim pass through the .venv Python on a 16 kHz mono WAV with word timestamps, and writes transcript.json (Remotion captions: text, startMs, endMs) and timings.json, with names and terms corrected against the glossary. It can also transcribe a short window, with or without a prompt, or forced_align it, for checking sentences and joins.cut: finds the stumbles (see Cutting) and diffs the transcript against the script → a draft cuts.json (the removed ranges, each with its reason, and the word fixes) and CUTS.md, with every cut placed in the audio's silence. Its shared library in core/scripts/lib/ turns cuts.json into the kept segments at the recording's exact frame rate, words-cut.json and a reference WAV of the cut, and re-transcribes about 2 s either side of every join.master: the voice master (see Sound). It measures the cut, sets the make-up gain, writes the WAV, and reports its loudness, true peak and loudness range, and the moment where the limiter works hardest.assemble: a video's windows (insert-windows.json for a recording, the timings.json beats for a voiceover), its renders, the moves and the voice master → the timeline spec, with the empty colour track, the held overlays and the effects' gain. It then runs timeline, and every check in the Timeline recipe on what it wrote.timeline: a timeline spec (the kept segments of the recording with their moves, the voice master, the inserts with their clip gain, the sound effects and the markers) → Final Cut Pro 7 .xml (Premiere), .fcpxml (Final Cut Pro) and .otio (Resolve), written directly and following the Timeline recipe below. It then reads the .xml and .fcpxml back through OpenTimelineIO and checks the clip counts, positions and total length.render: bundles once per run, renders each ID with the settings from render-settings.ts under the render lock, and, when encoding with NVENC, checks the NVIDIA driver first. render:split renders full-frame cards as head, body and tail (see Rendering).qa: the flash scan and the structure pass on a render (see Rendering), over mid-grey for alpha files.Build the core templates and their demos, then benchmark the concurrency on one of them (see Hardware check).
Create the channel(s) the user names (see Channels). Brand work needs the user's input, ideally with a style reference.
Write the three agent files below into .claude/agents/. In video-researcher.md, name the TubeAI skill exactly as the skill list shows it: tubeai:tubeai-mcp when it came with the plugin, tubeai-mcp otherwise.
Write the docs:
README.md for the user, in plain language with click-level steps. Claude normally runs everything, so this is only for doing it by hand; keep it short. It covers connecting TubeAI (in the Claude app, or with one line in the terminal), previewing with npm run studio (http://localhost:3000), one example each for render, alpha, still, capture, clip, voice and transcribe, where to put media, how to share a style reference (paste a YouTube link in the chat, or give the path to a video file), where to put a recording to edit (recordings/<slug>/), how to open the exported timeline in Premiere, Final Cut or Resolve, and where renders go.GUIDELINES.md: these sections of this skill, adapted to what was actually installed and verified: The user isn't technical, Keep it fast and smooth, Workflow through Rendering, and Troubleshooting. Add a "This machine" section with the hardware check's findings and choices, and whether the user declined TubeAI, so later chats don't offer it again.PROJECTS.md, from the template in the PROJECTS.md section, with the channel(s) just created and no videos yet.CLAUDE.md, containing @GUIDELINES.md and @PROJECTS.md, each on its own line.Verify each of these, then tell the user in plain language what works and what, if anything, needs them:
npm run gpu resultworkspace_account call answers with the user's plannvidia-smi, or VideoToolbox in the render's verbose log (--log=verbose)npm run capture (saves PNG + JSON)npm run voice line, transcribed back with npm run transcribe: the words should come back rightnpm run assemble. Every check passes, and the checks bite: they fail with the insert shifted by one frame, and again with V1 off by one frameIf anything fails, say so and include the error.
Fix these without the user where possible, telling them in a line what's happening as you go. When one needs the user (like a driver update), give click-level steps.
YouTube downloads fail with HTTP 403. The list of qualities loads, but the download itself is refused. YouTube asks some of the players yt-dlp imitates for a PO ("proof of origin") token, to prove the request comes from a real player. The clip script loops through players until one works:
web_embedded: full quality, but only for videos whose owner allows embeddingtvmweb, then android: usually 360p only, so check the printed resolution and tell the userWhich players work changes whenever YouTube changes its checks. The lasting fixes are keeping yt-dlp updated (yt-dlp -U) and, if a PO-token plugin such as bgutil is installed, running the token server it relies on. The plugin does nothing without it.
TubeAI problems (signing in, missing tools, the daily budget): see the tubeai-mcp skill.
NVENC won't start on Windows ("The minimum required Nvidia driver for nvenc is 551.76 or newer"): the driver is too old. See Rendering.
A Mac render fails with required hardware acceleration: VideoToolbox won't take that codec or format on this Mac. Use if-possible for it, and note it under "This machine".
npm run gpu reports software rendering: check that it passes --chrome-mode=chrome-for-testing --gl=angle.
Claude in Chrome isn't connected: ask the user to connect the extension before relying on it for logged-in or paywalled pages.
Single white frames or black flicker in a render: a live CSS blur on a large photo. See Rendering.
Timeline clips run past the end of a render: its audio stream is longer than its picture (AAC priming). Take lengths from the video stream's nb_frames.
Every render is slow and the disk fills up: a raw recording sits inside media/, so every render copies it. Recordings belong in recordings/.
Letters cut off at the edge of a card (the left of a first C, G, O or S, the ends of T and W): big type nudged left inside an overflow: hidden box. Clip only the axis the animation needs (see Inserts → Design).
A word with digits changes mid-animation ("WIG20" shows "WIG10"): a rolling-number effect took it for a number. Words that contain digits land static.
A re-rendered insert won't replace the old file on Windows: Premiere has it open. Ask the user to close the project in Premiere, render again under the same name and frame count, then reopen it.
The timeline script writes three files from one timeline spec: a Final Cut Pro 7 .xml for Premiere Pro, an .fcpxml for today's Final Cut Pro, and an .otio for DaVinci Resolve. The Premiere recipe, moves and voice master included, was confirmed in Premiere Pro 2025 (File → Import). The Final Cut recipe hasn't been through a real import yet, so ask the first Final Cut user to confirm it, and fix the recipe from what they report.
Premiere Pro (Final Cut Pro 7 XML)
Why Final Cut Pro 7 XML (xmeml version 4): Premiere's own .prproj isn't documented, while FCP7 XML imports as a ready sequence in every Premiere version. OTIO import only exists in recent Premiere builds; Resolve reads OTIO.
Sequence: <rate> with <timebase> and <ntsc> (29.97 = timebase 30, NTSC TRUE; 23.976 = 24, TRUE), a <timecode>, a video <format> with the recording's width and height, and audio <numOutputChannels>2 with an <outputs> block of two mono groups.
Files: define each <file id> once in full (name, pathurl, rate, duration, a timecode, and a media block with the video and audio sample characteristics and channel count), then refer to it as <file id="…"/>.
Paths are absolute, so the editor asks to relink if files move. On Windows: file://localhost/C%3a/Users/..., with the drive's colon as %3a and each path segment URI-encoded, as Premiere writes it. On a Mac: file://localhost/Users/..., each segment URI-encoded.
Clip items: start/end are timeline frames, in/out are source frames, and duration is the source file's total length. Set masterclipid per file, and link each video item to its audio items with <link> entries (linkclipref, mediatype, trackindex, clipindex, plus groupindex for audio), so they move together.
Stereo audio, the way Premiere exports it: two "exploded" mono tracks. Each track carries premiereTrackType="Stereo", currentExplodedTrackIndex (0 or 1), totalExplodedTrackCount="2" and its <outputchannelindex>. Each clip item carries premiereChannelType="stereo" and a <sourcetrack> with trackindex 1 or 2. Premiere rebuilds them as one stereo track.
Markers: sequence markers (<marker> with <name>, <comment>, <in>, <out>-1), one per insert and one per move, plus a clip marker on each insert, carrying the insert's ID and its cue line, so the editor can find their way around the edit.
Lengths come from the picture, not the container. AAC priming (2048 samples, about 43 ms at 48 kHz) makes a render's audio a few frames longer than its video. Use the video stream's nb_frames, or out-points run past the last frame.
Cuts as kept segments: every kept segment of the recording sits on V1, back to back, each linked to the original file with its in and out points, so every cut stays a normal edit point the editor can roll open. In the spec: "main": { "file", "segments": [{ "in", "out" }], "audio", "moves" }, with audio the voice master and moves the moves on the speaker. For a video with no recording, main is the voiceover as one audio-only segment, or is left out.
Moves go in FCP7's Basic Motion filter on the V1 clip items (see Moves on the speaker):
scale is a percentage of the frame-filling size. center is the recording's centre as normalised offsets: horiz = px ÷ sequence width and vert = px ÷ sequence height, with 0, 0 centred.<keyframe><when> counts in the clip's source frames (its in point plus the offset), as Premiere's own FCP7 export writes it.<inbez>/<outbez>) should work for Scale, but FCP7 keeps Center's 2D ease in <inscale>/<outscale>, which Premiere's importer probably doesn't read. Both are untested in Premiere, so write the per-frame keyframes.The voice master is double-system sound: its own <file> on A1/A2, each clip item cut exactly like its V1 clip (the same in and out points, at offset 0) and linked to it.
Clip gain is Premiere's Audio Levels filter on the clip item (<effectid>audiolevels</effectid>). Its level parameter is a linear gain: +4 dB is 1.584893, and the maximum is about 3.981 (+12 dB). In the spec, it's each insert's level, in dB.
Sound effects are clips of their own on the SFX tracks, each at its frame.
Track layout, from the bottom up:
No empty tracks except V2, and no overlaps on any track. With no recording, V1 holds the full-frame scenes at their start times, over the voiceover on A1/A2 when there is one, and there's no colour track.
Final Cut Pro (FCPXML)
Final Cut Pro 10 and 11 can't open the Final Cut Pro 7 XML above. They read FCPXML, Apple's documented format (File → Import → XML).
.fcpxml file is enough; no .fcpxmld bundle is needed.<fcpxml version> → <resources> (one <format>, and one <asset> per file) → <event> → <project> → <sequence> → <spine>.frameDuration from the frame rate (23.976 = 1001/24000s, 24 = 100/2400s, 25 = 100/2500s, 29.97 = 1001/30000s, 30 = 100/3000s, 59.94 = 1001/60000s), plus width and height. Use Apple's standard format name when there is one (such as FFVideoFormat1080p2997); otherwise leave the name out.frameDurations, such as 3003/30000s), never decimals, so NTSC rates stay exact.start is the file's own start timecode (0s when it has none), and every in-point is measured from it. Add duration (from the picture, as above), hasVideo, hasAudio, audioSources, audioChannels, audioRate and format, and a <media-rep kind="original-media" src="file:///…"/> with the absolute path, each segment URI-encoded. Final Cut asks to relink if files move.<asset-clip> on the spine, back to back. Its offset is its position in the timeline, start its in-point and duration its length. The spine is Final Cut's main storyline, so every cut stays a normal edit the editor can adjust.<asset-clip> nested in the spine clip under its first frame, with lane="1" for full-frame inserts and higher lanes for overlaps and overlays. A connected clip's offset is in its parent's local time: offset = parent's start + (the insert's timeline position − parent's offset). Getting this wrong shifts every insert.<marker> inside each insert's clip, with start at the clip's own start, one frame long, the insert's ID as value and its cue line as note.<adjust-volume amount="…dB"/> inside the clip.format, the total duration, tcStart="0s", tcFormat="NDF", audioLayout="stereo" and audioRate="48k". With no recording, the voiceover is the spine (or a <gap> when there isn't one), and the scenes connect to it the same way.All three
.xml back with OpenTimelineIO's Final Cut Pro 7 XML adapter and the .fcpxml with its Final Cut Pro X adapter (independent implementations), and check the clip counts, positions and total length..otio has the same clips.Marker.1 uses range, while Marker.2 uses marked_range plus comment. Use Clip.1 with media_reference for older readers..claude/agents/video-researcher.md:
---
name: video-researcher
description: Finds and captures media for one scene of a channel video (news articles, X/Reddit posts, data, images, YouTube and other web video clips), or pulls the style out of a reference YouTube link or video file, into the channel's automated-research folder, with sources.
model: claude-opus-5-5
effort: xhigh
skills:
- tubeai-mcp
---
You research media for one scene of a YouTube video in this Remotion project, or pull the
style out of a reference video.
First read in full: README.md, GUIDELINES.md, and channels/<slug>/ (CHANNEL.md, theme.ts,
animations/, and, for a video, videos/<video>/ with BRIEF.md and existing scenes). List
media/<slug>/ and open only the files you need.
Then do what the main chat asks, following GUIDELINES.md → Media and Style references, and
the tubeai-mcp skill for anything TubeAI:
- Write media only to media/<slug>/automated-research/ (<video>/ for a scene, style-refs/ for
a style reference). Never touch user-provided/.
- Articles, posts and documents: save the real text and data as JSON for our templates, plus
a 2× reference screenshot (npm run capture). Documents get rebuilt as text, never shown as
screenshots. Read paywalled or bot-walled pages only through the user's signed-in browser
(Claude in Chrome): never work around a paywall.
- Figures: check each one against a primary source, and report any that are imprecise or
unsupported, with options and a recommendation.
- Photos: log each one's credit in SOURCES.md.
- YouTube: find the video first through TubeAI when it's connected (the tubeai-mcp skill has
the playbooks). Every call counts against the user's daily TubeAI budget, so make few,
well-aimed ones. Then download only the needed section
(npm run clip). If it fails with 403, follow
GUIDELINES.md → Troubleshooting.
- Style references: contact sheets and frame measurements, then the findings in CHANNEL.md
under "Style reference".
- Log every file in SOURCES.md. Never invent or alter quotes, posts, headlines or figures,
and flag anything you couldn't verify.
Report back: each file with a one-line description, your recommended picks (or the style
findings), gaps and questions.
.claude/agents/video-animator.md:
---
name: video-animator
description: Builds and renders scenes and reusable channel animations in Remotion, reusing the channel's theme, its animations and the core templates, matching any style reference and syncing to timings.json.
model: claude-opus-5-5
effort: xhigh
skills:
- remotion-best-practices
---
You build one scene of a YouTube video, a group of a recording's inserts, or a channel's theme
and reusable animations, in this Remotion project.
First read in full: README.md, GUIDELINES.md, channels/<slug>/ (CHANNEL.md, theme.ts,
animations/, and, for a video, videos/<video>/ with BRIEF.md and existing scenes), and the
core templates you'll use. List media/<slug>/ and open only the files you need.
Then do what the main chat asks, following GUIDELINES.md:
- Reuse first, then derive, then create: use channel animations and core templates first,
and make variants through props or wrappers. Something reused a second time goes to
channels/<slug>/animations/ with a one-line CHANNEL.md catalog entry. No demos, mock sets
or renders nobody asked for.
- Take brand values only from theme.ts, and load media only through staticFile() from media/<slug>/.
- If the brief has a reference video, or CHANNEL.md has a style reference for this kind of
animation, match it and include side-by-side stills (the reference frame next to ours).
- Time the scene from its window: cut/insert-windows.json for a recording, timings.json for a
voiceover. It starts on the start word, exits right after the end word (or holds or
dissolves, as the window says), and every element lands on its beat word. Never hard-code
a time.
- Follow GUIDELINES.md → Inserts: fill the card, nothing cropped at its edges, no box open
before its content, numbered lists running down, light highlights behind dark text, no
rolling words with digits, clipping only on the axis an animation needs, charts computed
from the data (the build fails on a mismatch), and the channel's transitions baked in.
Backgrounds crossfade to a pre-blurred copy: never a live CSS blur. Cards render silent:
list each sound and its frame for the timeline.
- Register the composition as <CODE>-<video>-s<nn> and get `npx tsc --noEmit` clean. Render
stills at its start, middle and end (npm run still, one at a time). A scene then gets its
GPU render (npm run render, or render:alpha for an overlay) and npm run qa. A recording's
inserts stop at the stills: their final renders run in one batch at the end.
Report back: files changed, composition ID, still and render paths, the QA result, each card's sounds and their frames, and anything the user should look at.
.claude/agents/video-editor.md:
---
name: video-editor
description: Edits a creator's raw recording into a timeline for Premiere Pro. Transcribes it, finds every stumble, cuts only clear mistakes against the script, verifies every join, masters the voice, builds the timing table the inserts sync to, plans the moves on the speaker, and assembles and checks the timeline for Premiere Pro (XML), Final Cut Pro (FCPXML) and DaVinci Resolve (OTIO), with a review list.
model: claude-opus-5-5
effort: xhigh
skills:
- remotion-best-practices
---
You edit one raw recording in this Remotion project into a timeline the user finishes in
their own editor.
First read in full: README.md, GUIDELINES.md, and channels/<slug>/ (CHANNEL.md with its
pacing and glossary, theme.ts, and videos/<video>/ with BRIEF.md). List recordings/<slug>/
and media/<slug>/, and open only the files you need. Never change the recording itself.
Then do what the main chat asks, following GUIDELINES.md → Editing a recording, Moves on the
speaker and Sound. If the transcriber or FFmpeg is missing, install it as you go; don't stop
to ask.
- Transcribe it (npm run transcribe): Whisper with the glossary for the words, and
CrisperWhisper's verbatim pass for the stumbles. Correct names and terms against the
glossary and the script. At a cut or a retake, check the audio too.
- Find every stumble: the verbatim pass against Whisper, each sentence re-transcribed with
the verbatim-leaning prompt, and the audio where the text looks clean. Cut only clear
mistakes (false starts, flubs, retakes) and notes to the editor said on camera, diffing
the transcript against the script. Keep rants and ad-libs, and the pauses the host's policy
in CHANNEL.md keeps; for a new host, measure their pauses and report back with a
recommended policy before cutting. Place every cut by the silence in the audio, and verify
every join by re-transcribing about 2 s either side. Write cut/cuts.json (only the
decisions) and cut/CUTS.md.
- Export the cut-only timeline (npm run timeline) with its REVIEW.md, and check it reads back
through OpenTimelineIO.
- Master the voice (npm run master), and build the timing table: cut/words-cut.json, and
cut/insert-windows.json for the inserts in BRIEF.md, anchored on the words actually said.
- Plan the moves on the speaker around the inserts.
- Render nothing unless the main chat asks for it. When it asks for the full timeline, test
the assembly with stand-in files, render every insert in one batch (render:split for
cards, render:alpha for overlays), and run npm run assemble until every check passes.
Then write REVIEW.md.
Report back: files written, the length before and after with cuts counted by reason, the
"your call" and "listen to these" lists, the voice master's loudness and true peak, any
check that failed, and the timeline's path.
GUIDELINES.md when a convention or the machine changes, including new Troubleshooting entriesCHANNEL.md when the brand, voice, glossary, style reference or animation catalog changesBRIEF.md after every scene step (idea → researched → animated → rendered) and every decisionPROJECTS.md whenever a channel or video is added, a video's status or next step changes, or a video shipsCUTS.md whenever the cut changes, with each delivered version's cuts.json kept in cut/versions/REVIEW.md with every delivered timelineREADME.md when commands changeWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
youtube, remotion, video-editing, animation, voiceover, tts, premiere-pro, final-cut-pro
/tubeai:tubeai-video [setup | new channel <name> | video ideas | style reference <link or file> | edit <recording> | scene idea]from tubeai
npx claudepluginhub tubeai-app/tubeai-skills --plugin tubeai2 skills in this plugin
Other plugins' skills for the same job