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
累计下载
4,526
星标
13
全站排名
#2,126
全站前 42% · 「设计创意」前 41%
平台累计安装累计下载星标评论
ClawHub ↗1444,24811-
SkillHub ↗2244,52613—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

核心脚本 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

月度数据趋势

累计下载4,526
2,0803,3944,7072026-03 · 累计下载 2,2612026-05 · 累计下载 3,3872026-06 · 累计下载 3,6222026-07 · 累计下载 3,9812026-08 · 累计下载 4,1402026-09 · 累计下载 4,52626-0326-09
星标13
1012132026-03 · 星标 102026-05 · 星标 122026-06 · 星标 112026-07 · 星标 132026-08 · 星标 132026-09 · 星标 1326-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-094,526—13
2026-084,140+4.0%13
2026-073,981+9.9%13
2026-063,622+6.9%11
2026-053,387—12
2026-032,261—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),按月更新。口径说明见数据方法。