Communitygithub.com

ai-video-director

帮用户完成原创短视频策划、口播、分镜、动效与画面选择、音画同步、整片渲染、质检与返修;也用于拆解参考视频、运镜及MG/3D动画、管理LW原创视觉库、合法外部引用库与素材索引/授权检索。When asked to create, edit, analyze, or revise a full video, use this production-oriented workflow.

ai-video-director 是什么?

ai-video-director is a Codex agent skill that 帮用户完成原创短视频策划、口播、分镜、动效与画面选择、音画同步、整片渲染、质检与返修;也用于拆解参考视频、运镜及MG/3D动画、管理LW原创视觉库、合法外部引用库与素材索引/授权检索。When asked to create, edit, analyze, or revise a full video, use this production-oriented workflow.

兼容平台~Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/wangzhijian0403/lw-video-director/tree/HEAD

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

AI Video Director & Professional Editor

Skill Route Version: v0.3.0-preview.1 (General Duration Video Production Workflow). The multi-shot production engine has been merged into main, but it has not yet passed full end-to-end quality acceptance for a stable release. The skill does not limit video length: 15 seconds, 30 seconds, 3 minutes, or more are all planned according to user intent, actual voiceover, content layers, and environment rendering capabilities. The original 30-second task was only a cross-genre regression acceptance example and should not be treated as the default length, upper limit, or mandatory shot count for a user's video.

The product has only two goals: professional, recognizable visual quality; and deliver a usable, high-quality final video with as little human intervention as possible. Do not replace real production capability with component count, UI completeness, or demo videos.

First, Determine What the User Wants to Do

  • "Make a new video, short or long, to test the skill or produce a final output" → General-Duration Production Mode: First determine the user-specified duration (if any), content volume, aspect ratio, subject, and pacing, then derive the actual duration and shot count based on actual measured speech and shot responsibilities. For longer content, organize the timeline by chapters/paragraphs, render in segments, and perform local quality checks. Do not force it into 30 seconds to fit a template. Deliver a real MP4, multitrack audio, subtitles, editable project, sources, and QA. Reference General Duration Policy; the 30-Second Sample Protocol is only a specific test case.
  • "Make a video, edit, deliver a video, give me a complete video, auto-create a Douyin for me" → Production Mode: Immediately read the Full Production Contract and Visual Quality Gate. Start production from licensed materials/subject, pushing as far as possible autonomously toward a reviewable full video. Do not turn every shot into a confirmation request, except for material rights, mandatory inputs, or critical steps that cannot be executed. Do not output only a plan or a single demo animation.
  • "Revise this section, fix subtitles/shots, re-edit" → Rework Mode: Read the existing project manifest and QA report, locate the timecode/shot, protect already approved parts; perform a local re-render and review adjacent seams. If no existing project exists, clearly state that.
  • "Analyze a video, study the creator, learn an effect" → Study Mode: Read Study Method, Case Index, and as needed Cinematography & Story, Motion & Transitions, Audio & Subtitles. Only produce evidence-based analysis; do not create or copy without permission.
  • "Find styles/components, reference external libraries" → Selection Mode: Read External Visual Library Integration Spec. Search within LW Originals and LW References; separate source from executable status.
  • "Deliver a real video (voiceover → visuals/audio/subtitles)" → Engine Mode: Read Production Pipeline. Write project.json in visual-studio/ (can reuse startFrame/durationFrames/componentId/props from episode.json), npm run lint:project to validate, npm run direct to render 1080p final video. Optionally npm run sfx to generate program sounds; reuse the locally authorized "Lao Wang 3.0_Compact" TTS voice when available, report blockage or use actual user-provided voice otherwise, do not silently switch to Windows system voices. Sound effect existence does not equal quality pass.

LW Asset Engine Core Capabilities

Before production and asset retrieval, read Asset Engine Spec. Convert voiceover meaning, emotion, shot responsibilities, and visual style into interpretable asset intent. Build a project asset index and review sources/permissions; only reference, allow download, allow adaptation, and verify executable independently recorded assets. Do not confuse ownership among user local assets, LW Originals, and LW References. Only automatically import/adapt/invoke authorized assets; publicly record original MG alternatives for missing ones. Deliver an asset usage list and copyright report; do not substitute thumbnail web pages for integration.

General Visual Asset Pack (First 24 Source-Verified SVGs)

When shots need icon/illustration semantic supplements, first read General Visual Asset Pack 01. Currently this is only the first Tabler MIT icon pack and does not represent a full collection of illustrations, real video, or commercial sound effects. You can run npm run assets:icons:check in visual-studio to verify source files, npm run assets:icons to view the manifest; in project.json use iconOverlays to overlay them on any FredTalk or LW Originals main scene with time, position, color, and animation parameters. Bypassing the resource whitelist for unknown-source icons is prohibited. SVG source code and licenses have been verified, but actual composited rendering/visual quality must continue to pass CI and real final video review; registering assets successfully does not mean artistic quality has passed.

Original Layered Illustrations & Local Asset Catalog

In addition to the 24 local SVG icons, new original layered illustration scenes have been added: ILLUS-STUDIO-01 (studio), ILLUS-CITY-01 (city nightscape), ILLUS-NATURE-01 (green mountains and valley). When a scene/narrative responsibility exists, they can be mixed directly with FredTalk and LW Originals in the scenes of project.json. See Scene Asset Pack 02 for details.

A local Asset Catalog has been added: you can preview installed original scenes, FredTalk real animations, and the 24 SVG icons, and view user role registrations. This is not an automatic search of all disk assets, and does not mean all external reference directories have source code. On Windows, in the updated repository root, double-click start-lw-studio.cmd, wait for the service to be ready, then access http://127.0.0.1:4173 via browser; /api/health can check service status. The visual quality of rendered scenes still requires real review; do not substitute test rendering passes for visual approval.

Production Mode Execution Contract

  1. Form the audience, emotion, and narrative mainline from the subject/materials. Determine aspect ratio, length, voiceover language, and priorities. Do not hardcode a global 30-second, 25–35 second, or 5–7 shot threshold; when the user does not specify duration, base it on the original script and actual measured speech, then set the number of shots and output plan according to scene complexity. Currently 1920×1080, 16:9, 30fps is the default landscape output verified by existing projects, not a permanently fixed aspect ratio; 9:16 requires native design and actual rendering acceptance.
  2. Generate a sentence-by-sentence script with verifiable facts/sources, plan the shot information responsibilities for each sentence, and form a project-level episode.json referencing the template. Voice generation/real recording and subtitle timecodes must come from the actual audio track; fabricating durations or ASR results is prohibited.
  3. Only select components with actual source code, registration, and rendering evidence in the current branch: LW Originals, MP-001, the 16 curated FredTalks that have entered main (15 of which passed initial visual review, 1 independently verified earlier), and new resources that have passed testing in this branch; the remaining FredTalk directory contents must not be treated as installed or passed review. When external icons, illustrations, Lottie, or FredTalk are needed, prioritize components with clear sources/licenses and verified status; mark unresolved ones as dependencies and adapt safely. Check rights for video material/screenshots/music separately. Avoid repeating the same template across the entire video or padding with irrelevant geometric objects.
  4. Use python scripts/episode_preflight.py <episode.json> --phase plan to validate the shot table; before attempting full output, use --phase render to check voiceover, subtitles, rights, video aspect ratio, and verified full-video engine capabilities. If checks fail, resolve the gaps first; do not fake a PASS.
  5. Provided real implementation exists, execute full video assembly, voiceover, subtitles, BGM/SFX mixing, and MP4 export; use scripts/validate_export.py and actual viewing to check for black frames, pacing, Chinese subtitles, local occlusion, shot coherence, audio-sync, clipping, and copyright. Do not claim "auto-output complete" without actual local runtime verification.
  6. Deliver final video + editable production configuration/project + subtitles and script + QA report + asset/license ledger. If the environment lacks TTS, ASR, full-video compositing, or assets, report the completed stages, specific blockers, and the shortest solution. Do not present component test videos without an audio track as complete final videos.

Current Capability Boundaries (Must Self-Check Actively)

  • [Engineering evidence exists in this branch] The Remotion Project Composition in visual-studio/, timeline.mjs, direct.mjs, subtitles, voiceover master, and SFX/BGM tracks can form a multi-shot video; the "Papermaking" video has 11 shots and 83.7 seconds of local output evidence, but its visual quality has not passed official release acceptance. Five LW Originals, MP-001, and single-component export from the workbench are still retained. See Production Pipeline.
  • [Partially verified] The local 7788 TTS "Lao Wang 3.0_Compact" voice was previously used for actual voiceover in this project; the service, voice, and personal credentials are not committed with GitHub, and must be confirmed available in the new execution environment. Subtitles can be arranged based on actual audio/SRT; there is no universal word-level ASR/forced alignment guarantee.
  • [Unverified or incomplete] Automatic shot breakdown for arbitrary copy, automatic material selection for arbitrary subjects, general aesthetic arrangement, cross-genre automatic generation, 9:16 full-video actual rendering, cross-platform reproducibility, mature localized re-rendering/remixing, and subjective audio sound quality gates are still unfinished or insufficiently verified. Do not claim these capabilities are complete just because a technical tool can run.
  • [Branch isolation] FredTalk batch adaptation is in Draft PR #8 (depends on #6); this short-video branch has not merged it, so it cannot be treated as a directly invocable production component; the papermaking subject components in PR #7 do not imply cross-genre general components. When referencing is needed, pass independent licensing, rendering, and seam verification.
  • Only external components that have passed source, license, dependency, actual rendering, and visual review step by step can enter formal production candidates; third-party media rights and component code licenses must be verified separately.
  • All conclusions must be marked as [Measured], [Observed], [Inferred], [Verified Pass], or [Needs Confirmation]. Passing code execution does not equal visual acceptance. Do not upload to platforms without user authorization.

Asset Engine Actual Operation

asset_engine.py handles local import, media probing, SQLite indexing, online candidates, license verification, semantic intent recommendation, and selection; asset_timeline.py binds authorized assetIds to actual visuals, voice, subtitles, music, and MG overlays, producing a usage list and copyright report. Before execution, read Fields, Commands & Limitations. This adapter has completed private full-video verification locally, using FFmpeg/PyAV compositing and calling trusted Remotion MG; this does not mean a native Remotion full-video engine or general subject-to-final-video capability is complete.

Existing Tools

scripts/inspect_media.py for listing, deduplication, and stream probing; extract_frames.py for frame extraction; detect_shot_candidates.py for shot detection; analyze_audio.py for mixed audio measurement; validate_export.py for output checking; render_components.py for rendering original 2D demos. Scripts support --help. See Workflow & QA, Audio & Subtitles for actual usage and limitations.

When modifying code and knowledge base, retain source, version, data, and test records; do not overwrite user original videos or existing projects; develop in independent workspaces/branches; do not silently modify the global skill.

Workbench Navigation Rules (Unified Resource Library): The workbench's Originals is the only installed resource entry. On the left, retain the 15 original component categories; meanwhile, enter 3 original layered scenes, 16 FredTalk integrated animations, 24 Tabler SVG icons, and 5 local role registrations. References is for external reference searching only; do not treat as executed code. The new version no longer has a separate top-level "Asset Catalog". Browsing/previewing resource categories does not equal one-button export: the current single-component MP4 export in the top-right corner only supports original Originals components; new resources must be rendered via the existing full-video commands in ProjectVideo/project.json. If the verified fish/wave and codex/typing have local private WebMs, they can preview safe clips on light/dark backgrounds; other roles are only registered as not-passed. Do not upload private media.

相关技能