cli-anything-comfyui
Qué hace
Esta skill permite que tu agente genere imágenes con IA a través de ComfyUI desde la línea de comandos. Está pensada para personas que usan ComfyUI y quieren encolar trabajos y recoger resultados sin abrir la app.
Cuándo usarla
- ✓Cuando quieres encolar un flujo de trabajo de imágenes con IA en ComfyUI.
- ✓Cuando quieres revisar el progreso de los trabajos de generación de imágenes.
- ✓Cuando quieres descargar las imágenes generadas desde ComfyUI.
Link de la skill
https://github.com/HKUDS/CLI-Anything/blob/main/comfyui/agent-harness/cli_anything/comfyui/skills/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Encola mi flujo de trabajo de retratos en ComfyUI y descarga las imágenes cuando terminen.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La skill envía tu flujo de trabajo al servidor de ComfyUI a través de su API REST. Puede vigilar la cola, gestionar modelos y descargar las imágenes que terminan.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de 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
Preguntas frecuentes
¿ComfyUI tiene que estar en marcha?
Sí, ComfyUI debe estar instalado y funcionando en localhost, en el puerto 8188.
¿Puede gestionar modelos?
Sí, la skill puede gestionar los modelos de IA que usa ComfyUI.
¿Tiene interfaz visual?
No, la skill funciona desde la línea de comandos, aunque tiene un modo REPL para trabajar de forma interactiva.
Detalles
Descripción original del 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
Popularidad
- Estrellas en GitHub
- 58 mil
- Posición en el ranking
- #3198
- Licencia
- Apache-2.0
- Actualizada
- 21/9/2026
Comentarios
- …
Más skills de este repositorio
cli-anything-3mf
58 milPermite que tu agente inspeccione y corrija archivos de impresión 3D, incluidas la búsqueda de agujeros redondos, su redimensionado, la reparación de mallas y la comparación de dos archivos.
cli-anything-qgis
58 milPermite que tu agente abra, edite y exporte proyectos de mapas de QGIS desde la terminal, incluidas las capas, los elementos, los diseños de impresión y las herramientas de procesamiento.
cli-anything-adguardhome
58 milPermite que tu agente gestione AdGuard Home, un bloqueador de anuncios para toda la red, incluidos los filtros, las reescrituras de DNS, los clientes y los registros de consultas.
cli-anything-anygen
58 milPermite que tu agente genere diapositivas, documentos, sitios web y diagramas a partir de un texto escrito, usando el servicio AnyGen.
Skills parecidas
gifgrep
394 milPermite que tu agente busque GIF en bibliotecas, vea una vista previa de los resultados, descargue un GIF y extraiga un fotograma fijo o una hoja de contacto de fotogramas.
meme-maker
394 milPermite que tu agente elija una plantilla de meme, añada tus propios textos y cree el meme como imagen SVG o PNG.
ios-icon-gen
280 milPermite a tu agente generar iconos para apps de iOS. Usa símbolos de Apple u otras fuentes para crear los archivos correctos.