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.5 $0.00005 $0.00204
Sonnet 5.5 $0.00003 $0.00102
Haiku 4.5 $0.00001 $0.00051

Measured 1mo ago against content hash e99a6ca353b0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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.

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. 1mo 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 (3 stars, last pushed 15d ago), licensed MIT. It adds 13 tokens to every session and 509 once invoked, about $0.0001 per session on Opus 5.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

b123d-modeling

Use this skill when asked to model, build, or modify a 3D part or assembly with build123d — from a text description, a technical drawing (image or PDF), dimensions in a spec, or an existing STEP/STL file.

pzfreo/build123d-mcp · 0 tokens

b123d-edit

Use this skill when the task is to change an existing build123d model or script: "make this bracket 5 mm taller", "move the holes inward", "add a counterbore", "remove this rib", "make it fit this mating part", or "repair the code so the intended edit remains parametric".

pzfreo/build123d-mcp · 0 tokens

browser-forms

Fill a whole web form, post a comment or reply, or read a long thread in Safari or Chrome with the fewest Mac MCP browser calls.

bulutarkan/mac-mcp · 34 tokens

video-to-skill

Author an ordinary host skill from retained video or demonstration observations, then validate its source provenance, timestamped evidence, assets, rights declarations and retained task-run bindings before producing a local deterministic .skill archive. Use when deriving reusable instructions from a recording; task…

Galbaz1/video-research-mcp · 65 tokens

mlflow-traces

Use when working with MLflow traces: debugging via MCP tools, analyzing performance, logging feedback, writing custom scorers/evaluations, or cleaning up trace data.

Galbaz1/video-research-mcp · 37 tokens