gen

gen is a skill for Claude Code from hybridindie/comfyui_mcp. It costs 13 tokens per session (509 once invoked), scanned A, original, MIT.

A command that generates an image in ComfyUI, a node-based image-generation application, from a text description. It can use requested dimensions, steps, guidance, model, and negative-prompt settings within defined limits.

In plain words
What is it for?
Parsing image prompts, choosing a ComfyUI checkpoint model, generating images with specified settings, and returning the completed image.
Why use it?
It provides a repeatable process for turning a scene description into an image while checking inputs and selecting an available model. The result is then retrieved after generation finishes.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Good fit Parsing image prompts, choosing a ComfyUI checkpoint model, generating images with specified settings, and returning the completed image.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hybridindie/comfyui_mcp/gen
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 hybridindie/comfyui_mcp --skill gen
Clone the repo
git clone --depth 1 https://github.com/hybridindie/comfyui_mcp

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 gen

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/hybridindie/comfyui_mcp/gen"><img src="https://agentmods.dev/badge/skills/hybridindie/comfyui_mcp/gen.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 13 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 509 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.00013 $0.00509
Opus 5 $0.00006 $0.00254
Sonnet 5 $0.00003 $0.00102
Haiku 4.5 $0.00001 $0.00051

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

Security

Grade A, and why

gen 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 9d 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/gen/SKILL.md · 35 lines

What it actually says

Generate Image

Generate an image using ComfyUI based on the user's prompt "$ARGUMENTS".

Steps

  1. Parse the prompt. Extract any explicit parameters (dimensions, steps, cfg, model name) from the user's request. Reject and ask for clarification only in these specific cases:

    • The prompt is empty or whitespace-only
    • The prompt is a question or meta-request rather than a scene description (e.g., "what can you do?", "how does this work?")
    • The user passed a parameter outside its valid range (steps < 1, cfg < 0, width/height not divisible by 8)

    Otherwise, apply these defaults for the listed parameters (and only these) when not specified:

    • width: 512, height: 512
    • steps: 20
    • cfg: 7.0
    • negative_prompt: "bad quality, blurry"
  2. Select a model. If the user specified a model name, use it. Otherwise, call comfyui_list_models with folder "checkpoints", pick one from the returned items, and ask the user to confirm before proceeding (offer to swap if they want a different one).

  3. Generate the image. Call comfyui_generate_image with the parsed parameters and wait=True so we block until completion.

  4. Fetch the result. The response is a dict envelope with keys status (expect "completed"), prompt_id, outputs, elapsed_seconds, and optionally warnings. outputs is a list of {node_id, filename, subfolder} entries — read the first entry's filename and subfolder and call comfyui_get_image with those. (Tip: pass preview_format="webp" and preview_quality=80 to comfyui_get_image for a thumbnail instead of the full PNG — much cheaper context.)

  5. Present the result. Show the image and a summary of the generation parameters used (prompt, model, dimensions, steps, cfg).

Notes

  • If generation fails, check comfyui_get_queue to see if ComfyUI is busy or stuck.
  • For img2img, ControlNet, or other advanced workflows, use /comfy:workflow instead.
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. 9d ago First seen · 35 lines · 13 tokens per session scan A e99a6ca353b0

Subscribe to this mod's changes

gen is a skill published in the GitHub repository hybridindie/comfyui_mcp (2 stars, last pushed 6d ago), licensed MIT. It adds 13 tokens to every session and 509 once invoked, about $0.0001 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

local-gpu-imagegen

Use when a user asks to create, generate, draw, render, transform, restyle, or revise a visual asset on the local GPU.

ChevalGrand520/local-gpu-imagegen · 35 tokens

AI Image & Video Generator — GPT Image 2, Seedance, ComfyUI

Generate images and videos from text with multi-provider routing — supports GPT Image 2.0 (near-perfect text rendering), Nanobanana 2, Seedream 5.0, Midjourney V8.1 (unified photorealistic + anime), Flux 2 Klein (cheap drafts), Seedance 2.0 / Veo 3.1 / Grok Video / Agnes Video, and local ComfyUI workflows. Includes…

jau123/MeiGen-AI-Design-MCP · 177 tokens

MeiGen Visual Creative Expert

This skill should be used when the user asks to "generate an image", "create artwork", "design a logo", "make a poster", "draw something", "find inspiration", "search for reference images", "enhance my prompt", "improve prompt", "brand design", "product mockup", "batch generate images", "multiple variations"…

jau123/MeiGen-AI-Design-MCP · 183 tokens

comfyui-skill-openclaw

Run registered ComfyUI workflows through the fast comfyui-skill CLI, and use the official local Comfy MCP for live template, node, model, validation, and orchestration capabilities. Use this Skill when: (1) The user requests to "generate an image", "draw a picture", or "execute a ComfyUI workflow". (2) The user has…

HuangYuChuh/ComfyUI_Skills_OpenClaw · 125 tokens

Product Photoshoot Workflow

A workflow for turning one product photo into a set of four e-commerce images from different visual directions.

jau123/MeiGen-AI-Design-MCP · 112 tokens

Social Thumbnail Workflow

A workflow for creating vertical images for short-video platforms and mobile social feeds, where content is usually viewed in a 9:16 portrait layout.

jau123/MeiGen-AI-Design-MCP · 123 tokens