Claude Edited This 30-Minute Video: The Full Workflow

A 30-minute video is too long for one conversation. This guide walks the 8-step Skill that locks the narration and one look, then gives each 3-minute segment to a fresh sub-agent, five at a time, and polishes the cut in an empty-context session.

Video thumbnail: Leo Kane, arms crossed, in front of a glowing editing timeline being cut by scissors, with the words Claude edits long videos

Resources

Step What it's for Link
1 Remotion, which renders the film from code (free for individuals and small teams; check its license) remotion.dev · License
1 HyperFrames, the other code-to-video tool mentioned in the video HyperFrames · GitHub
3 The four unknowns, the Anthropic article the method borrows from A field guide to Claude Fable 5: Finding your unknowns
4 Google Flow, the AI B-roll tool I run in preflight Flow
4 FFmpeg, which joins and encodes the segments ffmpeg.org
4 Whisper (optional), for word timings on your narration openai/whisper
4, 6 Antigravity, which I use to refine the narration text and to watch the cut antigravity.google
5 Sub-agents in Claude Code Claude Code docs: subagents
5 The segment brief shown in the video segment-brief.md
7 NotebookLM, where I put expert books to question the Skill notebooklm.google.com
9 The free Skill from the video (framework edition) aiworkflowpro/awp-playbook-aivideo-explainer
9 Installing a plugin from a marketplace in Claude Code Claude Code docs: plugins
9 The prompt every film starts with start-a-film.md

The short version

You can edit a 30-minute talking or explainer video with a coding agent such as Claude Code, but not in one conversation. An eight-step Skill locks the narration, the format and one look, then hands each three-minute segment to a fresh sub-agent that builds it in code with Remotion, and a brand-new session polishes the first cut. It works with Claude Code, Codex, Cursor, Gemini CLI and other agents that read Agent Skills; it renders a video file and does not edit a Premiere Pro, Final Cut or DaVinci Resolve timeline.

  1. Lock the narration first. It is the clock every shot and animation hangs on.
  2. About three minutes per segment, one fresh sub-agent each, at most five at once. A 30-minute film is ten segments.
  3. Give each sub-agent a framework and a feeling, not a list of rules.
  4. Judge the cut by watching it, with a model that did not build it. Never trust a score.
  5. Polish the first cut in an empty-context session at high effort. Install lines are in Step 9.
Flow diagram of the 8-step Skill in two rows: 1 Preflight, every tool runs for real; 2 Kickoff, resolution, ratio, fps; 3 Narration and segments, lock the voice as the clock; 4 Lock the look, one look from 2-3 stills; 5 Delegate, fresh sub-agent per segment; 6 First cut, join, sync, watch; 7 Polish and deliver, new high-effort session; 8 Retrospective, fine-tune the Skill.

What you need

  • A voiceover or a script for your film.
  • An agent that reads Skills (Claude Code, Codex, Cursor, Gemini CLI or similar), signed in with your own login.
  • Node.js 18 or newer and FFmpeg, for Remotion. A minimal Remotion project is in the repo's template/ folder.
  • Python 3.11 or newer, for the helper scripts.
  • Two or three clips you are allowed to learn from, as role models for the look.
  • The ability to open a fresh conversation. Sub-agents help, but a new chat per segment works too.
  • Optional: a local Whisper for word timings, and your own image, video or music generators.

Everything runs on your own computer, with no paid API or GPU required; the agent asks before anything that costs money.

Step by step

Each step matches a chapter of the video; the time links jump to that moment.

Step 1: Treat the film as code, not a timeline

Video: 0:32 Why editing is hard · 1:23 How AI edits: code, not timelines

An agent does not drag clips around a timeline. To an agent, the picture on screen is a function of time: at any moment, code computes what that frame should look like. At 60 frames per second, that code runs 60 times for every second of film. Remotion and HyperFrames work this way: the whole picture is rendered from code, web components assemble it, and the frames are linked into a video.

A frame from the video at 1:39 showing the title card One person. One long video. on a timeline at t = 31.9 s, next to the words picture = f(t), with Leo Kane on the right.

At 1:39 in the video: to an agent, the picture is a function of time.

That has two practical consequences, both from the video:

  1. Fast trial and error. Elements, transitions, easing curves and text sizes are all just parameters of one function. The agent can work out an answer quickly, render it and say, "here is one way of presenting this, does it pass?" Because it explores fast, you can delegate to more than one agent: ten, or, with the right setup and the workflow feature in Claude, hundreds, to try different styles. The Claude Code dynamic workflows guide shows orchestration patterns for running many sub-agents in parallel.
  2. Reuse. Because the film is code, you swap the text, colors and sizes and reuse it. My previous video was tens of thousands of lines of code; for the next one I change some text and some of the staging, and the next edit goes much faster.
A frame from the video at 3:25 showing that the previous film, AWP Video02 The Simplest AI Second Brain, has an engine of 26,821 lines of code in 282 .ts and .tsx files, and that reusing its presenter card took 2 changed and 5 added lines.

At 3:25: the last film's engine is 26,821 lines of code, and reusing its presenter card changed 2 lines and added 5.

The hard part of AI video editing is therefore not rendering. It is having too many options: every element, layout, transition and easing curve multiplies, and a film is tens of thousands of frames. Someone has to choose, by the meaning of the narration, the best path through that space.

Step 2: Don't ask one conversation for the whole film

Video: 3:33 Why one prompt can't edit a long video

Ask an agent for a one- or two-minute video and it holds together: its attention stays on a short job and its context is small. Ask for 30 minutes, 50 minutes or an hour and the context runs out. The film starts out good and gets worse toward the end until it is basically a slideshow. Even with a million-token context window, my estimate is that the model's sharpness falls to about 60 to 70 percent once the window fills, which is a loss of 30 to 40 percent. That figure is my own rough observation, not a benchmark. If you want the mechanics of why long sessions degrade and what to do about it, the Claude Code context management guide covers compaction, sub-agents and when a fresh session beats carrying everything forward.

The fix is not a longer prompt. It is managing what goes in and what comes out, which is what the rest of this guide is about.

Step 3: Sort the work into the four quadrants

Video: 4:45 Three layers and the four unknowns · 6:41 The four quadrants

I break "working with AI" into three layers, from the bottom up.

  • Worldview: framework thinking. Build a framework and rules first, then let the AI improvise freely inside them.
  • Methodology: the four unknowns. I borrow this from Anthropic's article A field guide to Claude Fable 5: Finding your unknowns. It splits human-AI collaboration into four kinds of unknowns and tells you which parts to lock down and which to leave open.
  • Skill: the thing you actually run. The Skill stores what stays fixed, what flexes, and the delegation prompts, so what you learn on one film speeds up the next. If you want to write your own, the Claude Code Skill development guide is the long version.

The reason for the framework is what happens to everything you leave blank. A brief never covers every detail. In the video's analogy, you hand a renovation crew a floor plan; it will not say how high the outlets are or whether the plumbing is exposed. The crew guesses. If it guesses right, you are lucky. If it guesses wrong, it falls back on the safest, most conservative choice, and a video does the same: it falls into "that AI feel", and a long video plays like a slide deck.

Cut along two axes: do you know the question, and do you know the answer?

Quadrant In plain words What it means in editing What the Skill does
Known knowns You know what you want and how to do it 1080p, 60 fps, narration, captions as a track: the industry already has answers Lock them once; they become the framework of steps
Known unknowns You know the feel, not how to make it "I want this style of editing" A brief that gives a framework, not constraints; sub-agents explore
Unknown knowns You can't say it, but you know it when you see it Taste. You can judge a 10-second clip instantly Watch the cut, never score it; a model that did not build it does the watching
Unknown unknowns You don't know the question, let alone the answer What is wrong with your Skill, and you can't see it Outside experts, a stronger model's audit, books; fine-tune, never rebuild
A 2x2 matrix titled The four unknowns, with the axes Do you know the question and Do you know the answer: Known knowns, lock once: format, clock, steps; Unknown knowns, taste: watch it, never score it; Known unknowns, give a framework, let sub-agents explore; Unknown unknowns, outside audit and books; fine-tune.

Steps 4 to 7 below are these four boxes, applied in order. The four quadrants are not only about video. I expect the same thinking to apply to producing articles, image generation, or cross-border e-commerce sales and growth, because they cover any problem where you work with AI to produce output. That last point is my expectation, not something this repo tests.

Step 4: Lock what the industry already knows: the eight steps

Video: 9:31 Known knowns: the 8-step Skill · 10:25 Preflight · 11:40 Kickoff · 12:11 Narration and segments · 13:45 Lock the look · 14:30 Sub-agents in 3-minute chunks · 15:58 First cut, polish and deliver · 16:17 Retrospective

To build the framework I delegate research: search the internet, open-source projects, creators on YouTube and X, and books for the best practices in video editing. If, say, you find 100 open-source projects, the steps they all share are the common framework of the field. That is humanity's best practice for the task, so you lock it. This is what the Skill's eight steps are.

Skill step 1, Preflight. Before delegating, run every tool the sub-agents will use for real, and from a sub-agent too. For me that means a screenshot CLI, Google's Flow for AI B-roll, and Codex for generating images with the GPT image 2.5 model. This step exists because of a mistake, described under What broke. Get the agent's hands and feet ready first.

Skill step 2, Kickoff. An interview, not a build. You settle 1080p, 16:9 or 9:16, long-form for YouTube or a short, 30 or 60 fps, and what feeling the film should give people. The project is then set up to those numbers. Nothing visual is made before you have answered.

Skill step 3, Narration and segments. This is the core of the process, because everything else is handed to the AI. Cut the breath pauses, slip-ups and repeated lines from your recording. Then lock the narration as the main track, timestamps included, and turn it into SRT captions. The narration is the clock: every shot and every animation hangs on a word or a stretch of time, which also makes easing curves easy to place. If the narration is not locked, cutting a single word later shifts the timeline and every later shot needs adjusting. The message, the hooks and the payoffs must be clear here. I use the Antigravity CLI to help refine the text, but I cannot just read its output; it gives me ideas, and I still talk to the screen and work it out myself. Then the film is cut into segments.

Skill step 4, Lock the look. Fix one style so the whole film feels harmonious. If every part were in a different style, it would feel chaotic and viewers would get impatient, which hurts retention. Art direction includes choices such as a dark tech look, cyberpunk, a light-colored card style or a Vox-style paper-cutout look. In the Skill you pick a look from two or three stills, lock it with a few shared pieces and finish one segment in it before the rest go out. This guide does not tell you which look to pick. The repo is a framework: you explore your own look, and the video says the same.

Skill step 5, Delegate. From here it gets simple. A set of delegation prompts hands the work to sub-agents, one fresh sub-agent per segment of about three minutes, five at once.

Skill steps 6 and 7, First cut, polish and deliver. Join the segments, put sound and picture in sync, and fix the small bugs in transitions and continuity slips. Then a brand-new session at high effort polishes what the first cut got wrong. Export the master, captions and chapters.

Skill step 8, Retrospective. Save everything and write down how this style's edit turned out. Every conversation with the AI teaches small lessons; fine-tune them into the Skill so the same problem does not come back.

Why about three minutes, and why five at a time. Without delegation, a 30, 50 or 60-minute video cannot keep its quality, because the model does not spread its effort evenly over every segment. From my experiments, around three minutes is a sweet spot where it really performs. So a 30-minute video becomes ten large segments, and each segment is cut again at the breath pauses, where a beat is usually one idea, one sentence or two. The agent builds the visuals beat by beat. Ten agents are needed for a 30-minute film, and I usually run five at once. The reason is tooling, not the model: if your CLI tools are not set up for concurrency, ten agents in parallel produce errors and the edit runs into trouble. With this approach, 1, 2 or 3 hours of film is the same procedure with more sub-agents, as long as you have the quota and the time. For the mechanics of dispatching them, see the Claude Code subagents guide.

Keep room for the model's own initiative. Locking everything and locking nothing both fail; the video calls it dancing on a knife's edge: within a fixed set of constraints, the AI can thrive. In every step I kept some room for the model's own initiative. For example, when deciding the style, describe the narration to the model, ask which visual styles it thinks would suit it, shortlist them, and then let it loose.

Step 5: Write a task card that gives a framework, not constraints

Video: 18:09 Known unknowns: task cards and references

For the part you know the feel of but cannot specify, you let the AI explore, and the quality of the whole thing rests on the task card you give each sub-agent.

I once ran an experiment: a completely airtight delegation card against one that gives a framework but no constraints. Side by side, the framework card got better results. A strict card looks like this: every segment must fade in and fade out, captions go at the bottom, always use easing between shots. With that many fixed terms the model has little room to explore, so it tries to cover every requirement and the result is neither here nor there.

A frame from the video at 18:30 comparing two task cards: Airtight, with fade in 0.5 s, captions fixed at the bottom at size 48 and each element 5 frames after the last, against Framework, no constraints, with the real format and numbers, five rules quoted from AWP's own Skill and the film's re-hook.

At 18:30: an airtight card next to a card that gives a framework and no constraints.

My delegation prompts describe a feeling instead. Roughly, in my own words: the theme style is light-colored paper cutout; the video is about knowledge bases; your job is to serve retention, think like a viewer, make people want to keep watching, and design the elements, the segments and how to present them; here are the assets I have, search the internet if you need more; here are my tools, a screenshot tool, an AI image tool and an AI video tool. Within a fixed style, the sub-agent has full room to explore.

I also do not let it start from nothing. I built a large reference library by taking apart 10 channels and 50 videos into segment clips, and the agent searches it when it needs, say, a way to show a comparison: two tables, or the trend of a curve, and how do the best channels switch between segments. The role model shows what high-quality motion looks like. The repo does not include a reference library; the Skill asks you to bring two or three clips you are allowed to learn from. The sub-agent then combines the techniques, your theme and the feeling you asked for, iterates, and hands the segment back to the main agent when it is done.

A frame from the video at 20:20 showing a huge reference library of segment types, from Opening and Transition to Comparison, Chart and Summary, with a sub-agent that needs to explain a comparison.

At 20:20: a sub-agent searches the reference library when it needs a way to show a comparison.

Step 6: Watch the cut, don't score it

Video: 21:09 Unknown knowns: the scoring trap

You cannot predict what a sub-agent's edit will look like, but you will know whether it is good the moment you see it. That is tacit knowledge, and in editing it is taste. Scoring it does not work (the scoring trap is under What broke). What works instead:

  1. Use a multimodal model, and switch models. Do not let the sub-agent that made a segment judge its own work.
  2. Gemini is the model with the strongest visual recognition. It samples frames, looks closely and links them into motion. I usually have Antigravity watch the cut; if you do not have it, spin up a separate sub-agent in Claude.
  3. Ask it to describe, as a viewer, how the video feels and what is off: is it good, is it beautiful, would you keep watching? Have it hunt for flaws from that angle, then polish.
  4. Let it check what a model can check: where there is white space, whether elements fill too much of the frame, whether it hits the golden ratio, whether there are glitchy shots or flicker.

After one round of polish you can count on a pretty good result. Code is still useful, but only for hard faults.

Step 7: Bring in outside expertise

Video: 23:27 Unknown unknowns: outside expertise

When you don't know what is wrong with your own Skill, there is no option but to expand your professional knowledge and break out of a closed space. Two ways, both from the video:

  • A model audit. Once the editing Skill is built, I send it to a stronger model (the Fable 5 model, or GPT-6 in Codex) at the highest effort level, in a fresh session, and ask where the Skill has issues, what I might not notice, and where it lags behind the industry.
  • Expert books. I put authoritative material on animation design, easing curves, film theory, directing theory and animation theory into NotebookLM, then give the model the whole Skill framework and ask what experts in the field would say matters.

Then comes the word that matters: fine-tune. If you hand a Skill to a model for "revision", it may tear the whole thing down and start over. Always say fine-tune. One outside correction changed how I start every film; it is the last item under What broke.

Step 8: Set effort levels and polish in an empty context

Video: 25:37 Bonus: effort levels and the polish pass

If money is no object, you would use Opus 5.5 at the max effort level. In many cases a Claude subscription is hard to get, so high is what you can use. Here is how I work:

  1. Delegate at Opus 5.5 on high effort.
  2. Let the segment builders run a notch lower.
  3. Once a first cut exists, start a new session with an empty context and bring in Opus 5.5 on high for a polish pass.

After the first cut, the style is mostly set and the elements are where they should be. A high-effort model starting from a blank context can quickly spot which segments share which common problems, keep what works and adjust the rest. The video gets a lot better, with a noticeable lift in the motion. For how effort levels actually work in Claude Code, see the thinking modes guide.

Step 9: Get the free Skill and start your film

Video: 26:59 Recap and how to get the free Skill

The Skill is a free framework edition. It gives you the order of work, the gates, the checks and the shapes of the hand-offs. It does not give you a house style: you define your own look in Skill step 4, or fall back on a plain starter look. As I say at the end of the video, I don't think anyone who gets a Skill like this will produce high-quality results from it alone. You still have to explore with the broad framework; once you know it, you know how to adjust.

Repository: aiworkflowpro/awp-playbook-aivideo-explainer

Install (from the repo's README; the Claude Code lines go inside the app):

# Claude Code (inside the app)
/plugin marketplace add aiworkflowpro/awp-playbook-aivideo-explainer
/plugin install explainer-video@awp-playbook-aivideo-explainer
# Codex
codex plugin marketplace add aiworkflowpro/awp-playbook-aivideo-explainer && codex plugin add explainer-video@awp-playbook-aivideo-explainer
# Gemini CLI
gemini extensions install https://github.com/aiworkflowpro/awp-playbook-aivideo-explainer
# Any agent that reads Agent Skills (Cursor included)
npx skills add aiworkflowpro/awp-playbook-aivideo-explainer

Run the Skill's preflight script, then say "make an explainer video from this voiceover", or paste the start-a-film prompt from the repo. If you are new to Claude Code itself, start with What is Claude Code and the quickstart setup.

Repo part What it is
skills/explainer-video/ The Skill: the eight steps, the four unknowns, four gates
steps/ One page per step, each with a pass line
templates/ The segment brief shown in the video, lock list, style sheet, handoff
scripts/ Preflight and other helpers (Python, standard library only)
template/ A minimal Remotion project

Tested with, stated honestly:

Agent Model Date What was run
Claude Code Claude Opus 5.5 2026-10 This method on the film in the video: about 29 minutes, ten segment builders
Claude Code 2.1.302 Claude Opus 5.5 2026-10-17 The repo's scripts on macOS with Python 3.14: preflight.py and --help on every script.

The public Skill has not been run end to end on a new film on its own. Treat it as a starting framework to adapt, not a finished product. Remotion has its own license: free for individuals and small teams, while larger companies need a company license.

The lock-or-leave-open checklist. Use this before every film. It turns the guide into a decision sheet you can run through in a few minutes.

Sort the problem first. Lock what the industry already agrees on (format, the narration clock, the order of steps). Leave open what you can only judge by looking (taste). Give a framework, not rules, for what you can feel but not specify. Bring in outside expertise for what you cannot see.

Pass lines, one per step:

  1. Preflight: no tool gets skipped because it failed quietly.
  2. Kickoff: resolution, aspect ratio, frame rate and length are answered before anything visual is made.
  3. Narration and segments: the narration is finished and locked, because changing a word later shifts every timing.
  4. Lock the look: segment 1 is finished and approved by you.
  5. Delegate: every segment came back.
  6. First cut: watched by a viewer who did not build it.
  7. Polish and deliver: a brand-new session at high effort fixed what the first cut got wrong.
  8. Retrospective: lessons added as small fine-tunes, not a rebuild.

Four checks before you delegate:

  • The brief describes a feeling and a goal (keep the viewer watching), not a list of must-do rules.
  • It names a role model or two (clips you are allowed to learn from), not a technique list.
  • Nothing in it is a rule only because you wanted control.
  • One segment came out well before the other nine started.

Judging the cut: never let the model that built a segment judge it. Ask a different model, or a fresh sub-agent, how it feels as a viewer and what is off. Use code only for hard faults: format, loudness, flashes, black or frozen stretches.

What broke

  • Sub-agents skipped a tool that failed quietly. In my previous video I assumed the screenshot CLI worked. Each sub-agent hit a failure, reasoned that screenshots were the infrastructure manager's job (I had assigned roles), skipped them and drew everything itself. The video barely contains a web page screenshot and is monotonous. The fix is Skill step 1: run every tool for real, from a sub-agent too, before anything is delegated.
  • A score said 90, and the cut was garbage. Early on, the AI proposed a scoring system for AI videos, ten dimensions such as transitions, segments, elements and easing curves, each scored. I really believed it. Give a scoring system to Codex and it immediately writes a function that checks whether elements overlap, how many there are and how big they are; then it tells you it spent half an hour editing and gives the video a 90. The moment you watch it, it is garbage. Beauty and design sense are a feeling you cannot score. The fix is Step 6: a different model watches it as a viewer.
  • Too many constraints, then too few. Some videos took me three or four months because I fell into the over-engineering trap, locking the Skill's steps down too rigidly; the AI followed each handoff step by step and what came back was rigid and low quality. Handing it off with a simple prompt sometimes gave a high-quality cut, but more often it looked AI-made: the slideshow style of editing. The fix is a framework, not constraints (Steps 4 and 5).
  • One max-effort session for the whole film. When I handed everything from the narration onward to a single session at max effort for 30 minutes, it did not go well: the context got heavily compressed and the model could not perform. The fix is segments, then an empty-context polish on high (Step 8).
  • Editing the whole film as soon as it had a style. I used to give the model the whole film to edit as soon as it had a style. When I asked NotebookLM, it said that in edits like this you usually do a test cut first, with style frames, before going into segments. Style frames let you judge whether the look matches what you need before you commit. So now I run one agent on one segment first and check how it looks. Not every style suits your video.
A four-row table titled What broke, and the fix: screenshot tool failed quietly and sub-agents skipped it, fixed by preflighting every tool from a sub-agent; a 10-dimension score said 90 but the cut was bad, fixed by a different model watching it as a viewer; too many rules gave a rigid film and too few a slideshow, fixed by a framework, not constraints; the whole film in one max-effort session, fixed by segments, then an empty-context polish.

FAQ

How do you edit a long video with Claude Code?

Do not ask one conversation to edit the whole film. Lock the narration as the clock, fix one look, split the film into segments of about three minutes, and give each segment to a fresh sub-agent that builds it in Remotion. Run about five at a time, join the segments into a first cut, then polish that cut in a brand-new high-effort session.

Can an AI agent edit my Premiere Pro or Final Cut timeline with this?

No. The Skill makes explainer videos in code (Remotion) and renders a video file. It does not open or edit a Premiere, Final Cut or DaVinci Resolve timeline. You can bring the rendered file, or parts of it, into your editor afterwards.

Why three-minute segments, and why only five agents at once?

Three minutes is where, in my experiments, a sub-agent performs well. Five at once is a tooling limit: if your CLI tools are not set up for concurrency, ten agents in parallel cause errors. With the right setup you can run more.

A 30-minute timeline split into ten segments of about 3 minutes each; segment 1 is built first and approved by you, then segments 2 to 10 each go to their own sub-agent with a fresh context, at most 5 at once, and all ten merge into the first cut.

My agent has no sub-agents. Can I still split the video?

Yes. A brand-new chat is a clean desk too. Open one chat per segment in the film folder, paste the same brief, and build the segments one after another. It is slower, and it works. If your whole piece fits in one conversation, skip the split and still watch it twice.

Which model and effort level should I use?

I delegate with Opus 5.5 on high effort, let segment builders run a notch lower, and polish the first cut in a new session on high. Max effort for the whole film in one session did not work for me because the context got heavily compressed. Other agents have an equivalent thinking or effort setting.

Do I need a paid API or a GPU?

No. Everything runs locally with Remotion, FFmpeg and, optionally, a local Whisper, and your agent uses your own login. Generated images, video or music are optional and you bring your own.

Successfully subscribed! Check your inbox for confirmation.

Successfully subscribed! Check your inbox for confirmation.

Successfully subscribed! Check your inbox for confirmation.

Successfully subscribed! Check your inbox for confirmation.

Done.

Cancelled.