ComfyUI Generator

# ComfyUI Generator Skill

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "ComfyUI Generator" with this command: npx skills add nl108/comfyui-generator

ComfyUI Generator Skill

Overview

Integration between OpenClaw and ComfyUI for AI media generation.

Features

  • Text-to-image generation
  • Image style transfer
  • Batch processing
  • Automated workflow management
  • File monitoring and archiving

Installation

Prerequisites

  1. ComfyUI installed at C:\ComfyUI
  2. ComfyUI service running on http://127.0.0.1:8188
  3. OpenClaw 2026.4.5+

Setup

# Set environment variables
export COMFY_API_KEY="local_comfyui"
export COMFY_BASE_URL="http://127.0.0.1:8188"

# Copy workflow files
cp -r workflows/*.json "C:\ComfyUI\input\workflows\"

Usage

Generate Image

openclaw comfy generate --prompt "a beautiful landscape" --style cyberpunk

Style Transfer

openclaw comfy style --image "path/to/image.jpg" --style "van gogh"

Batch Processing

openclaw comfy batch --input prompts.txt --output output_dir --iterations 5

Configuration

Environment Variables

COMFY_API_KEY="local_comfyui"
COMFY_BASE_URL="http://127.0.0.1:8188"
COMFY_OUTPUT_DIR="C:\ComfyUI\output"

Workflow Configuration

Place workflow JSON files in:

C:\ComfyUI\input\workflows\

Examples

Basic Image Generation

from comfy_client import ComfyUIClient

client = ComfyUIClient()
result = client.generate_image(
    prompt="a futuristic city at night",
    workflow="image_generation.json"
)

Style Transfer

result = client.style_transfer(
    image_path="input.jpg",
    style="cyberpunk",
    workflow="style_transfer.json"
)

Troubleshooting

Service Not Running

# Check if ComfyUI is running
curl http://127.0.0.1:8188

# Start ComfyUI
python "C:\ComfyUI\main.py" --listen 127.0.0.1 --port 8188

API Connection Issues

  1. Verify firewall allows port 8188
  2. Check ComfyUI logs in C:\ComfyUI\logs\
  3. Ensure API key is set correctly

Generation Quality

  • Use detailed prompts
  • Adjust workflow parameters
  • Try different models

Files

Core Scripts

  • scripts/comfy_client.py - API client
  • scripts/prompt_generator.py - Prompt optimization
  • scripts/file_monitor.py - Output monitoring

Workflow Files

  • workflows/image_generation.json - Basic image generation
  • workflows/style_transfer.json - Style transfer
  • workflows/upscale.json - Image upscaling

Configuration

  • config/settings.yaml - Skill configuration
  • config/prompt_templates.json - Prompt templates

License

MIT License

Support

For issues and questions, please check:

  1. ComfyUI documentation
  2. OpenClaw documentation
  3. Skill logs in C:\Users\LEI\.openclaw\logs\

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

JMCAI Comfypet

调用 JMCAI Comfypet 桌面应用中已经配置好的 ComfyUI workflow。本技能必须配合 JMCAI 桌面端运行。用于查询可用 workflow、读取暴露参数、提交运行并轮询结果。适用于用户要求生成图片、生成视频,或执行带图片、遮罩、音频、视频、文件输入资产的 workflow 场景;不适用于...

Registry SourceRecently Updated
2130Profile unavailable
General

Ecommerce Livestream Overlay Generator

Fully automated e-commerce livestream overlay generation. Given a brand, product, and promotional info (or a product photo directly), automatically generates...

Registry SourceRecently Updated
860Profile unavailable
General

Maliang Image

Generate images from text prompts or edit existing images with AI. Powered by Google Gemini via Maliang API. Free $6 credit on first use (~10 images). Suppor...

Registry SourceRecently Updated
4020Profile unavailable
General

BigModel Image Video Generator

使用 BigModel (CogView/CogVideoX) API 生成高质量图片和视频。当用户需要"生成图片"、"制作视频"、"AI 绘画"、"创建封面"、"设计海报"、"视觉内容生成"、或任何需要创建图像/视频内容的场景时使用此技能。即使没有明确提到"生成",只要用户需要创建、设计或制作视觉内容(如小说封...

Registry SourceRecently Updated
760Profile unavailable