mcpField
G
generation-router

generation-router

github.com/postplusaiCreative & media27684 installsUpdated 1d ago
Repository

About generation-router

An instruction-driven router that first classifies media-generation requests as image, video, audio, workflow, or analysis-first. It helps select the appropriate controller skill and handoff, without choosing a provider or submitting jobs.

Key features

  1. 01Classifies generation family
  2. 02Routes to controller skills
  3. 03Identifies upstream analysis needs
  4. 04Produces a compact route handoff

Use cases

  1. 01Route an image-edit request to its controller
  2. 02Direct a voice or dubbing request
  3. 03Separate analysis-first requests from generation

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/postplusai/postplus-skills --skill generation-router

After installing, type/generation-routerin Claude Code to confirm it loaded.

Details

From the project README

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-batch-runner, audio-generation, or ugc-flow and supplied that skill's inputs.
  • The task is only research, creator discovery, copywriting, or publishing.

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"

Route Table

Request shapeRouteFirst handoff
Pure image prompt, uploaded image edit, product page imageimageimage-generation
Clip, storyboard, creator video, reference-motion videovideovideo-batch-runner
Voice, TTS, dubbing, translated audio, voice referenceaudioaudio-generation
Product-to-UGC, creator pipeline, repeated asset productionworkflowugc-flow or the named workflow skill
"Analyze this, then generate..."analysis_after_generationmedia-router for analysis, then the right generation controller

Output Shape

Return a compact route artifact:

  • generationFamily
  • why
  • controllerSkill
  • upstreamSkill when analysis or research must happen first
  • requiredInputs
  • handoffNotes
  • mustNotDo

Stop Conditions

  • Stop when required user intent, source evidence, or owned input artifacts are missing and guessing would change the result.
  • Do not choose a provider, endpoint key, runner, or storyboard format here.
  • Do not submit generation jobs.
  • If an owned CLI or script command still fails after any bounded recovery allowed by the executing PostPlus skill, report the exact error and stop. Do not bypass the failure with metadata-only answers, readiness probing, local payload rewrites, fallback providers, or unpublished tools.

Handoff

  • Image route -> image-generation.
  • Video route -> video-batch-runner.
  • 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.

Public Command Boundary

  • Choose the smallest matching command or workflow from the user input and run it directly.
  • If an owned CLI or script command still fails after any bounded recovery allowed by the executing PostPlus skill, report the exact error and stop. Do not bypass the failure with metadata-only answers, readiness probing, local payload rewrites, fallback providers, or unpublished tools.
  • 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.

Comments

Markdown supported