comfyui-workflow-builder

comfyui-workflow-builder is a skill for Claude Code, Codex from IvanYangYangXi/artclaw_bridge. It costs 71 tokens per session (2,235 once invoked), scanned A, original, MIT.

A guide to building ComfyUI workflows, which are connected steps for generating or transforming images with AI. It explains the JSON structure, node connections, and common text-to-image and image-to-image pipelines.

In plain words
What is it for?
Use it to construct workflow JSON, inspect available models and node parameters, connect nodes correctly, and create standard image-generation pipelines.
Why use it?
It helps avoid invalid node IDs, connections, parameters, or model choices when creating workflows programmatically.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to construct workflow JSON, inspect available models and node parameters, connect nodes correctly, and create standard image-generation pipelines.

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

Made for: Claude Code, Codex.

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/ivanyangyangxi/artclaw_bridge/comfyui-workflow-builder/github.svg)](https://agentmods.dev/skills/ivanyangyangxi/artclaw_bridge/comfyui-workflow-builder)
Your own site
<a href="https://agentmods.dev/skills/ivanyangyangxi/artclaw_bridge/comfyui-workflow-builder"><img src="https://agentmods.dev/badge/skills/ivanyangyangxi/artclaw_bridge/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/ivanyangyangxi/artclaw_bridge/comfyui-workflow-builder"><img src="https://agentmods.dev/badge/skills/ivanyangyangxi/artclaw_bridge/comfyui-workflow-builder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,235 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.00071 $0.02235
Opus 5 $0.00036 $0.01118
Sonnet 5 $0.00014 $0.00447
Haiku 4.5 $0.00007 $0.00224

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

Security

Grade A, and why

comfyui-workflow-builder 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 11d 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/official/comfyui/comfyui-workflow-builder/SKILL.md · 216 lines

How it starts

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

ComfyUI Workflow 构建指南

⚠️ 操作前必须先阅读 comfyui-operation-rules


Workflow JSON 结构

workflow = {
    "node_id": {                          # 字符串 ID("1", "2", ...)
        "class_type": "NodeClassName",     # 节点类型名
        "inputs": {
            "param": value,                # 直接值
            "input": ["other_id", idx]     # 连接: [源节点ID, 输出索引(0-based)]
        }
    }
}

核心规则:

  • Node ID 是字符串"1" 不是 1
  • 连接语法: ["source_node_id", output_index]
  • 输出索引对应 RETURN_TYPES 的顺序(0-based)

构建步骤

Step 1: 查询环境

# 查可用模型
ckpts = folder_paths.get_filename_list("checkpoints")
print("Checkpoints:", ckpts)

# 查节点参数(第一次用某节点前必查)
info = nodes.NODE_CLASS_MAPPINGS["KSampler"].INPUT_TYPES()
print(info)

Step 2: 逐步构建 Workflow

import random

ckpt_name = ckpts[0]  # 选第一个模型
seed = random.randint(0, 2**63)

wf = {}
wf["1"] = {"class_type": "CheckpointLoaderSimple", "inputs": {"ckpt_name": ckpt_name}}
wf["2"] = {"class_type": "CLIPTextEncode", "inputs": {"text": "a beautiful sunset", "clip": ["1", 1]}}
wf["3"] = {"class_type": "CLIPTextEncode", "inputs": {"text": "ugly, blurry", "clip": ["1", 1]}}
wf["4"] = {"class_type": "EmptyLatentImage", "inputs": {"width": 1024, "height": 1024, "batch_size": 1}}
wf["5"] = {"class_type": "KSampler", "inputs": {
    "model": ["1", 0], "positive": ["2", 0], "negative": ["3", 0],
    "latent_image": ["4", 0], "seed": seed, "steps": 20,
    "cfg": 7.0, "sampler_name": "euler", "scheduler": "normal", "denoise": 1.0
}}
wf["6"] = {"class_type": "VAEDecode", "inputs": {"samples": ["5", 0], "vae": ["1", 2]}}
wf["7"] = {"class_type": "SaveImage", "inputs": {"images": ["6", 0], "filename_prefix": "ComfyUI"}}

Step 3: 提交并获取结果

result = submit_workflow(wf)
print(f"Prompt ID: {result['prompt_id']}")
print(f"Images: {len(result['images'])}")

# 展示输出
for img in result["images"]:
    img_bytes = client.get_image(img["filename"], img["subfolder"], img["type"])
    save_preview(img_bytes, f"output_{img['node_id']}")

Read the full file on GitHub · 216 lines

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. 11d ago First seen · 216 lines · 71 tokens per session scan A 80e23154dd46

Subscribe to this mod's changes

comfyui-workflow-builder is a skill published in the GitHub repository IvanYangYangXi/artclaw_bridge (35 stars, last pushed 4mo ago), licensed MIT. It adds 71 tokens to every session and 2,235 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-30.

Related

Other skills, from other repositories

dcc-mcp-core

Foundation library for the DCC Model Context Protocol (MCP) ecosystem. Provides Rust-powered action management, skills system, IPC transport, MCP Streamable HTTP server (2025-03-26 spec, with 2025-06-18 and 2025-11-25 awareness), sandbox security, shared memory, screen capture, USD scene support, and telemetry for…

dcc-mcp/dcc-mcp-core · 109 tokens

maya-pipeline

Domain skill — Maya asset pipeline orchestration: set up project directory structures, export scenes to USD, and coordinate multi-step DCC workflows. Use when initialising a Maya project or exporting assets for a downstream pipeline. Not for raw geometry editing — use maya-geometry for that. Not for low-level USD file…

dcc-mcp/dcc-mcp-core · 74 tokens

imagemagick-tools

Infrastructure skill — image processing and manipulation via ImageMagick: resize, composite, convert formats, add watermarks. Use when batch-processing textures, thumbnails, or rendered images at the file level. Not for in-DCC texture or material editing — use a domain skill bound to the specific DCC for that.

dcc-mcp/dcc-mcp-core · 67 tokens

asset-source

Gateway skill for cross-DCC asset import — search and resolve assets into a validated AssetDescriptor (local path + attribution). Demo source returns static catalog entries; production sources can add download or remote resolution without changing the contract.

dcc-mcp/dcc-mcp-core · 47 tokens

ffmpeg-media

Infrastructure skill — media conversion and processing via FFmpeg: convert video/audio formats, extract frames, resize, and transcode. Use when manipulating raw media files (mp4, mov, wav, image sequences) regardless of DCC context. Not for DCC-specific render output handling — use a domain pipeline skill for…

dcc-mcp/dcc-mcp-core · 77 tokens

maya-geometry

Domain skill — Maya geometry primitives: create spheres, cubes, cylinders; bevel, extrude, and merge polygon components. Use for individual geometry creation or editing operations inside Maya. Not for full asset export pipelines — use maya-pipeline for that. Not for USD scene inspection — use usd-tools for that.

dcc-mcp/dcc-mcp-core · 65 tokens