Aller au contenu
Skillpedia
Images et icônes58k · #3198

cli-anything-comfyui

Ce qu’il fait

Cette compétence permet à votre agent de lancer la génération d'images par IA avec ComfyUI depuis la ligne de commande. Elle s'adresse aux personnes qui utilisent ComfyUI et veulent lancer des tâches et récupérer les résultats sans ouvrir l'application.

Quand l’utiliser

  • ✓Quand vous voulez lancer un flux de travail de génération d'images dans ComfyUI.
  • ✓Quand vous voulez suivre l'avancement des tâches de génération d'images.
  • ✓Quand vous voulez télécharger depuis ComfyUI les images générées.

Lien du skill

https://github.com/HKUDS/CLI-Anything/blob/main/comfyui/agent-harness/cli_anything/comfyui/skills/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/HKUDS/CLI-Anything/blob/main/comfyui/agent-harness/cli_anything/comfyui/skills/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Lance mon flux de travail de portrait dans ComfyUI et télécharge les images dès qu'elles sont terminées.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

La compétence envoie votre flux de travail au serveur ComfyUI par son API REST. Elle peut suivre la file d'attente, gérer les modèles et télécharger les images une fois terminées.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis 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:

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 (--json flag): 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:

  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

Questions fréquentes

ComfyUI doit-il être lancé ?

Oui, ComfyUI doit être installé et tourner sur localhost, port 8188.

Peut-elle gérer les modèles ?

Oui, la compétence peut gérer les modèles d'IA utilisés par ComfyUI.

Existe-t-il une interface visuelle ?

Non, la compétence fonctionne en ligne de commande, même si elle propose un mode REPL pour un usage interactif.

Détails

Description originale de l’auteur

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

Popularité

Étoiles GitHub
58k
Position au classement
#3198
Licence
Apache-2.0
Mis à jour
21/09/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires