
short-drama-edit
PopularAssembles generated short-drama shot material into a final edit, recording in/out points, shot sequence, audio, subtitles, and delivery specifications. Used for conforming, subtitling, loudness normalization, pacing adjustments, or exporting fine-cut assets. Hand off back to upstream creation stages when extra assets or story revisions are needed.
Related Skills
Assembles generated short-drama shot material into a final edit, recording in/out points, shot sequence, audio, subtitles, and delivery specifications. Used for conforming, subtitling, loudness normalization, pacing adjustments, or exporting fine-cut assets. Hand off back to upstream creation stages when extra assets or story revisions are needed.
Short Drama Editing & Final Assembly
Assemble shot-by-shot footage under 剧集/<EP>/制作成果/ into a final edit, recording editorial decisions in 剧集/<EP>/剪辑单.md.
Each segment uses an H2 header ## CUT-..., mapping to a unique source ID and a physical media file: video segments map to MOTION-..., while keyframe segments for motion comics map to SHOT-... or IMG-....
Select usable clips from available assets and check narrative continuity against the script and storyboards. When assets mismatch narrative intent, document editing tradeoffs and missing gaps.
Quick Start
Use $short-drama-edit to assemble the generated shots of EP001 into a final edit.
Entry Conditions
Entry requires assets to exist and be readable: valid video files exist under 剧集/<EP>/制作成果/, or accepted keyframes and voiceover files exist for motion comics.
Written prompts, confirmed jobs, or successful adapter responses do not guarantee usable assets; this stage only considers readable physical bytes.
If assets are incomplete, continuous valid sequences can be edited first. When the user requests a complete assembly, mark this draft as a scene clip and list all asset gaps.
List missing files, unusable quality, or narrative tradeoffs under "Unused Shots".
剧集/<EP>/分镜.md and 视频提示词.md serve as source files for shot sequence and functional roles. The editor may make trim selections on them, but must not rewrite them: trimming, dropping shots, or reordering clips belong to this stage; changing lines, altering shot functionality, or modifying start/end states require submitting revision requests upstream.
Built-in rendering directly concatenates encoded clips, requiring input assets to share identical aspect ratio and frame rate. check validates these when media is probeable; unify non-conforming assets via external tools according to delivery targets first (preserving composition and logging crops/padding), then update paths and timestamps in 剪辑单.md.
Rendering and measurements require ffmpeg / ffprobe on your system PATH. If missing, edit_tool.py will fail immediately with an explanation. Do not approximate using alternative methods, and do not mark unmeasured checks as passed.
Workflow
- Inspect every shot completely to mark usable ranges before editing. Review each file from start to finish, recording usable time ranges and what occurs outside them (initial static holds, trailing drift, blown-out whites, action bounces, redundant performances). This step produces objective facts, not decisions. See Usable Ranges for Generated Footage.
- Locate spoken ranges for dialogue shots first. Preserve complete phonemes and necessary pauses. Built-in tools trim video and audio synchronously; use external NLE tools if audio/video cuts need to be offset across dialogue.
- Select narrative in/out points within usable ranges. Choose in-points based on action, reaction, or pause needs; set out-points after essential information finishes and before visual defects start. Document explicit reasons for each in/out point. See In/Out Points and Shot Order.
- Order shots and check adjacent relationships. Verify continuity across action, space, reveals, and audio; trim redundant information unless it adds new narrative value.
- Compare adjacent visual frames.
renderautomatically matches color between cuts in identical scenes; compare matching regions across same-scene/same-lighting shots, and add explicit画面adjustments if auto-matching is insufficient or undesirable. See Color Consistency & Shot Matching. - Handle audio seams and loudness. Listen through after assembly; perform custom audio mixing via external tools when necessary and log actions. See Audio, Subtitles, and Music.
- Draft subtitles, screen text, and sound effects. Subtitle text must come directly verbatim from
剧本.mddialogue, never from auto-transcriptions. Punctuation and phrasing must match exactly; transcriptions are strictly for timestamp alignment. Leave visual gaps on screen for post-production overlay via画面文字lines for[画面文字], and write音效lines for prompt audio corresponding to screen text entrances. - Write
剪辑单.mdbefore rendering. Documentation precedes final output: the document is the reviewable, editable, and reproducible master; the rendered video is its output product. - Verify and deliver based on testable metrics. See Delivery & Verification.
Edit List Requirements
-
Header metadata must include delivery targets:
成片目标时长,画幅与帧率,交付响度, and字幕. Target duration represents narrative intent; note any variance in the final report. If the user specifies a strict length, meet the target or report missing assets. -
Format each clip as an H2 section
## CUT-<EP>-<序号> · <中文名称>, containing line-by-line attributes:-
- 来源:<MOTION-...> · <项目相对路径>—MOTION-...must exist in视频提示词.md, pointing to a readable file. For still frames, use- 来源:<SHOT-...> · <图片路径>(shot from分镜.md) or<IMG-...> · <图片路径>(item from图片提示词.md), supporting PNG/JPG/JPEG/WEBP; set in-point to0.00and out-point to duration (at least0.50seconds). Still frames scale to match project aspect ratio and frame rate; delivery specs must define画幅与帧率when stills are present. -
- 入点:<秒>/- 出点:<秒>/- 时长:<秒>— Values must be self-consistent (出点 - 入点 == 时长). Express strictly in seconds with two decimal places (no timecodes or frame counts). -
- 取舍:入点=<理由>;出点=<理由>— Detail specific visual events rather than generic phrases like "pacing needs". Reasons must match source footage facts and shot narration goals. -
- 声音:<本段声音怎么处理>— Log whether original audio is kept or externally processed. This metadata line does not trigger built-in render mixing. -
- 画面:<接镜校正>,- 画面:无, or- 画面:不校— Manual correction takes a combination of "亮度 <数值>", "饱和 <数值>", "色温 <数值>", separated by;. Setting this overrides auto-matching;无performs default auto-matching;不校disables color matching entirely. See Color Consistency & Shot Matching. -
- 字幕:<逐字台词原文>or- 字幕:无. If a shot has multiple dialogue lines, use numbered format with relative timestamps:- 字幕 1:0.20-1.50 请进,- 字幕 2:2.30-4.30 门没有锁. Numbers start from 1 sequentially, times are relative to CUT in-point and cannot overlap; out-points may exceed shot duration (see Still Frame Cuts). Highlight keywords by adding(重点:<词>|<词>)at the end of a line (words must appear in the text and will render yellow). Subtitle text color is determined by line origins in剧本.md: default dialogue is white,[VO] 系统:is cyan, and other[VO]lines are light cyan (do not write colors manually in edit lists). -
- 画面文字 N:<起>-<止> <样式> <项>|<项>…— Since video models fail at accurate text generation, retain clean visual background space and letrendercomposite UI panels, countdowns, and follower counts. Every item must map to a[画面文字]line in剧本.md. Single lines can omit numbers; numbering/time rules match subtitles. UI panels share top screen placement while corner badges occupy top-right; elements at the same position cannot overlap.Style Position of Elements 卡片One line per item: first word is name, last word is value, middle is unit ( 主号 粉丝 2|小号 1)系统面板Item 1 is status text rendered verbatim; remaining lines are rewards 任务面板Title, target (verbatim); item formatted as <数> / <数>is progress, remaining items are reward tags角标Concatenates items into a single tag line Append rarity tags like
(传说),(史诗), or(稀有)to reward items (defaults to rare if unspecified; rarity is styling, not verbatim text).任务面板and角标can append(倒计时:<秒>)to display as4天 23:59:58ticking down per second;(倒计时:接续)continues from the previous segment's countdown. When adjacent cuts share identical badge tags touching endpoints, they render seamlessly without re-entrance animations. Built-in labels like【系统提示】,【新任务】, and进度belong to styles—do not write them explicitly in edit lists. -
- 音效 N:<起>-<止> <项目相对路径>(起点:<秒>;增益:<dB>)— Extracts止 - 起seconds from audio start (default 0) and mixes into original audio at specified cut offset. Parenthetical options are optional and order-independent; gain spans -40 to +6 dB. Unnumbered format allowed for single entries. -
- 运镜:<固定|推近 n%|推近 r%/秒|…>— Applied strictly to still frame cuts; directional moves include zoom out, pan left, pan right, tilt up, tilt down.nspecifies amplitude range 1–30%,rsets speed 0.1–10/sec (decimals supported), defaulting to static. See Still Frame Cuts for camera motion behaviors. -
- 配音 N:<起> <项目相对路径>(起点:<秒>;增益:<dB>)— Plays voiceover from start to finish beginning at target offset起seconds. Bracket rules match sound effects. Offset起can be negative, allowing audio to cross cut boundaries; see rules in Still Frame Cuts. -
- 环境声:[<起>] <项目相对路径>(起点:<秒>;增益:<dB>)or- 环境声:[<起>] 无— Loops ambient audio background starting at offset起(default 0, supports negative) until stopped by another环境声line or explicit无. See Still Frame Cuts.
-
-
Document unselected source shots near the top of the body:
- 未采用镜头:<MOTION-...>(理由:……), separated by;. Categorize reasons clearly into Missing Files (unproduced / failed) or Unusable Quality (visual defects), or document narrative decisions. Determine whether to re-render or request upstream revisions before sourcing replacement assets.SHOT-...can also be listed when still cuts are used; see tracking rules in Still Frame Cuts. -
A single
MOTION-...asset can be split across multipleCUT-...entries (using different sections of source footage) or omitted entirely. Cuts without source assets are strictly invalid. -
If a source video is reused, two
CUT-...ranges must not overlap: rendering identical frames twice constitutes accidental duplicate footage rather than intentional reuse. If repeating frames intentionally (flashbacks, emphasis), explicitly document that the repetition is deliberate and explain why it remains narrative-valid.
Boundaries
- Do not generate new assets. Return to
$short-drama-producefor re-shoots, re-renders, or reference image updates; return to$short-drama-video-promptsor$short-drama-image-promptsfor prompt adjustments. - Do not alter upstream narrative meaning. Edit lists may exclude dialogue lines (by dropping an entire shot), but must not alter dialogue text. Highlight script-level issues explicitly and hand off to
$short-drama-write. - Follow original script audio design. Preserve dialogue, VO, and OS lines without adding unscripted commentary; return to writing stage if new narration is needed.
- Do not confuse technical execution with aesthetic quality. Successful render outputs, matching durations, and existing files do not guarantee an engaging cut. Hand off quality evaluations to
$short-drama-reviewor human creators. - Deliver based on approved goals. Fix technical delivery defects directly, but defer new creative directions or material requests to creator decision.
Commands
Commands are provided by edit_tool.py:
python3 <skill-dir>/scripts/edit_tool.py check <剧集/EP001> --project-root <project>
python3 <skill-dir>/scripts/edit_tool.py render <剧集/EP001> --project-root <project> [--no-subtitles] [--subtitles ffmpeg|remotion] [--remotion-concurrency N]
python3 <skill-dir>/scripts/edit_tool.py verify <剧集/EP001> --project-root <project>
check performs validation without rendering: verifies source recency relative to edit lists (re-renders mandate re-checking subtitle, text overlay, and FX timings), checks range consistency, resolves source IDs and shot fates, checks file existence, ensures ranges stay within source durations, confirms non-overlapping source ranges, matches subtitles against 剧本.md, verifies screen text against [画面文字] lines, checks countdown continuation logic, validates audio file availability within segment bounds, and checks dialogue/VO overlaps across video limits. Missing ffprobe or ffmpeg binaries report specific checks as "unmeasured" with explicit reasons rather than failing silently.
render trims segments according to edit lists, applies camera moves to still frames, performs auto color-matching within scenes, concatenates clips, mixes sound effects/VO, burns subtitles/screen text, normalizes loudness, and exports to 剧集/<EP>/制作成果/成片/.
verify measures rendered master files to report metrics, logging start/stop timings for overlays, FX, VO, cut-point brightness changes, and suspected bad frames for review; it alters no files and makes no quality judgements.
Subtitles burn via libass-enabled ffmpeg by default. --subtitles remotion enables custom graphical layouts at the cost of Node dependencies and frame-by-frame headless browser rendering across the entire project—demanding high CPU/RAM usage (default concurrency is 2 via --remotion-concurrency). Screen text overlays strictly require Remotion: if edit lists include screen text, render requires Remotion regardless of subtitle backend and errors out with setup instructions if missing. Subtitles rendered via ffmpeg composite on top of screen text. See tradeoffs in Audio, Subtitles, and Music and installation steps in Remotion Overlays.
render retains trimmed intermediate files. It only performs segment cuts, still-frame moves, hard concatenation, audio overlay mixing, subtitle styling, screen text, color matching corrections, and master loudness normalization. It does not execute custom mixing plans listed in 声音 lines, nor does it perform automatic target aspect ratio scaling or frame rate conversion. Perform mixing, subtitle collision avoidance, custom transitions, or aspect ratio conversion using external NLE tools and document changes before final verification.
On-Demand References
Review this SKILL document, current storyboards, video prompts, and assets first; read original script texts when handling subtitles. Consult references as needed:
- Phase boundaries and rule priorities: Stage Contract
- Usable ranges, defects, and selection rules: Usable Ranges for Generated Footage
- Motion comic keyframes, camera moves, and VO: Still Frame Cuts
- Cut points, order, and pacing: In/Out Points and Shot Order
- Audio seams, subtitles, and music placement: Audio, Subtitles, and Music
- Verifiable metrics and delivery: Delivery & Verification
- Complete edit list sample: Edit List Sample
- Screen text styling and Remotion subtitles: Remotion Overlays
Revisions
Preserve unaffected CUT-... IDs during revisions. Adjusting in/out points for one cut must not alter other segments; when removing a segment, explicitly document which shot absorbs its narrative function or state that the information is intentionally dropped. Always update edit lists before re-rendering so documentation stays ahead of output files.
Completion Criteria
Completion is achieved when every CUT-... maps to physical assets with consistent time ranges, spoken dialogue remains intact and audible, subtitles match script text verbatim, cuts contain no audible audio pops or harsh bed trims, master loudness meets target specs, and unused shots are logged with explicit failure/quality reasons. Report duration variances and potential fine-cut recommendations in the summary report for creator review.
Installation & Maintenance
Run python3 scripts/selftest.py only during installation, upgrades, or troubleshooting.





