Agent SkillsYuuhann1999/codex-storyboard › process-storyboard-tasks

process-storyboard-tasks

GitHub

处理本地故事板队列中的图像和视频生成任务。通过MCP工具列出并认领待处理任务,验证环境依赖(如ImageGen、HyperFrames或Remotion)后执行渲染。优先复用本地资源,按需安装缺失工具,确保资产正确输出到指定目录。

plugins/codex-storyboard/skills/process-storyboard-tasks/SKILL.md Yuuhann1999/codex-storyboard

触发场景

用户要求生成故事板资产 处理故事板队列 生成所有镜头 生成特定故事板行 将图像或视频输出返回至本地故事板

安装

npx skills add Yuuhann1999/codex-storyboard --skill process-storyboard-tasks -g -y
更多选项

非标准路径

npx skills add https://github.com/Yuuhann1999/codex-storyboard/tree/main/plugins/codex-storyboard/skills/process-storyboard-tasks -g -y

不安装直接使用

npx skills use Yuuhann1999/codex-storyboard@process-storyboard-tasks

指定 Agent (Claude Code)

npx skills add Yuuhann1999/codex-storyboard --skill process-storyboard-tasks -a claude-code -g -y

安装 repo 全部 skill

npx skills add Yuuhann1999/codex-storyboard --all -g -y

预览 repo 内 skill

npx skills add Yuuhann1999/codex-storyboard --list

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

  1. Call list_storyboard_generation_tasks with status pending.

  2. Inspect the generators used by the pending tasks and verify the matching local capabilities before claiming anything:

    • image-gen requires the built-in imagegen skill and image generation tool.
    • hyperframes requires the HyperFrames and HyperFrames CLI skills.
    • remotion requires 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.

  3. 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 has package.json, a lockfile, and node_modules.
    • Check for local CLIs with existing project commands such as pnpm exec ..., npm run ..., or executable files under node_modules/.bin.
    • Check for global CLIs only with non-installing commands such as command -v, where, or direct --version after 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-manager exec forms that will install missing packages merely to test availability.

  4. 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 outputDir or a dedicated renderer cache, not into the user's unrelated project.

  5. Process available tasks one at a time.

  6. Before generating, call claim_storyboard_generation_task.

  7. If the claimed task has hasDesign: true, read the complete Markdown file at the exact absolute designPath before generating anything. Apply it as the project-wide visual system:

    • visualPrompt defines the concrete shot subject and requested content.
    • DESIGN.md defines shared visual style, color, typography, composition, texture, and motion language.
    • An explicit shot requirement takes precedence if it conflicts with the general visual system.
  8. Route by generator:

    • image-gen: use the built-in imagegen skill and built-in image generation tool. Treat visualPrompt as the primary prompt and honor the task's aspectRatio. If the task includes referenceImagePath, 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's width, height, duration, and visualPrompt, then lint, inspect, render to MP4, and verify the output.
    • remotion: use the Remotion skill. Create or reuse a Remotion composition using the task's width and height, render an MP4 matching the task duration, and verify the output.
  9. Technically verify each generated video before completion: the file exists, is readable, has the requested width and height, 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.

  10. Call complete_storyboard_generation_task with the exact absolute output path and correct media type.

  11. If generation or verification fails, call fail_storyboard_generation_task with the concise cause.

  12. 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 manual generator rows.
  • Preserve the requested duration for video tasks.
  • Preserve projectId, aspectRatio, width, and height; never return an asset to a different project.
  • Never guess, truncate, or partially read DESIGN.md when hasDesign is 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

同 Skill 集合

plugins/codex-storyboard/skills/manage-storyboard-projects/SKILL.md

元信息

文件数
0
版本
ac9057d
Hash
7cafe01a
收录时间
2026-07-19 08:55

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-20 14:17
浙ICP备14020137号-1 $访客地图$