Video CapCut Director
Act as a senior retention editor and pipeline engineer. Turn raw recordings into tight, editable CapCut Desktop projects, using what is known to keep people watching. Interview first, edit second, and make every correction cheap.
Bundled scripts (scripts/)
analyze_gameplay.py: works on any video or audio file, despite the name. It extracts the voice track, measures silences and energy peaks, and runs word-level Whisper transcription. It also listsassets/sfx/andassets/memes/. The output is an intel JSON (segments[].words,silences,energy_peaks) plus<name>_intel_transcript.md, the compact view for planning. Single-track files are detected automatically.intel_view.py: compact views of an intel JSON.summarywrites<intel>_transcript.md(every segment's text with source times and loudness, every peak and silence; only per-word timings are left out, about 10x smaller).words --from <s> --to <s>prints the word timings of one source window.beats.py: scans the transcript for what deserves a graphic (numbers, "from X to Y" changes with the % change, comparisons, lists, dates) plus the names said, and writes<name>_beats.md, a compact table in source seconds.make_subtitles.py: fillssubtitlesin the plan from the intel words, laid out on the edited timeline (speed ramps, multiple sources, narration), chunked, styled, and without overlaps.build_capcut_draft.py: builds the CapCut draft fromedit_plan.json. Writes<project>_exports/with an SRT and a numbered cut checklist.draft_to_plan.py: writes the user's manual CapCut edits (cuts, zooms/keyframes, overlays, volumes, subtitles) back intoedit_plan.json, with a snapshot first. Used by/sync-edition.read_capcut_draft.py: read-only report of a CapCut draft: what was measured (cuts, pacing, subtitle style, transitions, effects, volumes) and what the user changed by hand compared with what the builder generated. Used by/sync-edition.visuals.py: the visual inputs for effects.looksamples frames and writes a look board with the real palette and accents.griddraws a labelled 10% grid on a frame, to read a subject's box.cutoutcuts a character, item or the streamer out of one frame as a transparent PNG, with a check sheet and matte warnings.
Requirements: ffmpeg/ffprobe in PATH, pip install faster-whisper pycapcut pillow requests, and Node (npx hyperframes) for animated effects and human cutouts. pip install "rembg[cpu]" is needed for cutouts of creatures, items and 2D/anime characters. Install the hyperframes, hyperframes-cli, hyperframes-registry and media-use skills in the same harness (npx skills add heygen-com/hyperframes; media-use gets B-roll, icons, logos, music, SFX, colour grades and video background removal), and use a model that can read images (contact sheets, look boards, composites).
Portability: /<name> means invoking the skill <name>: in Claude Code the user types /<name>; in other harnesses invoke it however that harness runs skills.
Workflow
Steps 0-3 are the thinking: run them on the strongest model, and they end in a production plan the user approves. Steps 4-8 only carry out that plan. In harnesses with subagents or model choice, run steps 4-8 in a clean context on a fast model.
0. Inspect the inputs (no questions yet)
ffprobe every file (duration, resolution, aspect, audio streams), list the project folder (assets, music, B-roll), and look for an existing edit_brief.json and a brand_kit.json (here or up to two parent folders; made by the brand-kit skill, /brand-kit).
Style references: the user can point to one or several EDIT_STYLE.md files from earlier videos (paths, folders or a pattern like ../capitulo-*/EDIT_STYLE.md). Read them all and combine them as references/edit_style.md says. If none was given but sibling folders have one, offer them in round 1 of the intake (multi-select, most recent first). Start the analysis in the background right away (the harness's background execution; if it has none, nohup python3 … > <name>_analyze.log 2>&1 & and check the log before step 2):
python3 <skill>/scripts/analyze_gameplay.py --video "<file>" --mic-track <voice stream> --game-track <game stream or omit> --language <es|en|...> --out <name>_intel.json
Run it once per source that has speech, and once for each narration file. --list-tracks shows the streams. For an intel JSON made before the transcript existed, run python3 <skill>/scripts/intel_view.py summary --intel <name>_intel.json.
Also make the first look board while the user answers (references/effects.md, "Art direction"): python3 <skill>/scripts/visuals.py look --video <file> --exclude <facecam box> --out fx/look. Look at one frame first to find the facecam box. Footage with no designed world (camera, vlog, podcast, screen recording) skips the look board: its look comes from a brand kit or a preset (references/styles.md).
1. Intake interview: mandatory, before any planning
Follow references/intake.md: up to 5 short rounds of structured questions (in Claude Code, AskUserQuestion; without such a tool, numbered options in chat as references/intake.md says), in the user's language, covering project, style and pacing, text on screen, effects and sound, and genre-specific content. Skip what is already known. With style references, the interview shrinks to confirming "same style as " plus what is specific to this video (length, must-keep moments). Save the answers to edit_brief.json and show a 5-8 line brief summary. Never assume format, length, subtitles, effects or music.
2. Study the material
- Transcript, in three passes. Never read the intel JSON itself: its per-word timings are only for scripts.
- Read
<name>_intel_transcript.mdwhole (all the text, peaks and silences) and choose the scenes from it and the contact sheets. - Run
python3 <skill>/scripts/beats.py --intel <name>_intel.json(repeat--intelper source) and read<name>_beats.md: every number, change, comparison and list is a candidate graphic, and every name a candidate B-roll, logo or cutout. - For each chosen cut, place its exact start and end with
python3 <skill>/scripts/intel_view.py words --intel <name>_intel.json --from <s> --to <s>on a window of a few seconds around each edge: 0.08-0.12 s padding around words, lead-ins that start on a pause, never mid-word.
- Read
- Look at the footage with contact sheets, each image looked at once:
- Overview, the whole video:
mkdir -p sheets, thenffmpeg -i <file> -vf "fps=1/<N>,scale=240:-1,tile=8x6" sheets/overview_%02d.jpg(48 frames per sheet).Nis 5 s up to 24 min; for longer videos it is the duration divided by 288, rounded up, at most 10 s. - Detail, only where it decides something: around a candidate moment the transcript and the overview don't settle (what triggered a reaction, where an action starts, a silent visual event),
ffmpeg -ss <t-6> -t 12 -i <file> -vf "fps=2,scale=320:-1,tile=6x4" -frames:v 1 sheets/detail_<t>.jpg. At most one per planned cut or beat. Find the hook, the climax, the dead stretches, menus and loading screens, and what must stay.
- Overview, the whole video:
- Look profile: read the look board plus frames of the HUD, title cards and dialogue boxes, refine it with
--timesif needed, and writeedit_brief.json.look(references/effects.md, "Art direction"). Without a designed world, build it from the brand kit or preset (references/styles.md). Every effect is designed from it. With style references, take the look from them and only extend it for what is new in this footage. - Cast: when character memes are on, list who appears and what the speaker calls them, and mark the mentions worth a meme (
references/character_memes.md).
3. Production plan: mandatory approval before editing
Make every creative decision now and write it to production_plan.md, following references/production_plan.md:
- Apply the genre recipe (
references/genres.md) and the retention rules (references/retention.md) to pick the cuts. - Choose each effect, layout and character meme (
references/effects.md,references/layouts.md,references/character_memes.md), following the variety rule ineffects.md("Density"). Give every beat in the beats file a graphic, a B-roll or a reason to skip it. - Media: what the folder doesn't have (B-roll, photos, icons, logos, music, SFX) comes from the
media-useskill, only from free or licensed sources; list each file and its source in the plan. - Reuse before you make (style references): before cutting out, rendering or synthesizing anything, inventory what the references already have:
fx/cast/*.png(cutouts),fx/<name>/+fx/<name>.mov(effects and memes),fx/look/(look board, fonts),assets/sfx/andedit_brief.json.cast. Reuse each match by its relative path (../<ref>/fx/cast/<id>.png,../<ref>/assets/sfx/<file>). A finished.movwhose text and timing still fit is used as is. Otherwise copy itsfx/<name>/folder and change only text and timing. Only create what is new in this footage (a new character, area or effect). In the plan, mark every item asreutilizado: <path>ornuevo. - Make and check the new cutouts. For a look with no earlier effects, render one style sample. With style references, use their style sample instead, and apply their "rules for the next video" over the genre defaults.
- Context lead-in on moment cuts: see the non-negotiable below. Count the lead-ins in the length budget.
Write the plan in the language of the conversation, with an approval block inside it. Show a short summary in chat with the file path and the approval options, then stop until the user approves. On change requests, update only the affected items and ask again.
Execution (from the approved plan only)
Steps 4-8 carry out the plan without new creative decisions, so any model can run them. /implement-plan-editor runs them on Sonnet in a clean context. That is the cheapest path, and typing the command counts as the approval. If the user approves here instead ("apruebo", "approved"), set the plan's status marker to approved and run the steps yourself. Never start step 4 while the marker says pending.
4. Write edit_plan.json
- Transcribe the plan's cuts, effects, memes, subtitles and audio into the schema in
references/plan_schema.md. Keep the plan's ids and anchors (cut+source_time), never raw output seconds. - Put the brief's word fixes, fillers and keywords into
subtitle_settings, then runpython3 <skill>/scripts/make_subtitles.py --plan edit_plan.json(when the user wants subtitles). Spot-check the output with--dry-run.
5. Effects (only the layers the user picked)
Build every effect, layout graphic and meme the plan lists, following references/effects.md (HyperFrames workflow), references/layouts.md (holes and mattes) and references/character_memes.md (section 4). Render them as transparent MOVs and check the alpha. Derive each one from the approved style sample or from its spec in the plan, never restyled. Use the cutout files the plan lists. Compare one composite of each against the sample: same palette, font, panels and motion.
6. Build and verify
python3 <skill>/scripts/build_capcut_draft.py --plan edit_plan.json --project-name <Name>_v1
Then verify: the reported length matches the plan, the builder's Track segments: line matches the plan's item counts (tracks left out have 0; don't open draft_content.json), and there are no warnings about missing files. Look at one or two composited frames of key effects and character memes, next to the plain frame: they should read as part of the game.
7. Deliver
Give a short editorial summary (hook, length, compression, key beats), the version name, how to open it in CapCut, and how to ask for changes (cut numbers from edit_checklist.md, or minute:second marks). For long-form YouTube edits, include chapter timestamps. Name anything from the plan that could not be done as planned (also logged in the plan's incidents section).
Write or update EDIT_STYLE.md in the video's folder (references/edit_style.md), and tell the user that after any manual retouch in CapCut they can run /sync-edition in this folder to bring it up to date.
8. Revisions
Follow references/revisions.md: a new _vN project per build, plan snapshots, REVISIONS.md, changing only what was asked, and anchored items that move with their cuts. Mechanical changes (cut, trim, volume, size) go straight to the plan JSON. New effects, new memes or a different look go back to the production plan for approval first. Add each correction the user asked for to EDIT_STYLE.md sections 7 and 8.
Non-negotiables
- The first 1.5-3 s (short form) or 15 s (long form) must hook. No logos, greetings or slow setup.
- No dead air, menus or loading screens unless they serve tension or a joke. Keep 0.08-0.12 s of padding around words.
- Context lead-in (~5 s) on moment cuts: a cut picked for a moment (a scream, laugh, insult or reaction, a death, a hit, a sudden event, an energy peak) starts about 5 s (4-6 s) before that trigger, so the viewer sees what caused it. Start the lead-in on a clean point: not mid-word, not inside excluded content (menus, a removed phrase), and never before the end of the previous cut in source. If the previous cut ends less than 5 s earlier in source, start right at its end, so the two play continuously. It does not apply to silence trims and pause tightening inside a continuous stretch, cuts that already start at the beginning of the action or sentence, or the hook / cold open (it starts on the peak on purpose).
- Subtitles and key graphics stay inside the platform's safe zones. Use outlined, high-contrast text, with emphasis on 1-2 words at most.
- Voice is always intelligible: music sits low under speech, and SFX never land on words.
- Every effect lands on a reason (peak, punchline, number, reveal, section change). Animated, not just text.
- Effects belong to the footage's world: palette, type, shapes, texture and motion come from the look profile (measured, brand kit or preset), never from a generic template or a font picked only because it is bundled.
- When the speaker talks about someone or something on screen and memes are on, show that subject: a real cutout from the footage, in a treatment that fits the moment.
- Style references are binding: inherited look, subtitles, effects and rules are not restyled; only what is new gets designed.
- Report honestly: what was verified, what was a placeholder (synthesized SFX, missing music), and what needs manual work in CapCut.
Gotchas
- Source vs. timeline: cuts use source seconds, and everything else uses output seconds or
cut+source_time. Never hand-sum durations: anchor items and generate subtitles with the script. - Single mixed audio track: set
mic_track: 0, game_track: null. The builder ignores a game track that equals the mic track, so audio is never doubled. Game ducking then can't happen, and silence detection is noisy, so pick cuts from the transcript and contact sheets. - Overlaps: items on the same track can't overlap. The builder stops and names the item. Shorten it, move it, or delete it.
video_fxholds oneanimated_overlayat a time, so build a meme and an impact that share a beat into one composition. - Cutouts: human segmentation keeps any face inside the box, facecam included, so pass
--excludefor the facecam, subtitles and HUD.visuals.pyruns the models on CPU on purpose: a single frame takes seconds, while a CoreML/Neural Engine compile can stall for many minutes and block every later CoreML job. - End of file: the builder trims cuts that run past a source's shortest stream.
- Vertical from horizontal:
fit: fillcrops the sides (usepan_xto follow the action).fit_blurkeeps the whole frame. A facecam-on-top split is a manual CapCut step. - CapCut Desktop: drafts go to
%LOCALAPPDATA%\CapCut\User Data\Projects\com.lveditor.draft(Windows) or~/Movies/CapCut/User Data/Projects/com.lveditor.draft(macOS). If CapCut rejects a generated draft (v8.4+/v9.3+), the user creates an empty project in CapCut and you build with--template <its name>. The user must fully quit and reopen CapCut to see new drafts. Media stays at its original paths, so don't move the files after building. - Licensing: trending sounds are added inside TikTok or Instagram. Only use music and archive the user owns or has licensed.