Video Studio (Commission-Based)
Overview
Turn a client/user's verbal request + a pile of raw footage into a deliverable finished video. Covers all video types (anime, live-action short drama, performance ads, brand films, product demos, documentaries, Vlogs, MVs, event edits, knowledge talking-heads, sports, social media mashups). Anime is just one type. The workflow is fixed as:
Receive brief → Classify type → Deconstruct reference → Write script (if story-driven, register container + zone + scene for each scene) → Confirm → Draft plan → Confirm → Scene scripts → Confirm → Asset bible and makeup shots → Container panorama confirm (if unified space) → Scene image generation confirm → Scene↔script alignment check (including container spatial consistency) → Storyboard (each shot linked to container/zone/scene) → Production (chain-based per shot: first frame confirm → video → extract last frame → next shot's first frame uses previous shot's last frame as primary reference) → Self-check → Delivery → Revisions
Hard rules: If not understood clearly, or the plan is not confirmed, do not start; for narrative projects, if the script hasn't passed, do not write plans or storyboards; if scene scripts haven't passed, do not generate any video; if makeup shots aren't confirmed, do not generate scene images; if scene images aren't confirmed or aligned, do not write storyboards; if the last frame of the previous shot isn't out, do not generate the first frame of the next shot. Better to ask one more question than to do it all over again.
Independent Entry: Prompt Reversal from Images/Video: When a user provides an image, set of images, or a video and asks "What prompt was used to generate this / Reverse engineer this prompt / How was this video generated / Extract the cinematography and style prompts", use the independent skill ../prompt-reverse/: fill 12 slots based on evidence frames, provide Chinese/English versions, mark confidence levels and reuse boundaries; only reuse syntax, not the original content; do not guarantee replication. After reversal, route to generation based on four action gates; do not automatically start generation just because "reversal is complete".
Independent Entry: Checking Existing LibTV Output (Not Entering Production Pipeline): When the user starts with "check / audit a LibTV project, sample, or final cut", do not go through L0–L3 classification, do not create brief.md / plan.md, and do not enter generation. Instead, directly perform a read-only six-layer audit (Connectivity / Structure / Text / Artifacts / Continuity / Delivery) according to ../miora-creative-core/references/libtv-output-audit.md, grade evidence, and write the report to 03_work/libtv-audit.md. Only if the user subsequently requests a "redo / fix this shot" should they return to the pipeline below.
Classify First, Then Follow the Workflow (v1.15, Priority Over All Below "Must Do")
Not every order requires the full workflow. After receiving the request, first determine the class. All "must-do / for every adjacent pair of shots / do not send for confirmation" requirements below default to L2, L3; L0, L1 follow the table for trimming, do not do it just for the sake of the process.
| Class | Typical Request | Files to Produce | User Confirmation | Can Skip |
|---|---|---|---|---|
| L0 Quick Fix | Single modification without generation: add/change subtitles, swap BGM, change aspect ratio, cut a segment, compress/transcode, add logo, adjust volume | Do not create brief.md / plan.md; restate in dialog "what to change, output specs, filename" | If involving any of the four action types (image generation, video generation, transition, compositing), still follow the four-action gate confirmation (can ask in one message); only proceed directly if all parameters are clear, if missing a key item, only ask about that item | Type classification, reference deconstruction, script, scene script, continuity cards, effect bar, compliance bar, continuity-check.md |
| L1 Edit | Multi-clip editing / compositing / imitation / mashup, no AI generation, no story | brief.md + streamlined plan.md (one-sentence understanding, shot list with source and timecode, specs, transitions, subtitles and audio) | 1 time (plan.md) + confirmation for transition/compositing actions | Script, script.md, compliance bar; continuity cards only for cuts using match cuts / dissolves / hidden cuts |
| L2 Generation | Ads / promos / product films / posters etc. that include AI-generated visuals, but no character story | brief.md + full plan.md + script.md + scene images (if reusable scenes exist) + 02_assets/generated/provenance.md | 2 times + scene image confirmation (if scenes exist) + first frame anchor image confirmation + four-action gate confirmation | Script (for pure informational pieces, go directly to plan using SF12/SF14 framework from ../screenplay-studio/references/story-forms.md), scene workflow (if no reusable scenes) |
| L3 Narrative | Has characters and story: AI short drama, narrative ad, narrative MV, anime short film | Full set: screenplay.md + story-bible.md → plan.md → asset-bible.md (including scene cards/index) → makeup shots → scene images + 03_work/scene-align.md → storyboard/ → first 3 shots as samples | Script, plan, asset bible and makeup shots, scene image separate confirmation, storyboard + sample shots each once + four-action gate confirmation | None |
Classification Rules:
- When in doubt, go one class higher; if the user adds requirements mid-task (e.g., suddenly says "add two AI shots" during L1 editing), upgrade the class and supplement the missing files and confirmations for that class; do not re-ask what's already confirmed.
- L0 / L1 still enforce: do not overwrite original footage, use ffmpeg for final composite, run
check.shand extract frames for self-review before delivery, do not perform any de-identification actions. - Write the classification result in the first reply (e.g., "This order will be processed as L1 Edit: ..."), so the user knows how many confirmations are needed.
- After classifying, immediately determine the execution route (
plan/generate/local-video/full), which determines whether ffmpeg is required; rules are inreferences/dependency-decision.md; write the route into the first reply and theplan.md"Execution Route" field.
Four Action Type Confirmation Gates (Image Generation / Video Generation / Transition / Compositing)
Explicit User Requirement: Image generation, video generation, transitions, and compositing all require user confirmation before execution. These four action types are independent; a single "plan approved / direction set" cannot substitute for all. For each required action, first obtain a clear response for that type. L0–L3, miora, and LibTV are not exempt.
Transitions and compositing have an additional pre-requisite master gate: All shots in the current round must be shown to the user one by one, and the user must explicitly confirm "all passed", before entering transition and compositing; rules are in references/shot-acceptance-gate.md. This master gate cannot be substituted by "sample passed / first frame passed / generation parameters confirmed".
| Action | What to Show the User Before Confirmation | What to Do After Confirmation |
|---|---|---|
| Image Generation | First select the image generation backend according to ../miora-creative-core/references/libtv-route.md §2.5 (LibTV default recommendation / miora / other named tool / comparison; if unanswered, default to LibTV but cannot skip the question) and write it into brief.md; then confirm usage (first frame / makeup / anchor / poster), quantity, aspect ratio, reference images, final prompt; for a set, first output anchor images | Only then call the selected backend's image generation tool, only then generate the full set |
| Video Generation | Two steps: ① First frame anchor image (for shot N≥2, must use previous shot's last frame as primary reference, see ../cinema-craft/references/frame-handoff.md); ② Shot number / duration / model / estimated cost / whether it's a sample / generation resolution tier (480P / 720P / 1080P) and actual model parameter values. If tier is not specified, use AskUserQuestion to let the user choose from the three tiers (recommend 720P, but still require confirmation); forbid silently submitting with the default tier, especially forbid defaulting to 480P; rules are in ../miora-video-generation/references/resolution-selection.md | Only then submit the video generation task; for LibTV, follow ../miora-creative-core/references/libtv-route.md §6/§6.1 |
| Transition | Prerequisite: Shot acceptance master gate passed (references/shot-acceptance-gate.md, documented in 03_work/shot-acceptance.md); then confirm the cut point table: which two shots, transition code (M/W/O/S/TM/V), duration, whether dual anchor images are needed for A's end / B's beginning | Only then write into build.sh / canvas timeline, only then execute stitching and transitions |
| Compositing | Prerequisite: Shot acceptance master gate passed (same as above); then confirm final cut specs (aspect ratio / frame rate / duration), subtitle text and burn position, BGM / dubbing, color grading, logo, output filename; then ask for delivery format, three options: final cut / sample / final+sample (see references/review-sample-gate.md); if choosing a format that includes a sample, then separately ask for the original scrolling watermark text (do not invent it); if choosing "final cut", skip the sample and watermark entirely | Only then run assemble.sh / subtitle.sh burn / audio_mix.sh / canvas export; deliver according to format: final cut delivered directly, sample generated by overlaying watermark on the final cut (if option B or C) |
| Delivery | After the final cut/sample is ready, self-check and scoring card passed, actively ask the user with a question to confirm: A: Pass and close / B: Issues to modify / C: Archive first (see references/delivery-confirmation-gate.md) | Only when user explicitly chooses A, mark delivery complete and close; if B, route to revision-loop.md for rework; if C, archive without delivery |
Rules:
- Shot acceptance master gate is a hard prerequisite for transitions and compositing: All shots shown one by one, user explicitly responds "all passed", record documented; if any step is missed, stop. This, the transition cut point table confirmation, and the compositing spec confirmation are three separate confirmations and cannot be combined into one.
- Delivery format three-choice + conditional watermark text: After compositing spec confirmation, first ask "final cut / sample / final+sample", document word for word; if "final cut" is chosen, skip sample and watermark. If a format including a sample is chosen, then separately ask for the watermark text original and document it; "you decide / default" does not count; without original text, do not generate sample or deliver. Two-step rules are in
references/review-sample-gate.md. - Delivery confirmation gate (proactive question, explicit close): After the final cut is ready, the specialist must proactively ask A: Pass / B: Needs modification / C: Archive first; the user's response is documented word for word as delivery completion; do not let the user self-assign the "delivered / not delivered" status; the specialist records the status based on the response; silence / "you decide" does not count as pass; B routes to
revision-loop.md, C archives. Seereferences/delivery-confirmation-gate.md. - Same type can be asked for multiple shots/cut points in one go, different types cannot be merged into one confirmation.
- Image generation backend and video generation backend are selected separately: §2.5 sets the image generation backend,
libtv-route.md§2 sets the video generation backend; both default to recommending LibTV and retain the choice entry (including a "my own API" option); they do not automatically inherit from each other; lock them together only if the user says "use the same backend for the entire project". Selecting a backend is not a generation authorization. When the user chooses their own API, follow../miora-creative-core/references/custom-api-route.md: first run--checkself-test (if API key/address is missing/not ready, stop; do not silently fall back), ask for endpoint, model, and third-party billing boundaries; API keys are collected via the official Token authorization declaration (.mcp.json), not saved to disk; all gates are not exempted; the invocation script is../scripts/custom_api_generate.py. - Default Generation Config (User Modifiable): For any AI generation, before starting, run the read-only script
../scripts/read_generation_config.pyto readgeneration-config.jsonfrom the expert package root directory, and bring the backend/model preference/resolution tier/sample comparison preferences into the above questions as recommended defaults; they only take effect when the user agrees; the config is not a generation authorization, does not skip the question, does not hardcode model names (models are looked up at runtime); modifying config does not affect confirmed versions. Fields and red lines are in../miora-creative-core/references/generation-config.md. - "You decide" "Same as previous version" "Direction is set" do not count as confirmation; must answer the specific action.
- If the prompt, first frame, transition code, final cut specs, or generation resolution tier are changed, re-confirm that corresponding type; if the model is changed, causing a change in the resolution mapping value, it must also be re-confirmed. If the shot content or shot order changes, the shot acceptance master gate is immediately invalidated and must be rerun (see
references/shot-acceptance-gate.md§6). - Cleanup Gate for Old Versions After Revisions (Unified for Four Types of Generated Files): After creating a new version (
_v2,_v3/ "Version 2") of generated static images, video clips, final cuts, or prompt sheets, must followreferences/generated-file-cleanup.mdto have the user explicitly confirm the new version (list the exact old file names and the deletion action in the confirmation), perform a dependency check, then delete the old version files and old canvas nodes, and leave a trace; detailed rules for images are in the sub-sectionimage-version-cleanup.md. Do not delete before confirmation; if the user says keep, do not delete; never delete original footage or old versions of workflow documents. This rule is not a generation authorization, nor does it replace the first frame / shot gate. - For already submitted tasks, first check the status; do not submit duplicates; only confirm what is needed.
- Write confirmation results into
brief.md/plan.md/03_work/progress.mdto avoid repeated questions; rough cuts and exports within the LibTV canvas also follow this section.
Workload and Alternative Solution Gate (Do Not Decide for the User Based on "Subsequent Workload")
Explicit User Requirement: Do not use workload, cost, or later-stage difficulties as a reason to unilaterally replace the effect the user wants with a "stable alternative" or postpone it to "we'll do it later". Whether something can be done and its cost are only provided as information; the user decides which approach to take. This section takes precedence over convenience principles like "if it can be done in post, don't ask AI to generate it" or any habitual preference for "more stable match to reference footage".
Triggering situations (stop at any match): when you need to do frame-by-frame particle/deformation/hand-drawn work, need multiple rounds of post-production compositing, billing or man-hours need to increase, AI generation cannot guarantee the original design in one pass, or you are considering using a "more stable" ready-made effect (light wipe, dissolve, hard cut, flash frame) to replace the user's specified match-cut/morph/transformation.
Forbidden:
- Without asking the user, replace the original design with a visually similar alternative effect, such as changing a "petal explosion → ice crystal landing" shape match to a "reference-style light wipe".
- End with a phrase like "the workload is quite large; I can show you a preview if needed" and then proceed to execute the alternative plan—a preview is not a default option, it's something the user chooses.
- Downgrade the user's design and directly write it into
plan.md/storyboard/, or directly submit generation, with reasoning like "we'll handle it later / let's go with this / more stable effect".
Must do:
- Honestly describe the original plan's approach and cost (what frame-by-frame work is needed, approximate number of rounds, costs and risks), without exaggeration or understatement; if you cannot determine, write "untested / to be confirmed", do not fabricate man-hours.
- Use
AskUserQuestionto ask clearly in one go, with options that at least cover: ① Proceed with the original design (including frame-by-frame/post-production route and sample confirmation); ② First generate a preview or 1-shot sample before deciding; ③ Switch to an alternative solution (only switch if the user explicitly chooses this); ④ Reduce scope or implement in phases. - Before the user responds, stay at the plan level; do not write into execution scripts, do not submit any image generation/video generation/transition/compositing tasks.
- After the user chooses an alternative, record both the original design and the alternative in the
plan.md"Alternative Solution Decision" field, noting it was the user's choice; if the plan is changed, re-confirm the corresponding four action gates. - Change the phrasing to "The original approach is …, the cost is …, which one do you want?"; do not first negate the user's idea, then offer a "if needed".
All codes must include a category prefix: When multiple sets of codes appear in a plan and script simultaneously, write "Structure SF11 / Technique T5 / Narrative N2 / Transition TM2 / Effect F5"; the full namespace is at the beginning of ../cinema-craft/references/transition-masters.md.
Two Capabilities, One Pipeline
| Capability | Tool | Used For |
|---|---|---|
| Editing & Compositing | ffmpeg (local, free) | Cutting, stitching, transitions, aspect ratio, speed ramping, color grading, subtitles, logo, scoring, export |
| AI Generation | miora (cloud, billed) | Text-to-image, image editing, image-to-video, reference image-to-video, text-to-video |
If footage is sufficient → only edit; if footage lacks shots → generate the missing part with AI, then bring the generated result back as footage into ffmpeg for compositing. Final output is always composited finally by ffmpeg (unified specs, subtitles, BGM are all added at this step). All AI generation rules are in references/ai-generation.md, must be read before generating.
First Classify Video Type, Then Determine Recipe (Universal for All Types)
This studio covers all video types; anime is just one of 12 types. The first step of an order is to classify the main type according to references/video-genres.md, write it into the "Type and Reference" field of brief.md and plan.md, and confirm with the user.
Basis for classification: user's direct statement > footage form > platform and purpose > reference footage deconstruction > a single focused questioning session. When information is insufficient, fall back to "General Social Media Short Video", do not default to anime.
| What to Determine After Classification | Where it Goes |
|---|---|
| Main type + Core objective | brief.md video type field |
| Script and techniques (if story-driven) | ../screenplay-studio/ → story-bible.md + screenplay.md |
| Default rhythm / aspect ratio / duration | plan.md specs |
| Cinematic language and style reference | Storyboard + references/director-playbook.md |
| Lighting and color | Storyboard + references/cinematographer-playbook.md |
| Transition strategy | references/transition-playbook.md + ../cinema-craft/references/transition-masters.md |
| Narrative structure and time layer cards | ../cinema-craft/references/narrative-structures.md |
| Continuity cards (for each adjacent shot pair) | ../cinema-craft/references/continuity-contract.md §2 |
| Long take / oner strategy | ../cinema-craft/references/oner-playbook.md |
| Type × style recipe | ../cinema-craft/references/genre-recipes.md |
| VFX starter kit | ../vfx-studio/ (A–I general, J for live-action/commercial) |
| Compliance and licensing | references/content-compliance.md |
Type ≠ Style: Type determines "what it is", style determines "how it's shot"; both must be written into the plan. Do not apply anime recipes to live-action projects (magic circles, flowing ribbons, cel-shaded speed lines are anime vocabulary); for live-action/product/documentary, prioritize J-category effects. The six capability libraries are open to all types; the difference is only in which slot is selected.
First Classify Type, Then Decide Which File Set to Use
After receiving the requirement, first assign it to one of the rows below and follow that row; do not mix:
| Type | Confirmation Files (in order) | Final Confirmation Before Generation |
|---|---|---|
| Pure edit / modification / compositing / imitation (no generation) | brief.md → plan.md | No generation |
| Only image generation (poster, cover, storyboard frames) | brief.md → plan.md | Generation list in plan.md |
| Ad / product / promo video, including AI video shots | brief.md → plan.md → script.md | script.md (step 3.5) |
| AI short drama (with story, characters, dialogue) | brief.md → script (register scene for each scene) → asset-bible.md (scene cards + index) → makeup shots → scene images + alignment check → storyboard/ (each shot linked to scene) | Storyboard + first 3 shots as samples (references/ai-drama.md, references/scene-generation.md) |
If unsure between ad and drama: if it has fixed characters and a story, go with drama; if it only showcases a product or selling point, go with ad.
Orders with a story: After brief.md, first go to ../screenplay-studio/ with its six-step method to produce story-bible.md and screenplay.md (including the "technique selection rationale"), confirm it passes, then write plan.md; for pure informational pieces (performance ads, product demos, mashups), skip the script and go directly to the plan using the SF12/SF14 framework from ../screenplay-studio/references/story-forms.md.
Ready-Made Scripts (Use Them First, Don't Improvise Commands)
Scripts are released with the expert package in the scripts/ directory of this skill. When the plugin host loads this skill, the ${CODEBUDDY_PLUGIN_ROOT} below is replaced with the absolute path of the plugin's actual installation directory (for market-installed plugins, the path is in the host's versioned cache directory, which changes with versions; do not write paths from memory):
VS_SCRIPTS="${CODEBUDDY_PLUGIN_ROOT}/skills/video-studio/scripts"
Usage Rules
-
Write the full path for every command:
bash "${CODEBUDDY_PLUGIN_ROOT}/skills/video-studio/scripts/check.sh" ..., or define and use within the same command:VS_SCRIPTS="…"; bash "$VS_SCRIPTS/check.sh" .... Most agent hosts' terminal tools create a new shell for each invocation; variables set in the previous call are not preserved, so just writing"$VS_SCRIPTS/check.sh"will become/check.sh. -
When the path is not replaced (the path in quotes in the code block above is not an absolute path starting with
/or a drive letter, or the command returns "no such file or directory"): Use the following command to find it once, then write the found absolute path into every subsequent command:find "${WORKBUDDY_CONFIG_DIR:-$HOME/.workbuddy}" "$HOME/.codebuddy" -path '*/skills/video-studio/scripts/check.sh' 2>/dev/null | sort | tail -1 -
Windows (Git Bash): The replaced path might be in the form
C:\Users\..., which can be used directly within double quotes; if a specific command doesn't recognize it, convert it first:cygpath -u "<path>". -
Running a script without arguments will print its usage. All occurrences of
$VS_SCRIPTSin reference documents are handled according to the rules here.
| Script | What it Does |
|---|---|
analyze_video.sh video [output_dir] | Analyze video: basic info, shot cuts, screenshot per shot, thumbnail overview, loudness |
beat_grid.py audio_or_video [--bpm manual_BPM] [--offset seconds] | Beat Grid (MUST run when syncing to BGM): Estimate BPM + beat-by-beat timestamps + downbeat positions, output to 03_work/beat-grid/beat-grid.json/md. Auto values may have ~1% deviation; long films/MVs/sync videos MUST have human listening and lock with --bpm; confidence <0.4 is unreliable. Rules are in references/beat-grid.md |
| `assemble.sh -o output [-s 1080x1920] [-x 0.5] [-f pad | crop] clips...` |
subtitle.sh transcribe video [srt] | Whisper transcription of human speech into Simplified Chinese subtitles. First run downloads ~140MB model; there will be transcription errors and number formatting issues; user MUST proofread before burning |
| `subtitle.sh burn video subtitle.srt output [douyin | bottom |
tts.sh text "text" output.wav / tts.sh srt subtitle.srt output.wav | Free temporary dubbing (uses "say" on macOS, automatically switches to edge-tts on other systems); can align sentence-by-sentence to subtitle timeline; for sample review only |
| `audio_mix.sh -i video -o output [-b BGM] [-v dubbing] [-k keep | mute]` |
check.sh final_cut [1080x1920] [expected_duration] | Pre-delivery check: specs, audio track, black frames, loudness; also extracts 6 frame images and a thumbnail |
| `pipeline.sh project_dir [status | resume |
storyboard_lint.sh storyboard.md | Run after writing the storyboard: check for dialogue that can't be read in time, pointing and raising hands, group scenes, two actions in one shot, contradiction between camera position and prompt, contradictory prompts, placeholder quality words; also check the "scene motion" field universal for all shot types (static shots write "still capturing point" / dynamic shots name one visible dynamic point, no empty phrases or blanks); also check that scene motion / camera movement codes / VFX codes written in the storyboard are included in the prompts (error if dynamic motion not in prompt, warning if camera movement/VFX code not implemented as a method). See references/scene-motion-gate.md. If there are errors, do not submit to the user for confirmation |
storyboard_handoff_lint.sh storyboard.md (can also accept script.md) | Hard validation for last frame handoff: Per-shot check: final cut out-point / transition type finalized (no "we'll do it in post") / overlap / valid out-point / last frame extraction point filled and numerically consistent, transition type matches overlap (hard cut 0s, dissolve >0s), last frame filename matches shot number, passed to next shot with the same filename, next shot's first frame references the previous shot's last frame. Run together with storyboard_lint.sh above; if there are errors, do not submit to the user for confirmation and do not generate |
subtitle.sh from-storyboard storyboard.md output.srt [1-3] | Generate subtitles from storyboard; each line only falls within its own shot; use this for dramas and storyboard-driven projects; do not manually arrange timeline |
subtitle.sh lint subtitle [cut_point_seconds,...] | Check subtitles before burning: can't be read in time, line too long, crosses shot boundary |
| `rolling_watermark.sh final_cut.mp4 "watermark_text" sample.mp4 [horizontal | vertical |
Typical final cut order: assemble.sh → subtitle.sh burn → audio_mix.sh → (after getting user's watermark text) rolling_watermark.sh to produce the review sample. For anything the scripts don't cover, consult references/ffmpeg-recipes.md.
Cinematic Language, Directorial Style, and Visual Effects (Must Read Before Writing Storyboard)
Cinematic language is not decoration; it is a mandatory field in the storyboard. The plan, scene scripts, and generation prompts must specify the concrete technique; do not just write "cinematic", "aesthetic", "premium". Same for VFX—it is a storyboard field, not a dusting to sprinkle on after the final cut.
| Link | Must Read | Must be Reflected In |
|---|---|---|
| Setting the script | Independent skill ../screenplay-studio/ (SKILL.md) | For narrative projects, first produce and confirm screenplay.md; indicate structure SF__ → N__, main technique T__ with rationale, hook and plot twist timestamps |
| Deconstructing reference footage | references/reference-deconstruction.md | Cut point review, shot list, template extraction; mark untested items as "untested" |
| Setting style | references/director-playbook.md | Select 1 main style + at most 1 accent style, write into plan.md with rationale |
| Filling storyboard | references/shot-language.md | Each shot: fully specify shot size, camera position, camera movement (one type), lighting, color tone; do not submit for confirmation if the camera movement field is empty |
| Setting lighting | references/cinematographer-playbook.md | Light source direction + light quality + main/accent colors; reuse scene cards per shot |
| Setting transitions | references/transition-playbook.md | Transitions are determined at the plan.md stage, and written into shot A's end frame and shot B's start frame |
| Setting narrative structure | ../cinema-craft/references/narrative-structures.md | Select 1 main structure + at most 1 sub-structure; define time layer cards and layer transition; do not rely on subtitles to explain time jumps |
| Setting continuity contract | ../cinema-craft/references/continuity-contract.md | Fill in a continuity card (six anchor points with concrete details) for each adjacent shot pair; if can't match, fix via P0→P4, don't mask with VFX |
| Setting long take strategy | ../cinema-craft/references/oner-playbook.md | For oners, first select the form and R1–R4 route; fake oners must honestly state they are not a single real take |
| Setting VFX | Independent skill vfx-studio (../vfx-studio/SKILL.md) | Select 1 main effect + at most 1 atmospheric secondary effect from vfx-catalog.md; determine AI generation / post-production overlay / still frame motion effect route; write into plan.md VFX field with cost and risk explanation |
Six Hard Rules:
- One shot, one type of motion; for complex camera movements, switch to a "still frame +
zoompanmotion effect" route; clearly state the source in the source field; do not default to AI generation. - Prompts describe the method, not the director's name; director names only appear in
plan.mdfor alignment with the user. - Transitions are designed from the storyboard stage: Match cuts require first generating two isomorphic anchor images; confirm shape, lighting, color temperature consistency before generating the video.
- VFX is finalized at the plan stage: 1 main effect per single shot, ≤3 types for the entire film; if it can be reliably done with post-production overlay/still frame motion effect, do not give it to AI generation; prompts describe the "start → hold → end" process, not effect names, studio names, or genre names; text is always burned in post. The cut points for transition-type VFX are defined in
transition-playbook.md; this skill does not redesign them. - Two shots must connect (generation phase gate + final cut review)
- During generation (mandatory): Chain-based per shot—first frame confirmation → generate video → check task completion → extract stable last frame
sNN_end_vN.pngfrom the final cut → visually inspect the last frame → only then generate the next shot's first frame, and the next shot's first frame must use the previous shot's last frame as the primary reference image actually passed in; compare six hard anchor points, write result into03_work/frame-handoff.md. Forbid "generate all first frames in batch, then generate all videos in batch" because there is no previous shot's last frame, so they will inevitably not connect. Rules are in../cinema-craft/references/frame-handoff.md. - Don't extract the "very last frame": The generation model's last 0.1–0.25 seconds often have push-ins, face drift, blurring, or fading to black. Use
../cinema-craft/scripts/frame_handoff_check.py pickto automatically select a stable frame about 0.3 seconds before the last frame, then visually confirm. - Before submitting the next shot, run a quantitative comparison:
frame_handoff_check.py compareoutputs SSIM / color difference / luminance difference / subject center-of-gravity shift; only submit if the conclusion is PASS; for WARN, first manually review before deciding whether to submit; rules are in../cinema-craft/references/frame-handoff.md.
- During generation (mandatory): Chain-based per shot—first frame confirmation → generate video → check task completion → extract stable last frame
- Strict Chapter 2 (continuity contract) continuous portion:
../cinema-craft/references/continuity-contract.md§2.1–2.4 "Continuous Space/Time/Motion/Event" shares a set of continuity card rules; there is no difference between real and AI content; fill all six anchor points (space/time/motion/event/line-of-sight/lighting) into the storyboard; for adjacent shots with no real continuity, write "N/A" in the empty items to skip; do not write "no continuity" and leave them blank. Seereferences/continuity-checklist.md.
Storyboard Shot Numbers Must Match Canonical Form
All scripts and storyboards must use the canonical shot number form SNN (e.g., S01, S12). Forbid other forms like SN, shot_N, Scene_N_Shot_M, C_001, or V001C001.
Cleanup rule: If the storyboard is generated by an external tool (such as a TSC storyboard tool) and the shot numbers do not match the SNN form, run scripts/storyboard_number_cleanup.sh <storyboard.md> to convert them automatically. After conversion, proceed with the next steps; you may notify the user but do not ask for confirmation again.
Stage Output Files for the Pipeline
Under the 03_work directory of the project. The following table defines the standard file names and their contents.
| File | When to Create | What it Contains | Created By |
|---|---|---|---|
brief.md | L1–L3 | Original request, type judgment, classification result, execution route | Specialist (first reply) |
plan.md | L1–L3 | Understood request, parametric plan, specs, execution route; L0 no need to create | Specialist (after classification) |
screenplay.md | L3 and some L2 narrative ads | Script including scene card registration, technique selection rationale; pure information pieces skip | ../screenplay-studio/ |
script.md | L2 (with generation, no character story) | Scene scripts: scene description, shot list, generation prompts, transition strategy | Specialist |
story-bible.md | L3 (with character story) | Story world overview, character profiles, plot timeline, style chain | ../screenplay-studio/ (reused) |
asset-bible.md | L3 | Scene cards + index, character makeup card set, generated, confirmed, registered for scene images | Specialist (after screenplay.md confirmation) |
03_work/scene-align.md | L3 (only when scenes need alignment) | Scene↔script alignment results, scene consistency verification record; only created when needed | Specialist (after scene image generation confirmation) |
03_work/continuity-verify.md | L1 immediate result, L2–L3 pre-delivery (not L0) | Continuity contract check results, per adjacent shot: six anchor point comparison, connectivity status | Specialist (self-check phase) |
03_work/shot-acceptance.md | L1–L3 (with transitions/compositing) | Shot acceptance master gate record: per shot independent + overall "all passed" result, including signature | Specialist (after full shot preview confirmation) |
03_work/frame-handoff.md | L2–L3 (per adjacent shot) | Last frame extraction, six anchor point comparison, SSIM/color difference/luminance difference values, PASS/WARN/FAIL conclusion | Specialist (per shot generation) |
03_work/beat-grid/ | When BGM speed sync is needed | Beat grid JSON + Markdown, BPM value, confidence | beat_grid.py |
03_work/progress.md | L1–L3 | Stage status, gate confirmation record, error record | Specialist (real-time update) |
03_work/libtv-audit.md | Only LibTV output audit | Audit evidence, audit results by layer, issue level, and conclusion | Specialist (audit phase) |
storyboard/ | L1 immediate result, L2–L3 | Per-shot: shot number, shot size, camera movement, camera position, lighting, color tone, effect code, prompt, duration, first frame image, final cut (generated), last frame image | Specialist (storyboard phase); generated with first/last frame images |
Project Tree Reference
project/
├── 01_brief/
│ └── brief.md # From L1
├── 02_assets/
│ ├── raw/ # User's original footage
│ ├── reference/ # Reference images/videos
│ │ └── deconstruction-assets/ # Reference deconstruction analysis images
│ ├── generated/ # AI generated
│ │ ├── images/ # Temp still images
│ │ ├── videos/ # Temp video clips
│ │ └── provenance.md # Generation record (model, parameters, algorithm cost)
│ ├── audio/ # BGM, dubbing, sound effects
│ │ ├── bgm/ # Make sub-folders and name clearly
│ │ └── voice/ # Primary dubbing, each character a separate file, note secondary characters
│ └── resource/ # Logos, posters, covers, miscellaneous props
├── 03_work/
│ ├── progress.md # Pipeline stage record
│ ├── plan.md # Production plan
│ ├── script.md # Scene script
│ ├── beat-grid/ # Beat grid analysis results
│ ├── scene-align.md # Scene alignment check
│ ├── continuity-verify.md # Continuity contract verification
│ ├── shot-acceptance.md # Shot acceptance master gate record
│ ├── frame-handoff.md # Frame handoff connection record
│ ├── libtv-audit.md # LibTV output audit
│ ├── screen-specs.md # REFRAMING operation plan (details in `references/screen-specs.md`)
│ └── storyboard/ # Storyboard per shot
│ ├── S01_end_v1.png
│ ├── S01_v1.mp4
│ ├── S01_v1.json # Generation parameters
│ ├── S02_anchor_v1.png
│ ├── S02_v1.mp4
│ └── …
├── 04_delivery/
│ ├── final-cut-raw.mp4 # Final cut (no watermark)
│ ├── final-cut-sample.mp4 # Review sample (with watermark)
│ └── delivery-note.md # Delivery description + self-check + scoring card + delivery confirmation
├── build.sh # Assembly script
├── story-bible.md # Story world book (from `screenplay-studio`, placed in project root)
├── screenplay.md # Script (from `screenplay-studio`, or created independently)
└── asset-bible.md # Asset bible (placed in project root)
Cleanup rule: The 03_work/libtv-audit.md file is only created for LibTV audit entries; for normal pipeline entries, this file should not exist.
Cleanup rule: The 03_work/scene-align.md, 03_work/shot-acceptance.md, and 03_work/frame-handoff.md files are only created when the corresponding steps are triggered; for entries that do not require these steps (e.g., L0), these files should not exist.
Self-Check & Delivery Scoring Card
Self-check is mandatory: Before any handover to the user (including plan, storyboard, scene images, or final cut), the specialist must first run check.sh (and/or storyboard_lint.sh, storyboard_handoff_lint.sh, subtitle.sh lint, pipeline.sh verify), confirm no errors, then submit to the user. L0 also runs check.sh for the final cut. Details are in references/self-check.md.
Scoring Card (Write at Handover)
| Item | Standard | L0 | L1 | L2 | L3 |
|---|---|---|---|---|---|
| Understanding | Confirm the brief is recorded and fully consistent with the user's original statement | ✓ | ✓ | ✓ | ✓ |
| Classification & Execution Route | Brief+Plan contain type, class, route; type is not defaulted | × | ✓ | ✓ | ✓ |
| Reference Deconstruction | Brief+Plan contain at least one reference sheet (framing/detail/tone/pace/reference style) | × | ✓ | ✓ | ✓ |
| Style Confirmation | Plan explicitly lists camera/director/lighting/cinematographer manual choices | × | ✓ | ✓ | ✓ |
| Continuity Verification | continuity-verify.md records full link check for each adjacent shot, with conclusion | × | ✓ | ✓ | ✓ |
| Effect Decision | Plan VFX field records effects determined at plan stage, AI/Post route chosen | × | × | ✓ | ✓ |
| Asset Compliance | Any face image requires authorization declaration; if unverifiable, mark "unverified" | ✓ | ✓ | ✓ | ✓ |
| Gate Compliance | Every required gate confirmation is recorded with exact user response; "direction set" etc. does not count as passed | ✓ | ✓ | ✓ | ✓ |
| Pipeline Completeness | All expected intermediate files exist and are correctly named; no redundant files or left-over prompts; all failed/canceled generation outputs logged in 03_work/progress.md | ✓ | ✓ | ✓ | ✓ |
| Pre-Delivery Self-Check | check.sh passes; unexpected inconsistency between final cut and plan (e.g., wrong shot, wrong aspect ratio, wrong footage) → redo | ✓ | ✓ | ✓ | ✓ |
Scoring Card Standards
- Each item: 100 for pass, 0 for fail. For L1, items marked "×" count as automatically 100 (written as "N/A").
- Items that are mismarked as "×" should be filled according to actual required items; wrong classification also affects scoring. If all required items for that class are completed, score 100 for that item.
- Total score: points earned / required items. Pass line: ≥70.
- Scoring card + self-check results written into
04_delivery/delivery-note.md"Quality Check" section.
Division of Labor With Related Skills
| Task | Responsible Skill | Reference |
|---|---|---|
| Script structure & dramatic techniques | ../screenplay-studio/ | SKILL.md, story-forms.md |
| Shot connection, oners & narrative structures | ../cinema-craft/ | continuity-contract.md, oner-playbook.md, narrative-structures.md |
| VFX selection | ../vfx-studio/ | vfx-catalog.md, SKILL.md |
| Video generation | ../miora-video-generation/ or LibTV or custom API | references/ai-generation.md, ../miora-video-generation/SKILL.md, libtv-route.md (located in ../miora-creative-core/references/) |
| Image generation | ../miora-creative-core/ or LibTV or custom API | libtv-route.md, ../creative-core/SKILL.md |
| Film review & feedback | ../film-review/ | SKILL.md |
| AI audio/music generation | ../ai-audio-production/ | SKILL.md |
| Prompt reversal | ../prompt-reverse/ | SKILL.md |
Specialist Invocation: The skills listed above must be invoked when encountering the corresponding tasks; do not try to complete them yourself within this skill (e.g., when needing to write a script for a narrative project, go to ../screenplay-studio/; when deciding transitions, refer to ../cinema-craft/references/transition-masters.md).
REFRAMING Protocol (Frame Size Change / Aspect Ratio Conversion)
When the user requires a frame size change (e.g., horizontal to vertical, letterbox to full screen, changing specific aspect ratio), first classify according to references/screen-specs.md, then determine the reframing route. The core principle is: first, reframe the full storyboard shell; only then consider AI expansion for the portions that need to be expanded; no AI generation before reframing the storyboard. For production details, see references/screen-specs.md.
Miora Generation Rules
If using miora for AI generation, first read references/ai-generation.md, then choose the generation tool: ../miora-video-generation/ for video, ../miora-creative-core/ for images.
Content Compliance and Licensing
- Face Video: Any video stream containing a recognizable face must check the source declaration. Production stills, film and TV screenshots require copyright notice. Animation/manga characters that cannot be verified are marked "unverified". Details are in
references/content-compliance.md. - AI Generated Image Modifications: Apply the miora AI filter markings; do not remove. AI-generated videos do not require additional markings (copyright belongs to the user).
- Not responsible: Checking third-party script/copyright compliance, verifying user-provided footage rights, preventing AI safety issues from coherent text/voice generation; if the user asks the specialist for these, respond "Out of scope, by default assume compliant/not responsible".
Notation Conventions (Universal for Scripts, Storyboards, Plans)
All scripts, storyboards, and plans must follow the notation conventions in references/notation-conventions.md when writing direction cues, camera movements, lighting descriptions, and editing terminology. Core: no ambiguity, no placeholder terms, standardize using canonical codes.
Markdown Annotations Must Be Stripped Before Handover
Any file delivered to the user (plan, script, storyboard, asset bible, scene images, notes) must have all Markdown annotations removed—especially meta-comments intended for the expert but not meant for the user (e.g., # Ask the user for clarification, # Confirm the plan, *[Internal Notes]*).
Exception: The 03_work/ internal working documents can retain some annotations, but the final files handed over to the user (plan.md, screenplay.md, script.md, storyboard/, delivery-note.md, asset-bible.md) must be completely clean.
References and Guides (Index)
| Document | What it Contains |
|---|---|
references/ai-generation.md | Image/Video generation rules, tips, prompting templates, post-processing |
references/dependency-decision.md | Execution route classification and decision tree |
references/video-genres.md | All 12-type classification criteria and recipe mapping |
references/director-playbook.md | Style selection, camera language, director manual |
references/cinematographer-playbook.md | Lighting setup, color palette, cinematographer manual |
references/transition-playbook.md | Transition strategy, match cut design, master list |
references/scene-motion-gate.md | Storyboard scene motion field validation rules |
references/shot-language.md | Shot size/camera position/movement/lighting/color concrete description method |
references/continuity-checklist.md | Chapter 2 continuity contract auxiliary checklist |
references/beat-grid.md | Beat grid detection and usage rules |
references/screen-specs.md | REFRAMING frame change calculation and details |
references/self-check.md | Self-check full procedure |
references/content-compliance.md | Content compliance checklist rules |
references/reference-deconstruction.md | Reference footage analysis method and template |
references/resume-protocol.md | Resume pipeline protocol rules |
references/revision-loop.md | Rework loop rules; only read inside the loop |
references/shot-acceptance-gate.md | Shot acceptance master gate rules; all shots require individual + overall confirmation before transition/compositing |
references/review-sample-gate.md | Delivery format three-way choice + conditional watermark generation rules |
references/delivery-confirmation-gate.md | Delivery confirmation gate: specialist must actively ask user A/B/C; silence does not count as pass |
references/generated-file-cleanup.md | Old version cleanup rules after revision; do not delete before confirmation; must check dependency; image sub-section in image-version-cleanup.md |
references/notation-conventions.md | Notation conventions: universal for scripts, storyboards, plans; no ambiguous terms, use canonical codes |
references/ffmpeg-recipes.md | ffmpeg command snippets for scenarios that scripts can't cover; user agent level fallback |
references/ai-drama.md | AI short drama production specifics: full story → scene generation → per-shot generation |
references/scene-generation.md | Scene consistency generation rules and process |
../cinema-craft/references/continuity-contract.md | Continuity contract: Chapter 1 defines 9 tasks, Chapter 2 full connectivity rules |
../cinema-craft/references/frame-handoff.md | Frame handoff rules: chain-based generation, extraction at ~0.3s before end; forbid batch generation of first frames |
../cinema-craft/references/narrative-structures.md | Narrative structure master table, time layer card rules |
../cinema-craft/references/oner-playbook.md | Oner selection and production strategy |
../cinema-craft/references/transition-masters.md | Transition master table by category, code and usage scenarios |
../cinema-craft/references/genre-recipes.md | Type×style×transition×VFX recipe combination |
../screenplay-studio/references/story-forms.md | Story archetype table; for pure information pieces, use SF12/SF14 to go directly to plan |
../miora-video-generation/references/resolution-selection.md | Video generation resolution tier selection rules; must let user choose; forbid default 480P |
../miora-creative-core/references/libtv-route.md | LibTV route rules: backend selection, image generation, video generation task submission, canvas editing and export |
../miora-creative-core/references/libtv-output-audit.md | LibTV output audit: read-only six-layer audit; report only, no generation |
../miora-creative-core/references/generation-config.md | Generation config file reading rules; defaults are recommended, not authorization; do not skip questions |
../miora-creative-core/references/custom-api-route.md | Custom API route rules: keys collected by official MCP; no fallback if not ready; no gate exemption |
Directory Structure Reference
video-studio/
├── SKILL.md
├── scripts/
│ ├── check.sh
│ ├── assemble.sh
│ ├── subtitle.sh
│ ├── audio_mix.sh
│ ├── tts.sh
│ ├── pipeline.sh
│ ├── storyboard_lint.sh
│ ├── storyboard_handoff_lint.sh
│ ├── storyboard_number_cleanup.sh
│ ├── rolling_watermark.sh
│ ├── analyze_video.sh
│ ├── beat_grid.py
│ └── read_generation_config.py
├── references/
│ ├── ai-generation.md
│ ├── dependency-decision.md
│ ├── video-genres.md
│ ├── director-playbook.md
│ ├── cinematographer-playbook.md
│ ├── transition-playbook.md
│ ├── scene-motion-gate.md
│ ├── shot-language.md
│ ├── continuity-checklist.md
│ ├── beat-grid.md
│ ├── screen-specs.md
│ ├── self-check.md
│ ├── content-compliance.md
│ ├── reference-deconstruction.md
│ ├── resume-protocol.md
│ ├── revision-loop.md
│ ├── shot-acceptance-gate.md
│ ├── review-sample-gate.md
│ ├── delivery-confirmation-gate.md
│ ├── generated-file-cleanup.md
│ ├── image-version-cleanup.md
│ ├── notation-conventions.md
│ ├── ffmpeg-recipes.md
│ ├── ai-drama.md
│ └── scene-generation.md