agentleFS
yutianxiao6yutianxiao6/comfyui-mcp/skills/comfyui-workflow/SKILL.md

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

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    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
  1. Very specific:

    Call comfyui_health before work that depends on a live ComfyUI instance.

    line 13
  2. Very specific:

    If the host prefixes MCP names, select tools by their comfyui_* suffix.

    line 17
  3. Distinctive:

    Never invent node class names, input names, output indices, enum values, or model filenames.

    line 21
  4. Very specific:

    Search with comfyui_list_node_types using a functional term such as checkpoint, sampler, controlnet, or save image.

    line 23
  5. Very specific:

    Call comfyui_get_node_type for every class whose inputs or outputs affect the graph.

    line 24
  6. Very specific:

    Call comfyui_list_models before choosing checkpoints, VAEs, LoRAs, ControlNets, upscale models, or other installed assets.

    line 25
  7. Very specific:

    Use comfyui_list_templates when an installed node pack may already provide a suitable workflow.

    line 26
  8. Distinctive:

    Read graph-contract.md before creating or modifying a graph.

    line 28
  9. Very specific:

    Create an empty graph with comfyui_create_workflow, or import an API-format graph with comfyui_import_workflow.

    line 32
  10. Very specific:

    Add one node at a time with comfyui_add_node.

    line 33
  11. Very specific:

    After every mutation, carry the returned revision into the next mutation as expected_revision.

    line 35
  12. Very specific:

    Use comfyui_disconnect_input before replacing a connection when that makes the intent clearer.

    line 36
  13. Very specific:

    Keep stable node IDs and useful _meta.title values so later edits and run overrides are unambiguous.

    line 37
  14. Very specific:

    Call comfyui_validate_workflow with live=true after graph construction and after material edits.

    line 43
  15. Very specific:

    If the user wants the graph visible in ComfyUI, call comfyui_sync_canvas after validation.

    line 45
  16. Very specific:

    Call comfyui_run_workflow only when the user asked to generate, execute, render, queue, or otherwise run the workflow.

    line 46
  17. Very specific:

    Prefer non-persistent overrides for one-off seed, prompt, batch, or dimension changes.

    line 47
  18. Distinctive:

    Read execution-and-files.md for queue, upload, download, override, and canvas details.

    line 51
  19. Very specific:

    Treat comfyui_interrupt and comfyui_clear_queue as destructive to other active work.

    line 55
  20. Distinctive:

    Do not overwrite workflows or uploaded files unless the user requested replacement and the exact target is known.

    line 56
  21. Distinctive:

    Do not expose secrets, arbitrary local files, or paths outside the server's configured upload roots.

    line 57
  22. Distinctive:

    Do not assume a node is free to use.

    line 58
  23. Distinctive:

    Do not substitute a different node, model, sampler, scheduler, or workflow objective without telling the user.

    line 65
  24. Distinctive:

    Keep the handoff compact and reproducible:

    line 69

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. Determine whether the user wants inspection, graph construction, graph editing, canvas display, execution, or troubleshooting.
  2. Call comfyui_health before work that depends on a live ComfyUI instance.
  3. Inspect managed workflows with comfyui_list_workflows and comfyui_get_workflow before assuming a workflow is absent or current.
  4. 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.

  1. Search with comfyui_list_node_types using a functional term such as checkpoint, sampler, controlnet, or save image.
  2. Call comfyui_get_node_type for every class whose inputs or outputs affect the graph.
  3. Call comfyui_list_models before choosing checkpoints, VAEs, LoRAs, ControlNets, upscale models, or other installed assets.
  4. Use comfyui_list_templates when an installed node pack may already provide a suitable workflow.

Read graph-contract.md before creating or modifying a graph.

Build or edit incrementally

  1. Create an empty graph with comfyui_create_workflow, or import an API-format graph with comfyui_import_workflow.
  2. Add one node at a time with comfyui_add_node. Keep verify_node_type=true unless the user is deliberately preparing a graph for a node that is not installed locally.
  3. Set literals with comfyui_set_input and links with comfyui_connect_nodes.
  4. 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.
  5. Use comfyui_disconnect_input before replacing a connection when that makes the intent clearer. Use comfyui_remove_node with force=true only when dangling connections should also be removed.
  6. Keep stable node IDs and useful _meta.title values 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

  1. Call comfyui_validate_workflow with live=true after graph construction and after material edits.
  2. Resolve all structural errors, missing required inputs, unknown nodes, and incompatible links. Do not disable validation merely to get a prompt into the queue.
  3. If the user wants the graph visible in ComfyUI, call comfyui_sync_canvas after validation. Explain that this requires the optional canvas bridge when it is unavailable.
  4. Call comfyui_run_workflow only 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.
  5. Prefer non-persistent overrides for one-off seed, prompt, batch, or dimension changes. Persist changes only when the workflow itself should change.
  6. Track the returned prompt_id with comfyui_get_run until the requested result or an actionable failure is available. Do not poll aggressively.
  7. 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_interrupt and comfyui_clear_queue as 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.