Agent skill

Comfyui Skill Openclaw

by HuangYuChuh in HuangYuChuh/ComfyUI_Skills_OpenClaw

Run registered ComfyUI workflows through the fast comfyui-skill CLI, and use the official local Comfy MCP for live template, node, model, validation, and orchestration capabilities.

Apache-2.0Auto-check passedAI & LLM Engineering

Install Comfyui Skill Openclaw

skills CLI
$ npx skills add HuangYuChuh/ComfyUI_Skills_OpenClaw --skill comfyui-skill-openclaw -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install HuangYuChuh/ComfyUI_Skills_OpenClaw comfyui-skill-openclaw --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
comfyui-skill-openclaw
GitHub stars
413
Token cost
~2.7k tokens
SKILL.md length
1,249 words
Files
94 (incl. scripts, references)
Skills in repo
1
Repo updated
First seen
Licence
Apache-2.0

At a glance

Run registered ComfyUI workflows through the fast comfyui-skill CLI, and use the official local Comfy MCP for live template, node, model, validation, and orchestration capabilities.

  • Works in 5 steps: Query Available Workflows → Parameter Assembly → Pre-flight Dependency Check → …
  • The user requests to generate an image
  • SKILL.md covers Quick Decision, Core Concepts, Official Local Comfy MCP and Command Reference, plus 3 more sections
  • Calls python, pip and python3

What it does

Comfyui Skill Openclaw is an agent skill from HuangYuChuh/ComfyUI_Skills_OpenClaw. Run registered ComfyUI workflows through the fast comfyui-skill CLI, and use the official local Comfy MCP for live template, node, model, validation, and orchestration capabilities. 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.

Its SKILL.md is about 2.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 97 other files, including scripts and reference files (for example `.github/workflows/ci.yml`, `.github/workflows/sync-frontend.yml` and `CHANGELOG.md`).

It sits in AI & LLM Engineering, covering Diffusion and image models and Image generation. It works with ComfyUI, Model Context Protocol and Stable Diffusion. The repository describes itself as: Agent-friendly ComfyUI workflow skills for OpenClaw, Hermes Agent, Codex, and Claude Code; complementary to Comfy official local MCP. The licence is Apache-2.0.

When your agent uses it

  • The user requests to generate an image
  • Execute a ComfyUI workflow

Example prompts

  • “generate an image”
  • “draw a picture”
  • “execute a ComfyUI workflow”
  • “/comfyui-skill-openclaw”

Requirements

  • Python 3

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Query Available Workflows
  2. Parameter Assembly
  3. Pre-flight Dependency Check
  4. Execute the Workflow
  5. Present Results

What it can do on your machine

Read from SKILL.md and the folder at commit 723d3a7. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/, which the agent can run.

    Shell commands in SKILL.md call:

    • python
    • pip
    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • docs.comfy.org
    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Comfyui Skill Openclaw loads about 2.7k tokens when it runs, and up to ~4.8k if it reads all its reference files. Until then it costs about 131 tokens; SKILL.md has 1,249 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~131
When it runs · the whole SKILL.md, loaded when a task matches
~2.7k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~4.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from HuangYuChuh/ComfyUI_Skills_OpenClaw at commit 723d3a7, republished under its Apache-2.0 licence (© HuangYuChuh). 1,249 words, ~2,734 tokens.

Download SKILL.mdSave it as .claude/skills/comfyui-skill-openclaw/SKILL.md (or your agent's skills folder). This skill also uses 93 other files; get the full folder from GitHub.
name
comfyui-skill-openclaw
description
Run registered ComfyUI workflows through the fast comfyui-skill CLI, and use the official local Comfy MCP for live template, node, model, validation, and orchestration capabilities. **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.
license
Apache-2.0
metadata.version
1.1.0
metadata.platforms
macos, linux, windows
metadata.cliHelp
comfyui-skill --help

ComfyUI Agent SKILL

Prerequisites: Install the CLI: pip install -U comfyui-skill-cli. The official local Comfy MCP is optional and should be connected using the official guide when MCP capabilities are needed. All shell 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

  • A matching registered workflow exists → use the CLI Execution Flow (Step 1-4). This is the default for repeated, batch, and latency-sensitive work.
  • The request has no matching workflow, or requires live template/model/node discovery → use the official local Comfy MCP.
  • The user supplies a raw workflow that needs real environment validation → use MCP validate_workflow; use CLI run --validate for a registered workflow.
  • The user asks to install nodes, download models, restart, update, or switch versions → use MCP only after explaining the effect and getting confirmation.
  • User says "generate image / draw a picture" → first inspect registered workflows; if none fit, discover a current MCP template instead of guessing a model name.
  • 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" → use MCP nodes for live ecosystem discovery; use comfyui-skill --json nodes list when only the CLI inventory is needed.
  • 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.
  • Two interfaces, one Skill: CLI is the efficient execution path for known workflows. Official MCP is the adaptive path for discovering and orchestrating the current ComfyUI ecosystem. They share the same business intent and must not submit the same job twice.

Official Local Comfy MCP

When the Agent host exposes the official Comfy MCP tools, call those tools directly. Start every MCP flow with server_info and use the live tool schemas instead of assuming parameters or tool availability.

When the host does not expose MCP tools but can run shell commands, use the included stdio bridge:

bash
python ./scripts/comfy_mcp.py probe
python ./scripts/comfy_mcp.py tools
python ./scripts/comfy_mcp.py call search_templates --arguments '{"query":"background removal"}'

The bridge reads mcp_command, mcp_args, mcp_python, mcp_cwd, and mcp_env from the selected server in config.json. probe and tools are read-only. A call has the side effects of the named official tool.

Read references/comfy-mcp.md when the request needs MCP discovery, raw-workflow validation, template adaptation, job management, installation, lifecycle control, or partner models.

Routing invariants:

  • Prefer CLI for a known <server_id>/<workflow_id>; MCP is not a mandatory extra hop.
  • Prefer MCP when the answer depends on the currently installed templates, nodes, models, hardware, or official tool contract.
  • For long MCP runs: run_workflow(wait=false) or run_template(wait=false) -> job(action="wait"|"status") -> fetch_outputs.
  • Once either path returns a prompt_id, continue polling that path. Never fall back by submitting again.
  • Never set confirm_spend=true without the user's explicit approval for that paid call.

Command Reference

CommandPurpose
comfyui-skill --json server statusCheck if ComfyUI server is online
comfyui-skill --json server statsShow VRAM, RAM, GPU, versions (--all for multi-server)
comfyui-skill --json listList 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> --validateValidate workflow without executing
comfyui-skill --json upload <path>Upload image to ComfyUI (for img2img workflows)
comfyui-skill --json upload <path> --maskUpload mask image (for inpainting workflows)
comfyui-skill --json nodes listList all available ComfyUI nodes
comfyui-skill --json jobs listList 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

Show full SKILL.md (499 more words)Show less

Execution Flow

Step 1: Query Available Workflows
bash
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:

bash
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:
      bash
      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:

Step 4a — Submit:

bash
comfyui-skill --json submit <id> --args '{"prompt": "..."}'

Returns: {"status": "submitted", "prompt_id": "..."}. Tell the user generation has started.

Step 4b — Poll:

bash
comfyui-skill --json status <prompt_id>

Status values: queued (with position) → running → success (with outputs) or error.

Polling pattern — critical for real-time feedback:

Each status call must be a separate tool invocation (a separate bash command). Do NOT write a shell loop. The correct pattern is:

  1. Run status as a standalone bash command.
  2. Read the returned JSON.
  3. If queued or running: send a text message to the user with progress, then run status again.
  4. If success: proceed to Step 5.
  5. If error: report the error.
Non-interactive mode: one-shot blocking (for scripts/CI)
bash
comfyui-skill --json run <id> --args '{"prompt": "..."}'

Blocks until finished. Returns the same result format as status with success.

Step 5: Present Results

On success, the result contains an outputs array with file references (filename, subfolder, type). Use your native capabilities to present the files to the user (e.g., image preview, file path).


Workflow Import

When the user wants to add new workflows (not execute existing ones):

bash
comfyui-skill --json workflow import <json_path>
  • Supports both API format and editor format (auto-detected, auto-converted).
  • Automatically generates schema.json with smart parameter extraction.
  • After import, check dependencies before first execution.

For bulk import from ComfyUI server or local folders, see references/workflow-import.md.

Troubleshooting

  1. ComfyUI Offline: Run comfyui-skill --json server status. If offline, ask the user to start ComfyUI.
  2. Workflow Not Found: Run comfyui-skill --json list to see available workflows. If missing, the user needs to import it first.
  3. Parameter Format Error: Ensure --args is valid JSON wrapped in single quotes.
  4. Cloud Node Unauthorized: Workflow uses cloud API nodes (Kling, Sora, etc.). Guide user to: (1) Generate an API Key at https://platform.comfy.org, (2) Open Web UI → Server Settings → fill in "ComfyUI API Key".

© HuangYuChuh, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 93 other files (scripts, references) in the repository root of HuangYuChuh/ComfyUI_Skills_OpenClaw.

  • SKILL.md
  • .github/workflows/ci.yml
  • .github/workflows/sync-frontend.yml
  • .gitignore
  • CHANGELOG.md
  • CHANGELOG.zh.md
  • CONTRIBUTING.md
  • LICENSE
  • README.es.md
  • README.ja.md
  • README.ko.md
  • README.md
  • README.zh-CN.md
  • README.zh-TW.md
  • asset/banner.png
  • config.example.json
  • data/.gitkeep
  • … and 77 more

Open the folder on GitHubat commit 723d3a7

Compare with similar skills

Comfyui Skill Openclaw next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Comfyui Skill Openclaw compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Comfyui Skill Openclaw this skillHuangYuChuh/ComfyUI_Skills_OpenClaw413—~2.7kAutomated safety check: PassApache-2.0
Imageguaardvark/guaardvark258—~1.8kAutomated safety check: PassMIT
Setupguaardvark/guaardvark258—~1.2kAutomated safety check: PassMIT
Workflow Template BuilderMooshieblob1/MooshieUI207—~640Automated safety check: PassAGPL-3.0
Add Generation ParamMooshieblob1/MooshieUI207—~417Automated safety check: PassAGPL-3.0
Iibzanllp/infinite-image-browsing1.4k—~3.3kAutomated safety check: PassMIT

Similar skills

  • Image

    guaardvark/guaardvark

    Generate or edit images on the user's own GPU through Guaardvark: single images, instruction edits, background cut-outs, inpaint and outpaint, consistent characters from the Cast Library, and batch…

    258 GitHub stars~1.8k tokensUpdated today
    Media & CreativeAuto-check passed
  • Setup

    guaardvark/guaardvark

    Connect this agent to a running Guaardvark (self-hosted AI studio) and check what it can do right now.

    258 GitHub stars~1.2k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Workflow Template Builder

    Mooshieblob1/MooshieUI

    Builds or modifies ComfyUI workflow JSON templates in MooshieUI's Rust backend (src-tauri/src/templates).

    207 GitHub stars~640 tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Add Generation Param

    Mooshieblob1/MooshieUI

    Adds a generation parameter across MooshieUI's Svelte store, TypeScript types, Rust GenerationParams, and workflow templates.

    207 GitHub stars~417 tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Iib

    zanllp/infinite-image-browsing

    Interact with IIB (Infinite Image Browsing) service for searching, browsing, tagging, and organizing AI-generated images.

    1.4k GitHub stars~3.3k tokensUpdated today
    Media & CreativeAuto-check passed
  • Comfy

    Comfy-Org/comfy-skills

    Generate images, video, audio, and 3D with Comfy Cloud — search hundreds of models and workflow templates, run custom ComfyUI workflows, and manage generation jobs through the hosted Comfy Cloud MCP…

    222 GitHub stars~1.4k tokensUpdated 2 days ago
    Agent WorkflowsAuto-check passed

Questions about Comfyui Skill Openclaw

What does Comfyui Skill Openclaw do?

Run registered ComfyUI workflows through the fast comfyui-skill CLI, and use the official local Comfy MCP for live template, node, model, validation, and orchestration capabilities. Comfyui Skill Openclaw is an agent skill from HuangYuChuh/ComfyUI_Skills_OpenClaw. Run registered ComfyUI workflows through the fast comfyui-skill CLI, and use the official local Comfy MCP for live template, node, model, validation, and orchestration capabilities.

When should I use Comfyui Skill Openclaw?

Comfyui Skill Openclaw fits situations like: the user requests to generate an image; execute a ComfyUI workflow.

How do I install Comfyui Skill Openclaw in Claude Code?

Run `npx skills add HuangYuChuh/ComfyUI_Skills_OpenClaw --skill comfyui-skill-openclaw -a claude-code`. Or copy the skill folder (the HuangYuChuh/ComfyUI_Skills_OpenClaw repository) into .claude/skills/comfyui-skill-openclaw in your project. Claude Code loads it when a task matches its description.

How do I install Comfyui Skill Openclaw in Codex?

Run `npx skills add HuangYuChuh/ComfyUI_Skills_OpenClaw --skill comfyui-skill-openclaw -a codex`. Or copy the skill folder (the HuangYuChuh/ComfyUI_Skills_OpenClaw repository) into .agents/skills/comfyui-skill-openclaw in your project. Codex loads it when a task matches its description.

Can I use Comfyui Skill Openclaw in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add HuangYuChuh/ComfyUI_Skills_OpenClaw --skill comfyui-skill-openclaw -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/comfyui-skill-openclaw, .gemini/skills/comfyui-skill-openclaw, .github/skills/comfyui-skill-openclaw and .opencode/skills/comfyui-skill-openclaw in your project.

What does Comfyui Skill Openclaw need to run?

Going by SKILL.md and its folder, Comfyui Skill Openclaw needs the command-line tools its instructions call (python, pip and python3). Our summary lists: Python 3.

Does Comfyui Skill Openclaw access the network?

SKILL.md names 2 domains. As links in the text: docs.comfy.org and github.com. This is read from the text; nothing was executed.

Is Comfyui Skill Openclaw safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Comfyui Skill Openclaw use?

Comfyui Skill Openclaw is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Comfyui Skill Openclaw use?

About 2.7k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2.1k tokens, read only when the agent opens those files.

What are the alternatives to Comfyui Skill Openclaw?

Skills that share tags, products or a category with Comfyui Skill Openclaw: Image (guaardvark/guaardvark, 258 stars), Setup (guaardvark/guaardvark, 258 stars), Workflow Template Builder (Mooshieblob1/MooshieUI, 207 stars) and Add Generation Param (Mooshieblob1/MooshieUI, 207 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Comfyui Skill Openclaw?

HuangYuChuh (a GitHub user) maintains it in HuangYuChuh/ComfyUI_Skills_OpenClaw, which has 413 GitHub stars. The repository was last updated on August 26, 2026.

Source: HuangYuChuh/ComfyUI_Skills_OpenClaw on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.