SalmonRK

OpenClaw ComfyUI

設計創意v1.0.4
作者:SalmonRK更新於 2026-05-11共 3 個版本 · 最新版本釋出於 2026-02-19openclaw-comfyui@clawhub_salmonrk/openclaw-comfyui
圖片生成視覺素材

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

累計安裝
224
累計下載
4526
星標
13
全站排名
#2,126
全站前 42% · 「設計創意」前 41%
平台累計安裝累計下載星標評論
ClawHub ↗144424811-
SkillHub ↗224452613—

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

這個技能是做什麼的

核心指令碼 skills/comfyui/comfy_client.py 負責提示注入、圖片上傳與結果輪詢;主機地址在 TOOLS.md 中配置(示例為 192.168.1.38:8190),工作流模板存放於 skills/comfyui/workflows/,輸出寫入工作區相對路徑 outputs/comfy/。經 python3 skills/comfyui/comfy_client.py <template_id> "<prompt>" [input_image_path] [orientation] 呼叫:gen_z 用 image_z_image_turbo.json 做文生圖,qwen_edit 用 qwen_image_edit_2511.json 做圖生圖/編輯並支援自動上傳輸入圖;orientation 可選 portrait(720x1280)或 landscape(1280x720),預設 portrait。擴充套件時把 API 格式的 JSON 工作流放入 workflows 目錄並在 WORKFLOW_MAP 註冊新 ID,必要時調整 main() 的注入邏輯。省 token 策略:對話中只以 template_id 引用工作流、不傳送完整 JSON,優先使用後設資料中的檔案路徑而非視覺分析圖片內容,並經訊息外掛(如 Telegram)或本地 open 直接交付圖片,避免 base64 資料撐大上下文。skill-card 提示:ComfyUI 伺服器可影響下載檔名並在缺乏安全路徑檢查時寫本地檔案,應把下載限制在批准的輸出目錄、規範化檔名並拒絕路徑穿越;上傳用於編輯的媒體會離開本地發往所配置的 ComfyUI 伺服器,遠端或共享端點會增大暴露面。

資料釋出於 2026-10-27

可以用來做什麼

  • 用 gen_z 模板從文字生成圖片
  • 用 qwen_edit 模板做圖生圖與自動上傳編輯
  • 註冊新的 ComfyUI 工作流模板
  • 以省 token 方式交付生成圖片

什麼時候用

  • 需要 OpenClaw 智慧體向 ComfyUI 提交文生圖或編輯任務時
  • 希望避免在對話中傳輸完整工作流 JSON 時

示例提示詞

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

用 gen_z 生成一張豎版賽博朋克城市夜景
用 qwen_edit 把這張圖的背景改成日落
把這個新工作流注冊成模板 ID

月度資料趨勢

累計下載4526
2080339447072026-03 · 累計下載 22612026-05 · 累計下載 33872026-06 · 累計下載 36222026-07 · 累計下載 39812026-08 · 累計下載 41402026-09 · 累計下載 452626-0326-09
星標13
1012132026-03 · 星標 102026-05 · 星標 122026-06 · 星標 112026-07 · 星標 132026-08 · 星標 132026-09 · 星標 1326-0326-09

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

月份累計下載環比星標
2026-094526—13
2026-084140+4.0%13
2026-073981+9.9%13
2026-063622+6.9%11
2026-053387—12
2026-032261—10

SKILL.md 原文

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

2.1 KB · ClawHub v1.0.4
# ComfyUI-OpenClaw Skill 🎨✨

A professional, token-saving agent skill for connecting and controlling ComfyUI via API. Designed for high efficiency, automatic asset handling, and seamless integration with OpenClaw.

## 🏗️ Skill Structure
- **Host Address:** `192.168.1.38:8190` (Configured in `TOOLS.md`)
- **Workflow Directory:** `skills/comfyui/workflows/` (Self-contained within the skill folder)
- **Output Directory:** `outputs/comfy/` (Relative to workspace root)
- **Core Script:** `skills/comfyui/comfy_client.py` (Handles prompt injection, image uploads, and result polling)
展開全部(共 33 行)
## 🛠️ Tools (CLI)
Invoke via the `exec` command:
`python3 skills/comfyui/comfy_client.py <template_id> "<prompt>" [input_image_path/orientation] [orientation]`

### Parameters:
- **template_id:**
    1. `gen_z`: Text-to-Image (uses `image_z_image_turbo.json`)
    2. `qwen_edit`: Image-to-Image / Editing (uses `qwen_image_edit_2511.json`) - *Supports automatic image upload.*
- **prompt:** The description of the image to generate or edits to perform.
- **input_image_path:** (Optional) Local path for image-to-image tasks.
- **orientation:** (Optional) Set to `portrait` (720x1280) or `landscape` (1280x720). Defaults to `portrait`.

## 💡 How to Add New Workflows
You can expand this skill easily:
1. Place your new API-formatted JSON workflow in `skills/comfyui/workflows/`.
2. Update the `WORKFLOW_MAP` dictionary in `skills/comfyui/comfy_client.py` with a new ID and the file path.
3. (Optional) If the workflow uses unique node types, adjust the injection logic in the script's `main()` function.

## 🚀 Token-Saving Strategy
- **Template Mapping:** Never send full workflow JSONs in the chat. Refer to them by `template_id`.
- **Vision-Saving Strategy:** To minimize token usage, the agent should prioritize using the **file path from metadata** instead of analyzing image content via vision capabilities unless explicitly asked to describe or analyze the image.
- **Direct Delivery:** Deliver images directly to users via messaging plugins (e.g., Telegram) or local file openers (`open`) to avoid bloating the LLM's context window with base64 data.

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

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