Communitygithub.com

video-studio

接单式视频制作主流程(全类型):视频剪辑、修改、多素材合成、广告/带货/宣传片、画幅调整、字幕配乐、调色变速、按参考视频仿做同款,以及 AI 生成——文生图、改图、图生视频(首帧/首尾帧)、参考图生视频、文生视频、用用户的产品图/照片/素材生成新镜头,以及 AI 短剧的制作落地(资产圣经、定妆、分镜、逐镜生成再合成)。当用户说"帮我剪一下""把这几个视频合成一条""做个广告/宣传片/带货视频""照着这个视频做一个类似的""参考这个视频,我想做一个(自己的新需求)""喜欢这条的质感/节奏/打法,但故事换成…""按这个风格把我这个点子拍成短剧""改成竖屏/加字幕/换BGM""台词口型对不上怎么办""这个对白镜怎么拍""帮我配音/加字幕""用 LibTV 做/在 LibTV 画布里做""帮我检查一下 LibTV 做的东西/验收这个 LibTV 样片或成片""用我这几张图做个视频""让这张图动起来""帮我生成几个镜头/一张海报""做个短剧""按这个剧本拍成剧"等时使用。写剧本与戏剧手法交给 `../screenplay-studio/`,镜头衔接、一镜到底与叙事结构交给 `../cinema-craft/`,特效选型交给 `../vfx-studio/`;本技能负责分级、方案、分镜与 ffmpeg 成片,把它们落进同一条流水线。核心原则:先按复杂度分档,再按档位确认后动手;成片永远由 ffmpeg 最终合成。

O que é video-studio?

video-studio is a Claude Code agent skill that 接单式视频制作主流程(全类型):视频剪辑、修改、多素材合成、广告/带货/宣传片、画幅调整、字幕配乐、调色变速、按参考视频仿做同款,以及 AI 生成——文生图、改图、图生视频(首帧/首尾帧)、参考图生视频、文生视频、用用户的产品图/照片/素材生成新镜头,以及 AI 短剧的制作落地(资产圣经、定妆、分镜、逐镜生成再合成)。当用户说"帮我剪一下""把这几个视频合成一条""做个广告/宣传片/带货视频""照着这个视频做一个类似的""参考这个视频,我想做一个(自己的新需求)""喜欢这条的质感/节奏/打法,但故事换成…""按这个风格把我这个点子拍成短剧""改成竖屏/加字幕/换BGM""台词口型对不上怎么办""这个对白镜怎么拍""帮我配音/加字幕""用 LibTV 做/在 LibTV 画布里做""帮我检查一下 LibTV 做的东西/验收这个 LibTV 样片或成片""用我这几张图做个视频""让这张图动起来""帮我生成几个镜头/一张海报""做个短剧""按这个剧本拍成剧"等时使用。写剧本与戏剧手法交给 `../screenplay-studio/`,镜头衔接、一镜到底与叙事结构交给 `../cinema-craft/`,特效选型交给 `../vfx-studio/`;本技能负责分级、方案、分镜与 ffmpeg 成片,把它们落进同一条流水线。核心原则:先按复杂度分档,再按档位确认后动手;成片永远由 ffmpeg 最终合成。.

Funciona com✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/zhaikai253400-prog/ai-video-creation-expert/tree/HEAD/skills/video-studio

Perguntar na sua IA favorita

Abre um novo chat com esta habilidade de agente já pré-carregada.

Documentação

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.

ClassTypical RequestFiles to ProduceUser ConfirmationCan Skip
L0 Quick FixSingle modification without generation: add/change subtitles, swap BGM, change aspect ratio, cut a segment, compress/transcode, add logo, adjust volumeDo 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 itemType classification, reference deconstruction, script, scene script, continuity cards, effect bar, compliance bar, continuity-check.md
L1 EditMulti-clip editing / compositing / imitation / mashup, no AI generation, no storybrief.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 actionsScript, script.md, compliance bar; continuity cards only for cuts using match cuts / dissolves / hidden cuts
L2 GenerationAds / promos / product films / posters etc. that include AI-generated visuals, but no character storybrief.md + full plan.md + script.md + scene images (if reusable scenes exist) + 02_assets/generated/provenance.md2 times + scene image confirmation (if scenes exist) + first frame anchor image confirmation + four-action gate confirmationScript (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 NarrativeHas characters and story: AI short drama, narrative ad, narrative MV, anime short filmFull 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 samplesScript, plan, asset bible and makeup shots, scene image separate confirmation, storyboard + sample shots each once + four-action gate confirmationNone

Classification Rules:

  1. 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.
  2. L0 / L1 still enforce: do not overwrite original footage, use ffmpeg for final composite, run check.sh and extract frames for self-review before delivery, do not perform any de-identification actions.
  3. 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.
  4. After classifying, immediately determine the execution route (plan / generate / local-video / full), which determines whether ffmpeg is required; rules are in references/dependency-decision.md; write the route into the first reply and the plan.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".

ActionWhat to Show the User Before ConfirmationWhat to Do After Confirmation
Image GenerationFirst 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 imagesOnly then call the selected backend's image generation tool, only then generate the full set
Video GenerationTwo 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.mdOnly then submit the video generation task; for LibTV, follow ../miora-creative-core/references/libtv-route.md §6/§6.1
TransitionPrerequisite: 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 beginningOnly then write into build.sh / canvas timeline, only then execute stitching and transitions
CompositingPrerequisite: 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 entirelyOnly 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)
DeliveryAfter 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. See references/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 --check self-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.py to read generation-config.json from 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 follow references/generated-file-cleanup.md to 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-section image-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.md to 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:

  1. 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.
  2. Use AskUserQuestion to 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.
  3. 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.
  4. 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.
  5. 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

CapabilityToolUsed For
Editing & Compositingffmpeg (local, free)Cutting, stitching, transitions, aspect ratio, speed ramping, color grading, subtitles, logo, scoring, export
AI Generationmiora (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 ClassificationWhere it Goes
Main type + Core objectivebrief.md video type field
Script and techniques (if story-driven)../screenplay-studio/ → story-bible.md + screenplay.md
Default rhythm / aspect ratio / durationplan.md specs
Cinematic language and style referenceStoryboard + references/director-playbook.md
Lighting and colorStoryboard + references/cinematographer-playbook.md
Transition strategyreferences/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 licensingreferences/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:

TypeConfirmation Files (in order)Final Confirmation Before Generation
Pure edit / modification / compositing / imitation (no generation)brief.md → plan.mdNo generation
Only image generation (poster, cover, storyboard frames)brief.md → plan.mdGeneration list in plan.md
Ad / product / promo video, including AI video shotsbrief.md → plan.md → script.mdscript.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

  1. 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.

  2. 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
    
  3. 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>".

  4. Running a script without arguments will print its usage. All occurrences of $VS_SCRIPTS in reference documents are handled according to the rules here.

ScriptWhat 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 padcrop] 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 [douyinbottom
tts.sh text "text" output.wav / tts.sh srt subtitle.srt output.wavFree 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 keepmute]`
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 [statusresume
storyboard_lint.sh storyboard.mdRun 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 [horizontalvertical

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.

LinkMust ReadMust be Reflected In
Setting the scriptIndependent 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 footagereferences/reference-deconstruction.mdCut point review, shot list, template extraction; mark untested items as "untested"
Setting stylereferences/director-playbook.mdSelect 1 main style + at most 1 accent style, write into plan.md with rationale
Filling storyboardreferences/shot-language.mdEach 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 lightingreferences/cinematographer-playbook.mdLight source direction + light quality + main/accent colors; reuse scene cards per shot
Setting transitionsreferences/transition-playbook.mdTransitions 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.mdSelect 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.mdFill 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.mdFor oners, first select the form and R1–R4 route; fake oners must honestly state they are not a single real take
Setting VFXIndependent 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:

  1. One shot, one type of motion; for complex camera movements, switch to a "still frame + zoompan motion effect" route; clearly state the source in the source field; do not default to AI generation.
  2. Prompts describe the method, not the director's name; director names only appear in plan.md for alignment with the user.
  3. 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.
  4. 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.
  5. 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.png from 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 into 03_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 pick to 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 compare outputs 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.
  6. 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. See references/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.

FileWhen to CreateWhat it ContainsCreated By
brief.mdL1–L3Original request, type judgment, classification result, execution routeSpecialist (first reply)
plan.mdL1–L3Understood request, parametric plan, specs, execution route; L0 no need to createSpecialist (after classification)
screenplay.mdL3 and some L2 narrative adsScript including scene card registration, technique selection rationale; pure information pieces skip../screenplay-studio/
script.mdL2 (with generation, no character story)Scene scripts: scene description, shot list, generation prompts, transition strategySpecialist
story-bible.mdL3 (with character story)Story world overview, character profiles, plot timeline, style chain../screenplay-studio/ (reused)
asset-bible.mdL3Scene cards + index, character makeup card set, generated, confirmed, registered for scene imagesSpecialist (after screenplay.md confirmation)
03_work/scene-align.mdL3 (only when scenes need alignment)Scene↔script alignment results, scene consistency verification record; only created when neededSpecialist (after scene image generation confirmation)
03_work/continuity-verify.mdL1 immediate result, L2–L3 pre-delivery (not L0)Continuity contract check results, per adjacent shot: six anchor point comparison, connectivity statusSpecialist (self-check phase)
03_work/shot-acceptance.mdL1–L3 (with transitions/compositing)Shot acceptance master gate record: per shot independent + overall "all passed" result, including signatureSpecialist (after full shot preview confirmation)
03_work/frame-handoff.mdL2–L3 (per adjacent shot)Last frame extraction, six anchor point comparison, SSIM/color difference/luminance difference values, PASS/WARN/FAIL conclusionSpecialist (per shot generation)
03_work/beat-grid/When BGM speed sync is neededBeat grid JSON + Markdown, BPM value, confidencebeat_grid.py
03_work/progress.mdL1–L3Stage status, gate confirmation record, error recordSpecialist (real-time update)
03_work/libtv-audit.mdOnly LibTV output auditAudit evidence, audit results by layer, issue level, and conclusionSpecialist (audit phase)
storyboard/L1 immediate result, L2–L3Per-shot: shot number, shot size, camera movement, camera position, lighting, color tone, effect code, prompt, duration, first frame image, final cut (generated), last frame imageSpecialist (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)

ItemStandardL0L1L2L3
UnderstandingConfirm the brief is recorded and fully consistent with the user's original statement✓✓✓✓
Classification & Execution RouteBrief+Plan contain type, class, route; type is not defaulted×✓✓✓
Reference DeconstructionBrief+Plan contain at least one reference sheet (framing/detail/tone/pace/reference style)×✓✓✓
Style ConfirmationPlan explicitly lists camera/director/lighting/cinematographer manual choices×✓✓✓
Continuity Verificationcontinuity-verify.md records full link check for each adjacent shot, with conclusion×✓✓✓
Effect DecisionPlan VFX field records effects determined at plan stage, AI/Post route chosen××✓✓
Asset ComplianceAny face image requires authorization declaration; if unverifiable, mark "unverified"✓✓✓✓
Gate ComplianceEvery required gate confirmation is recorded with exact user response; "direction set" etc. does not count as passed✓✓✓✓
Pipeline CompletenessAll 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-Checkcheck.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

TaskResponsible SkillReference
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 APIreferences/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 APIlibtv-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)

DocumentWhat it Contains
references/ai-generation.mdImage/Video generation rules, tips, prompting templates, post-processing
references/dependency-decision.mdExecution route classification and decision tree
references/video-genres.mdAll 12-type classification criteria and recipe mapping
references/director-playbook.mdStyle selection, camera language, director manual
references/cinematographer-playbook.mdLighting setup, color palette, cinematographer manual
references/transition-playbook.mdTransition strategy, match cut design, master list
references/scene-motion-gate.mdStoryboard scene motion field validation rules
references/shot-language.mdShot size/camera position/movement/lighting/color concrete description method
references/continuity-checklist.mdChapter 2 continuity contract auxiliary checklist
references/beat-grid.mdBeat grid detection and usage rules
references/screen-specs.mdREFRAMING frame change calculation and details
references/self-check.mdSelf-check full procedure
references/content-compliance.mdContent compliance checklist rules
references/reference-deconstruction.mdReference footage analysis method and template
references/resume-protocol.mdResume pipeline protocol rules
references/revision-loop.mdRework loop rules; only read inside the loop
references/shot-acceptance-gate.mdShot acceptance master gate rules; all shots require individual + overall confirmation before transition/compositing
references/review-sample-gate.mdDelivery format three-way choice + conditional watermark generation rules
references/delivery-confirmation-gate.mdDelivery confirmation gate: specialist must actively ask user A/B/C; silence does not count as pass
references/generated-file-cleanup.mdOld version cleanup rules after revision; do not delete before confirmation; must check dependency; image sub-section in image-version-cleanup.md
references/notation-conventions.mdNotation conventions: universal for scripts, storyboards, plans; no ambiguous terms, use canonical codes
references/ffmpeg-recipes.mdffmpeg command snippets for scenarios that scripts can't cover; user agent level fallback
references/ai-drama.mdAI short drama production specifics: full story → scene generation → per-shot generation
references/scene-generation.mdScene consistency generation rules and process
../cinema-craft/references/continuity-contract.mdContinuity contract: Chapter 1 defines 9 tasks, Chapter 2 full connectivity rules
../cinema-craft/references/frame-handoff.mdFrame handoff rules: chain-based generation, extraction at ~0.3s before end; forbid batch generation of first frames
../cinema-craft/references/narrative-structures.mdNarrative structure master table, time layer card rules
../cinema-craft/references/oner-playbook.mdOner selection and production strategy
../cinema-craft/references/transition-masters.mdTransition master table by category, code and usage scenarios
../cinema-craft/references/genre-recipes.mdType×style×transition×VFX recipe combination
../screenplay-studio/references/story-forms.mdStory archetype table; for pure information pieces, use SF12/SF14 to go directly to plan
../miora-video-generation/references/resolution-selection.mdVideo generation resolution tier selection rules; must let user choose; forbid default 480P
../miora-creative-core/references/libtv-route.mdLibTV route rules: backend selection, image generation, video generation task submission, canvas editing and export
../miora-creative-core/references/libtv-output-audit.mdLibTV output audit: read-only six-layer audit; report only, no generation
../miora-creative-core/references/generation-config.mdGeneration config file reading rules; defaults are recommended, not authorization; do not skip questions
../miora-creative-core/references/custom-api-route.mdCustom 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

Individual skills in this repo

This repo contains 2 individual skills — each has its own dedicated page.

ai-video-editing

自然语言视频修改与编辑的通用工作流。当用户提出任何视频修改/生成需求时使用——例如"把视频里的文字改成X""放大/替换/删除画面里的某个元素""插帧/补帧让视频更流畅""给这张图注入运动做成视频""生成一段竖屏产品视频"等。负责把口语需求解析为结构化意图、判定可行性边界(原生可做 / 近似需确认 / 做不到)、路由到 miora 生成工具链、生成前确认、执行与验收。本技能是 miora-creative-core 与 miora-video-generation 的上层编排,所有图片/视频生成只调用 mcp__miora__* 工具。

prompt-reverse

从已有的图片或视频反推出可复用的 AI 生成提示词。当用户给一张图、一组图、一段视频,问「这是用什么提示词生成的」「帮我反推提示词」「照这张图写提示词」「把这段视频拆成提示词」「这个画面怎么生成的」「提取这段视频的画面/运镜/风格提示词」时使用——按证据帧提取可观察事实,回填 12 槽框架,输出中英双版本提示词与置信度,并明确区分「能确定的」与「推测的」。只复用语法、结构、参数与关系,不搬运原画面、台词、音乐、品牌与水印;不承诺复刻同一张图。不负责生成工具路由与确认门禁(在 miora-creative-core)、不负责写新故事(在 screenplay-studio)、不负责按文字需求扩写提示词(在 visual-prompt-craft)。

Habilidades Relacionadas