generation-router

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Generation Router

Generation Router

Use When

使用场景

  • The user asks for generated media, edited media, dubbing, voice, lip-sync, storyboard-to-video, reference-to-asset, or analysis-derived generation.
  • The first decision is the output family, not the provider or model.
  • The request may need a media generation controller before execution.
  • 用户请求生成媒体、编辑媒体、配音、语音制作、唇形同步、分镜脚本转视频、参考素材转资产或基于分析的生成任务。
  • 首要决策是确定输出类别,而非选择供应商或模型。
  • 该请求在执行前可能需要媒体生成控制器。

Do Not Use When

禁用场景

  • Transcription, subtitles, video analysis, beat maps, or edit plans are the primary output. Use
    media-router
    .
  • The user already selected
    image-generation
    ,
    video-generation
    ,
    audio-generation
    , or
    ugc-flow
    and supplied that controller's inputs.
  • The task is only research, creator discovery, copywriting, or publishing.
  • 主要输出为转录、字幕、视频分析、节拍映射或编辑方案时,请使用
    media-router
  • 用户已选择
    image-generation
    video-generation
    audio-generation
    ugc-flow
    并提供了对应控制器的输入参数时。
  • 任务仅为调研、创作者发掘、文案撰写或发布时。

Core Rule

核心规则

Classify the generation job before choosing a model or runner.
The router owns only the first split:
  • image
    : new image, image edit, product image, batch variants, reference image generation
  • video
    : simple clip, storyboard video, UGC video, reference video, motion or talking-head render
  • audio
    : TTS, voice change, translated dub, voice clone, audio handoff for lip-sync
  • workflow
    : a multi-step production line such as UGC creative, podcast clip, product demo, or ad variant set
  • analysis_after_generation
    : media understanding first, generation second, such as "analyze this competitor clip, then make our version"
在选择模型或运行器之前,先对生成任务进行分类。
本路由工具仅负责第一步拆分:
  • image
    :新图像生成、图像编辑、产品图像、批量变体、参考图像生成
  • video
    :简单剪辑、分镜脚本视频、UGC视频、参考视频、动态或虚拟人渲染
  • audio
    :TTS(文本转语音)、语音转换、翻译配音、语音克隆、用于唇形同步的音频交付
  • workflow
    :多步骤生产线,如UGC创意制作、播客剪辑、产品演示或广告变体套装
  • analysis_after_generation
    :先进行媒体理解,再执行生成任务,例如“分析这个竞品视频,然后制作我们的版本”

Route Table

路由表

Request shapeRouteFirst handoff
Pure image prompt, uploaded image edit, product page image
image
image-generation
Clip, storyboard, creator video, reference-motion video
video
video-generation
Voice, TTS, dubbing, translated audio, voice reference
audio
audio-generation
Product-to-UGC, creator pipeline, repeated asset production
workflow
ugc-flow
or the named workflow skill
"Analyze this, then generate..."
analysis_after_generation
media-router
for analysis, then the right generation controller
请求类型路由首次交付目标
纯图像提示词、上传图像编辑、产品页面图像
image
image-generation
剪辑、分镜脚本、创作者视频、参考动态视频
video
video-generation
语音、TTS、配音、翻译音频、语音参考
audio
audio-generation
产品转UGC、创作者流水线、重复资产制作
workflow
ugc-flow
或指定的工作流skill
“先分析这个,再生成...”
analysis_after_generation
先使用
media-router
进行分析,再转至对应的生成控制器

Output Shape

输出格式

Return a compact route artifact:
  • generationFamily
  • why
  • controllerSkill
  • upstreamSkill
    when analysis or research must happen first
  • requiredInputs
  • handoffNotes
  • mustNotDo
返回简洁的路由结果:
  • generationFamily
  • why
    (路由原因)
  • controllerSkill
    (控制器技能)
  • upstreamSkill
    (当需要先进行分析或调研时)
  • requiredInputs
    (必填输入)
  • handoffNotes
    (交付说明)
  • mustNotDo
    (禁止操作)

Fail Fast

快速失败规则

  • Stop if the desired output family would change the route and the request is ambiguous.
  • Do not choose a provider, endpoint key, runner, or storyboard format here.
  • Do not submit generation jobs.
  • 若所需输出类别会改变路由且请求存在歧义,立即停止。
  • 请勿在此处选择供应商、端点密钥、运行器或分镜脚本格式。
  • 请勿提交生成任务。

Handoff

交付流程

  • Image route ->
    image-generation
    .
  • Video route ->
    video-generation
    .
  • Audio route ->
    audio-generation
    .
  • Workflow route ->
    ugc-flow
    or another workflow skill.
  • Understanding-first route ->
    media-router
    , then return to this router or the selected generation controller.
  • 图像路由 ->
    image-generation
    .
  • 视频路由 ->
    video-generation
    .
  • 音频路由 ->
    audio-generation
    .
  • 工作流路由 ->
    ugc-flow
    或其他工作流skill.
  • 先理解后生成的路由 ->
    media-router
    , 之后返回本路由工具或选定的生成控制器.

Public Command Boundary

公共命令边界

  • Check readiness first:
    postplus doctor --skill generation-router
    .
  • This public skill is instruction-driven. Produce the route artifact directly from the available evidence.
  • Do not call private provider/runtime paths or unpublished local tools.
  • If the CLI returns a quote-confirmation challenge, run
    postplus quote confirm --json --challenge-file <challenge.json>
    and retry with the returned token.
  • 首先检查就绪状态:
    postplus doctor --skill generation-router
    .
  • 本公共skill基于指令驱动,直接根据现有信息生成路由结果。
  • 请勿调用私有供应商/运行时路径或未发布的本地工具。
  • 若CLI返回报价确认挑战,请运行
    postplus quote confirm --json --challenge-file <challenge.json>
    并使用返回的令牌重试。