comfyui
它能做什么
这项技能把 ComfyUI 连接到视频制作流程中。适合在自己电脑上运行 ComfyUI、并希望使用其工作流制作图片、视频或音乐的创作者。
适用场景
- ✓当你想使用自己运行的 ComfyUI 工作流制作图片、视频或音乐时。
- ✓当你有一份社区提供的 ComfyUI 工作流,并想在项目中使用它时。
- ✓当 ComfyUI 任务需要缺失的模型、LoRA,或为低内存而使用的更轻量工作流时。
技能链接
https://github.com/calesthio/OpenMontage/blob/main/.agents/skills/comfyui/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请使用我的 ComfyUI 工作流,为我的视频生成一张水彩风格的背景图。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体检查 ComfyUI 是否正在运行,提交工作流,等待结果,并把输出保存在你的项目中。它还可以读取服务器状态,并通过任务 ID 恢复超时的任务。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
ComfyUI Workflows in OpenMontage
Use this skill before calling comfyui_image, comfyui_video, or comfyui_music, and when converting a community ComfyUI workflow into an OpenMontage tool call.
Server Contract
- ComfyUI must be running before the tool can generate. The default server is
http://localhost:8188; override it withCOMFYUI_SERVER_URL. - Running separate ComfyUI instances per capability (different GPU, different model set)?
COMFYUI_IMAGE_SERVER_URL/COMFYUI_VIDEO_SERVER_URL/COMFYUI_MUSIC_SERVER_URLeach overrideCOMFYUI_SERVER_URLfor that one tool only. Optional -- a single-server setup needs none of these. - Health and hardware status come from
GET /system_stats. - Jobs are submitted to
POST /prompt, completed outputs are read fromGET /history/{prompt_id}, and artifact bytes are downloaded withGET /view. - Long waits (video, music) prefer ComfyUI's websocket feed for immediate completion/error detection and transparently fall back to REST polling if
websocket-clientisn't installed. Either way, a timeout is recoverable: pass the error'sprompt_idback in asresume_prompt_idto resume waiting on the same job instead of resubmitting it. - Export workflows with ComfyUI's API-format JSON, not the UI layout format. If a downloaded workflow will not submit, re-export it from ComfyUI with API format enabled.
Partner Nodes are hosted
gemini_omni_flash,seedance_2.5, andminimax_h3_apiincomfyui_videoare official ComfyUI Partner Nodes. They call hosted APIs and require network access, a logged-in Comfy account, and prepaid credits.- Do not describe Partner Nodes as local, offline, or free merely because the graph runs in a local ComfyUI process.
minimax_h3_localis a separate open-weight path. It requires the official MiniMax H3 workflow exported in API format, itsoutput_node, and the model stack reported by the tool.
Choosing a Workflow
- Use bundled workflows when the requested operation matches and the local machine has the required models and VRAM.
- Use a custom
workflow_jsonorworkflow_pathwhen the user needs a community recipe, a lower-VRAM model, a different style family, or custom nodes. - For 8GB-12GB GPUs, prefer lower-footprint workflows such as Wan 2.1 1.3B, LTXV FP8 or quantized workflows, or Wan 2.2 GGUF/quantized community workflows. The bundled Wan 2.2 14B FP8 video workflows are a 16GB-class path, not a provider-wide floor.
- Do not promise that arbitrary custom workflows will fit a machine. The workflow, quantization, resolution, frame count, and offload settings determine the real resource envelope.
Output Node Contract
- Custom workflows must pass
output_node. - Pick the node that writes the artifact, usually
SaveImage,SaveVideo,VHS_VideoCombine, or another terminal saver node. - Pass the node ID as a string, for example
"108". Do not pass the class name. - If a workflow has multiple savers, choose the final deliverable node, not previews or intermediates.
Templated vs Fixed Nodes
- Identify templated nodes before execution: prompt text, seed, dimensions, frame count, source image, sampler settings, and output filename prefix.
- Fixed nodes are model loaders, VAEs, text encoders, LoRA loaders, schedulers, and graph wiring. Do not mutate those unless the workflow author intended that customization.
- For community workflows, inspect each loader node and note every required model or custom node before running. Missing models should be handled through the tool's structured
missing_modelspayload when available.
Video workflows need a temporal latent
- A video workflow's empty-latent node must be a video latent --
EmptyHunyuanLatentVideofor Wan 2.2 t2v,Wan22ImageToVideoLatentorWanImageToVideofor the image-conditioned variants. The frame count goes inlength;batch_sizeis how many separate clips to generate and stays at1. EmptyLatentImagewithbatch_sizeset to the frame count is a trap: it asks for N unrelated images, and the resulting MP4 has the right frame count, duration and codec and passesffprobecleanly -- it just strobes. Check the latent node before running any unfamiliar video workflow.
Model and LoRA Setup
- Use ComfyUI Manager or the workflow author's model links when available, and respect model licenses.
- Place models in the folders expected by the loader nodes: diffusion models under
ComfyUI/models/diffusion_models/, text enco
常见问题
ComfyUI 需要处于运行状态吗?
需要。服务器必须运行,工具才能生成任何内容。
工作流必须是什么格式?
它必须以 ComfyUI 的 API 格式导出,而不是布局格式。
如果任务超时怎么办?
可以用任务 ID 恢复该任务,而无需重新发送。
详情
作者的原始描述
Use when working with ComfyUI workflows in OpenMontage, including comfyui_image/comfyui_video/comfyui_music, custom workflow_json/workflow_path inputs, output_node selection, missing model setup, LoRAs, low-VRAM workflow choices, and community workflow imports.
repo: calesthio/OpenMontage
热度
- GitHub 星标
- 75k
- 排名
- #2647
- 许可证
- AGPL-3.0
- 更新时间
- 2026/10/28
评论
- …