Xpersona
C

ComfyUI Skill for OpenClaw

CLAWHUB · Unverified

Run ComfyUI workflows from any AI agent (Claude Code, OpenClaw, Codex) via a single CLI. Import workflows, manage dependencies, execute across multiple serve...

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s179bvjd7v2pwnqht381eqdp3s8425t5:comfyui-skill-openclaw
  1. Install using `clawhub skill install s179bvjd7v2pwnqht381eqdp3s8425t5:comfyui-skill-openclaw` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/huangyuchuh/comfyui-skill-openclaw before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-huangyuchuh-comfyui-skill-openclaw/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

104,339 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: comfyui-skill-openclaw
description: |
  Run ComfyUI workflows from any AI agent (Claude Code, OpenClaw, Codex) 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.
---

# ComfyUI Agent SKILL

## Core Execution Specification

As an Agent equipped with the ComfyUI skill, your objective is to translate the user's conversational requests into strict, structured parameters and execute workflows across multi-server environments.

> **Prerequisites**: Install the CLI tool once: `pip install comfyui-skill-cli`. All commands must be run from this project's root directory.

### Quick Reference

| Command | Purpose |
|---------|---------|
| `comfyui-skill --json server status` | Check if ComfyUI server is online |
| `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) |
| `comfyui-skill --json deps check <id>` | Check missing dependencies |
| `comfyui-skill --json deps install <id> --repos '[...]'` | Install missing custom nodes |

Skill IDs use the format `<server_id>/<workflow_id>` (e.g., `local/txt2img`).

### UI Management Shortcut

If the user asks you to open, launch, or bring up the local Web UI for this skill, run:

```bash
python3 ./ui/open_ui.py
```

This command will:
- reuse the UI if it is already running
- start it in the background if it is not running
- try to open the browser to the local dashboard automatically

### Server Health Check

Before running a workflow, check whether the target ComfyUI server is online:

```bash
comfyui-skill --json server status
```

This returns JSON with `"status": "online"` or `"status": "offline"`.

**Recommended agent flow:** Before Step 3 (Trigger Image Generation), run a server status check. If offline, ask the user to start ComfyUI and retry once it is online.

### Step 0: Workflow Onboarding and Import (Optional)

Use the manager UI/API when the user wants to register workflows into this skill instead of running them immediately.

- For bulk import from ComfyUI `/userdata`, local files, manager API routes, and import result semantics, read [`references/workflow-import.md`](./references/workflow-import.md).
- Prefer the bulk import flow when the user wants to sync many saved workflows at once.
- Use single-workflow configuration only when the user give

README.md

# ComfyUI Skills for OpenClaw

![ComfyUI Skills Banner](./asset/banner-ui-dashboard-20260322.png)

Turn your ComfyUI workflows into callable skills for AI agents. Any agent that can run shell commands — Claude Code, Codex, OpenClaw — can discover, execute, and manage ComfyUI workflows through a single CLI.

<a href="./README.zh.md"><img src="https://img.shields.io/badge/简体中文-README.zh.md-blue?style=flat-square" alt="简体中文" /></a>

[Demo Video](https://www.bilibili.com/video/BV1a6cUzVEE6/) · [Install](#install) · [CLI Usage](#cli-usage) · [Web UI](#web-ui-optional) · [Workflow Setup](#workflow-setup) · [Multi-Server](#multi-server-management)

---

## Install

### Step 1: Clone the project

<details>
<summary><strong>For OpenClaw</strong></summary>

```bash
cd ~/.openclaw/workspace/skills
git clone https://github.com/HuangYuChuh/ComfyUI_Skills_OpenClaw.git comfyui-skill-openclaw
cd comfyui-skill-openclaw
cp config.example.json config.json
```

</details>

<details>
<summary><strong>For Claude Code</strong></summary>

```bash
cd ~/.claude/skills
git clone https://github.com/HuangYuChuh/ComfyUI_Skills_OpenClaw.git comfyui-skill
cd comfyui-skill
cp config.example.json config.json
```

</details>

<details>
<summary><strong>For Codex</strong></summary>

```bash
cd ~/.codex/skills
git clone https://github.com/HuangYuChuh/ComfyUI_Skills_OpenClaw.git comfyui-skill
cd comfyui-skill
cp config.example.json config.json
```

</details>

### Step 2: Install the CLI

```bash
pipx install comfyui-skill-cli
```

Or with pip:

```bash
pip install comfyui-skill-cli
```

### Step 3: Verify

```bash
comfyui-skill server status
comfyui-skill list
```

That's it. The CLI reads `config.json` and `data/` from the project directory.

> **Web UI dependencies** (optional, only needed if you want the management interface):
> ```bash
> pip install -r requirements.txt
> ```

---

## CLI Usage

The CLI is the primary way to interact with ComfyUI Skills. All commands support `--json` for structured output.

### Quick Start

```bash
# Check server
comfyui-skill server status

# List workflows
comfyui-skill list

# Execute a workflow
comfyui-skill run local/txt2img --args '{"prompt": "a white cat"}'

# Import a new workflow from JSON
comfyui-skill workflow import ./my-workflow.json --check-deps

# Upload an image for img2img workflows
comfyui-skill upload ./photo.png
```

### Full Command Reference

| Category | Command | Description |
|----------|---------|-------------|
| **Discovery** | `comfyui-skill list` | List all workflows with parameters |
| | `comfyui-skill info <workflow_id>` | Show workflow details and parameter schema |
| **Execution** | `comfyui-skill run <workflow_id> --args '{...}'` | Execute workflow (blocking) |
| | `comfyui-skill submit <workflow_id> --args '{...}'` | Submit workflow (non-blocking) |
| | `comfyui-skill status <prompt_id>` | Check execution status |
| | `comfyui-skill upload <image_path>` | Upload image to ComfyUI |
| **Workflow** | `comfyui-skill

_meta.json

{
  "ownerId": "kn7eha5r8xg3vgj9qn1zcpk30n82gmh5",
  "slug": "comfyui-skill-openclaw",
  "version": "1.0.1",
  "publishedAt": 1775115637982
}

references/workflow-import.md

# Workflow Import Reference

Use this reference only when the user is asking to register workflows into the skill instead of executing an already configured workflow.

## When to use which path

- Use ComfyUI bulk import when the user wants all saved workflows from a configured ComfyUI server.
- Use local bulk import when the user already has multiple JSON files or a local folder.
- Use single-workflow configuration when the user provides one workflow and wants a targeted setup.

## Manager API routes

### Import all saved workflows from ComfyUI

```http
POST /api/servers/{server_id}/workflows/import/comfyui
```

Preconditions:

- The target server must already exist in manager config.
- The server must have a valid `url`.
- The ComfyUI server should be reachable because editor-format conversion depends on `/object_info`.

Behavior:

- Reads saved workflow JSON files from ComfyUI `/userdata`.
- Accepts both API workflow JSON and editor workflow JSON.
- Converts editor workflow JSON to API workflow JSON through ComfyUI `/object_info`.
- Extracts a recommended schema automatically.
- Auto-renames conflicting workflow IDs instead of overwriting silently.
- Persists import metadata such as origin and source label.

### Import local JSON files

```http
POST /api/servers/{server_id}/workflows/import/local
Content-Type: application/json

{
  "files": [
    {
      "file_name": "my-workflow.json",
      "content": "{...raw json string...}"
    }
  ]
}
```

Behavior:

- Applies the same workflow normalization as the ComfyUI bulk import route.
- Processes files independently so partial success is allowed.
- Fails only the individual files that have invalid JSON or unsupported workflow data.
- Prefer this route over manual file placement when the JSON content is already available.

## UI entry points

- Server section: `Import All from ComfyUI`
- Workflow section: `Import Local Files`
- Workflow section: `Import Local Folder`

## Import report semantics

The bulk import response returns a report with summary counts and per-item results.

- `created`: imported with the suggested workflow ID
- `renamed`: imported after auto-renaming due to an ID conflict
- `skipped`: nothing importable was found for that source
- `failed`: the source could not be parsed, normalized, or saved

## Agent guidance

- If the user says "import all my saved workflows", prefer the ComfyUI bulk import route.
- If the user uploads a folder or several JSON files, prefer the local bulk import route.
- If the user only wants to execute a workflow, do not import first unless configuration is actually missing.
- Do not expose node IDs to the user unless they explicitly ask for internal workflow details.

CHANGELOG.md

# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/),
and this project adheres to [Semantic Versioning](https://semver.org/).

## [0.3.1] - 2026-03-30

### Added

- **ComfyUI API Key support** — New API Key field in server settings enables authentication for cloud API nodes such as Kling, Sora, and Nano Banana (#81, #83)

## [0.3.0] - 2026-03-30

### Added

- **Workflow dependency check & install** — Automatically detect missing custom nodes and models before execution, with one-click install (#76)
- **Non-blocking execution** — New `submit` + `status` commands with real-time progress feedback (#69)
- **Image upload API** — Upload images for use in workflows via the API layer (#64)
- **Batch workflow deletion** — Delete multiple workflows at once (#62)
- **Import preview** — Preview workflow content and parameters before importing from ComfyUI (#57)
- **Execution history** — Full records of each run including parameters, results, and timing (#43)

### Fixed

- **Parameters ignored** — User-supplied parameters (prompt, seed, etc.) were silently dropped; workflows always ran with defaults (#75)
- **Unmatched parameter warning** — Agent now receives a warning when passing parameter names not in the workflow schema (#71)
- **Subgraph node ID compatibility** — Fixed schema extraction failure for ComfyUI subgraph workflow exports (#63)
- **Queued job disappears** — History now correctly marks cancelled queued jobs as failed (#60)
- **UI startup recovery** — Auto-recover when UI fails to start after an update (#51)
- **Frontend cache stale** — Browser no longer loads outdated UI after an update (#49)
- **Python version detection** — Automatically find and use a compatible Python 3.10+ interpreter for UI startup (#58)
- **Merge conflict markers in JS** — Clean up leftover conflict markers in frontend bundles (#73)

### Improved

- Frontend assets continuously synced from upstream (#45 ~ #68, 12 syncs total)
- CI automation for frontend sync pipeline
- Update script now cleans up stale generated files

## [0.2.0] - 2026-03-16

### Changed

- Frontend source code moved to a [separate repository](https://github.com/HuangYuChuh/ComfyUI_Skills_OpenClaw-frontend). The main repo now ships only pre-built assets in `ui/static/`.

### Added

- `scripts/update_frontend.sh` — download the latest frontend build from GitHub Releases.

## [0.1.0] - 2025-03-09

Initial release.

Sponsored

Ads related to ComfyUI Skill for OpenClaw and adjacent AI workflows.