ComfyUI-Agent-Kit

by SlavaSextonVerified

One ComfyUI skill for every AI coding agent (Claude Code, Codex, Gemini CLI, Qwen Code): drives a local ComfyUI end to end. 72 model prompt recipes, 562 templates, hardware-aware selection, auto-start, workflow building, multi-shot video, ControlNet, HDR, enhance/restore. By AI VFX NEWS.

53
Stars
4
Forks
Python
Language
8/24/2026
Added
View on GitHubDownload ZIP

⚠️ Third-Party Software Notice

This skill is third-party open-source software developed and hosted independently on GitHub. SkillTip is an informational directory and does not control or maintain the underlying repository. Any security checks displayed are automated and limited in scope. Review the source code before installing.

Read the Terms of Service

Installation

Add to your Claude Code skills directory:

# Add to your Claude Code skills
git clone https://github.com/SlavaSexton/ComfyUI-Agent-Kit

Getting Started

Guides for using skills like ComfyUI-Agent-Kit.

Security Report

Verified

Last scanned: —

{
  "status": "PASSED",
  "issues": []
}

README.md

ComfyUI skill for AI coding agents, by AI VFX NEWS

ComfyUI-Agent-Kit

Local-first ComfyUI for every AI coding agent (Claude Code, Codex, Gemini CLI, Qwen Code).
Your GPU, your models, no cloud, no account.

By AI VFX NEWS.

Make Claude Code, Codex, Gemini CLI, or Qwen Code drive ComfyUI at full power on your own machine - generate images, video, and audio, build and run workflows, pick the model variant that fits your hardware, and show the graph live in your own ComfyUI canvas. No hosted service, no per-generation billing: one installer wires the same stack into every agent you run, then you hand the whole setup to someone else with one command.

License: Apache 2.0 ComfyUI Agents Platforms


This is the portable, machine-independent, multi-agent version of a working ComfyUI setup. One shared core (the knowledge + the MCP driver) plus a thin adapter per agent. Clone it, run the installer, and each of your agents gets the same stack, wired to your hardware. GLM (z.ai) run through Claude Code is covered by the claude adapter. See docs/AGENTS.md for how each agent connects.

Local-first, for experts and everyday users alike. It scales from one-command image / video generation to a professional VFX color pipeline: v2 ships ComfyUI-OCIO (nine Nuke-style OpenColorIO nodes - Read a sequence, grade in ACES, write ProRes, preview on an on-node player, fully color-managed) and the field guide to building your own custom nodes.

Local-first by design. Prefer the cloud? The official Comfy Cloud MCP runs your workflows on Comfy's GPUs, no local setup. This kit is the local-first counterpart: everything runs on hardware you control, with no account and no per-generation cost, the model picker sizes each job to your VRAM, and it serves four agents, not one. Use whichever fits the job.

What it can do

  • Drive ComfyUI from four agents (Claude Code, Codex, Gemini CLI, Qwen Code) off one shared core. GLM via Claude Code is covered too. (docs/AGENTS.md)
  • ~90-tool MCP driver. The agent operates ComfyUI directly: generate, build / edit / validate graphs, queue, download models, manage VRAM, read logs, diagnose.
  • Per-model "mega-brain": 75 prompt-recipe entries covering 68 named models, distilled from official sources (image, video, audio, 3D), split by family so each file reads whole in one call; the agent auto-pulls the right recipe when you name a model, so it prompts each one in its own dialect.
  • Knows where each model runs: a full index of all 163 library models (recipe / utility / template-only), local vs API.
  • Hardware-aware model selection: detects your VRAM, RAM, and free disk, then recommends the variant that fits (fp8 / offload / multi-GPU / quant) and refuses a download that won't fit, before wasting the bandwidth.
  • 18 enhancement and utility tools: upscale / restore (Real-ESRGAN, SUPIR, SeedVR2), frame interpolation (FILM, RIFE), segmentation / depth / pose (SAM3, BiRefNet, Depth Anything), plus restoration chains.
  • 581-template library (and 94 official Subgraph Blueprints, reusable subgraph bricks) as the source of truth, plus fetch any shared workflow by hash and a model shootout (run a prompt through many models small, pick the winner, then scale up).
  • Assembles new workflows from parts: decomposes a task into stages, mixes templates and blueprint subgraphs, and wires the nodes correctly (output-to-input by type, with converters where needed), validated against /object_info before running. Not a preset runner.
  • Expert color + custom nodes (new in v2): ships ComfyUI-OCIO
    • nine Nuke-style OpenColorIO nodes (Read / Write a still, sequence or video, grade in ACES, write ProRes / EXR, preview on an on-node player, fully color-managed) - and the agent knows each node's I/O plus the field guide to building a custom node pack. (docs/NODE_LIBRARY/ocio.md, docs/BUILDING_NODES.md)
  • Starts ComfyUI for you: when the server is down, the agent launches it headless in the background and generates (no need to open the app first); to peek, you open http://127.0.0.1:8188 in a browser. For an unattended pipeline the start policy is configurable per project (env vars or a .comfyui-agent.json), so it never blocks on a prompt.
  • GUI bridge + persistence: the agent writes graphs into your ComfyUI canvas, and SAVES every workflow it builds or runs to ComfyUI's workflows folder, so you can open it later from the Workflows sidebar (an API generation alone leaves no trace on the canvas).
  • Stays current on its own: check_updates.py diffs the template repo and reads the blog RSS; an optional weekly task adds recipes for new models and pushes them. (docs/UPDATING.md)
  • Three model skills that work outside ComfyUI too: seedance, minimax-h3, krea. Vendor prompting knowledge that also applies on the vendor's own app or API ships as its own skill rather than being buried in the ComfyUI reference. minimax-h3 owns the H3 three-field prompt format, <d> dialogue and the quant and acceleration ladder; krea owns the fork between Krea's hosted API and its open weights, FLUX.1 Krea Dev, and why the only ComfyUI pack for Krea Realtime is a 0-star lead rather than a route. The first of them, seedance: ByteDance's Seedance video models run on Dreamina, Jimeng and the BytePlus API as well as in ComfyUI, so their prompting knowledge ships as its own skill: the three task types and the one word that switches between them, the reference label syntax, the timestamp storyboard, the real-person character formula, and a failure table for face drift, duplicate characters and extension seams. Distilled from ByteDance's own guides. (shared/seedance/SKILL.md)
  • Portable and idempotent: one installer, auto-detects your agents, re-runnable. Apache-2.0, no vendored third-party code (everything heavy is fetched at install).

The four-layer stack

The four-layer stack: knowledge + client, MCP driver, in-graph Claude nodes, node-building skills, plus the template library and GUI bridge

LayerWhatInstalled as
1Knowledge + client the operating manual and a zero-dependency HTTP clientthe agent's skill / extension dir
2MCP driver ~90 structured tools so the agent operates ComfyUI directlycomfyui-mcp (npm) + per-agent MCP registration
3In-graph Claude nodes an LLM as a step inside a workflow (prompt enrichment, vision QA)ComfyUI custom_nodes
4Node-building skills for writing/modifying custom nodes (V3 API)the agent's skill dir (Claude/Codex)
+Template library the official 500+ workflow templates, the source of truthsparse git clone + quick index

Plus a GUI bridge: the agent writes graphs to <ComfyUI>/user/default/workflows/, you open them in the built-in Workflows sidebar and tweak them. No extra "agent panel" node required.

See docs/LAYERS.md for each layer, and docs/AGENTS.md for the per-agent matrix.

The template library is the source of truth

The kit clones the official Comfy-Org/workflow_templates and builds a compact lookup index so the agent can match any request to the right template. 581 templates (plus 94 official Subgraph Blueprints, reusable subgraph bricks) span every task, image, video, 3D, audio, utilities:

Workflow templates by category: 160 video, 158 image, 103 use cases, 72 utility, 33 3D, 31 audio, 17 LLM, 7 node basics

It knows every model's dialect

Each generative model rewards a different prompt approach: SDXL wants comma tags, FLUX wants natural-language sentences, video models want camera and motion direction, audio models want genre/tempo/instruments, and negative-prompt support varies wildly. The kit ships MODELS.md, a per-model prompting reference distilled from official sources (each maker's docs and model cards, docs.comfy.org, and the per-model templates from the anthropic-claude node). When you name a model in a request or a workflow, the agent reads that model's entry first and prompts it correctly.

Covered today (75 recipe entries, 68 named models): FLUX.1/.2 + Kontext, Z-Image, Boogu, Mage-Flow, Qwen-Image/Edit, SDXL, SD1.5/3.5, HiDream, Ideogram, Nano Banana Pro/2, Seedream, Recraft, GPT-Image, Grok, Reve, Kandinsky, BRIA, OmniGen, Chroma, Krea 1/2, ERNIE-Image, FireRed/LongCat/ChronoEdit/JoyAI Image Edit (edit), Capybara, Bernini-R, Anima, NewBie, PixelDiT, Ovis-Image, Lens, Quiver, Wan 2.1-2.7, LTX-2.3/2 Pro, Hunyuan Video, SVD, Kling, Veo, Sora, Seedance, Luma, Runway, MiniMax, PixVerse, Vidu, Pika, HeyGen (avatar video), HappyHorse, HuMo, SCAIL-2, Stable Audio, ACE-Step, ElevenLabs, ChatterBox, Sonilo, Hunyuan3D, Tripo, Rodin, Meshy. Plus a separate Enhancement and utility section (not prompt-driven, settings not prompts): upscalers and restorers (Real-ESRGAN, SUPIR, SeedVR2, FlashVSR, Topaz, Magnific), frame interpolation (FILM, RIFE), conditioning helpers (SAM3, BiRefNet, Depth Anything, DWPose, MoGe, IP-Adapter, LivePortrait, Mediapipe), and video object removal (VOID). Anything else falls back to the template library.

Per-model prompt recipes by modality: 43 image, 25 video, 6 audio, 4 3D, 78 total, split local/open-weight vs API, plus 18 enhancement and utility tools

Full model index: every model in the library and exactly what the kit has for it (recipe / utility / template-only): docs/MODEL_INDEX.md.

Coverage table: every model and whether a prompt recipe is ready

✅ recipe = a dedicated, up-to-date prompting guide reached through the index in MODELS.md, which names the family file under shared/comfyui/MODELS/ that holds it. 🔧 tool = an enhancement/utility note (settings, not prompts). Table last reviewed: 2026-08-06.

One table, columns aligned to the widest row (the video models).

ModalityModel / toolPrompt recipeRuns
ImageFLUX.1 / FLUX.2 / Kontextlocal + API
ImageZ-Image-Turbolocal
ImageQwen-Image / Editlocal
ImageSDXL · SD 1.5 · SD 3.5local
ImageHiDream-I1local
ImageBRIA 3.xlocal
ImageOmniGen v1/v2local
ImageChromalocal
ImageKrea 2 / FLUX.1 Krea Devlocal
ImageERNIE-Imagelocal
ImageCapybara (image+video)local
ImageBernini-R (relight)local
ImageAnima (anime, + ControlNet-LLLite)local
ImageNewBie (anime, XML prompts)local
ImagePixelDiTlocal
ImageOvis-Image (text rendering)local
ImageLens / Lens Turbolocal
ImageQuiver (text to SVG)API
ImageIdeogram 2/3API
ImageNano Banana Pro / 2API
ImageSeedream 4/5API
ImageRecraft V3API
ImageGPT-ImageAPI
ImageGrok ImageAPI
ImageReveAPI
ImageKandinsky 3.xlocal + API
Image editFireRed / LongCat / ChronoEditlocal
Image editJoyAI Image Edit (JD)local
VideoWan 2.1-2.7 (+VACE/Animate v1/Animate 2/ATI)local + API
VideoLTX-2.3 / LTX-2 Prolocal
VideoHunyuan Videolocal
VideoSVD (image-to-video)local
VideoHuMo (lip-sync)local
VideoSCAIL-2 (character)local
VideoHappyHorse 1.1 (synced audio)API
VideoKling (1.6-3.0, O1/O3)API
VideoVeo 3/3.1API
VideoSora 2API
VideoSeedance 1.0/1.5/2.0 (4K)API
VideoLuma Ray · Runway Gen-4/4.5API
VideoMiniMax/Hailuo · PixVerse · Vidu · PikaAPI
VideoHeyGen (avatar, talking photo, translate)API
AudioStable Audio · ACE-Step · ChatterBoxlocal
AudioElevenLabs · SoniloAPI
3DHunyuan3Dlocal
3DTripo · Rodin · MeshyAPI
Enhance / utilityReal-ESRGAN, SUPIR, SeedVR2, FlashVSR (upscale/restore)🔧 settingslocal
Enhance / utilityTopaz, Magnific (upscale)🔧 settingsAPI
Enhance / utilityFILM, RIFE (frame interpolation)🔧 settingslocal
Enhance / utilitySAM3, BiRefNet (segmentation/matting)🔧 settingslocal
Enhance / utilityDepth Anything v2/v3, MoGe (depth/geometry)🔧 settingslocal
Enhance / utilityDWPose, Mediapipe (pose/landmarks)🔧 settingslocal
Enhance / utilityIP-Adapter, LivePortrait (conditioning/portrait)🔧 settingslocal
Enhance / utilityVOID (video object removal)🔧 settingslocal

Niche models still without a recipe (very new, thin docs) run from their template and borrow the closest family's approach; see docs/MODEL_INDEX.md for the full per-variant breakdown.

Prerequisites

Install

Claude Code: one-command plugin

Claude Code users can add the kit straight from the marketplace, no clone needed:

/plugin marketplace add SlavaSexton/ComfyUI-Agent-Kit
/plugin install comfyui@comfyui-agent-kit

That registers the local comfyui-mcp driver (launched with npx, no manual npm step) and loads the full comfyui skill (the 75-entry recipe brain + the docs). You still need a local ComfyUI on http://127.0.0.1:8188; the skill fills in your machine block on the first task. Plugins are Claude Code only, so for Codex / Gemini CLI / Qwen Code use the multi-agent installer below.

Every agent: the installer

Windows (PowerShell):

git clone https://github.com/SlavaSexton/ComfyUI-Agent-Kit.git
cd ComfyUI-Agent-Kit
./install.ps1 -ComfyUIPath "E:\path\to\ComfyUI"   # installs for every agent CLI found on PATH

Linux / macOS:

git clone https://github.com/SlavaSexton/ComfyUI-Agent-Kit.git
cd ComfyUI-Agent-Kit
./install.sh --comfyui-path /path/to/ComfyUI       # installs for every agent CLI found on PATH

The installer runs the shared machine setup once (MCP package, templates, in-graph nodes), then auto-detects which of claude / codex / gemini / qwen are installed and wires each one. It is idempotent, re-run it any time. Limit the targets with -Agents claude,gemini / --agents claude,gemini. Flags: -SkipTemplates / --skip-templates (skip the ~900MB template clone), -SkipNodes / --skip-nodes. Per-agent details and the GLM note are in docs/AGENTS.md.

First run on a new machine

After install, start ComfyUI, then in an agent session tell it to run the bootstrap once (docs/BOOTSTRAP.md): it detects your GPUs, VRAM, RAM, free disk, paths, and installed models via the MCP health_check, fills the machine-specific block in the skill, and does a smoke-test generation. After that, just ask for media. On Claude/Codex the skill auto-activates on ComfyUI keywords; on Gemini/Qwen the knowledge is loaded as the extension's context.

Optional: in-graph LLM key

Only needed if you want a workflow to enrich prompts without the agent in the loop (e.g. an unattended pipeline):

setx CLAUDE_API_KEY "sk-ant-..."   # then restart ComfyUI

See docs/NODES.md. When you are driving, the agent writes prompts directly, better and free.

Layout

ComfyUI-Agent-Kit/
├── install.ps1 / install.sh         top-level: shared setup + auto-detect agents + run adapters
├── shared/
│   ├── comfyui/                     SKILL.md + MODELS.md + comfy_client.py  (one source of truth)
│   └── tools/gen_quick_index.py     rebuild the template lookup index
├── agents/
│   ├── claude/   install.ps1/.sh    -> ~/.claude/skills/comfyui + claude mcp add + CLAUDE.md
│   ├── codex/    install.ps1/.sh    -> ~/.agents/skills/comfyui + ~/.codex/config.toml
│   ├── gemini/   install.ps1/.sh    -> ~/.gemini/extensions/comfyui (gemini-extension.json + GEMINI.md)
│   └── qwen/     install.ps1/.sh    -> ~/.qwen/extensions/comfyui (qwen-extension.json + QWEN.md)
├── docs/AGENTS.md                   per-agent matrix (how each connects) + GLM note
├── docs/MODEL_INDEX.md              every model in the library and what the kit has for it
├── docs/EXAMPLE_WORKFLOWS.md        notable shared workflows (model shootouts, restoration) + fetch helper
├── docs/UPDATING.md                 stay current: check_updates.py (templates diff + blog RSS) + the loop
├── docs/BOOTSTRAP.md / LAYERS.md / NODES.md
├── ATTRIBUTION.md                   credits for fetched third-party pieces
├── CHANGELOG.md                     curated history of notable changes (Keep a Changelog)
├── CONTRIBUTING.md                  what the kit accepts, the Teaching standard, house rules
├── LICENSE                          Apache-2.0 (this kit's original files)
└── NOTICE                           attribution + trademark notice (Apache-2.0 section 4d)

What is and isn't in this repo

In the repo (original work, Apache-2.0): the skill, the client, the installer, the index generator, the docs, the generated visuals. Fetched at install time from their own sources (not redistributed here): the comfyui-mcp package, the node-building skills, the workflow templates, and the in-graph Claude nodes.

Credits and thanks

Our own companion pack: ComfyUI-OCIO - nine Nuke-style OpenColorIO nodes - is by Slava Sexton, this kit's author (Apache-2.0). It is credited to him wherever the kit uses, recommends, or builds on it; see ATTRIBUTION.md.

This kit stands on excellent open-source work. It is a thin wiring layer over these projects, and the heavy lifting is theirs. Huge thanks to:

v1.1.0 builds on more excellent work. Thanks also to:

Field techniques in wide community use lean on:

  • KJNodes by kijai (LTX-2.3 NAG, GGUF loading, chunked feed-forward, multi-guide), ComfyUI-CacheDiT by Jasonzzt (inference caching), ComfyUI-MelBandRoFormer (audio stem separation), ComfyUI-Frame-Interpolation by Fannovel16 (FILM), comfyui-inpaint-cropandstitch (Flux.2 masked inpaint), and GAP LTX 2.3 Motion by GeekatplayStudio (lipsync / storyboard / long audio).
  • ComfyUI-Flux2Klein-Enhancer by capitan01R, the training-free multi-reference identity-transfer node suite for FLUX.2 Klein. Note: PolyForm Noncommercial license (commercial use needs a separate license).
  • Smart Image Crop and Stitch by HallettVisual, an auto-sized crop/stitch node pair for high-res inpainting and detail edits (Apache-2.0).

v2.5.0 leans on more people's work. Thanks also to:

  • Anima ControlNet-LLLite by kohya-ss, the control and inpainting patches that give the Anima base model depth, lineart, pose, scribble and masked editing (repacked for ComfyUI by Comfy-Org). Note: non-commercial license, inherited from the Anima base weights.
  • krea2_style_reference and ComfyUI-Krea2-Ostris-Edit by ostris, the Krea 2 Turbo image-style-reference LoRA and the instruction-edit nodes this kit documents, plus the krea2-detail-enhancer-edit-lora by reverentelusarca.
  • JoyAI-Image by JD (jd-opensource), the instruction image-edit model now supported natively in ComfyUI core (Apache-2.0).

Full per-component licensing is in ATTRIBUTION.md. If anything here misattributes your work, open an issue and it will be fixed.

Contributing

Read CONTRIBUTING.md first. It says what the kit accepts, what it does not and why, and the bar any knowledge entry has to clear. An issue before a large PR is welcome and usually faster.

License

Apache-2.0, see LICENSE and NOTICE. Releases up to v3.1.0 were MIT and that grant stands. Third-party components keep their own licenses.

Made by AI VFX NEWS

Frequently Asked Questions

What is ComfyUI-Agent-Kit?

ComfyUI-Agent-Kit is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by SlavaSexton. One ComfyUI skill for every AI coding agent (Claude Code, Codex, Gemini CLI, Qwen Code): drives a local ComfyUI end to end. 72 model prompt recipes, 562 templates, hardware-aware selection, auto-start, workflow building, multi-shot video, ControlNet, HDR, enhance/restore. By AI VFX NEWS. It has 53 GitHub stars.

Is ComfyUI-Agent-Kit safe to use?

Yes. ComfyUI-Agent-Kit passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install ComfyUI-Agent-Kit?

Clone the repository with "git clone https://github.com/SlavaSexton/ComfyUI-Agent-Kit" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is ComfyUI-Agent-Kit written in?

ComfyUI-Agent-Kit is primarily written in Python. It is open-source under SlavaSexton on GitHub, so you can review or fork the full source.

Are there alternatives to ComfyUI-Agent-Kit?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh ComfyUI-Agent-Kit against similar tools.

Comments (0)

No comments yet. Be the first to share your thoughts!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI Agentsai-agentsanthropicclaude-code
View details
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI Agentsai-agentsbrainstorming
View details

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI Agentsai-agentsanthropicclaude-code
View details

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI Agentsclaude-codeai-tools
View details

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI Agents
View details

Developers Also Liked

Based on votes and bookmarks from developers who liked this skill

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI Agentsai-agentsanthropicclaude-code
View details
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI Agentsai-agentsbrainstorming
View details

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP Serversapisai-tools
View details

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI Agentsai-agentsanthropicclaude-code
View details

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI Agentsclaude-codeai-tools
View details
ComfyUI-Agent-Kit — AI Skill for Claude Code | SkillTip