Agent-friendly ComfyUI workflow skills for OpenClaw, Hermes Agent, Codex, and Claude Code; complementary to Comfy official local MCP.
$ npx -y skills add HuangYuChuh/ComfyUI_Skills_OpenClaw --agent claude-code
What's inside
ComfyUI Skills for OpenClaw is an agent-friendly bridge that turns ComfyUI workflows into callable skills for AI agents.
Instead of asking an agent to manipulate raw ComfyUI graphs, this project gives each workflow a clean, controlled interface through a CLI and schema-based parameter mapping. It works with OpenClaw, Hermes Agent, Codex, Claude Code, and any agent that can run shell commands. Compatible with the agentskills.io open standard.
Use it when you want to import existing ComfyUI workflows, expose only the parameters that matter, run them from chat or agent tasks, and manage everything through one consistent workflow layer.
| Best for | What you get |
|---|---|
| OpenClaw, Codex, Claude Code, and Hermes Agent users | A ComfyUI workflow layer that agents can call safely |
| Existing ComfyUI workflow owners | A clean way to reuse exported workflows without exposing the full graph |
| Multi-machine setups | One namespace for local and remote ComfyUI servers |
| Users who want visual setup and testing | An optional Web UI for configuring, previewing, and validating workflows before agents use them |
| Capability | Why it matters |
|---|---|
| Agent-friendly CLI | Designed for agents, not just humans. It provides a cleaner and more reliable interface than working directly with raw ComfyUI graphs or lower-level ComfyUI interaction patterns. |
| Schema-based parameter mapping | Expose only the fields you want the agent to control, with clear aliases, types, and descriptions. |
| ComfyUI workflow import | Import workflow JSON files, auto-detect formats, and generate the mapping layer needed for agent use. |
| Multi-server routing | Manage local and remote ComfyUI servers under one namespace and route jobs to the right machine. |
| Dependency management | Check missing nodes and models before execution and install supported dependencies through the CLI. |
| Official local Comfy MCP | Use the official runtime interface for live template, node, and model discovery, raw-workflow validation, and advanced orchestration while keeping CLI execution fast. |
| Optional Web UI | A visual layer for configuration and testing. It does not replace the CLI, and agent-facing actions still map to the same CLI workflow. |
This Skill treats CLI and MCP as two tools for different jobs, not as replacements for each other:
comfyui-skill for registered workflows, repeated execution, batch jobs, uploads, and history.If the Agent host already exposes the official MCP tools, the Skill calls them directly. A shell-only host can use the included bridge:
python ./scripts/comfy_mcp.py probe
python ./scripts/comfy_mcp.py call search_templates --arguments '{"query":"upscale"}'
See Official Local Comfy MCP Integration for setup, routing, and safety boundaries.
Get ComfyUI Skills running in a few minutes.
Before you start, make sure you have:
Choose the directory that matches your agent environment.
cd ~/.openclaw/workspace/skills
git clone https://github.com/HuangYuChuh/ComfyUI_Skills_OpenClaw.git comfyui-skill-openclaw
cd comfyui-skill-openclaw
cd ~/.claude/skills
git clone https://github.com/HuangYuChuh/ComfyUI_Skills_OpenClaw.git comfyui-skill
cd comfyui-skill
cd ~/.codex/skills
git clone https://github.com/HuangYuChuh/ComfyUI_Skills_OpenClaw.git comfyui-skill
cd comfyui-skill
cd ~/.hermes/skills/creative
git clone https://github.com/HuangYuChuh/ComfyUI_Skills_OpenClaw.git comfyui-skill-openclaw
cd comfyui-skill-openclaw
Or install via Hermes CLI (once the PR is merged):
hermes skills install comfyui-skill-openclaw
cp config.example.json config.json
pipx install comfyui-skill-cli
Or:
pip install comfyui-skill-cli
If you already have the CLI installed, upgrade it with:
# If you installed it with pipx
pipx upgrade comfyui-skill-cli
# If you installed it with pip
python3 -m pip install -U comfyui-skill-cli
comfyui-skill server status
comfyui-skill list
comfyui-skill workflow import /absolute/path/to/my-workflow.json
comfyui-skill deps check local/my-workflow
comfyui-skill run local/my-workflow --args '{"prompt": "a white cat"}'
For manual CLI imports, the recommended approach is to pass the workflow JSON as an absolute path. That avoids path ambiguity and keeps the storage model simple.
For example:
comfyui-skill workflow import /Users/yourname/Downloads/my-workflow.json
After import, the CLI stores the normalized workflow and schema under data/<server_id>/<workflow_id>/, for example data/local/my-workflow/workflow.json and data/local/my-workflow/schema.json.
This is also the formal layout used by the Web UI and by Agent/OpenClaw-driven imports:
data/<server_id>/<workflow_id>/
workflow.json
schema.json
history/
At this point, the CLI will read your local config.json, discover available workflows, and execute them through your ComfyUI server.
If you prefer a visual setup and testing flow, see the Web UI section below.
Choose the path that matches how you want to use the project.
Use this path if you want OpenClaw to discover and execute ComfyUI workflows as skills.
~/.openclaw/workspace/skillscomfyui-skill-cliconfig.jsonUse this path if you want coding agents to call ComfyUI workflows through shell commands.
comfyui-skill list--argsUse this path if you want a visual interface for configuration, inspection, and testing. See the Web UI section below for launch instructions and details.
Use this path if you want direct control over config.json, workflow.json, and schema.json.
config.json{
"servers": [
{
"id": "local",
"name": "Local",
"url": "http://127.0.0.1:8188",
"enabled": true,
"output_dir": "./outputs"
}
],
"default_server": "local"
}
data/local/my-workflow/
workflow.json # ComfyUI API-format export
schema.json # Parameter mapping
schema.json{
"description": "My workflow",
"enabled": true,
"parameters": {
"prompt": {
"node_id": 10,
"field": "prompt",
"required": true,
"type": "string",
"description": "Prompt text"
}
}
}
Beyond the commands shown in Quick Start, here are additional operations you may need:
comfyui-skill info local/txt2img
comfyui-skill submit local/txt2img --args '{"prompt": "a white cat"}'
comfyui-skill status <prompt_id>
comfyui-skill server list
comfyui-skill server add --id remote --url http://10.0.0.1:8188
For the full CLI reference, run comfyui-skill --help or see ComfyUI Skill CLI.
To work reliably with this project, each workflow should meet these requirements.
FAQ
comfyui-skills-openclaw is a Claude Code plugin with 1 hand-picked skill for development work, indexed on Flowy. Install it with the command on its page. It includes ComfyUI_Skills_OpenClaw. Its skills do not fire on their own yet. Request auto-invocation to have Flowy route them as you prompt. Free and open source.
Is this plugin yours?
Claim it with GitHubSubmit a pluginPromote it