comfyui-workflow-builder

comfyui-workflow-builder is a skill for Claude Code from MCKRUZ/ComfyUI-Expert. It costs 99 tokens per session (1,636 once invoked), scanned A, original, MIT.

A skill that turns plain-language image, video or audio requests into ComfyUI workflow files. ComfyUI is a visual tool that connects AI-generation steps as a node graph.

In plain words
What is it for?
Use it to create text-to-image, image-to-image, inpainting, identity, ControlNet, LoRA, upscaling and face-detailing workflows when the needed inventory is available.
Why use it?
It removes the need to manually build node connections, choose settings and check whether the required models and custom nodes are available.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: built for openclaw.

Good fit Use it to create text-to-image, image-to-image, inpainting, identity, ControlNet, LoRA, upscaling and face-detailing workflows when the needed inventory is available.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mckruz/comfyui-expert/comfyui-workflow-builder
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 MCKRUZ/ComfyUI-Expert --skill comfyui-workflow-builder
Clone the repo
git clone --depth 1 https://github.com/MCKRUZ/ComfyUI-Expert

Made for: Claude Code.

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-builder

README.md
[![agentmods](https://agentmods.dev/badge/skills/mckruz/comfyui-expert/comfyui-workflow-builder/github.svg)](https://agentmods.dev/skills/mckruz/comfyui-expert/comfyui-workflow-builder)
Your own site
<a href="https://agentmods.dev/skills/mckruz/comfyui-expert/comfyui-workflow-builder"><img src="https://agentmods.dev/badge/skills/mckruz/comfyui-expert/comfyui-workflow-builder/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-builder

Your own site · 80×15
<a href="https://agentmods.dev/skills/mckruz/comfyui-expert/comfyui-workflow-builder"><img src="https://agentmods.dev/badge/skills/mckruz/comfyui-expert/comfyui-workflow-builder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 99 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,636 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket fail 19 Mar 2026
  • Snyk pass 19 Mar 2026
How audits are shown
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.00099 $0.01636
Opus 5 $0.00049 $0.00818
Sonnet 5 $0.00020 $0.00327
Haiku 4.5 $0.00010 $0.00164

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

Security

Grade A, and why

comfyui-workflow-builder scanned grade A with 1 finding 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.

The scan reads SKILL.md. This mod also ships 1 executable file (eval/run-eval.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

metadata: {"openclaw":{"emoji":"🔧","os":["darwin","linux","win32"],"requires":{"anyBins":["curl","wget"]},"primaryEnv":"COMFYUI_URL"}}
skills/comfyui-workflow-builder/SKILL.md · 183 lines

How it starts

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

ComfyUI Workflow Builder

Translates natural language requests into executable ComfyUI workflow JSON. Always validates against inventory before generating.

Workflow Generation Process

Step 1: Understand the Request

Parse the user's intent into:

  • Output type: Image, video, or audio
  • Source material: Text-only, reference image(s), existing video
  • Identity method: None, zero-shot (InstantID/PuLID), LoRA, Kontext
  • Quality level: Draft (fast iteration) vs production (maximum quality)
  • Special requirements: ControlNet, inpainting, upscaling, lip-sync

Step 2: Check Inventory

Read state/inventory.json to determine:

  • Available checkpoints → select best match for task
  • Available identity models → determine which methods are possible
  • Available ControlNet models → enable pose/depth control if available
  • Custom nodes installed → verify all required nodes exist
  • VRAM available → optimize settings accordingly

Step 3: Select Pipeline Pattern

Based on request + inventory, choose from:

Pattern When Key Nodes
Text-to-Image Simple generation Checkpoint → CLIP → KSampler → VAE
Identity-Preserved Image Character consistency + InstantID/PuLID/IP-Adapter
LoRA Character Trained character + LoRA Loader
Image-to-Video (Wan) High-quality video Diffusion Model → Wan I2V → Video Combine
Image-to-Video (AnimateDiff) Fast video, motion control + AnimateDiff Loader + Motion LoRAs
Talking Head Character speaks Image → Video → Voice → Lip-Sync
Upscale Enhance resolution Image → UltimateSDUpscale → Save
Inpainting Edit regions Image + Mask → Inpaint Model → KSampler

Step 4: Generate Workflow JSON

ComfyUI workflow format:

{
  "{node_id}": {
    "class_type": "{NodeClassName}",
    "inputs": {
      "{param_name}": "{value}",
      "{connected_param}": ["{source_node_id}", {output_index}]
    }
  }
}

Rules:

  • Node IDs are strings (typically "1", "2", "3"...)
  • Connected inputs use array format: ["source_node_id", output_index]
  • Output index is 0-based integer
  • Filenames must match exactly what's in inventory
  • Seed values: use random large integer or fixed for reproducibility

Read the full file on GitHub · 183 lines

Files

What ships with it

7 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 · 183 lines · 99 tokens per session scan A 4d0aa17fb3f1

Subscribe to this mod's changes

comfyui-workflow-builder is a skill published in the GitHub repository MCKRUZ/ComfyUI-Expert (91 stars, last pushed 5mo ago), licensed MIT. It adds 99 tokens to every session and 1,636 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

ai-media-generator

A workflow for turning ideas into prompts for AI-generated images, videos, and music across several media platforms. When needed, it can also send those prompts to the chosen platform through browser automation.

Hao0321/ai-media-generator · 380 tokens

minimax-h3

Write, debug and structure prompts for MiniMax H3 video generation (T2VA, I2VA, FL2VA, L2VA, Ref2VA) and configure its ComfyUI workflow. Use when the user mentions MiniMax H3, minimaxh3, fl2va, ref2va, MiniMaxH3ReferenceToVideo, reference-to-video, asks to animate a photo, write a video prompt, pick a model quant, or…

teskor-hub/minimax-h3-skill · 135 tokens

Prompt craft for ComfyUI generation

Use when writing prompts for ComfyUI image or video models: choosing tags vs literary format, fixing composition and anatomy artifacts, picking samplers per LoRA, and writing short movement prompts for video. Neutral examples only.

howdeploy/deploychan_mcp · 52 tokens

handoff

Work with Master Canvas AI video handoff packages. Use when a user provides a Master Canvas ZIP or projectmanifest.json and wants Hermes to inspect assets, preserve scene and shot order, prepare ComfyUI/LTX 2.3 jobs, or hand off prompts to Kling, Veo, or another video generation operator. Also use when a user wants…

wassermanproductions/master-canvas-hermes-plugin · 105 tokens

local-ai-film

A directing workflow for producing AI short films with local or cloud-based models, including atmospheric films, trailers, vlogs, and dialogue-driven stories. It covers creative decisions, avoiding repetitive results, production steps, and final editing.

L-Trunks/ai-film-skills · 223 tokens

rhythm-density

A video-editing guide for arranging several short locally generated shots so their pacing alternates between quick, dense sections and slower breathing space.

L-Trunks/ai-film-skills · 324 tokens