comfyui
Installation
SKILL.md
ComfyUI — Local Image Generation
Run FLUX.2 image-generation workflows on a local ComfyUI server via its REST API.
Server: http://localhost:8188
Critical Rules for Agents
- Always verify the server is running before queuing work:
curl -s http://localhost:8188/system_stats | head -c 200. - Randomize seeds for each generation unless the user asks for reproducibility. Generate a random integer (up to 2^53 - 1).
- Poll for completion — the
/promptendpoint returns immediately with aprompt_id; you must poll/history/{prompt_id}until outputs appear. - Download results to the current working directory so the user can see them.