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.
git clone --depth 1 https://github.com/Comfy-Org/comfy-skillsWrote 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.
[](https://agentmods.dev/commands/comfy-org/comfy-skills/generate-image)<a href="https://agentmods.dev/commands/comfy-org/comfy-skills/generate-image"><img src="https://agentmods.dev/badge/commands/comfy-org/comfy-skills/generate-image/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.
<a href="https://agentmods.dev/commands/comfy-org/comfy-skills/generate-image"><img src="https://agentmods.dev/badge/commands/comfy-org/comfy-skills/generate-image.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00012 | $0.02060 |
| Opus 5.5 | $0.00005 | $0.00824 |
| Sonnet 5.5 | $0.00002 | $0.00412 |
| Haiku 4.5 | $0.00001 | $0.00206 |
Grade A, and why
generate-image 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 20d 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.
- In **CLI/terminal environments** (Claude Code, Cursor): the response contains a temporary signed GCS download URL, a suggested save path, and a ready-to-run `curl` command on its own line. **Execute that `curl` command How it starts
The opening of the file, as written. The whole thing — 40 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Generate, edit, or modify an image using Comfy Cloud based on the user's description: $ARGUMENTS
Follow these steps exactly:
Step 0 — Route partner-API requests directly. If the user named a provider, model, or capability (e.g. "Flux Pro Ultra", "Nano Banana", "Kling", "DALL-E"), do one search_nodes lookup with the named term. partner_generate returns only the output, never a workflow: if the user asked to BUILD or CREATE a workflow (not just for an output), skip partner_generate and continue to Step 1, wiring the matching node into the workflow you build if its category starts with partner/ (an OSS match takes the normal steps below). If the matching node's category starts with partner/, try partner_generate first — its description names providers, not model ids, so pass type: "image" plus your best-guess model slug (a wrong one rejects before queuing and bounces back naming the closest real slugs, Did you mean: …), prompt, and any optional fields (aspect_ratio/seed/medias[]). On a bounce, first look for a run_template the bounce names (a "served by the bundled template … Do not retry this slug" reply): run that template instead of re-calling. Otherwise re-call once with the suggested slug only if it keeps the provider prefix of your guess (a kling/… suggestion for a kling/… guess) AND names the same product and shape the user asked for — a text-to-video slug is not a retry for an image-, reference- or first/last-frame-to-video request (-t2v for -i2v/-r2v/-flf2v), and a sound-effects slug is not a retry for speech; for those, find the family's own api_* template with search_templates and run_template it, or ask. If the bounce lists several slugs or several params.model tiers, pick the one that matches the user's request; if none clearly does, ask instead of re-calling (the re-call is the call that queues and charges, and tiers are priced differently). Pass a tier-shaped guess as params: {"model": "<tier>"} on the slug the bounce names rather than re-calling the bare slug (that runs the entry's default tier at a different price). Say which slug or tier you switched to. If that re-call bounces too, do not re-call again — handle it as "unknown model" with no close match named (below). The suggestions are ranked by token overlap across the whole registry, so one can belong to a provider the user never named — if none keeps your guess's provider prefix, do not re-call (the re-call is the call that queues and charges): stop and ask the user which model to use; inside submit_batch resend only the bounced item — its siblings may already be queued and charged. On success, return the artifact URL(s) and stop — do NOT continue with the workflow steps below. If partner_generate returns "unknown model" with no close match named, or "not yet implemented", or the matching node has no partner/ prefix (OSS model), continue to Step 1.
-
Use
search_templatesto find a pre-built workflow template that matches the request (e.g. "text to image", "image to video", "style transfer", "inpainting"). If a good template exists, use it as the base workflow instead of building from scratch. -
If no suitable template was found, use
search_modelsto find an appropriate checkpoint model for the request. Pick the best match based on the user's description (e.g. realistic photo -> realistic checkpoint, anime -> anime checkpoint, SDXL for high quality). -
If the user provides an input image (for img2img, style transfer, upscaling, etc.), use
upload_fileto upload it to Comfy Cloud first. Use the returned filename in a LoadImage node. -
Build a ComfyUI API-format workflow JSON with the appropriate nodes (or use the template workflow). A standard text-to-image workflow uses: CheckpointLoaderSimple, CLIPTextEncode (positive and negative prompts), EmptyLatentImage, KSampler, VAEDecode, SaveImage. For img2img, replace EmptyLatentImage with LoadImage + VAEEncode. Give EVERY node a
_meta.titlethat names its role in plain words (e.g. "Load driving video", "Remove background", "Overlay graphic 1", "Save video"). The canvas shows these titles; without them the user sees only class names.
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.
- 20d ago Changed 77d614e9177d
- 21d ago Changed · +2 lines e50d3f68f1e3
- 1mo ago Changed · +2 lines 0e7cab5ec4d4
- 3mo ago First seen · 36 lines · 12 tokens per session scan A 8de640fbe7c0
generate-image is a command published in the GitHub repository Comfy-Org/comfy-skills (274 stars, last pushed today), licensed MIT. It adds 12 tokens to every session and 2,060 once invoked, about $0.0000 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.
generate-image compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| generate-imageComfy-Org/comfy-skills | Command | 274 | today | MIT | A | 12 | Claude Code |
| cancel-ralphanthropics/claude-plugins-official | Command | 49k | today | Apache-2.0 | A | 4 | Claude Code |
| constraintsvinvcn/addyosmani-agent-skills-zh | Command | 59 | 1mo ago | MIT | A | 20 | Claude Code |
| releasekomunite/kalfa | Command | 246 | 7mo ago | MIT | A | 13 | Claude Code |
| rclone_config_dumpchaunsin/agent-skills | Command | 2 | 12d ago | Apache-2.0 | A | 7 | Claude Code |
| checklistgithub/spec-kit | Command | 153k | today | MIT | A | 13 | Claude Code |
| clarifygithub/spec-kit | Command | 153k | today | MIT | A | 27 | Claude Code |