comfyui-workflow
Skill4 starsChanged 4 months agoApache-2.0View on GitHub
Build, inspect, modify, validate, run, and troubleshoot ComfyUI workflows through ComfyUI MCP tools. Use for requests involving ComfyUI nodes, models, workflow JSON, graph connections, queue execution, generated outputs, canvas synchronization, LoRA, ControlNet, inpainting, upscaling, image-to-image, video, audio, 3D, or custom nodes.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- badgids/Story-Film-Skillstheir own version, first seen Aug 19, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- badgids/Story-Film-Skills★ 4same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
Show its rules and text
We split this skill into the rules it gives an agent
24 rules. About 0 are common, 8 are distinctive, and 16 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
16
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
Call comfyui_health before work that depends on a live ComfyUI instance.
- Very specific: line 17
If the host prefixes MCP names, select tools by their comfyui_* suffix.
- Distinctive: line 21
Never invent node class names, input names, output indices, enum values, or model filenames.
- Very specific: line 23
Search with comfyui_list_node_types using a functional term such as checkpoint, sampler, controlnet, or save image.
- Very specific: line 24
Call comfyui_get_node_type for every class whose inputs or outputs affect the graph.
- Very specific: line 25
Call comfyui_list_models before choosing checkpoints, VAEs, LoRAs, ControlNets, upscale models, or other installed assets.
- Very specific: line 26
Use comfyui_list_templates when an installed node pack may already provide a suitable workflow.
- Distinctive: line 28
Read graph-contract.md before creating or modifying a graph.
- Very specific: line 32
Create an empty graph with comfyui_create_workflow, or import an API-format graph with comfyui_import_workflow.
- Very specific: line 33
Add one node at a time with comfyui_add_node.
- Very specific: line 35
After every mutation, carry the returned revision into the next mutation as expected_revision.
- Very specific: line 36
Use comfyui_disconnect_input before replacing a connection when that makes the intent clearer.
- Very specific: line 37
Keep stable node IDs and useful _meta.title values so later edits and run overrides are unambiguous.
- Very specific: line 43
Call comfyui_validate_workflow with live=true after graph construction and after material edits.
- Very specific: line 45
If the user wants the graph visible in ComfyUI, call comfyui_sync_canvas after validation.
- Very specific: line 46
Call comfyui_run_workflow only when the user asked to generate, execute, render, queue, or otherwise run the workflow.
- Very specific: line 47
Prefer non-persistent overrides for one-off seed, prompt, batch, or dimension changes.
- Distinctive: line 51
Read execution-and-files.md for queue, upload, download, override, and canvas details.
- Very specific: line 55
Treat comfyui_interrupt and comfyui_clear_queue as destructive to other active work.
- Distinctive: line 56
Do not overwrite workflows or uploaded files unless the user requested replacement and the exact target is known.
- Distinctive: line 57
Do not expose secrets, arbitrary local files, or paths outside the server's configured upload roots.
- Distinctive: line 58
Do not assume a node is free to use.
- Distinctive: line 65
Do not substitute a different node, model, sampler, scheduler, or workflow objective without telling the user.
- Distinctive: line 69
Keep the handoff compact and reproducible:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
ComfyUI Workflow
Operate the user's live ComfyUI installation through the comfyui_* MCP tools. Treat the live node schema and model inventory as authoritative; installations differ because custom nodes, models, and ComfyUI versions differ.
Establish the task
- Determine whether the user wants inspection, graph construction, graph editing, canvas display, execution, or troubleshooting.
- Call
comfyui_healthbefore work that depends on a live ComfyUI instance. - Inspect managed workflows with
comfyui_list_workflowsandcomfyui_get_workflowbefore assuming a workflow is absent or current. - Preserve the user's existing workflow unless they explicitly request replacement. Prefer a new managed workflow for experiments.
If the host prefixes MCP names, select tools by their comfyui_* suffix.
Discover before building
Never invent node class names, input names, output indices, enum values, or model filenames.
- Search with
comfyui_list_node_typesusing a functional term such ascheckpoint,sampler,controlnet, orsave image. - Call
comfyui_get_node_typefor every class whose inputs or outputs affect the graph. - Call
comfyui_list_modelsbefore choosing checkpoints, VAEs, LoRAs, ControlNets, upscale models, or other installed assets. - Use
comfyui_list_templateswhen an installed node pack may already provide a suitable workflow.
Read graph-contract.md before creating or modifying a graph.
Build or edit incrementally
- Create an empty graph with
comfyui_create_workflow, or import an API-format graph withcomfyui_import_workflow. - Add one node at a time with
comfyui_add_node. Keepverify_node_type=trueunless the user is deliberately preparing a graph for a node that is not installed locally. - Set literals with
comfyui_set_inputand links withcomfyui_connect_nodes. - After every mutation, carry the returned revision into the next mutation as
expected_revision. If a revision conflict occurs, read the workflow again and reconcile instead of blindly retrying. - Use
comfyui_disconnect_inputbefore replacing a connection when that makes the intent clearer. Usecomfyui_remove_nodewithforce=trueonly when dangling connections should also be removed. - Keep stable node IDs and useful
_meta.titlevalues so later edits and run overrides are unambiguous.
For common graph shapes, read workflow-patterns.md. Adapt every pattern to schemas reported by the live installation.
Validate, then present or run
- Call
comfyui_validate_workflowwithlive=trueafter graph construction and after material edits. - Resolve all structural errors, missing required inputs, unknown nodes, and incompatible links. Do not disable validation merely to get a prompt into the queue.
- If the user wants the graph visible in ComfyUI, call
comfyui_sync_canvasafter validation. Explain that this requires the optional canvas bridge when it is unavailable. - Call
comfyui_run_workflowonly when the user asked to generate, execute, render, queue, or otherwise run the workflow. Execution changes external state and may consume GPU time or paid-node credits. - Prefer non-persistent
overridesfor one-off seed, prompt, batch, or dimension changes. Persist changes only when the workflow itself should change. - Track the returned
prompt_idwithcomfyui_get_rununtil the requested result or an actionable failure is available. Do not poll aggressively. - Summarize the workflow name and revision, validation result, prompt ID, final status, and output file descriptors. Download files only when the user asks for local copies or the next task requires them.
Read execution-and-files.md for queue, upload, download, override, and canvas details.
Handle destructive and costly actions carefully
- Treat
comfyui_interruptandcomfyui_clear_queueas destructive to other active work. Use them only when the user requests them or when they are necessary to complete an explicitly requested recovery, and state the impact. - Do not overwrite workflows or uploaded files unless the user requested replacement and the exact target is known.
- Do not expose secrets, arbitrary local files, or paths outside the server's configured upload roots.
- Do not assume a node is free to use. If a discovered custom node calls a paid or remote service, surface that fact and obtain the authority required by the host before execution.
- Preserve useful failed-run evidence until troubleshooting is complete.
Troubleshoot with evidence
On errors, identify the failing layer: MCP startup, ComfyUI connectivity, node discovery, graph structure, prompt validation, queue execution, output retrieval, or canvas bridge. Read troubleshooting.md, inspect the relevant live schema or run record, and make the smallest corrective edit.
Do not substitute a different node, model, sampler, scheduler, or workflow objective without telling the user. If the requested component is unavailable, list the verified alternatives and explain the tradeoff.
Report completion
Keep the handoff compact and reproducible:
- managed workflow name and current revision;
- nodes or inputs materially changed;
- live validation outcome;
- execution prompt ID and status, if run;
- output locations, if produced or downloaded;
- any dependency the user still needs to install, such as a custom node, model, or canvas bridge.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

