generate-comic-drama-video
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "generate-comic-drama-video":https://skillpi.com/zh/skills/deepskill-e383ba84390d09a7ec1be75d7a8774a0c72317eef481785d5b3da9f19b2489a8。安装前核对上游来源和版本:https://skillhub.cn/skills/user_cd31594f/generate-comic-drama-video。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
skillhub.cn
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
通过环境预检、引导式用户输入、故事审批、一次综合视觉审查、场景级旁白、短同步字幕以及经过验证的 HyperFrames MP4 最终化处理,创建风景类漫画戏剧视频。适用于漫剧、动态漫画、漫画故事视频、AI 漫画视频、语音对比、旁白插图故事或修复不自然的短句 TTS 语调;支持 gpt-image-2、小米 MiMo 预设/定制语音、可选背景音乐、最多 600 个场景,并严格限制在 15 分钟时长内。
介绍来源: third_party · user_cd31594f · 1.0.1 参考来源
SkillPi 解读
- 能完成的任务
- Create landscape comic-drama videos through environment preflight, guided user intake, story approval, one combined visual review, scene-level narration, short synchronized captions, and verified HyperFrames MP4 finalization. Use for 漫剧、动态漫画、漫画故事视频、AI 漫画视频, voice comparison, narrated illustrated stories, or fixing unnatural short-line TTS cadence. Supports gpt-image-2, Xiaomi MiMo preset/designed voices, optional BGM, up to 600 scenes, and a hard 15-minute duration.
- 实测状态
- 未测试
文件浏览
Frontmatter
name: generate-comic-drama-video
description: "Create landscape comic-drama videos through environment preflight, guided user intake, story approval, one combined visual review, scene-level narration, short synchronized captions, and verified HyperFrames MP4 finalization. Use for 漫剧、动态漫画、漫画故事视频、AI 漫画视频, voice comparison, narrated illustrated stories, or fixing unnatural short-line TTS cadence. Supports gpt-image-2, Xiaomi MiMo preset/designed voices, optional BGM, up to 600 scenes, and a hard 15-minute duration."Generate Comic Drama Video
Check the environment and guide the user first. Then create the story, obtain explicit story and combined visual approvals, generate audio, and render. Keep narrative decisions flexible; keep state transitions and media processing deterministic.
Required references
Read references/workflow.md at the start of every new project. Read references/runtime.md before the first live image, TTS, BGM, or render command. Read references/production-lessons.md when resuming partial provider jobs, revising narration after image approval, diagnosing abnormal TTS duration, or finalizing a render. Use references/story.schema.json as the canonical data contract.
Stage 0: Preflight and user guidance
Run the environment check before scaffolding or provider calls. Select only the providers the run needs; omit --bgm unless the user explicitly requested local music:
export COMIC_SKILL="${CODEX_HOME:-$HOME/.codex}/skills/generate-comic-drama-video"
python3 "$COMIC_SKILL/scripts/preflight.py" \
--image-provider external --tts-provider xiaomi_mimo --json
Resolve every missing required item before generation. Report environment variable names, never secret values. Optional Kokoro, MusicGen, Whisper, and Docker failures do not block a Xiaomi-MiMo narration-only run.
Guide a new user with this concise intake, omitting questions already answered:
- Required: story theme or one-sentence premise.
- Optional: style/reference image; otherwise generate a visual anchor.
- Optional: narrator gender, tone, perspective, speed, and language.
- Optional: caption length; default to 24 characters.
- Optional: BGM choice; default to no music.
- Optional: audience, ending, and prohibited content.
State the defaults and proceed when optional inputs are absent. Do not ask for target duration or scene count. Never ask the user to paste an API key into chat; direct them to configure the named environment variable.
Use these defaults when the user does not override them:
- Visuals: generate an anchor from the story theme.
- Narration: one neutral narrator in the story language, third-person perspective, speed 1.0. Use MiMo
mimo_defaultwhen Xiaomi is configured; otherwise use the documented local fallback. - Captions: 24 characters per displayed narration unit.
- Audio: no BGM and no sound effects.
- Ending: resolve the narrative naturally without adding a moral or call to action.
Initialize
Collect only inputs that affect the result:
- Story theme or premise.
- Optional user style/reference image.
- Narrator provider, model, voice, tone, speed, and language for this run.
- Caption length preference; default
project.caption_max_charactersto 24 when unspecified. - Whether the user explicitly wants BGM. Default it to disabled.
- Any explicit content, audience, or ending constraints.
Do not ask for a target duration or scene count. Let the story determine both, while enforcing at most 600 scenes and 900 seconds.
Create a dedicated project directory, scaffold it with HyperFrames, then run its doctor:
export COMIC_SKILL="${CODEX_HOME:-$HOME/.codex}/skills/generate-comic-drama-video"
npx hyperframes init comic-drama-project --non-interactive
cd comic-drama-project
npx hyperframes doctor
cd ..
Use assets/example-story.json as a structural example, not as story content.
Stage 1: Write the story JSON
Write story.json before generating any media.
- Build a complete narrative arc with setup, escalation, climax, and resolution.
- Split on a real visual beat: location, time, dominant action, point of view, or emotional reveal.
- Keep consecutive narration units in the same scene when one image can support them.
- Give each scene exactly one differential
image_promptand one or more complete narration entries. Each entry is one displayed caption; split at natural spoken boundaries so it stays withinproject.caption_max_characters. - Define every recurring character once under
characters; keep appearance and wardrobe concrete. - Set
visual_style.modetouser_referencewhen an image is supplied, otherwisegenerated_anchor. - Set
audio.sfx_enabledtofalse. Setaudio.scene_gap_secondsto0.35for scene-level MiMo narration. Setaudio.bgm.enabledtofalseunless the user explicitly asks for music. Only define and generate local MusicGen prompts when enabled. - Keep
approvals.storyaspendingandstageasstory_review.
Validate immediately:
python3 "$COMIC_SKILL/scripts/validate_story.py" comic-drama-project/story.json
Fix every error. Then present the complete script for user review, not only an outline, summary, or scene list. The review must include the full story content and, for every scene in order, the scene ID/title, complete visual beat or image_prompt, and every narration entry verbatim as the corresponding spoken paragraph. Do not truncate, collapse, paraphrase, or replace narration with counts or excerpts. If the script is too long for one message, split it into clearly numbered review parts and present every part before requesting approval. After revisions, re-present the complete revised script, or the complete revised scenes together with an explicit list of unchanged scenes when the user requested a narrowly scoped change. Stop until the user explicitly approves the displayed script. Record approvals.story: approved, set stage: visual_review, and never infer approval from silence.
Stage 2: Generate and review all visuals
Use the fixed reference strategy. Never chain one scene image into the next scene. Generate the visual anchor when needed, all character sheets, and all scene images before requesting one combined visual approval.
Configure the external OpenAI-compatible endpoint without exposing credentials:
export COMIC_IMAGE_BASE_URL="https://provider.example/v1"
export COMIC_IMAGE_API_KEY="..."
export COMIC_IMAGE_MODEL="gpt-image-2"
Generate the full visual package in order. The wrapper skips anchor generation when the user supplied a reference image:
python3 "$COMIC_SKILL/scripts/generate_visuals.py" comic-drama-project/story.json \
--project-dir comic-drama-project --concurrency 3 --attempts 3
Never ask the user to paste a key into chat. Never store a key in story.json, manifests, command output, or source files.
The dispatcher must:
- Call the installed imagegen CLI rather than a custom OpenAI SDK runner.
- Use
gpt-image-2only. - Use the edits endpoint for every scene because references are present.
- Put the style reference first and relevant character sheets after it.
- Omit
input_fidelity;gpt-image-2already uses high fidelity for image inputs. - Use one request per distinct scene and retry each failed scene at most three times.
- Preserve
build/image-manifest.jsonand skip completed outputs on resume. - Keep text, subtitles, speech bubbles, watermarks, panels, borders, and collages out of generated images.
Do not send 600 scenes as one API job. Keep concurrency conservative and lower it when the provider rate-limits.
Show the style reference/anchor, every character sheet, and all scene images or review sheets together. Stop once for explicit visual approval. On approval, set both legacy-compatible fields approvals.style_and_characters: approved and approvals.scene_images: approved, then set stage: audio_generation. These are one user-facing approval gate, not two separate stops.
If narration changes after scene-image approval, compare every revised scene against its approved image. Perspective, wording, and caption splitting may change without regeneration; location, job, action, visible object, character, age, or time changes require a new image review and may require regeneration.
Stage 3: Generate narration and optional music
Set MiMo credentials only when narrator.provider is xiaomi_mimo. The story records the provider, model, and voice; the key remains environment-only:
export COMIC_TTS_BASE_URL="https://api.xiaomimimo.com/v1"
export COMIC_TTS_API_KEY="..."
Never pass or print the key in a command argument, manifest, or source file. MiMo uses POST /v1/chat/completions: place stable voice and delivery direction in the user message and the exact scene narration in the assistant message. Use a documented preset voice with mimo-v2.5-tts, or a stored voice_design description with mimo-v2.5-tts-voicedesign.
When the user wants to choose a voice, generate comparable samples before full narration. Use the same text and speed for every candidate:
python3 "$COMIC_SKILL/scripts/generate_voice_previews.py" \
--project-dir comic-drama-project --speed 1.5 --concurrency 7
Stop for explicit voice approval. Record the selected preset or the exact designed-voice description in story.json.
For Xiaomi MiMo, generate one continuous WAV per approved visual scene. Do not send each short caption as a separate TTS request. The scene-level helper keeps sentence openings direct, disables pause compaction, joins scenes with audio.scene_gap_seconds, applies the numeric speed once to the complete master track, then aligns the short captions to detected sentence pauses:
python3 "$COMIC_SKILL/scripts/generate_scene_audio.py" comic-drama-project/story.json \
--project-dir comic-drama-project --concurrency 10
Use generate_audio.py only for the local Kokoro fallback or when the user explicitly requests legacy caption-level TTS. MiMo concurrency accepts 1-10; use 10 only when the provider account supports it. Treat assets/audio/narration-timeline.wav and its probed duration as authoritative. Review build/audio-alignment.json; proportional fallback means no usable pause was detected for at least one scene and should be audited before render. Designed-voice production requests must keep optimize_text_preview false. If the timeline exceeds 900 seconds, do not render.
When audio.bgm.enabled is true, generate local instrumental background music after narration establishes the final duration:
python3 "$COMIC_SKILL/scripts/generate_bgm.py" comic-drama-project/story.json \
--project-dir comic-drama-project
Generate no sound effects. Keep the BGM volume below the narrator; the schema caps it at 0.35 and defaults to 0.14. When the user disables BGM, skip MusicGen entirely. The composition builder must produce a narration-only timeline without requiring a BGM manifest entry or file.
Stage 4: Build and render
Build the HyperFrames composition:
python3 "$COMIC_SKILL/scripts/build_hyperframes.py" comic-drama-project/story.json \
--project-dir comic-drama-project
The builder must preserve audio-manifest.json.master_audio when scene-level narration is present; do not reconstruct or overwrite the approved globally accelerated master. Legacy sentence-level projects may still be pre-mixed. Use one narration audio clip in HyperFrames.
The visible frame must contain only:
- One full-bleed 16:9 scene image using
object-fit: cover. - One whole-sentence caption at the bottom when narration is active.
Use the scene focal point for crop protection, a slow scale move, and a 0.5-second crossfade. Do not add visible titles, cards, UI, logos, borders, decorations, or sound-effect elements.
Run all quality gates before preview or render:
cd comic-drama-project
npm run check
npm run dev
Use the Studio URL printed by HyperFrames for review. For dense captions, also run npx hyperframes inspect --samples 30. Render a picture track to a distinct path, then finalize it with verified narration and optional BGM:
npx hyperframes render --output renders/comic-drama-video-only.mp4
python3 "$COMIC_SKILL/scripts/finalize_video.py" story.json \
--project-dir . \
--video renders/comic-drama-video-only.mp4 \
--output renders/comic-drama-final.mp4
Do not assume the HyperFrames renderer embedded audio. The finalizer requires exactly one 1920x1080 30 fps video stream and one audio stream, and rejects duration drift from build/audio-manifest.json.
Report the final story.json, approval state, image/audio manifests, Studio URL, and MP4 path.
Failure rules
- Stop on JSON validation errors, missing approvals, missing reference assets, or a timeline over 900 seconds.
- Preserve completed files and manifests after partial image or TTS failure.
- Treat a complete, structurally valid local PNG as success even when an upstream connection does not close; adopt it into the manifest instead of paying for a duplicate request.
- Retry image generation at most three times; then report exact failed scene IDs.
- Do not silently change model, style reference, narrator, or approved story content.
- Do not render with placeholder images, silent missing narration, or absent BGM when BGM is enabled.
- Never trade story coherence for a target scene count. The 600-scene value is a capacity limit only.
- Never use voice-preview optimization for production narration.
- Never apply
atempoindependently to short captions. Apply it once to the complete scene-joined master. - Never use
silenceremoveor other internal pause compaction on the scene-level path. - Never claim a final MP4 is complete until
ffprobeconfirms both video and audio streams.
Offline checks
Use dry runs before a live provider call:
python3 "$COMIC_SKILL/scripts/generate_images.py" comic-drama-project/story.json \
--project-dir comic-drama-project --phase scenes --dry-run --limit 2
python3 "$COMIC_SKILL/scripts/generate_visuals.py" comic-drama-project/story.json \
--project-dir comic-drama-project --dry-run
python3 "$COMIC_SKILL/scripts/generate_audio.py" comic-drama-project/story.json \
--project-dir comic-drama-project --dry-run --limit 2
python3 "$COMIC_SKILL/scripts/generate_scene_audio.py" comic-drama-project/story.json \
--project-dir comic-drama-project --dry-run --limit 2 --concurrency 10
python3 "$COMIC_SKILL/scripts/generate_bgm.py" comic-drama-project/story.json \
--project-dir comic-drama-project --dry-run
python3 "$COMIC_SKILL/scripts/generate_voice_previews.py" \
--project-dir comic-drama-project --dry-run当前收录版本
1.0.1
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 提供端到端漫画戏剧视频生成能力,覆盖故事创作、视觉生成、旁白合成、背景音乐、严格时长控制等完整流程
- 支持多场景类型(漫剧、动态漫画、AI 漫画视频)和多种语音选项(MiMo 预设/定制),具备高度实用性和灵活性
亮点
- description 清晰定义功能边界,涵盖核心能力、适用场景、技术限制(600 场景、15 分钟)和关键依赖
- 触发词完整且无歧义,用户可准确判断是否需要使用该 Skill
待提升项
-
部分命令示例排版可优化 原报告严重程度:轻微
部分 bash 命令块较长,建议增加换行或注释提升可读性
改进建议:对复杂命令添加行内注释或拆分为多行以提升可维护性
亮点
- 文档结构清晰,分阶段组织(Preflight、Story、Visual、Audio、Render),每阶段有明确目标和出口条件
- 包含完整示例、验证机制、失败规则和离线检查,frontmatter 完整,符合规范
待提升项
-
个别参数说明可更详细 原报告严重程度:轻微
部分脚本参数(如 --concurrency)未详细说明适用场景和推荐值
改进建议:补充关键参数的取值范围和性能影响说明
亮点
- 工具来源明确(HyperFrames、MiMo、gpt-image-2),参数使用正确,密钥通过环境变量隔离
- 具备重试机制、断点续做、验证检查、质量门控,确保执行过程可靠
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
-
安装或获取外部依赖
使用官方来源并锁定版本,在隔离环境检查安装脚本。当前文档检查不覆盖后续下载的代码。
主文档提及 · 第 62, 64, 194, 197 行 -
账号、密钥或授权
使用专用、最小权限账号,不把密钥粘贴到公开内容或命令日志;核对接收数据的服务与租户。
主文档提及 · 第 35, 95, 131 行
文档引用的域名或地址
这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。
- api.xiaomimimo.com
- provider.example
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。