gen
Skill2 starsChanged 5 days agoMITView on GitHub
Generate an image with ComfyUI from a text prompt
4 other projects use a version of this.
Adopted by
Most recently taken up by
- okou-ai/okou-skillstheir own version, first seen Nov 18, 2026
- poweredbyGEN/gen-gemini-extensiontheir own version, first seen Oct 13, 2026
- vm0-ai/vm0-skillstheir own version, first seen Oct 8, 2026
- kt057/claude-code-boilerplatetheir own version, first seen Feb 8, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- okou-ai/okou-skills★ 81same name
- vm0-ai/vm0-skills★ 81same name
- kt057/claude-code-boilerplate★ 1same name
- poweredbyGEN/gen-gemini-extension★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository16 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- customize-harnessSkill
- ship-prSkill
- test-hygiene-scannerSkill
- batchSkill
- connectSkill
- editSkill
- historySkill
- modelsSkill
- progressSkill
- security-reviewSkill
- statusSkill
- troubleshootingSkill
- workflowSkill
- workflowsSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 0 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 23
Select a model: If the user specified a model name, use it.
- Very specific: line 25
Generate the image: Call comfyui_generate_image with the parsed parameters and wait=True so we block until completion.
- Very specific: line 33
If generation fails, check comfyui_get_queue to see if ComfyUI is busy or stuck.
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Generate Image
Generate an image using ComfyUI based on the user's prompt "$ARGUMENTS".
Steps
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"
- Select a model. If the user specified a model name, use it. Otherwise, call
comfyui_list_modelswith folder"checkpoints", pick one from the returneditems, and ask the user to confirm before proceeding (offer to swap if they want a different one). - Generate the image. Call
comfyui_generate_imagewith the parsed parameters andwait=Trueso we block until completion. - Fetch the result. The response is a dict envelope with keys
status(expect"completed"),prompt_id,outputs,elapsed_seconds, and optionallywarnings.outputsis a list of{node_id, filename, subfolder}entries — read the first entry'sfilenameandsubfolderand callcomfyui_get_imagewith those. (Tip: passpreview_format="webp"andpreview_quality=80tocomfyui_get_imagefor a thumbnail instead of the full PNG — much cheaper context.) - 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_queueto see if ComfyUI is busy or stuck. - For img2img, ControlNet, or other advanced workflows, use
/comfy:workflowinstead.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

