/ComfyUI_Skills_OpenClaw
Run ComfyUI workflows from any AI agent (Claude Code, OpenClaw, Codex, Hermes) via a single CLI. Import workflows, manage dependencies, execute across multiple servers, and track history — all through shell commands. **Use this Skill when:** (1) The user requests to "generate an
$ npx -y skills add HuangYuChuh/ComfyUI_Skills_OpenClaw --skill ComfyUI_Skills_OpenClaw --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/ComfyUI_Skills_OpenClaw
Context preview
The summary Claude sees to decide when to auto-load this skill.
Run ComfyUI workflows from any AI agent (Claude Code, OpenClaw, Codex, Hermes) via a single CLI. Import workflows, manage dependencies, execute across multiple servers, and track history — all through shell commands. **Use this Skill when:** (1) The user requests to "generate an
SKILL.md
ComfyUI_Skills_OpenClaw.SKILL.mdname: comfyui-skill-openclaw
description: |
Run ComfyUI workflows from any AI agent (Claude Code, OpenClaw, Codex, Hermes) via a single CLI.
Import workflows, manage dependencies, execute across multiple servers, and track history
— all through shell commands.
**Use this Skill when:**
(1) The user requests to "generate an image", "draw a picture", or "execute a ComfyUI workflow".
(2) The user has specific stylistic, character, or scene requirements for image generation.
(3) The user asks you to import, register, sync, or configure saved ComfyUI workflows for later reuse.
version: 1.0.0
license: Apache-2.0
platforms: [macos, linux, windows]
prerequisites:
commands: ["comfyui-skill"]
env_vars: []
metadata:
requires:
bins: ["comfyui-skill"]
cliHelp: "comfyui-skill --help"
hermes:
tags: [image-generation, comfyui, ai-art, workflow, stable-diffusion, flux]
related_skills: []ComfyUI Agent SKILL
> **Prerequisites**: Install the CLI: `pip install -U comfyui-skill-cli`. All commands must run from this project's root directory (where this `SKILL.md` is located). > > [!IMPORTANT] > **Directory Sensitivity**: The CLI reads `config.json` and `data/` from the current directory. > You **MUST** `cd` into the project root before running any command. > **Symptom**: `list` returns `[]` or `server status` reports not found → you are in the wrong directory.
Quick Decision
- User says "generate image / draw a picture" → **Execution Flow (Step 1–4)**
- User says "import workflow / add workflow" → `comfyui-skill --json workflow import <path>`
- User says "img2img / use this image" → first `comfyui-skill --json upload <image>`, then execute
- User says "inpainting / mask this area" → `comfyui-skill --json upload <mask> --mask`, then execute
- User says "show previous results" → `comfyui-skill --json history list <id>`
- User says "what failed / check job status" → `comfyui-skill --json jobs list --status failed`
- User says "which server has more VRAM" → `comfyui-skill --json server stats --all`
- User says "what nodes are available" → `comfyui-skill --json nodes list`
- User says "dry run / test without executing" → `comfyui-skill --json run <id> --validate`
- User says "open management UI" → `python3 ./ui/open_ui.py`
Core Concepts
- **Skill ID**: `<server_id>/<workflow_id>` (e.g., `local/txt2img`). If server is omitted, the default server is used.
- **Schema**: Each workflow has a `schema.json` that maps business parameter names (e.g., `prompt`, `seed`) to internal ComfyUI node fields. Never expose node IDs to the user.
- **Server**: One or more ComfyUI instances configured in `config.json`. Check health with `server status`.
Command Reference
| Command | Purpose | |---------|---------| | `comfyui-skill --json server status` | Check if ComfyUI server is online | | `comfyui-skill --json server stats` | Show VRAM, RAM, GPU, versions (`--all` for multi-server) | | `comfyui-skill --json list` | List all available workflows and parameters | | `comfyui-skill --json info <id>` | Show workflow details and parameter schema | | `comfyui-skill --json submit <id> --args '{...}'` | Submit a workflow (non-blocking) | | `comfyui-skill --json status <prompt_id>` | Check execution status | | `comfyui-skill --json run <id> --args '{...}'` | Execute a workflow (blocking, real-time streaming) | | `comfyui-skill --json run <id> --validate` | Validate workflow without executing | | `comfyui-skill --json upload <path>` | Upload image to ComfyUI (for img2img workflows) | | `comfyui-skill --json upload <path> --mask` | Upload mask image (for inpainting workflows) | | `comfyui-skill --json nodes list` | List all available ComfyUI nodes | | `comfyui-skill --json jobs list` | List server-side job history (`--status failed` to filter) | | `comfyui-skill --json deps check <id>` | Check missing dependencies | | `comfyui-skill --json deps install <id> --repos '[...]'` | Install missing custom nodes | | `comfyui-skill --json workflow import <path>` | Import workflow (auto-detect, warns about deprecated nodes) | | `comfyui-skill --json history list <id>` | List execution history for a workflow |
---
Execution Flow
Step 1: Query Available Workflows
comfyui-skill --json list
Returns a JSON array of all enabled workflows with their parameters.
- `required: true` parameters → **ask the user** if not provided.
- `required: false` parameters → infer from context (e.g., `seed` = random number), or omit.
- Never expose node IDs; only use business parameter names (e.g., prompt, style).
- If multiple workflows match, pick the most relevant one or list candidates.
Step 2: Parameter Assembly
Assemble parameters into a JSON string. Example:
{"prompt": "A beautiful landscape, high quality, masterpiece", "seed": 40128491}If critical parameters are missing, ask the user (e.g., "What visual style would you like?").
Step 3: Pre-flight Dependency Check
**Always** run before first execution of a workflow:
comfyui-skill --json deps check <server_id>/<workflow_id>
- If `is_ready` is `true` → proceed to Step 4.
- If `is_ready` is `false`:
1. Present missing nodes and models to the user. 2. If user agrees to install, run:
comfyui-skill --json deps install <id> --repos '["https://github.com/repo1"]'
Use `source_repo` URLs from the check report as `--repos` values. 3. If `needs_restart` is `true`, inform the user to restart ComfyUI, then re-check. 4. Missing models must be downloaded manually — tell the user which folder to place them in (e.g., `checkpoints`).
Step 4: Execute the Workflow
> **Note**: JSON args must be wrapped in single quotes to prevent bash from parsing double quotes.
Choose the execution mode based on your environment:
Interactive mode: `submit` + `status` (recommended for chat)
**Step 4a — Submit:**
comfyui-skill --json submit <id> --args '{"prompt": "..."}'Re
Read more
name: comfyui-skill-openclaw
description: |
Run ComfyUI workflows from any AI agent (Claude Code, OpenClaw, Codex, Hermes) via a single CLI.
Import workflows, manage dependencies, execute across multiple servers, and track history
— all through shell commands.
**Use this Skill when:**
(1) The user requests to "generate an image", "draw a picture", or "execute a ComfyUI workflow".
(2) The user has specific stylistic, character, or scene requirements for image generation.
(3) The user asks you to import, register, sync, or configure saved ComfyUI workflows for later reuse.
version: 1.0.0
license: Apache-2.0
platforms: [macos, linux, windows]
prerequisites:
commands: ["comfyui-skill"]
env_vars: []
metadata:
requires:
bins: ["comfyui-skill"]
cliHelp: "comfyui-skill --help"
hermes:
tags: [image-generation, comfyui, ai-art, workflow, stable-diffusion, flux]
related_skills: []ComfyUI Agent SKILL
> **Prerequisites**: Install the CLI: `pip install -U comfyui-skill-cli`. All commands must run from this project's root directory (where this `SKILL.md` is located). > > [!IMPORTANT] > **Directory Sensitivity**: The CLI reads `config.json` and `data/` from the current directory. > You **MUST** `cd` into the project root before running any command. > **Symptom**: `list` returns `[]` or `server status` reports not found → you are in the wrong directory.
Quick Decision
- User says "generate image / draw a picture" → **Execution Flow (Step 1–4)**
- User says "import workflow / add workflow" → `comfyui-skill --json workflow import <path>`
- User says "img2img / use this image" → first `comfyui-skill --json upload <image>`, then execute
- User says "inpainting / mask this area" → `comfyui-skill --json upload <mask> --mask`, then execute
- User says "show previous results" → `comfyui-skill --json history list <id>`
- User says "what failed / check job status" → `comfyui-skill --json jobs list --status failed`
- User says "which server has more VRAM" → `comfyui-skill --json server stats --all`
- User says "what nodes are available" → `comfyui-skill --json nodes list`
- User says "dry run / test without executing" → `comfyui-skill --json run <id> --validate`
- User says "open management UI" → `python3 ./ui/open_ui.py`
Core Concepts
- **Skill ID**: `<server_id>/<workflow_id>` (e.g., `local/txt2img`). If server is omitted, the default server is used.
- **Schema**: Each workflow has a `schema.json` that maps business parameter names (e.g., `prompt`, `seed`) to internal ComfyUI node fields. Never expose node IDs to the user.
- **Server**: One or more ComfyUI instances configured in `config.json`. Check health with `server status`.
Command Reference
| Command | Purpose | |---------|---------| | `comfyui-skill --json server status` | Check if ComfyUI server is online | | `comfyui-skill --json server stats` | Show VRAM, RAM, GPU, versions (`--all` for multi-server) | | `comfyui-skill --json list` | List all available workflows and parameters | | `comfyui-skill --json info <id>` | Show workflow details and parameter schema | | `comfyui-skill --json submit <id> --args '{...}'` | Submit a workflow (non-blocking) | | `comfyui-skill --json status <prompt_id>` | Check execution status | | `comfyui-skill --json run <id> --args '{...}'` | Execute a workflow (blocking, real-time streaming) | | `comfyui-skill --json run <id> --validate` | Validate workflow without executing | | `comfyui-skill --json upload <path>` | Upload image to ComfyUI (for img2img workflows) | | `comfyui-skill --json upload <path> --mask` | Upload mask image (for inpainting workflows) | | `comfyui-skill --json nodes list` | List all available ComfyUI nodes | | `comfyui-skill --json jobs list` | List server-side job history (`--status failed` to filter) | | `comfyui-skill --json deps check <id>` | Check missing dependencies | | `comfyui-skill --json deps install <id> --repos '[...]'` | Install missing custom nodes | | `comfyui-skill --json workflow import <path>` | Import workflow (auto-detect, warns about deprecated nodes) | | `comfyui-skill --json history list <id>` | List execution history for a workflow |
---
Execution Flow
Step 1: Query Available Workflows
comfyui-skill --json list
Returns a JSON array of all enabled workflows with their parameters.
- `required: true` parameters → **ask the user** if not provided.
- `required: false` parameters → infer from context (e.g., `seed` = random number), or omit.
- Never expose node IDs; only use business parameter names (e.g., prompt, style).
- If multiple workflows match, pick the most relevant one or list candidates.
Step 2: Parameter Assembly
Assemble parameters into a JSON string. Example:
{"prompt": "A beautiful landscape, high quality, masterpiece", "seed": 40128491}If critical parameters are missing, ask the user (e.g., "What visual style would you like?").
Step 3: Pre-flight Dependency Check
**Always** run before first execution of a workflow:
comfyui-skill --json deps check <server_id>/<workflow_id>
- If `is_ready` is `true` → proceed to Step 4.
- If `is_ready` is `false`:
1. Present missing nodes and models to the user. 2. If user agrees to install, run:
comfyui-skill --json deps install <id> --repos '["https://github.com/repo1"]'
Use `source_repo` URLs from the check report as `--repos` values. 3. If `needs_restart` is `true`, inform the user to restart ComfyUI, then re-check. 4. Missing models must be downloaded manually — tell the user which folder to place them in (e.g., `checkpoints`).
Step 4: Execute the Workflow
> **Note**: JSON args must be wrapped in single quotes to prevent bash from parsing double quotes.
Choose the execution mode based on your environment:
Interactive mode: `submit` + `status` (recommended for chat)
**Step 4a — Submit:**
comfyui-skill --json submit <id> --args '{"prompt": "..."}'Re
Agent-friendly ComfyUI workflow skills for OpenClaw, Hermes Agent, Codex, and Claude Code. Turn any ComfyUI workflow into a callable AI agent skill via CLI.

