Command Palette

Search for a command to run...

Back to skills
skill № 76840

flux-sampling

ModelSamplingFlux node patch requirements. Activate in Brain step 2 (Patch and validate) whenever the workflow contains a ModelSamplingFlux node.

FreeNo executable scripts
szprivateby szprivate★ 53 GitHub stars

Install flux-sampling in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

About this skill

Flux Sampling — ModelSamplingFlux Patch Requirements

When a workflow contains a ModelSamplingFlux node, all four inputs are required. Omitting any one will cause a ComfyUI validation failure.


Required inputs

input_name required value
max_shift 1.15
base_shift 0.5
width from brainbriefing.resolution_width
height from brainbriefing.resolution_height

Patch template

Include these four patches in the patches array passed to update_workflow:

[
  { "node_id": "<ModelSamplingFlux_node_id>", "input_name": "max_shift",  "value": 1.15 },
  { "node_id": "<ModelSamplingFlux_node_id>", "input_name": "base_shift", "value": 0.5  },
  { "node_id": "<ModelSamplingFlux_node_id>", "input_name": "width",      "value": <resolution_width>  },
  { "node_id": "<ModelSamplingFlux_node_id>", "input_name": "height",     "value": <resolution_height> }
]

Replace <ModelSamplingFlux_node_id> with the actual node ID from the workflow template.
Replace <resolution_width> and <resolution_height> with the integer values from the brainbriefing.


How to find the node ID

The ModelSamplingFlux node is typically listed in the io.nodes array returned by get_workflow_template. Look for class_type: "ModelSamplingFlux" and note its nodeId.

If it is not in io.nodes, inspect the full workflow JSON for a node with class_type: "ModelSamplingFlux".


Rules

  • You MUST include all four inputs in every update_workflow call that patches a ModelSamplingFlux node.
  • Values are not optional — ComfyUI will reject the workflow if any of the four are absent.
  • width and height MUST come from brainbriefing.resolution_width / brainbriefing.resolution_height — never hard-code or guess them.

Allowed tools

Tools this skill is permitted to call.

  1. 01update_workflow

FAQ

What does the flux-sampling skill do?

ModelSamplingFlux node patch requirements. Activate in Brain step 2 (Patch and validate) whenever the workflow contains a ModelSamplingFlux node.

How do I install the flux-sampling skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the flux-sampling skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare flux-sampling with