cli-anything-comfyui
하는 일
이 스킬은 에이전트가 명령줄에서 ComfyUI를 통해 AI 이미지 생성을 실행하게 합니다. ComfyUI를 쓰면서 앱을 열지 않고 작업을 대기열에 넣고 결과를 모으려는 사람을 위한 스킬입니다.
사용하는 경우
- ✓ComfyUI에서 AI 이미지 워크플로를 대기열에 넣고 싶을 때.
- ✓이미지 생성 작업의 진행 상황을 확인하고 싶을 때.
- ✓ComfyUI에서 생성된 이미지를 내려받고 싶을 때.
스킬 링크
https://github.com/HKUDS/CLI-Anything/blob/main/comfyui/agent-harness/cli_anything/comfyui/skills/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“ComfyUI에 제 인물 워크플로를 대기열에 넣고, 완성되면 이미지를 내려받아 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
스킬은 워크플로를 REST API로 ComfyUI 서버에 보냅니다. 대기열을 모니터링하고, 모델을 관리하며, 완료된 이미지를 내려받을 수 있습니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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
자주 묻는 질문
ComfyUI가 실행 중이어야 하나요?
네. ComfyUI가 설치되어 localhost 포트 8188에서 실행 중이어야 합니다.
모델을 관리할 수 있나요?
네. 스킬은 ComfyUI가 사용하는 AI 모델을 관리할 수 있습니다.
시각적 인터페이스가 있나요?
아닙니다. 명령줄 기반이며, 대화형 사용을 위한 REPL 모드는 있습니다.
상세 정보
작성자의 원본 설명
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
인기도
- GitHub 스타
- 58k
- 순위
- #3198
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 9. 21.
댓글
- …
이 저장소의 다른 스킬
cli-anything-3mf
58k에이전트가 3D 프린팅 파일을 검사하고 고치도록 돕습니다. 둥근 구멍 찾기, 크기 조정, 메시 수리, 두 파일 비교가 가능합니다.
cli-anything-qgis
58k에이전트가 터미널에서 QGIS 지도 프로젝트를 열고 편집하고 내보내도록 돕습니다. 레이어, 피처, 인쇄 레이아웃, 처리 도구를 포함합니다.
cli-anything-adguardhome
58k에이전트가 네트워크 전체의 광고 차단기인 AdGuard Home을 관리하도록 돕습니다. 필터, DNS 재작성, 클라이언트, 쿼리 로그를 포함합니다.
cli-anything-anygen
58k에이전트가 AnyGen 서비스를 이용해 글로 된 프롬프트로 슬라이드, 문서, 웹사이트, 다이어그램을 만들도록 돕습니다.