comfyui-workflow

comfyui-workflow is a skill for Claude Code, Codex from yutianxiao6/comfyui-mcp. It costs 84 tokens per session (1,255 once invoked), scanned A, original, Apache-2.0.

A guide for working with ComfyUI, a visual tool for building image, video, audio, and 3D generation workflows from connected processing steps.

In plain words
What is it for?
It helps create, inspect, edit, validate, run, and troubleshoot ComfyUI workflow graphs, including tasks such as inpainting, upscaling, and image-to-image generation.
Why use it?
It tells an agent how to inspect the live installation and use its available nodes and models instead of guessing configuration details.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the comfyui-mcp plugin — 1 skill, 1 MCP server shipped together

Good fit It helps create, inspect, edit, validate, run, and troubleshoot ComfyUI workflow graphs, including tasks such as inpainting, upscaling, and image-to-image generation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yutianxiao6/comfyui-mcp/comfyui-workflow
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add yutianxiao6/comfyui-mcp --skill comfyui-workflow
Clone the repo
git clone --depth 1 https://github.com/yutianxiao6/comfyui-mcp

Made for: Claude Code, Codex.

Or install comfyui-mcp, the plugin that ships this one along with the rest of its 1 skill, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for comfyui-workflow

README.md
[![agentmods](https://agentmods.dev/badge/skills/yutianxiao6/comfyui-mcp/comfyui-workflow/github.svg)](https://agentmods.dev/skills/yutianxiao6/comfyui-mcp/comfyui-workflow)
Your own site
<a href="https://agentmods.dev/skills/yutianxiao6/comfyui-mcp/comfyui-workflow"><img src="https://agentmods.dev/badge/skills/yutianxiao6/comfyui-mcp/comfyui-workflow/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for comfyui-workflow

Your own site · 80×15
<a href="https://agentmods.dev/skills/yutianxiao6/comfyui-mcp/comfyui-workflow"><img src="https://agentmods.dev/badge/skills/yutianxiao6/comfyui-mcp/comfyui-workflow.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,255 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00084 $0.01255
Opus 5 $0.00042 $0.00628
Sonnet 5 $0.00017 $0.00251
Haiku 4.5 $0.00008 $0.00126

Measured 10d ago against content hash f1cb4858732a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

comfyui-workflow scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/comfyui-workflow/SKILL.md · 77 lines

How it starts

The opening of the file, as written. The whole thing — 77 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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.

Read the full file on GitHub · 77 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 77 lines · 84 tokens per session scan A f1cb4858732a

Subscribe to this mod's changes

comfyui-workflow is a skill published in the GitHub repository yutianxiao6/comfyui-mcp (2 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 84 tokens to every session and 1,255 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

ideogram-ultra

Build Ideogram 4 (Ideogram Ultra) txt2img and img2img workflows with the local open-weights model, dual conditional/unconditional models with DualModelGuider, Qwen3-VL text encoder, and structured JSON ("compositional deconstruction") prompts for strong text rendering and layout control.

artokun/comfyui-mcp · 68 tokens

ernie-image

Build Baidu ERNIE-Image / ERNIE-Image-Turbo workflows, primarily TEXT-TO-IMAGE. Pick ERNIE when you need precise multilingual text rendering, posters/signage, manga/anime multi-panel layouts, or strong instruction following for complex multi-object scenes. Also supports denoise-based image-to-image refine (NOT…

artokun/comfyui-mcp · 98 tokens

model-compatibility

Model family compatibility matrix covering loaders, resolutions, samplers, CFG, VAE, ControlNet, and LoRA compatibility for SD 1.5, SDXL, Flux, SD3, and video models.

artokun/comfyui-mcp · 47 tokens

qwen-image-edit

Build Qwen Image Edit workflows covering model loading, conditioning, LoRAs, prompt patterns, and XY plot testing.

artokun/comfyui-mcp · 28 tokens

video-upscale

Upscale and restore video in ComfyUI. Both the quick local path (per-frame ESRGAN like 4xfoolhardyRemacri via ImageUpscaleWithModel + 4x→2x supersample, with its temporal-flicker tradeoff) and temporal-aware super-resolution (SeedVR2, the newer FlashVSR) with the downscale-first restore pipeline; RIFE/FILM frame…

artokun/comfyui-mcp · 167 tokens

flux-txt2img

Build Flux txt2img workflows with Flux.1 Dev (SRPO), Flux 2 Klein 9B, Turbo LoRAs, FluxGuidance, and DualCLIPLoader patterns.

artokun/comfyui-mcp · 44 tokens