cli-anything-comfyui
O que ela faz
Esta skill permite que seu agente execute a geração de imagens com IA pelo ComfyUI a partir da linha de comando. Ela é para quem usa o ComfyUI e quer enfileirar trabalhos e coletar resultados sem abrir o aplicativo.
Quando usar
- ✓Quando você quer enfileirar um fluxo de trabalho de imagem com IA no ComfyUI.
- ✓Quando você quer verificar o andamento dos trabalhos de geração de imagem.
- ✓Quando você quer baixar do ComfyUI as imagens geradas.
Link da skill
https://github.com/HKUDS/CLI-Anything/blob/main/comfyui/agent-harness/cli_anything/comfyui/skills/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Enfileire meu fluxo de trabalho de retrato no ComfyUI e baixe as imagens quando terminarem.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
A skill envia seu fluxo de trabalho ao servidor do ComfyUI pela API REST. Pode acompanhar a fila, gerenciar modelos e baixar as imagens que ficarem prontas.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do GitHub.
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:
pip install cli-anything-comfyui
Prerequisites:
- Python 3.10+
- ComfyUI must be installed and running at http://localhost:8188
Usage
Basic Commands
# 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:
cli-anything-comfyui repl
# Enter commands interactively with tab-completion and history
Command Groups
Workflow
Workflow management commands.
| Command | Description |
|---|---|
list |
List saved workflows |
load |
Load a workflow from a JSON file |
validate |
Validate a workflow JSON against the ComfyUI node graph |
Queue
Generation queue management.
| Command | Description |
|---|---|
prompt |
Queue a workflow for execution |
status |
Show current queue status (running and pending) |
clear |
Clear the generation queue |
history |
Show prompt execution history |
interrupt |
Interrupt the currently running generation |
Models
Model discovery commands.
| Command | Description |
|---|---|
checkpoints |
List available checkpoint models |
loras |
List available LoRA models |
vaes |
List available VAE models |
controlnets |
List available ControlNet models |
node-info |
Show detailed info for a specific node type |
list-nodes |
List all available node types |
Images
Generated image management.
| Command | Description |
|---|---|
list |
List generated images on the server |
download |
Download a specific generated image |
download-all |
Download all images from a prompt execution |
System
Server status and information.
| Command | Description |
|---|---|
stats |
Show ComfyUI system statistics (GPU, CPU, memory) |
info |
Show ComfyUI server info and extensions |
Examples
Check System Status
# Server stats
cli-anything-comfyui system stats
# Server info
cli-anything-comfyui system info
Discover Available Models
# 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
# 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
# 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 (
--jsonflag): Structured JSON for agent consumption
# 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:
- Always use
--jsonflag for parseable output - Check return codes - 0 for success, non-zero for errors
- Parse stderr for error messages on failure
- Use absolute paths for all file operations
- Verify ComfyUI is running with
system statsbefore 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
Perguntas frequentes
O ComfyUI precisa estar rodando?
Sim, o ComfyUI precisa estar instalado e rodando em localhost, porta 8188.
Ela consegue gerenciar modelos?
Sim, a skill pode gerenciar os modelos de IA que o ComfyUI usa.
Existe uma interface visual?
Não, a skill é baseada em linha de comando, embora tenha um modo REPL para uso interativo.
Detalhes
Descrição original do autor
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.
repo: HKUDS/CLI-Anything
Popularidade
- Estrelas no GitHub
- 58 mil
- Posição no ranking
- #3198
- Licença
- Apache-2.0
- Atualizada em
- 21/09/2026
Comentários
- …
Mais skills deste repositório
cli-anything-3mf
58 milPermite que seu agente inspecione e corrija arquivos de impressão 3D, incluindo encontrar furos redondos, redimensioná-los, reparar malhas e comparar dois arquivos.
cli-anything-qgis
58 milPermite que seu agente abra, edite e exporte projetos de mapa do QGIS pelo terminal, incluindo camadas, feições, layouts de impressão e ferramentas de processamento.
cli-anything-adguardhome
58 milPermite que seu agente gerencie o AdGuard Home, um bloqueador de anúncios para toda a rede, incluindo filtros, reescritas de DNS, clientes e registros de consulta.
cli-anything-anygen
58 milPermite que seu agente gere slides, documentos, sites e diagramas a partir de um prompt escrito, usando o serviço AnyGen.
Skills parecidas
gifgrep
394 milPermite que seu agente pesquise bibliotecas de GIFs, visualize resultados, baixe um GIF e extraia um quadro fixo ou uma folha de quadros.
meme-maker
394 milPermite que seu agente escolha um modelo de meme, adicione suas próprias legendas e crie o meme como imagem SVG ou PNG.
ios-icon-gen
280 milFaz seu agente gerar ícones para aplicativos iOS. Ele usa símbolos da Apple ou ícones de outras fontes para criar os arquivos corretos.