Comic Drama Generate
Use this skill to produce short comic-drama episodes through a deterministic, character-consistent pipeline.
Required prerequisite skills
Require these skills before using this skill:
- - INLINECODE0
- INLINECODE1
- INLINECODE2
If any are missing, install them first. Use this install pattern:
CODEBLOCK0
Before starting production, verify:
- - all three prerequisite skill folders exist
- required API credentials are configured for the prerequisite skills
- INLINECODE3 is available locally
- there is enough credit/quota for script, image, and video generation
Credential note:
- -
comic-drama-generate orchestrates other skills and does not introduce its own separate API key. - The prerequisite skills use their own environment-variable contract, typically
NANOPHOTO_API_KEY. - Prefer normal sub-skill execution that relies on the prerequisite skill's configured env.
- If direct script execution is necessary, first preserve the same env contract by ensuring
NANOPHOTO_API_KEY is present in the shell. - Use explicit
--api-key only as a fallback when the shell cannot inherit the expected env. - Do not treat direct reads from config files such as
openclaw.json as the primary workflow; reserve them for debugging or recovery paths.
Mandatory production order
Always follow this exact order.
- 1. Ask the user for style first
- Ask for visual style before generating anything.
- Also confirm tone, audience, episode count, target platform, aspect ratio, and approximate episode duration.
- Lock the series bible first: premise, character roster, style keywords, and production constraints.
- 2. Use
video-prompt-generator to generate the script foundation
- Generate the story premise, dramatic arc, episode beats, and scene-level writing foundation.
- Make the episode structure suitable for short-form serialized漫剧.
- Keep the pacing compatible with downstream 15-second shot generation.
- 3. Use
nano-banana-pro to generate character turnarounds
- Generate character three-view sheets for all core recurring characters.
- Treat the three-view sheets as the canonical identity source for face, hair, silhouette, wardrobe, and palette.
- Do not skip this step when character consistency matters.
- 4. Use
nano-banana-pro to generate keyframes
- Generate keyframes for each planned shot using the turnaround image URLs as reference inputs.
- For multi-character shots, include all relevant turnaround URLs.
- Use keyframes to lock composition, costume continuity, environment cues, and emotional staging.
- 5. Use
video-prompt-generator to write the storyboard / shot script
- Convert each episode into shot-level prompts and a shot list.
- Write for single-shot generation with clean handoff into video prompts.
- Leave a hook at the end of every episode.
- 6. Use
sora-2-generate to create 15-second single-shot videos
- Default to 15-second shots unless the user explicitly wants a different supported duration.
- Prefer
imageToVideo for character shots.
- Pass keyframe URLs as image inputs.
- Use
textToVideo only for shots where character consistency is unimportant, such as atmosphere inserts or environment transitions.
- 7. Use local
ffmpeg to trim, arrange, and merge clips
- Download and save each finished shot locally.
- Trim or normalize clips locally if needed.
- Merge shots in deterministic order with
ffmpeg.
- Export final episode cuts under a dedicated project directory.
Non-negotiable working rules
- - Prefer this consistency chain at all times:
- character turnarounds → keyframes → image-to-video
- - Use public URLs, not local file paths, when passing assets between:
- character turnarounds → keyframes
- keyframes → video generation
- - Do not pass local files into
nano-banana-pro or sora-2-generate APIs for these handoff steps. - Do not skip directly from text prompt to final video for main character shots unless the user explicitly accepts weaker consistency.
- Keep exact turnaround and keyframe URLs recorded in project docs because downstream generation depends on them.
- Rewrite storyboard timing before generation if model limits, quota, or rate limits make the original plan unrealistic.
Story and pacing guidance
- - Design shots around the active video model's supported duration.
- For this workflow, prefer a shot grammar that fits 15-second single-shot clips.
- If an episode needs more time, split it into more shots rather than overloading one prompt.
- Ensure each episode ends with a hook, reveal, reversal, question, or emotional cliffhanger.
Suggested project structure
CODEBLOCK1
Execution notes
- - Use
video-prompt-generator twice when needed:
- once for premise / episode writing
- once for shot-level prompt refinement
- - Use
nano-banana-pro for both:
- character turnaround generation
- keyframe generation
- - Use
sora-2-generate mainly in imageToVideo mode for character-led shots. - Use local
ffmpeg for final editorial assembly, not remote editing tools.
Expected deliverables
Produce organized outputs that make the project easy to resume:
- -
docs/series-bible.md — premise, style, characters, world rules - INLINECODE26 — episode summaries and hook endings
- INLINECODE27 — shot-by-shot structure for each episode
- INLINECODE28 — turnaround URLs, keyframe URLs, and video URLs
- local shot files under INLINECODE29
- local edit outputs under INLINECODE30
- final episode exports under INLINECODE31
Read these references when needed
- -
references/workflow.md — end-to-end production workflow - INLINECODE33 — prerequisite skill verification and install steps
- INLINECODE34 — character turnaround, keyframe, and image-to-video consistency rules
喜剧短剧生成
使用此技能通过确定性、角色一致的流程生成短篇喜剧短剧剧集。
必备前置技能
使用此技能前需要先具备以下技能:
- - video-prompt-generator
- nano-banana-pro
- sora-2-generate
如缺少任一技能,请先安装。使用以下安装模式:
bash
npx clawhub@latest install video-prompt-generator
npx clawhub@latest install nano-banana-pro
npx clawhub@latest install sora-2-generate
开始制作前,请确认:
- - 三个前置技能文件夹均已存在
- 前置技能所需的API凭证已配置
- 本地已安装ffmpeg
- 脚本、图像和视频生成有足够的额度/配额
凭证说明:
- - comic-drama-generate负责编排其他技能,不引入自身独立的API密钥。
- 前置技能使用各自的环境变量约定,通常为NANOPHOTOAPIKEY。
- 优先使用依赖前置技能已配置环境变量的常规子技能执行方式。
- 如需直接执行脚本,请先确保Shell中存在NANOPHOTOAPIKEY以保持相同的环境变量约定。
- 仅在Shell无法继承预期环境变量时,才使用显式--api-key作为后备方案。
- 不要将直接从配置文件(如openclaw.json)读取作为主要工作流程,仅将其保留用于调试或恢复路径。
强制生产顺序
始终严格遵循以下顺序。
- 1. 首先向用户询问风格
- 在生成任何内容之前,先询问视觉风格。
- 同时确认基调、受众、剧集数量、目标平台、画面比例和大致剧集时长。
- 先锁定系列设定文档:前提、角色阵容、风格关键词和生产约束条件。
- 2. 使用video-prompt-generator生成剧本基础
- 生成故事前提、戏剧弧线、剧集节拍和场景级写作基础。
- 使剧集结构适合短篇连载漫剧。
- 保持节奏与下游15秒镜头生成兼容。
- 3. 使用nano-banana-pro生成角色三视图
- 为所有核心常驻角色生成角色三视图。
- 将三视图视为面部、发型、轮廓、服装和色调的规范身份来源。
- 当角色一致性重要时,不要跳过此步骤。
- 4. 使用nano-banana-pro生成关键帧
- 使用三视图图像URL作为参考输入,为每个计划镜头生成关键帧。
- 对于多角色镜头,包含所有相关三视图URL。
- 使用关键帧锁定构图、服装连续性、环境线索和情感调度。
- 5. 使用video-prompt-generator编写分镜/镜头脚本
- 将每个剧集转换为镜头级提示和镜头列表。
- 编写适合单镜头生成的内容,以便顺利过渡到视频提示。
- 每集结尾留下悬念。
- 6. 使用sora-2-generate创建15秒单镜头视频
- 默认使用15秒镜头,除非用户明确要求其他支持的时长。
- 角色镜头优先使用imageToVideo。
- 将关键帧URL作为图像输入传递。
- 仅在不要求角色一致性的镜头中使用textToVideo,例如氛围插入或环境过渡。
- 7. 使用本地ffmpeg修剪、排列和合并片段
- 将每个完成的镜头下载并保存到本地。
- 如有需要,在本地修剪或标准化片段。
- 使用ffmpeg按确定顺序合并镜头。
- 在专用项目目录下导出最终剧集剪辑。
不可协商的工作规则
- 角色三视图 → 关键帧 → 图像转视频
- - 在以下资产传递环节使用公共URL,而非本地文件路径:
- 角色三视图 → 关键帧
- 关键帧 → 视频生成
- - 在这些交接步骤中,不要将本地文件传递给nano-banana-pro或sora-2-generateAPI。
- 除非用户明确接受较弱的一致性,否则不要从文本提示直接跳转到主要角色镜头的最终视频。
- 在项目文档中精确记录三视图和关键帧URL,因为下游生成依赖它们。
- 如果模型限制、配额或速率限制使原计划不切实际,请在生成前重写分镜时间安排。
故事与节奏指导
- - 围绕活动视频模型支持的时长设计镜头。
- 对于此工作流程,优先使用适合15秒单镜头片段的镜头语法。
- 如果剧集需要更多时间,将其拆分为更多镜头,而不是让一个提示超载。
- 确保每集以悬念、揭示、反转、问题或情感高潮结尾。
建议项目结构
text
project/
docs/
series-bible.md
episodes.md
shot-list.md
asset-urls.md
assets/
characters/
keyframes/
shots/
ep01/
ep02/
edits/
final/
执行说明
- - 根据需要两次使用video-prompt-generator:
- 一次用于前提/剧集写作
- 一次用于镜头级提示优化
- - 使用nano-banana-pro完成以下两项任务:
- 角色三视图生成
- 关键帧生成
- - 对于角色主导的镜头,主要使用sora-2-generate的imageToVideo模式。
- 使用本地ffmpeg进行最终编辑组装,而非远程编辑工具。
预期交付物
生成组织有序的输出,使项目易于恢复:
- - docs/series-bible.md — 前提、风格、角色、世界规则
- docs/episodes.md — 剧集摘要和悬念结尾
- docs/shot-list.md — 每集的逐镜头结构
- docs/asset-urls.md — 三视图URL、关键帧URL和视频URL
- shots/下的本地镜头文件
- edits/下的本地编辑输出
- final/下的最终剧集导出
需要时请参考以下资料
- - references/workflow.md — 端到端生产工作流程
- references/install-checklist.md — 前置技能验证和安装步骤
- references/asset-rules.md — 角色三视图、关键帧和图像转视频一致性规则