comfyui

comfyui is a skill for Claude Code, Codex from G1Joshi/Agent-Skills. It costs 46 tokens per session (1,383 once invoked), scanned A, original, MIT.

A node-based interface for Stable Diffusion, an image-generation system. It lets you connect image-processing steps into workflows for generation, editing, control, upscaling, and some video tasks.

In plain words
What is it for?
Use it to build and save workflows for text-to-image generation, inpainting, ControlNet, upscaling, animation, and video-to-video processing.
Why use it?
It makes complex image-generation pipelines visible and reusable instead of hiding every step behind a single prompt.

Skill for Claude CodeCodex

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

Good fit Use it to build and save workflows for text-to-image generation, inpainting, ControlNet, upscaling, animation, and video-to-video processing.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/g1joshi/agent-skills/comfyui
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 G1Joshi/Agent-Skills --skill comfyui
Clone the repo
git clone --depth 1 https://github.com/G1Joshi/Agent-Skills

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/g1joshi/agent-skills/comfyui"><img src="https://agentmods.dev/badge/skills/g1joshi/agent-skills/comfyui.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,383 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.
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.00046 $0.01383
Opus 5.5 $0.00018 $0.00553
Sonnet 5.5 $0.00009 $0.00277
Haiku 4.5 $0.00005 $0.00138

Measured 1mo ago against content hash 1751726182c5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

comfyui 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 1mo 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.

Makes network callslowCapability

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

import urllib.request
skills/ai-ml/comfyui/SKILL.md · 173 lines

How it starts

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

ComfyUI

ComfyUI is a modular, node-based graph execution engine and GUI for Stable Diffusion and generative AI pipelines, offering granular control over every step of diffusion workflows.

When to Use

  • Advanced Generative Image & Video Pipelines: Designing node-based workflows for SDXL, Flux.1, and SD3.
  • Modular LoRA & ControlNet Composition: Layering multi-ControlNet conditions, IP-Adapter, and inpainting nodes.
  • Automated Headless Generation: Exporting workflow JSONs and executing generation via the ComfyUI REST API / WebSockets.
  • Custom Node Development: Extending PyTorch pipelines with proprietary filters, conditioning, and model loaders.

Quick Start

# Clone and install ComfyUI
git clone https://github.com/comfyanonymous/ComfyUI
cd ComfyUI
pip install -r requirements.txt

# Run server with GPU acceleration
python main.py --listen 127.0.0.1 --port 8188

Core Concepts

ComfyUI API Execution via Python

Triggering generation workflows programmatically via the REST API:

import json
import urllib.request
import urllib.parse

def queue_prompt(prompt_workflow: dict, server_address="127.0.0.1:8188") -> str:
    p = {"prompt": prompt_workflow}
    data = json.dumps(p).encode('utf-8')
    req = urllib.request.Request(f"http://{server_address}/prompt", data=data)
    req.add_header('Content-Type', 'application/json')

    with urllib.request.urlopen(req) as response:
        res = json.loads(response.read())
        return res['prompt_id']

# Minimal workflow dictionary structure
workflow_example = {
    "3": {
        "class_type": "KSampler",
        "inputs": {
            "seed": 42,
            "steps": 25,
            "cfg": 7.0,
            "sampler_name": "euler_ancestral",
            "scheduler": "normal",
            "denoise": 1.0,
            "model": ["4", 0],
            "positive": ["6", 0],
            "negative": ["7", 0],
            "latent_image": ["5", 0]
        }
    }
}

Developing Custom ComfyUI Extension Nodes

Read the full file on GitHub · 173 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. 1mo ago Changed · +5 lines 1751726182c5
  2. 2mo ago Changed · +123 lines · +28 tokens per session aab0e07040da
  3. 3mo ago First seen · 45 lines · 18 tokens per session scan A c0b569357e6e

Subscribe to this mod's changes

comfyui is a skill published in the GitHub repository G1Joshi/Agent-Skills (15 stars, last pushed 2mo ago), licensed MIT. It adds 46 tokens to every session and 1,383 once invoked, about $0.0002 per session on Opus 5.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

comfyui compared with skills from other repositories

comfyui next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
comfyuiG1Joshi/Agent-SkillsSkill152mo agoMITA46Claude Code, Codex
using-agent-skillsaddyosmani/agent-skillsSkill121k6d agoMITA54Claude Code
context-engineeringaddyosmani/agent-skillsSkill121k6d agoMITA43Claude Code
doubt-driven-developmentaddyosmani/agent-skillsSkill121k6d agoMITA96Claude Code
spec-driven-developmentaddyosmani/agent-skillsSkill121k6d agoMITA117Claude Code
git-workflow-and-versioningaddyosmani/agent-skillsSkill121k6d agoMITA131Claude Code
observability-and-instrumentationaddyosmani/agent-skillsSkill121k6d agoMITA66Claude Code