Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

comfy-flow-control

БесплатноБез исполняемых скриптовНе проверен

ComfyUI routing nodes: typed switches, index switches, broadcast (Anything Everywhere), pipe/context bundles, for/while loops, ExecutionBlocker gates. Use…

laurigatesот laurigates★ 61 звезда на GitHub

Об этом скилле

ComfyUI flow control

Routing, switching, broadcast, bundling, looping, gating. Where does the signal go once the decision is made.

Six packs on this install contribute flow-control primitives. Each has overlapping options and pack-specific quirks — the goal of this skill is to pick the right one in one decision, not browse a dropdown.

When to Use This Skill

Use this skill when... Use instead when...
Wiring how a signal routes, switches, broadcasts, loops, or is gated Forming the predicate that drives the route -> comfy-conditionals
Picking a switch / index-switch / broadcast node Debugging or inspecting a routed value -> comfy-debug-preview

Sources of truth

  • custom_nodes/rgthree-comfy/__init__.py — context bundles, Any Switch, Power Lora Loader, fast groups muter (frontend-only)
  • custom_nodes/cg-use-everywhere/__init__.py — broadcast "Anything Everywhere" sentinels
  • custom_nodes/ComfyUI-Crystools/crystools/nodes_switch.py — type-typed CSwitchBoolean* family
  • custom_nodes/comfyui-impact-pack/modules/impact/special_samplers.py and core.py — ImpactSwitch (GeneralSwitch/GeneralInversedSwitch), ImpactConditionalBranch, ExecutionOrderController
  • custom_nodes/comfyui-easy-use/py/nodes/logic.py and flow.py — easy switches, pipes, forLoop, whileLoop, blocker
  • ComfyUI core — built-in ComfySwitchNode (boolean toggle between two same-type inputs)

Pick-a-switch decision

You have… Selector Best node Why
2 IMAGE inputs, BOOLEAN selector bool easy imageSwitch or Crystools CSwitchBooleanImage Lazy: only the chosen branch runs
2 ANY inputs, BOOLEAN selector bool Crystools CSwitchBooleanAny Lazy; cleanest signature
2 STRING inputs, BOOLEAN selector bool easy textSwitch or Crystools CSwitchBooleanString Both lazy
2 CONDITIONING inputs, BOOLEAN bool Crystools CSwitchBooleanConditioning Lazy; native CONDITIONING type
2 LATENT / MASK inputs, BOOLEAN bool Crystools CSwitchBooleanLatent / CSwitchBooleanMask Lazy; typed
N ANY inputs, INT selector (3-20) index easy anythingIndexSwitch (up to 20) Only easy-use scales past 2 inputs
N IMAGE / TEXT / CONDITIONING, INT index easy imageIndexSwitch / easy textIndexSwitch / easy conditioningIndexSwitch Typed N-way
K ANY inputs, "first non-None wins" any rgthree Any Switch Pick the first connected/non-empty input
1 ANY input → 2 ANY outputs (demux) bool Crystools CSwitchFromAny Unique: output-side mux. Bool routes the one input to one of two outputs
2 BOOLEAN inputs that disagree logic easy compare or ImpactCompare then a switch above Predicate formation lives in comfy-conditionals
Toggle entire LoRA stack on/off bool rgthree Power Lora Loader with toggles per row Single node holds the stack + per-LoRA enable/strength
Mute/bypass a whole group of nodes mouse rgthree fast groups muter (frontend) Right-click group → Mute / Bypass. No node needed

Input-side vs output-side mux

  • Input-side mux (the standard pattern): N inputs → 1 output. The switch decides which input to forward. The bool/index selector reads before the upstream graph evaluates, so unselected branches can often be skipped (see lazy-vs-eager below).
  • Output-side mux (Crystools CSwitchFromAny only): 1 input → 2 outputs. The bool picks which output port receives the value; the other port emits None / a default. Use this when one upstream feeds two divergent downstream paths and you want to send it to only one at a time.

Lazy vs eager evaluation

Lazy switches mark unselected branches as "do not evaluate", so the upstream chain feeding the discarded branch is skipped entirely. Saves GPU and time. Eager switches force every upstream branch to compute even if its output gets thrown away.

Lazy (skip unselected upstream) Eager (run all branches always)
easy ifElse, easy imageSwitch, easy textSwitch, easy anythingIndexSwitch (and the typed *IndexSwitch siblings), easy blocker (downstream blocker) ImpactSwitch / GeneralSwitch (data routing only)
All CSwitchBoolean* (Crystools) CSwitchFromAny (must compute input before routing)
ImpactConditionalBranch, ImpactConditionalBranchSelMode rgthree Any Switch (selects after upstream resolves)

When the unselected branch is cheap (a constant or a small VAEDecode), the difference is invisible. When it's a sampler chain, lazy switches save tens of seconds per queue.

Broadcast routing — cg-use-everywhere

The Anything Everywhere family doesn't have output ports. You wire a value (model / clip / vae / seed / conditioning / anything) into the node, and it acts as an invisible producer: any unconnected input slot of the matching type elsewhere in the graph receives the value automatically.

Node Use when
`Anything Ev
Полный SKILL.md на GitHub

Установить comfy-flow-control в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Grep
Glob

Вложенные файлы

references/context-vs-pipe-bundles.mdreferences/gotchas.mdreferences/loops.mdreferences/recipes.md

FAQ

Что делает скилл comfy-flow-control?

ComfyUI routing nodes: typed switches, index switches, broadcast (Anything Everywhere), pipe/context bundles, for/while loops, ExecutionBlocker gates. Use when wiring where a signal routes in a workflow.

Как установить скилл comfy-flow-control?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл comfy-flow-control запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить comfy-flow-control с