Dihan

ComfyUI Skill

設計創意v1.0.0
作者:Dihan更新於 2026-05-17comfy-ui@clawhub_dihan/comfy-ui
圖片生成#Image Generation

據 AlphaMoat 統計,截至 2026-09,ComfyUI Skill 累計下載 2,941 次、獲 5 個星標,在全部 5,078 個 AI 技能中排名第 3,773 位,在「設計創意」分類(512 個)中排名第 360 位。

累計安裝
102
累計下載
2941
星標
5
全站排名
#3,773
全站前 75% · 「設計創意」前 71%
平台累計安裝累計下載星標評論
ClawHub ↗60227132
SkillHub ↗10229415—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

它可使用預設工作流或使用者提供的 API 工作流,將提示詞傳送到服務端排隊生成,再把結果下載到本地。使用前需要配置可訪問的伺服器並啟用 API 模式;提示詞和工作流會傳送到該服務。下載檔名和輸出路徑應經過檢查,避免寫出預期目錄。

資料釋出於 2026-10-29

可以用來做什麼

  • 向配置的 ComfyUI 服務提交圖像生成提示詞。
  • 為生成任務指定自定義工作流 JSON。
  • 檢查本地儲存的生成結果及檔案路徑。

什麼時候用

  • 需要使用自有硬體和本地 ComfyUI 生成圖像時。
  • 需要基於已配置的工作流提交提示詞時。
  • 傳送敏感提示詞或工作流、啟用網路服務或處理下載檔案前,需要確認服務可信且輸出路徑安全時。

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

說明呼叫本地 ComfyUI 前需要確認的服務地址、API 模式和工作流檔案,不執行生成。
生成前檢查提示詞及下載檔案的目標路徑,確保不會寫入預期目錄之外。

月度資料趨勢

累計下載2941
650188131112026-03 · 累計下載 8202026-05 · 累計下載 14322026-07 · 累計下載 20632026-08 · 累計下載 24362026-09 · 累計下載 294126-0326-09
星標5
3452026-03 · 星標 32026-05 · 星標 42026-07 · 星標 42026-08 · 星標 52026-09 · 星標 526-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-092941—5
2026-082436+18.1%5
2026-072063—4
2026-051432—4
2026-03820—3

SKILL.md 原文

以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。

2.9 KB · ClawHub v1.0.0
---
name: comfyui
description: Generate high-quality images using a local ComfyUI instance. Use when the user wants private, powerful image generation via their own hardware and custom workflows. Requires a running ComfyUI server accessible on the local network.
metadata:
  {
    "openclaw":
      {
        "emoji": "🎨",
        "requires": { "env": ["COMFYUI_SERVER_ADDRESS"] },
      },
展開全部(共 63 行)
  }
---

# ComfyUI Local Skill

This skill allows OpenClaw to generate images by connecting to a ComfyUI instance running on the local network.

## Setup

1. **Server Address:** Set the `COMFYUI_SERVER_ADDRESS` environment variable to your PC's IP and port (e.g., `http://192.168.1.119:8189`).
2. **API Mode:** Ensure **"Enable Dev mode"** is turned on in your ComfyUI settings to allow API interactions.
  
## Usage

### Generate an Image
Run the internal generation script with a prompt:
```bash
python3 {skillDir}/scripts/comfy_gen.py "your image prompt" $COMFYUI_SERVER_ADDRESS
```

### Use a Custom Workflow
Place your API JSON workflows in the `workflows/` folder, then specify the path:
```bash
python3 {skillDir}/scripts/comfy_gen.py "your prompt" $COMFYUI_SERVER_ADDRESS --workflow {skillDir}/workflows/my_workflow.json
```

## Features
- **SDXL Default:** Uses a high-quality SDXL workflow (Juggernaut XL) by default.
- **Auto-Backup:** Designed to save images to `image-gens/` and can be configured to sync to local document folders.
- **Custom Workflows:** Supports external API JSON workflows saved in the `workflows/` folder. The script will automatically try to inject your prompt and a random seed into the workflow nodes.

## Implementation Details
The skill uses a Python helper (`scripts/comfy_gen.py`) to handle the WebSocket/HTTP handshake with the ComfyUI API, queue the prompt, and download the resulting image.

## ComfyUI Image Generation Notes:

1.  **Server Address:**
    *   The ComfyUI server address needs to be passed as a direct argument to the `comfy_gen.py` script after the prompt, not just as an environment variable.
    *   Example: `python3 ... "Your prompt" http://192.168.1.119:8189 ...`

2.  **Workflow Paths:**
    *   When specifying a workflow file path that contains spaces or special characters, it must be enclosed in single quotes to be parsed correctly by the script.
    *   Example: `--workflow '/path/to/your/workflow file name.json'`

3.  **Lora Weight Control:**
    *   The current `comfy_gen.py` script does not appear to have a direct parameter for controlling Lora weights (e.g., setting 'l1lly' Lora to 0.90). This might need to be configured within the workflow JSON itself, or require modifications to the script or workflow.

4.  **Output Filenames:**
    *   Generated images might be saved with temporary names (e.g., `ComfyUI_temp_...png`) rather than more descriptive ones by default.

5.  **ComfyUI Setup:**
    *   Ensure "Enable Dev mode" is turned on in ComfyUI settings for API interactions.

「設計創意」分類下的熱門技能

資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。