Agent skill

CLI Anything Comfyui

by HKUDS in HKUDS/CLI-Anything

Command-line interface for ComfyUI - AI image generation workflow management via ComfyUI REST API.

Apache-2.0Auto-check passedAI & LLM Engineering

Install CLI Anything Comfyui

skills CLI
$ npx skills add HKUDS/CLI-Anything --skill cli-anything-comfyui -a claude-code

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

GitHub CLI
$ gh skill install HKUDS/CLI-Anything cli-anything-comfyui --agent claude-code

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

Manual copy
$ git clone --depth 1 https://github.com/HKUDS/CLI-Anything.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/cli-anything-comfyui .claude/skills/cli-anything-comfyui && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

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

Facts

Skill name
cli-anything-comfyui
GitHub stars
52k
Token cost
~1.1k tokens
SKILL.md length
339 words
Files
1
Skills in repo
78
Repo updated
First seen
Licence
Apache-2.0

At a glance

Command-line interface for ComfyUI - AI image generation workflow management via ComfyUI REST API.

  • Works in 5 steps: Always use --json flag for parseable… → Check return codes - 0 for success,… → Parse stderr for error messages on failure → …
  • Tasks that involve Diffusion and image models
  • SKILL.md covers Installation, Usage, Command Groups and Examples, plus 4 more sections
  • Calls pip

What it does

CLI Anything Comfyui is an agent skill from HKUDS/CLI-Anything. Command-line interface for ComfyUI - AI image generation workflow management via ComfyUI REST API. Designed for AI agents and power users who need to queue workflows, manage models, download generated images, and monitor the generation queue without a GUI.

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in AI & LLM Engineering, covering Diffusion and image models and Image generation. It works with ComfyUI. The repository describes itself as: "CLI-Anything: Making ALL Software Agent-Native" -- CLI-Hub: https://clianything.cc/. The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Diffusion and image models
  • Tasks that involve Image generation

Example prompts

  • “/cli-anything-comfyui”

Requirements

  • Python 3

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Always use --json flag for parseable output
  2. Check return codes - 0 for success, non-zero for errors
  3. Parse stderr for error messages on failure
  4. Use absolute paths for all file operations
  5. Verify ComfyUI is running with system stats before other commands

What it can do on your machine

Read from SKILL.md and the folder at commit 34f5195. 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

    Shell commands in SKILL.md call:

    • pip

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

  • Network

    No URLs in SKILL.md. Its commands use pip, which can reach the network depending on how they are called.

    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

CLI Anything Comfyui loads about 1.1k tokens when it runs. Until then it costs about 69 tokens; SKILL.md has 339 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~69
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k

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); files beside SKILL.md are not scanned.

SKILL.md

The full file from HKUDS/CLI-Anything at commit 34f5195, republished under its Apache-2.0 licence (© HKUDS). 339 words, ~1,138 tokens.

Download SKILL.mdSave it as .claude/skills/cli-anything-comfyui/SKILL.md (or your agent's skills folder).
name
cli-anything-comfyui
description
Command-line interface for ComfyUI - AI image generation workflow management via ComfyUI REST API. Designed for AI agents and power users who need to queue workflows, manage models, download generated images, and monitor the generation queue without a GUI.

cli-anything-comfyui

AI image generation workflow management via the ComfyUI REST API. Designed for AI agents and power users who need to queue workflows, manage models, download generated images, and monitor the generation queue without a GUI.

Installation

This CLI is installed as part of the cli-anything-comfyui package:

bash
pip install cli-anything-comfyui

Prerequisites:

Usage

Basic Commands
bash
# Show help
cli-anything-comfyui --help

# Start interactive REPL mode
cli-anything-comfyui repl

# Check server stats
cli-anything-comfyui system stats

# Run with JSON output (for agent consumption)
cli-anything-comfyui --json system stats
REPL Mode

Start an interactive session for exploratory use:

bash
cli-anything-comfyui repl
# Enter commands interactively with tab-completion and history

Command Groups

Workflow

Workflow management commands.

CommandDescription
listList saved workflows
loadLoad a workflow from a JSON file
validateValidate a workflow JSON against the ComfyUI node graph
Queue

Generation queue management.

CommandDescription
promptQueue a workflow for execution
statusShow current queue status (running and pending)
clearClear the generation queue
historyShow prompt execution history
interruptInterrupt the currently running generation
Models

Model discovery commands.

CommandDescription
checkpointsList available checkpoint models
lorasList available LoRA models
vaesList available VAE models
controlnetsList available ControlNet models
node-infoShow detailed info for a specific node type
list-nodesList all available node types
Images

Generated image management.

CommandDescription
listList generated images on the server
downloadDownload a specific generated image
download-allDownload all images from a prompt execution
System

Server status and information.

CommandDescription
statsShow ComfyUI system statistics (GPU, CPU, memory)
infoShow ComfyUI server info and extensions

Examples

Check System Status
bash
# Server stats
cli-anything-comfyui system stats

# Server info
cli-anything-comfyui system info
Discover Available Models
bash
# List checkpoints
cli-anything-comfyui models checkpoints

# List LoRAs
cli-anything-comfyui models loras

# List all node types
cli-anything-comfyui models list-nodes
Queue and Monitor Generation
bash
# Queue a workflow
cli-anything-comfyui queue prompt --workflow my_workflow.json

# Check queue status
cli-anything-comfyui queue status

# View execution history
cli-anything-comfyui --json queue history
Download Generated Images
bash
# List generated images
cli-anything-comfyui images list

# Download a specific image
cli-anything-comfyui images download --filename ComfyUI_00001_.png --output ./out.png

# Download all images from a prompt
cli-anything-comfyui images download-all --prompt-id <id> --output-dir ./outputs

Output Formats

All commands support dual output modes:

  • Human-readable (default): Tables, colors, formatted text
  • Machine-readable (--json flag): Structured JSON for agent consumption
bash
# Human output
cli-anything-comfyui system stats

# JSON output for agents
cli-anything-comfyui --json system stats

For AI Agents

When using this CLI programmatically:

  1. Always use --json flag for parseable output
  2. Check return codes - 0 for success, non-zero for errors
  3. Parse stderr for error messages on failure
  4. Use absolute paths for all file operations
  5. Verify ComfyUI is running with system stats before other commands

More Information

  • Full documentation: See README.md in the package
  • Test coverage: See TEST.md in the package
  • Methodology: See HARNESS.md in the cli-anything-plugin

Version

1.0.0

© HKUDS, 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

Just SKILL.md in skills/cli-anything-comfyui of HKUDS/CLI-Anything.

Open the folder on GitHubat commit 34f5195

Compare with similar skills

CLI Anything Comfyui 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.

CLI Anything Comfyui compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
CLI Anything Comfyui this skillHKUDS/CLI-Anything52k—~1.1kAutomated safety check: PassApache-2.0
Comfyui Skill OpenclawHuangYuChuh/ComfyUI_Skills_OpenClaw413—~2.7kAutomated safety check: PassApache-2.0
Setupguaardvark/guaardvark257—~1.2kAutomated safety check: PassMIT
Workflow Template BuilderMooshieblob1/MooshieUI207—~640Automated safety check: PassAGPL-3.0
Vibecomfypeteromallet/VibeComfy150—~3.5kAutomated safety check: PassMIT
Add Generation ParamMooshieblob1/MooshieUI207—~417Automated safety check: PassAGPL-3.0

Similar skills

  • Comfyui Skill Openclaw

    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.

    413 GitHub stars~2.7k tokensUpdated 1 mo ago
    AI & LLM EngineeringAuto-check passed
  • Setup

    guaardvark/guaardvark

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

    257 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
  • Vibecomfy

    peteromallet/VibeComfy

    Drive the VibeComfy package to discover ComfyUI workflows, load ready Python templates, edit and compose them in a VibeWorkflow IR, validate, and execute either embedded locally, against an existing…

    150 GitHub stars~3.5k tokensUpdated 8 days ago
    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

More from HKUDS/CLI-Anything

All 78 skills in this repo
  • CLI-Anything for Codex

    HKUDS/CLI-Anything

    Lets Codex build, refine, test, validate and list CLI-Anything harnesses for GUI applications or source repositories, following the project's full methodology.

    52k GitHub stars~1.5k tokensUpdated 17 days ago
    Auto-check passed
  • CLI-Anything for Reasonix

    HKUDS/CLI-Anything

    Adapts the CLI-Anything methodology so Reasonix can build, refine, test and validate a command-line harness for an existing GUI application or source repository.

    52k GitHub stars~1.8k tokensUpdated 17 days ago
    Auto-check passed
  • Guides Hermes Agent through building, refining and testing a CLI-Anything harness that wraps a GUI application or source repository in a scriptable command line.

    52k GitHub stars~1.1k tokensUpdated 17 days ago
    Auto-check passed
  • Builds, refines, tests or validates a CLI-Anything harness that wraps a GUI application or source repository as a stateful Click CLI with JSON output and a REPL mode.

    52k GitHub stars~839 tokensUpdated 17 days ago
    Auto-check passed
  • Krita CLI Harness

    HKUDS/CLI-Anything

    Drives Krita from the command line to create projects, add layers, apply filters, resize the canvas and export images, with JSON output for agents.

    52k GitHub stars~931 tokensUpdated 17 days ago
    Auto-check passed
  • MacroCLI GUI Macros

    HKUDS/CLI-Anything

    Defines, lists, inspects and runs parameterized GUI macros from the command line, with the runtime choosing the execution backend.

    52k GitHub stars~1.4k tokensUpdated 17 days ago
    Auto-check passed

Works with

Questions about CLI Anything Comfyui

What does CLI Anything Comfyui do?

Command-line interface for ComfyUI - AI image generation workflow management via ComfyUI REST API. CLI Anything Comfyui is an agent skill from HKUDS/CLI-Anything. Command-line interface for ComfyUI - AI image generation workflow management via ComfyUI REST API.

When should I use CLI Anything Comfyui?

CLI Anything Comfyui fits situations like: tasks that involve Diffusion and image models; tasks that involve Image generation.

How do I install CLI Anything Comfyui in Claude Code?

Run `npx skills add HKUDS/CLI-Anything --skill cli-anything-comfyui -a claude-code`. Or copy the skill folder (skills/cli-anything-comfyui in HKUDS/CLI-Anything) into .claude/skills/cli-anything-comfyui in your project. Claude Code loads it when a task matches its description.

How do I install CLI Anything Comfyui in Codex?

Run `npx skills add HKUDS/CLI-Anything --skill cli-anything-comfyui -a codex`. Or copy the skill folder (skills/cli-anything-comfyui in HKUDS/CLI-Anything) into .agents/skills/cli-anything-comfyui in your project. Codex loads it when a task matches its description.

Can I use CLI Anything Comfyui 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 HKUDS/CLI-Anything --skill cli-anything-comfyui -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/cli-anything-comfyui, .gemini/skills/cli-anything-comfyui, .github/skills/cli-anything-comfyui and .opencode/skills/cli-anything-comfyui in your project.

What does CLI Anything Comfyui need to run?

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

Does CLI Anything Comfyui access the network?

SKILL.md contains no URLs. Its commands use pip, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is CLI Anything Comfyui 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. Review the folder before installing.

What licence does CLI Anything Comfyui use?

CLI Anything Comfyui is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does CLI Anything Comfyui use?

About 1.1k tokens (SKILL.md is roughly 4.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to CLI Anything Comfyui?

Skills that share tags, products or a category with CLI Anything Comfyui: Comfyui Skill Openclaw (HuangYuChuh/ComfyUI_Skills_OpenClaw, 413 stars), Setup (guaardvark/guaardvark, 257 stars), Workflow Template Builder (Mooshieblob1/MooshieUI, 207 stars) and Vibecomfy (peteromallet/VibeComfy, 150 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains CLI Anything Comfyui?

HKUDS (a GitHub organization) maintains it in HKUDS/CLI-Anything, which has 51,768 GitHub stars. The repository holds 78 skills in this directory. The repository was last updated on September 22, 2026.

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