agentleFS
hybridindiehybridindie/comfyui_mcp/skills/workflows/SKILL.md

workflows

Skill2 starsChanged 4 days agoMITView on GitHub

Knowledge about ComfyUI workflow API format, node connections, and common patterns. Use when helping users build, modify, or understand workflows.

19 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use arming-thought, concentrate-forces and 9 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • SanjithBolloju18Skill

    arming-thought

    触发:在每次新的顶层对话开始时自动调用,用于建立“实事求是”的总原则,并在明确适用时为后续任务选择下游 skill;如果你是被派遣执行单一具体任务的子 agent,则跳过此 skill。 English: Trigger at the start of each new top-level conversation to establish the core methodology and select downstream skills only when clearly useful. Skip this skill when you are a delegated sub-agent handling a narrow, concrete task.

    Also in 3 projects that use this

  • SanjithBolloju18Skill

    concentrate-forces

    触发:当多个任务同时争夺时间、注意力、算力或预算,必须确定主攻方向并停止分散用力时调用;常见信号包括优先级过多、资源紧张、推进分散、需要决定先做什么。 English: Trigger when limited resources are being split across too many tasks and one main target must be chosen. Use this skill to concentrate effort, sequence work decisively, and finish a meaningful breakthrough before expanding.

    Also in 3 projects that use this

  • NVIDIASkill

    research

    Before designing a feature, research how comparable libraries solve the problem, check best practices, known pitfalls, and upstream changes. Use when starting a new feature, investigating an unfamiliar area, or the user asks to research something.

    Also in 3 projects that use this

  • +8 more from SanjithBolloju18

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 15 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Connections: use the format ["source_node_id", output_index]

    line 35
  2. Distinctive:

    Always validate a workflow before running it.

    line 88
  3. Very specific:

    Use comfyui_list_nodes to check what node types are available on the connected ComfyUI instance.

    line 89
  4. Very specific:

    Use comfyui_get_node_info to get detailed input/output specs for a specific node type.

    line 90

“Common” is measured: kept by at least 6 in 10 of the 15 edited versions of this file we could read. “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 Building Guide

API Format

ComfyUI workflows use a JSON format where each node is a key-value pair:

{
  "1": {
    "class_type": "KSampler",
    "inputs": {
      "seed": 42,
      "steps": 20,
      "cfg": 7.0,
      "sampler_name": "euler",
      "scheduler": "normal",
      "denoise": 1.0,
      "model": ["2", 0],
      "positive": ["3", 0],
      "negative": ["4", 0],
      "latent_image": ["5", 0]
    }
  }
}
  • Keys are string node IDs (e.g., "1", "2")
  • class_type is the ComfyUI node type name
  • inputs contains parameters and connections
  • Connections use the format ["source_node_id", output_index]

Common Node Chains

txt2img (text to image)

CheckpointLoaderSimple -> CLIPTextEncode (positive) -> KSampler -> VAEDecode -> SaveImage

img2img (image to image)

LoadImage -> VAEEncode -> KSampler (with denoise < 1.0) -> VAEDecode -> SaveImage

ControlNet

LoadImage -> ControlNetLoader + ControlNetApply -> feed into KSampler positive conditioning

LoRA Stacking

CheckpointLoaderSimple -> LoraLoader (chain multiple) -> KSampler

Key Nodes Reference

NodePurposeKey Inputs
CheckpointLoaderSimpleLoad a model checkpointckpt_name
CLIPTextEncodeEncode text prompttext, clip
KSamplerRun diffusion samplingmodel, positive, negative, latent_image, steps, cfg, seed
VAEDecodeDecode latent to imagesamples, vae
VAEEncodeEncode image to latentpixels, vae
SaveImageSave output imageimages, filename_prefix
LoadImageLoad input imageimage (filename)
LoraLoaderApply LoRA weightsmodel, clip, lora_name, strength_model, strength_clip
ControlNetLoaderLoad ControlNet modelcontrol_net_name
ControlNetApplyApply ControlNetconditioning, control_net, image, strength

Using the Workflow Tools

Quick decision guide — pick the tool by what you need to do:

GoalTool
Build a new workflow from scratchcomfyui_create_workflow
Modify an existing workflowcomfyui_modify_workflow
Understand a workflow (human-readable text or Mermaid)comfyui_summarize_workflow
Understand a workflow (machine-readable dict)comfyui_analyze_workflow
Check a workflow for errors before runningcomfyui_validate_workflow
Execute a workflowcomfyui_run_workflow
  1. comfyui_create_workflow — Start from a built-in template. Accepted template names are listed in the tool's docstring: txt2img, img2img, upscale, inpaint, txt2vid_animatediff, txt2vid_wan, controlnet_canny, controlnet_depth, controlnet_openpose, ip_adapter, lora_stack, face_restore, flux_txt2img, sdxl_txt2img. The params argument defaults to "", which applies the predefined settings for the selected template (e.g., default dimensions, steps, and cfg values baked into that template); pass a JSON string when you want overrides. (Note: comfyui_list_workflows returns server-side /workflow_templates from front-end packages — a different set, not these MCP-built-in templates.)
  2. comfyui_modify_workflow — Add/remove nodes, change connections, update parameters on an existing workflow. Operations: add_node, remove_node, set_input, connect, disconnect. The docstring spells out each op's exact field shape. The call is atomic — if any operation fails, the call raises and the input workflow is unmodified.
  3. comfyui_validate_workflow — Returns {valid, errors, warnings, node_count, pipeline}. errors (list[str]) are blocking; warnings (list[str]) are non-blocking concerns like missing model files or suspicious inputs.
  4. comfyui_summarize_workflow — Human-readable overview. Pass output_format="text" (default) or "mermaid" for diagram markup.
  5. comfyui_analyze_workflow — Returns the analysis as a structured dict (node_count, class_types, flow, models, parameters, pipeline, prompt_nodes, negative_nodes). Use this when you want to read fields like pipeline programmatically; use comfyui_summarize_workflow for the human-readable rendering.
  6. comfyui_run_workflow — Submit a workflow for execution. Use wait=True to block until done. The response is always a dict envelope: {status, prompt_id, outputs, elapsed_seconds, warnings?} where status is one of submitted / completed / interrupted / error / timeout. With wait=False you get just {status: "submitted", prompt_id, warnings?} — poll comfyui_get_progress or comfyui_get_job to follow up.

Tips

  • Always validate a workflow before running it.
  • Use comfyui_list_nodes to check what node types are available on the connected ComfyUI instance.
  • Use comfyui_get_node_info to get detailed input/output specs for a specific node type.
  • Node IDs must be unique strings. When adding nodes, pick IDs that don't conflict with existing ones.
  • The seed parameter controls reproducibility. Use a fixed seed for consistent results, or -1 for random.

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.