Token导航 LogoToken导航

Agent Skill · 图像处理

image-with-comfyui(comfyui 的图像)

用于辅助图像生成、图片编辑、视觉素材处理或图像模型工作流。它适合让 Agent 根据文本生成图片、处理背景、整理视觉提示词或调用相关图像工具。使用时需要确认输入图片、版权来源、输出格式和模型限制;涉及人物、品牌、商品或公开展示素材时,应额外核对授权、真实性和内容合规边界。

image-with-comfyui 是图像处理类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为接触敏感数据;许可证为 MIT-0,第三方扫描已通过,按安装量在图像处理类的 1,562 个 Skill 里排第 491。

总安装 5,599周安装 231GitHub Stars 1下载 1,830核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.4.9

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:image-with-comfyui(comfyui 的图像)
来源仓库:https://github.com/sunshinejnjn/image-with-comfyui
安装命令:
openclaw skills install image-with-comfyui
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install image-with-comfyui

这个 Skill 是做什么的

图像处理类 Skill 处理生成、裁剪、压缩和批量转换图片的任务。

调用本地 ComfyUI 实例生成文本到图像等内容。image-with-comfyui 属于图像处理类 Skill,可作为该场景下的辅助能力补充。支持 T2I、I2I、I2V 等多种 AI 图像生成模式。兼容 Z-Image、SD3.5 Medium、Qwen 等模型。

需部署本地 ComfyUI 服务并开放接口访问权限。通过 clawhub 安装,适用于 OpenClaw 宿主环境。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install image-with-comfyui;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

image-with-comfyui 怎么安装?

在终端执行 openclaw skills install image-with-comfyui。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

image-with-comfyui 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

image-with-comfyui 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

image-with-comfyui 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

image-with-comfyui 用的人多吗?

公开数据是累计安装 5,599 次,近一周安装 231 次,下载 1,830 次,GitHub 1 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

image-with-comfyui 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理图像处理类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

图像处理类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
ai-image-generation

AI 图像生成 · Codex、Claude

4,365,552382调用外部服务未明确有提醒
openai-image-gen

OpenAI 图像生成 · OpenClaw

1,906,88432需要联网MIT-0有提醒
image

图像 · OpenClaw

525,99926需要联网MIT-0通过
baoyu-cover-image

宝玉封面图 · Codex、Claude

474,24016,779只读MIT有提醒
baoyu-image-gen

宝玉图像生成器 · Codex、Claude

468,00716,778接触敏感数据MIT通过
image-with-comfyui

comfyui 的图像 · 本页

5,5991接触敏感数据MIT-0通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
image-with-comfyui
description
Call a local ComfyUI instance for text-to-image (T2I), image-to-image/edit (I2I), and image-to-video (I2V) generation. Supports Z-Image, SD3.5 Medium, Qwen Image Edit, and Wan2.2 models with automatic prompt formatting and VRAM purge after run.
metadata
openclaw
emoji
🎨
version
1.4.9
requires
anyBins
["python3"]
env
config
path
config.json

Image with ComfyUI

Call a local ComfyUI server to generate or edit images and videos. Four modes:

  • T2I (Text → Image) → Z-Image or SD3.5 Medium model
  • I2I (Image → Image / Edit) → Qwen Image Edit model
  • I2V (Image → Video) → Wan2.2 model

When to Use

  • User asks to generate images from text
  • User asks to edit an image
  • User asks to generate a video from an image + text
  • User provides a description and wants visual output

Image-First Conversational Pattern (Image-First Mode)

Detection rules:

  1. User sends only an image (no text, no other message in the same turn)
  2. Within 2 minutes, the user sends a text message that looks like an edit or video request (Chinese keywords like: 修一下/换背景/加个特效/变成动画/把颜色改蓝的)
  3. The text intent is I2I (edit the image) or I2V (animate the image)

Action:

  • Route the remembered image + the new text to image_with_comfyui.py i2i or wan2.2 accordingly
  • Use the latest image received as the --image input
  • Use the text as the --prompt
  • If unsure whether I2I or I2V, default to I2I (edit) unless the text clearly says video/animation
  • Do NOT ask the user for the image again — the agent already has the image from the previous turn

Context tracking:

  • Store the latest image media path (or URL) in a variable when no text is received
  • Clear the stored image after it's used (or after 2 minutes of no new text)
  • Only apply this to the immediately preceding message — don't look back further than 2 minutes

Examples:

  • User: [image: a photo of a dog] → Agent: (wait)
  • User: [text: change the background to a beach] → Agent: calls i2i --image <path> --prompt "change the background to a beach"
  • User: [image: a cat sitting on a chair] → Agent: (wait)
  • User: [text: make it stand up and walk] → Agent: calls wan2.2 --image <path> --prompt "the cat stands up and walks"

Configuration

Read config.json relative to this SKILL's directory. All values can be overridden by environment variables:

Env VariableOverridesDefault
COMFYUI_URLcomfyui_urlhttp://localhost:8188
COMFYUI_TIMEOUTtimeout_seconds120
COMFYUI_POLL_INTERVALpoll_interval_seconds3
COMFYUI_OUTPUT_DIRoutput_dir/tmp/comfyui_output
OPENCLAW_WORKSPACEworkspace_rootOpenClaw workspace dirPriority: Environment variables > config.json

Workflow Files

ModeWorkflowLocation
T2I (Z-Image)Z-Image T2Iworkflows/z-image_t2i_api.json
T2I (SD3.5)SD3.5 Medium T2Iworkflows/sd3.5-med_t2i_api.json
I2IQwen Image Editworkflows/qwen_image-edit_api.json
I2VWan2.2 Image-to-Videoworkflows/wan2.2_i2v_api.json

Error Handling

The system automatically handles two types of errors:

1. Missing Node Detection

When a workflow references a custom node that isn't installed, the system detects it and reports:

  • Which node is missing (class type name)
  • Which package provides it
  • GitHub URL for manual download
  • Manual install instruction (the script does NOT execute git clone; ComfyUI may be on a remote server)

Example: If ImpactKSamplerBasicPipe is missing:

⚠️ Missing node: `ImpactKSamplerBasicPipe`
📦 Package: ComfyUI-Impact-Pack
🔗 GitHub: https://github.com/ltdrdata/ComfyUI-Impact-Pack
ℹ️ Install manually: cd ComfyUI/custom_nodes && git clone https://github.com/ltdrdata/ComfyUI-Impact-Pack

2. Missing Model Substitution

When a workflow references a model file that doesn't exist, the system attempts to find a compatible substitute:

Requested ModelSubstitute
sd3.5_medium variantssd3.5_large.safetensors
WAN High → Low or vice versaSwap between variants
Other unknown modelsNo substitution (error returned)

Example: If my_custom_sd3_medium_v2.safetensors is missing:

⚠️ Model missing: `my_custom_sd3_medium_v2.safetensors`
🔄 Substituted: `sd3.5_large.safetensors`
📦 Loader: CheckpointLoaderSimple.ckpt_name

After substitution, the workflow is retried automatically with the substitute model.

3. Missing Utility Node Bypass (UnloadAllModels)

When the workflow references UnloadAllModels (a memory cleanup node) which isn't available, the system automatically bypasses it by rerouting the signal path:

  • Removes the missing UnloadAllModels node
  • Redirects the upstream processing node directly to the downstream output node
  • Generation continues without interruption
  • User receives a warning about the bypass

Example:

⚠️ Workflow missing node: `UnloadAllModels` (memory cleanup, non-critical)
🔄 Auto-bypassed — generation continues

Core Rules

  1. Send media attachment: After generating an image or video, you must send it via the message tool using media or filePath.
  2. Send in original session: Always deliver generated media in the user's original request session/thread — do not send to a separate topic, group, or thread unless explicitly told otherwise.
  3. Don't include paths: Unless the user explicitly asks, never send local file paths, ComfyUI URLs, or other address info.

Prompt Formatting

Z-Image (T2I)

Z-Image works best with structured natural language prompts, not keyword spam.

6-part formula:

Subject + Scene + Composition + Lighting + Style + Constraints

Rules:

  • ✅ Use natural language sentences (not comma-separated tags)
  • ✅ Be specific about subject, camera, lighting, style
  • ❌ NO negative prompts — Z-Image Turbo ignores them completely
  • ❌ No weighted tags like (word:1.2)

Example:

A young woman with long wavy blonde hair sits at a wooden café table,
steam rising from a ceramic cup. Shot from a 3/4 angle, close-up framing.
Soft morning light filters through sheer curtains, casting warm golden tones.
Cinematic photography, shallow depth of field, Kodak Portra 400 aesthetic.
No text, no logos, photorealistic skin texture.

Aspect ratios: 1:1, 4:3, 3:4, 16:9, 9:16, 3:2, 2:3


SD3.5 Medium (T2I)

SD3.5 Medium uses natural language prompts with optional negative prompts.

Prompt formula:

[Composition/Angle] + [Subject] + [Scene/Environment] + [Lighting/Color] + [Style/Texture] + [Details]

Rules:

  • ✅ Complete natural language sentences — describe like telling a human what to see
  • ✅ Subject first (model prioritizes early text)
  • ✅ Be specific about colors, materials, mood, atmosphere
  • ✅ Mixed CN/EN is fine (Chinese works better for Chinese scenes)
  • ✅ Use --negative for elements to exclude
  • ✅ Default 1:1 (1024×1024), use --aspect to change
  • ✅ Default 20 steps, CFG 4.01 (higher = stronger control)
  • ✅ Seed defaults to random; specify --seed for reproducibility
  • ❌ No comma-separated keyword spam (beautiful, amazing, 4k)
  • ❌ No weighted tags (word:1.2) — SD3.5 doesn't recognize them

Parameter recommendations:

  • CFG: 4-7 (4.01 = softer, 5-7 = stronger control)
  • Steps: 20-25 (below 20 may lack detail)
  • Negative prompt: Highly effective in SD3.5

Common negative prompt words:

blurry, low quality, pixelated, grainy,
overexposed, underexposed, flat lighting,
text, watermark, logo, signature, caption,
poorly drawn face, deformed, mutated, disfigured, extra limbs,
cartoonish (when realism is wanted)

Chinese example:

上海魔都春日花海 — 黄浦江畔,大片郁金香、樱花、油菜花盛开,繁花似锦,
春日和煦阳光,远景陆家嘴三件套天际线,湿润的滨江步道倒映花影,
低饱和胶片色调,文艺清新,广角视野

English example:

Cinematic photography, wide-angle shot of a bustling Tokyo street at night,
neon signs reflecting on wet pavement, people with transparent umbrellas,
moody atmospheric lighting, deep blues and vibrant reds, street photography,
shallow depth of field with bokeh background

Qwen Image Edit (I2I) — Concise Prompts

I2I prompts must be concise and direct. Keep the user's original language.

Rules:

  • ✅ Positive prompt only — no negative prompts
  • ✅ Use user's exact words (don't translate or expand)
  • ✅ Concise: "换件红色外套", "把背景换成蓝天白云", "将女孩换成男孩"
  • ❌ Don't translate between languages
  • ❌ Don't over-explain or add details

Prompt routing fix (2026-04-22):

  • The Qwen workflow has TWO TextEncodeQwenImageEditPlus nodes:

- 115:110 — empty negative prompt node - 115:111 — positive prompt node (contains default text like "the girl")

  • Script must route prompts to node 111 (positive), not node 110
  • The prepare_i2i_workflow() function auto-detects by scanning for existing default text

Wan2.2 I2V (Image → Video)

Wan2.2 generates short videos (~5 seconds) from a static image + motion description.

Rules:

  • ✅ Prompt describes actions/movement (not scene description)
  • ✅ Write motion description in English for best results
  • ✅ Focus on "who does what" and "how the camera moves"
  • ❌ Don't describe static scene elements in motion prompt
  • Default: 81 frames (~5s @ 16fps), 4 steps, CFG 4.5
  • Base resolution: 560×720 (3:4, fast and OK quality)
  • Auto-detect input image aspect ratio and select reference resolution:

Resolution Reference

AspectFast & OKUser FavWAN 2.2 Native
3:4560×720720×912848×1088
2:3528×768656×960784×1136
9:16480×848608×1072720×1264

Other available resolutions:

  • 3:4: 416×544, 672×864, 784×1008
  • 2:3: 384×576, 624×912, 736×1072
  • 9:16: 368×624, 576×1008, 672×1184

Examples:

prompt: "the cat walks forward and looks at the camera, tail wagging"
prompt: "the girl smiles and turns her head, wind blowing her hair"
prompt: "the person stands in a busy street, camera pans left and slowly zooms in, cars driving, red flag fluttering"

CLI Usage

T2I (Text → Image)

# Z-Image (default model)
python3 image_with_comfyui.py t2i \
  --prompt "Your detailed image description" \
  --aspect 16:9 \
  --steps 9

# SD3.5 Medium
python3 image_with_comfyui.py sd35 \
  --prompt "A beautiful sunset over mountains" \
  --aspect 16:9 \
  --negative "text, watermark, blurry" \
  --steps 20 \
  --cfg 5.5

I2I (Edit Image)

python3 image_with_comfyui.py i2i \
  --prompt "Change background to a beach" \
  --image /path/to/source.jpg \
  --steps 4

I2V (Image → Video)

python3 image_with_comfyui.py wan2.2 \
  --prompt "the person walks forward and smiles" \
  --image /path/to/source.jpg \
  --length 81 --steps 4

Health Check

python3 image_with_comfyui.py test

Output Delivery

Send the media attachment directly. Be minimal.

🚨 Delivery Rules

⚠️ Absolutely forbidden: Only writing text descriptions without actually sending files!

✅ Correct approach: Send MEDIA path with the appropriate prefix for the current Channel

| Channel | Format | Example | |---------|--------|---------|| | WhatsApp | MEDIA:./image.jpg | MEDIA:./angel_video.mp4 | | Telegram | MEDIA: or filePath: | Varies by implementation | | Discord | Direct attachment | Varies by implementation |

Rules:

  1. When sending images/videos/audio on WhatsApp, must add MEDIA: prefix + relative path
  2. Place files in ./media/outbound/ directory to ensure accessibility
  3. Don't just write text descriptions like "video attachment" — that does not equal sending a file
  4. First cp the file to ~/.openclaw/media/outbound/, then send via MEDIA:
  5. Other Channels use their corresponding formats (see respective Channel docs)
  6. Default to sending to the requesting session: Generated images/videos must be sent back to the session that initiated the request, unless the user explicitly says "don't send" or "only save locally"
  7. Pure MEDIA line for WhatsApp — no text prefix: The MEDIA: line must be the sole content of the message, with no [[reply_to_current]], text, or anything else before it. Otherwise WhatsApp splits the text and attachment into two separate messages, making it look like "sent twice". If caption text is needed, use MEDIA:./file.ext caption=description format.

Example delivery

WhatsApp:

MEDIA:./output_image.png

Universal:

[📎 Image attachment via MEDIA prefix]

Never replace actual file sending with text descriptions!


Timeout Reference

ModelTimeout
T2I (Z-Image)100s
SD3.5 Medium100s
I2I (Qwen)600s
I2V (Wan2.2)1000s

Additional Notes

  • ComfyUI unreachable → report error with URL tried
  • Generation fails (empty output) → report prompt_id for debugging
  • Missing required node → report which node was not found
  • Timeout → report elapsed time and prompt_id

适合场景

01

文本生成图片

02

图片风格化

03

产品图和创意图

04

需要 FLUX 模型时

能力概览

能力 1

调用 FLUX 图像模型

能力 2

支持文本生图和图像改写

能力 3

覆盖 LoRA 或风格适配

能力 4

适合创意视觉生成

平台分布

OpenClaw

71.98%
按下载量换算1,317

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills