AGENT SKILL
comfyui
Generate images, video, and audio via ComfyUI diffusion workflows.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- comfyui
- description
- Generate images, video, and audio via ComfyUI diffusion workflows.
- when-to-use
- Use when the user wants to generate images, video, or audio via ComfyUI diffusion workflows — Stable Diffusion, SDXL, Flux, SD3, AnimateDiff, Hunyuan, Wan, or ControlNet/inpainting/img2img pipelines; also to install, launch, or health-check ComfyUI.
- argument-hint
- <hardware_check|setup|run_workflow|run_batch|ws_monitor|health_check|fetch_logs|check_deps|auto_fix_deps|extract_schema|comfy> [--workflow W --args '{}' --output-dir D --count N --randomize-seed --parallel P --ws --input-image PATH]
02 资源文件 37
- 参考文档references/advanced-operations.md2.7 KB
- 参考文档references/decision-tree.md2.2 KB
- 参考文档references/official-cli.md7.4 KB
- 参考文档references/rest-api.md10.1 KB
- 参考文档references/run-examples.md1.3 KB
- 参考文档references/setup-onboarding.md8.6 KB
- 参考文档references/template-integrity.md8.6 KB
- 参考文档references/workflow-format.md7.8 KB
- 参考文档references/workflow.md2.3 KB
- 脚本scripts/_common.py32.4 KB
- 脚本scripts/auto_fix_deps.py8.2 KB
- 脚本scripts/check_deps.py16.8 KB
- 脚本scripts/comfyui_setup.sh10.2 KB
- 脚本scripts/extract_schema.py11.1 KB
- 脚本scripts/fetch_logs.py5.6 KB
- 脚本scripts/hardware_check.py17.5 KB
- 脚本scripts/health_check.py8.0 KB
- 脚本scripts/run_batch.py8.9 KB
- 脚本scripts/run_workflow.py30.9 KB
- 脚本scripts/ws_monitor.py10.3 KB
- 脚本tests/conftest.py1.5 KB
- 其他tests/pytest.ini132 B
- 参考文档tests/README.md4.4 KB
- 脚本tests/test_check_deps.py2.3 KB
- 脚本tests/test_cloud_integration.py4.2 KB
- 脚本tests/test_common.py16.0 KB
- 脚本tests/test_extract_schema.py7.8 KB
- 脚本tests/test_run_workflow.py8.6 KB
- 参考文档workflows/animatediff_video.json2.0 KB
- 参考文档workflows/flux_dev_txt2img.json2.2 KB
- 参考文档workflows/README.md6.1 KB
- 参考文档workflows/sd15_txt2img.json1.4 KB
- 参考文档workflows/sdxl_img2img.json1.6 KB
- 参考文档workflows/sdxl_inpaint.json1.8 KB
- 参考文档workflows/sdxl_txt2img.json1.4 KB
- 参考文档workflows/upscale_4x.json864 B
- 参考文档workflows/wan_video_t2v.json2.1 KB
03 SKILL.md 正文
ComfyUI
You generate images, video, and audio through ComfyUI using the official
comfy-cli for setup/lifecycle and the REST/WebSocket API plus the shipped
scripts for workflow execution.
Global Rules
- Two layers.
comfy-cliowns install, server lifecycle, nodes, and models; the REST/WebSocket API plus the skill scripts own execution, parameter injection, monitoring, and downloads — the CLI barely executes workflows. - API format is required. Editor-format workflow JSON (top-level
nodes/links) is not directly executable; re-export via the web UI (Workflow → Export (API)). Node types and param mapping:references/workflow-format.md; converting official editor templates:references/template-integrity.md. - Scripts own the fragile bits. Scripts in
scripts/handle credential and dependency errors themselves; runhealth_check.pyas the single end-to-end verification instead of piecing the checklist together. - Untrusted workflow JSON is arbitrary code. Inspect any community or downloaded workflow before running it.
- Video and cloud. Video workflows need longer timeouts
(
--timeout 1800); the cloud free tier is read-only — API execution needs a paid subscription. - Completion.
health_check.pyreports every gate green, a test run with a small workflow completes, and its outputs land in--output-dir.
Routing
| Step | Reference | Purpose |
|---|---|---|
| Setup & onboarding | references/setup-onboarding.md |
Ask Local vs Cloud first, install Paths A–E, model and node install. |
| Advanced operations | references/advanced-operations.md |
Image upload, cloud endpoint quirks, queue management. |
| Core workflow | references/workflow.md |
Get an API-format workflow, see what's controllable, run with parameters, present results. |
| CLI reference | references/official-cli.md |
Every comfy ... command and flag. |
| REST/WS reference | references/rest-api.md |
REST + WebSocket endpoints (local and cloud), payload schemas. |
| Workflow format | references/workflow-format.md |
API-format JSON, common node types, parameter mapping. |
| Template integrity | references/template-integrity.md |
Converting official editor-format templates to API format. |
| Run examples | references/run-examples.md |
run_workflow.py and run_batch.py flag examples. |
| Decision tree | references/decision-tree.md |
"User says X → run Y" mapping across CLI, scripts, and REST. |
| Scripts | scripts/ (helper: scripts/_common.py) |
hardware_check.py, comfyui_setup.sh, extract_schema.py, check_deps.py, auto_fix_deps.py, run_workflow.py, run_batch.py, ws_monitor.py, health_check.py, fetch_logs.py. |
| Example workflows | workflows/ |
SD 1.5, SDXL, Flux Dev, SDXL img2img/inpaint, ESRGAN upscale, AnimateDiff video, Wan T2V. |
04 同仓库更多 Skills
github-workflow
Umbrella for GitHub auth, repo management, issues, PRs, Mergify, and releases. Subsumes github-auth and repo-manager.
★ 0
brave-automation
baa CLI: Brave profiles, Google sessions, credentials.
★ 0
aes
AES docs, layers, rule fixes, and legacy migration.
★ 0
pretext
Build creative browser demos with DOM-free text layout.
★ 0
popular-web-designs
54 real design systems (Stripe, Linear, Vercel) as HTML/CSS.
★ 0
p5js
p5.js sketches: gen art, shaders, interactive, 3D.
★ 0