flux-sampling
ModelSamplingFlux node patch requirements. Activate in Brain step 2 (Patch and validate) whenever the workflow contains a ModelSamplingFlux node.
by 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
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_workflowcall that patches a ModelSamplingFlux node. - Values are not optional — ComfyUI will reject the workflow if any of the four are absent.
widthandheightMUST come frombrainbriefing.resolution_width/brainbriefing.resolution_height— never hard-code or guess them.
Allowed tools
Tools this skill is permitted to call.
- 01
update_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
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…