process-storyboard-tasks
GitHub处理本地故事板队列中的图像和视频生成任务。通过MCP工具列出并认领待处理任务,验证环境依赖(如ImageGen、HyperFrames或Remotion)后执行渲染。优先复用本地资源,按需安装缺失工具,确保资产正确输出到指定目录。
触发场景
安装
npx skills add Yuuhann1999/codex-storyboard --skill process-storyboard-tasks -g -y
SKILL.md
Frontmatter
{
"name": "process-storyboard-tasks",
"description": "Process pending Codex Storyboard image and video generation tasks. Use when the user asks to generate storyboard assets, process the storyboard queue, generate all shots, generate a specific storyboard row, or return Image Generation, HyperFrames, or Remotion outputs to the local storyboard."
}
Process Codex Storyboard Tasks
Process the local storyboard queue. The MCP tools start the bundled local app automatically when needed and default to http://127.0.0.1:43218.
If the current Codex session does not expose Storyboard MCP tools such as list_storyboard_generation_tasks, claim_storyboard_generation_task, or complete_storyboard_generation_task, first use tool_search to search for codex storyboard and load the deferred tools. Only if tool_search is unavailable or cannot find them, tell the user to start a new Codex conversation or restart Codex so plugin tools are reloaded.
Workflow
-
Call
list_storyboard_generation_taskswith statuspending. -
Inspect the generators used by the pending tasks and verify the matching local capabilities before claiming anything:
image-genrequires the built-inimagegenskill and image generation tool.hyperframesrequires the HyperFrames and HyperFrames CLI skills.remotionrequires the Remotion skill and its local rendering toolchain.
If a required capability is unavailable, do not claim affected tasks. Report the exact missing capability and continue with tasks whose generators are available.
-
Probe the local environment with read-only checks before deciding to install anything:
- Check Node.js, npm, and pnpm availability and versions.
- Check whether the task
outputDir, active workspace, or chosen render directory already haspackage.json, a lockfile, andnode_modules. - Check for local CLIs with existing project commands such as
pnpm exec ...,npm run ..., or executable files undernode_modules/.bin. - Check for global CLIs only with non-installing commands such as
command -v,where, or direct--versionafter the command is found. - Check whether Chromium, FFmpeg, or tool-specific render caches already exist when the selected renderer needs them.
Do not use commands that can implicitly download packages as probes. Do not run
npx remotion,pnpm dlx, or package-managerexecforms that will install missing packages merely to test availability. -
Prefer existing render environments. Use local project dependencies first, then compatible global CLIs. Install only when a required tool is missing, incompatible, or no local dependency set exists. Any install must be explicit and must go into the task
outputDiror a dedicated renderer cache, not into the user's unrelated project. -
Process available tasks one at a time.
-
Before generating, call
claim_storyboard_generation_task. -
If the claimed task has
hasDesign: true, read the complete Markdown file at the exact absolutedesignPathbefore generating anything. Apply it as the project-wide visual system:visualPromptdefines the concrete shot subject and requested content.DESIGN.mddefines shared visual style, color, typography, composition, texture, and motion language.- An explicit shot requirement takes precedence if it conflicts with the general visual system.
-
Route by
generator:image-gen: use the built-inimagegenskill and built-in image generation tool. TreatvisualPromptas the primary prompt and honor the task'saspectRatio. If the task includesreferenceImagePath, use that local image as the visual reference/input for the generation or edit. Copy the final verified image into the active workspace before completing the task.hyperframes: use the HyperFrames and HyperFrames CLI skills. Create a self-contained composition using the task'swidth,height, duration, andvisualPrompt, then lint, inspect, render to MP4, and verify the output.remotion: use the Remotion skill. Create or reuse a Remotion composition using the task'swidthandheight, render an MP4 matching the task duration, and verify the output.
-
Technically verify each generated video before completion: the file exists, is readable, has the requested
widthandheight, has a duration close to the task duration, and has a valid video stream/codec. Then visually inspect representative frames to ensure the render is not blank, black, or the wrong composition. -
Call
complete_storyboard_generation_taskwith the exact absolute output path and correct media type. -
If generation or verification fails, call
fail_storyboard_generation_taskwith the concise cause. -
Continue until no processable pending tasks remain.
Output locations
Use the exact absolute outputDir supplied by the task. Keep all generated source code, intermediate files, and final outputs for that task inside this directory. The MCP completion tool copies the final image or video into the storyboard media directory.
Guardrails
- Do not mark a task complete until the exact local file has been visually or technically verified.
- Do not silently switch a requested HyperFrames task to Remotion, or vice versa.
- Do not use external API keys for Image Generation when the built-in image tool is available.
- Do not process
manualgenerator rows. - Preserve the requested duration for video tasks.
- Preserve
projectId,aspectRatio,width, andheight; never return an asset to a different project. - Never guess, truncate, or partially read
DESIGN.mdwhenhasDesignis true. - Do not apply a DESIGN.md from the active workspace or another project; only use the task's exact
designPath. - Do not write video project files outside the task's exact
outputDir.
版本历史
- ac9057d 当前 2026-07-19 08:55


