xiaohongshu
xiaohongshu
comfyui
ComfyUI node-based Stable Diffusion interface. GPU-accelerated image generation with custom node support and CivitAI model downloads. Use 'ujust comfyui' for configuration, lifecycle management, and model/node operations.
Full skill instructions
ComfyUI is a powerful node-based Stable Diffusion interface for AI image generation. The comfyui command manages the ComfyUI container, including configuration, lifecycle management, model downloads, and custom node management.
Key Concept: This is a system command - run with ujust from anywhere on the system. ComfyUI runs as a Podman Quadlet service. By default, data is ephemeral (stored inside the container). Configure volume mounts for persistent storage.
| Action | Command | Description |
|---|---|---|
| Config | ujust comfyui config [--models-dir=...] [--output-dir=...] [--port=...] | Configure ComfyUI |
| Start | ujust comfyui start | Start ComfyUI server |
| Stop | ujust comfyui stop | Stop ComfyUI server |
| Restart | ujust comfyui restart | Restart ComfyUI server |
| Status | ujust comfyui status | Show status and model counts |
| Logs | ujust comfyui logs [--lines=...] | View service logs |
| Open | ujust comfyui open | Open UI in browser |
| Shell | ujust comfyui shell [-- CMD...] | Open shell in container |
| Download model | ujust comfyui download --model-url=<url> --model-type=<type> | Download from CivitAI |
| List models | ujust comfyui models | List installed models |
| Install node | ujust comfyui node-install --node-url=<url> | Install custom node |
| List nodes | ujust comfyui node-list | List custom nodes |
| Update nodes | ujust comfyui node-update | Update all nodes |
| Delete | ujust comfyui delete | Remove ComfyUI and images |
| Parameter | Long Flag | Short | Default | Description |
|---|---|---|---|---|
| Port | --port | -p | 8188 | Web UI port |
| GPU Type | --gpu-type | -g | auto | GPU: nvidia/amd/intel/auto |
| Image | --image | -i | (default image) | Container image |
| Tag | --tag | -t | stable | Image tag |
| Models Dir | --models-dir | - | (empty) | Path for SD models |
| Output Dir | --output-dir | - | (empty) | Path for generated images |
| Input Dir | --input-dir | - | (empty) | Path for input images |
| Nodes Dir | --nodes-dir | - | (empty) | Path for custom nodes |
| Workspace | --workspace-dir | -w | (empty) | Optional mount to /workspace |
| Bind | --bind | -b | 127.0.0.1 | Bind address |
| Lines | --lines | -l | 50 | Log lines to show |
| Instance | --instance | -n | 1 | Instance number |
Important: All directory parameters default to empty. When empty, data is stored inside the container and will be lost when the container is recreated. For persistent storage, provide explicit paths.
# Ephemeral mode - no persistent storage (data lost on container recreation)
ujust comfyui config
# Persist models only (most common)
ujust comfyui config --models-dir=/data/models
# Persist models and output
ujust comfyui config --models-dir=/data/models --output-dir=/data/output
# Persist models and custom_nodes
ujust comfyui config --models-dir=/data/models --nodes-dir=/data/nodes
# All directories with custom port and GPU
ujust comfyui config --models-dir=/data/models --output-dir=/data/output \
--input-dir=/data/input --nodes-dir=/data/nodes --port=8189 --gpu-type=nvidia
# With short forms
ujust comfyui config -p 8189 -g nvidia --models-dir=/data/models
# Network-wide access
ujust comfyui config --bind=0.0.0.0
Running config when already configured will update the existing configuration, preserving values not explicitly changed:
# Initially configured with defaults
ujust comfyui config
# Later, add models directory (other settings preserved)
ujust comfyui config --models-dir=/data/models
# Interactive bash shell
ujust comfyui shell
# Run specific command (use -- separator)
ujust comfyui shell -- pip list
ujust comfyui shell -- nvidia-smi
ujust comfyui download --model-url=<URL> --model-type=<TYPE>
| Parameter | Flag | Description |
|---|---|---|
| URL | --model-url | CivitAI URL, model ID, or direct download URL |
| Type | --model-type | Model type (see below) |
Requires: --models-dir must be configured (not ephemeral)
Model Types:
| Type | Directory | Description |
|---|---|---|
checkpoint | checkpoints/ | Main SD models |
lora | loras/ | LoRA adapters |
vae | vae/ | VAE models |
embedding | embeddings/ | Textual inversions |
controlnet | controlnet/ | ControlNet models |
upscale | upscale_models/ | Upscaler models |
# By CivitAI URL
ujust comfyui download --model-url=https://civitai.com/models/101055 --model-type=checkpoint
# By model ID
ujust comfyui download --model-url=101055 --model-type=checkpoint
# LoRA model
ujust comfyui download --model-url=123456 --model-type=lora
# Direct URL
ujust comfyui download --model-url=https://example.com/model.safetensors --model-type=vae
ujust comfyui node-install --node-url=<GIT_URL>
Requires: --nodes-dir must be configured (not ephemeral)
| Parameter | Flag | Description |
|---|---|---|
| GIT_URL | --node-url | Git repository URL for custom node |
# ComfyUI-Manager (recommended)
ujust comfyui node-install --node-url=https://github.com/ltdrdata/ComfyUI-Manager
# Impact Pack
ujust comfyui node-install --node-url=https://github.com/ltdrdata/ComfyUI-Impact-Pack
# ControlNet Aux
ujust comfyui node-install --node-url=https://github.com/Fannovel16/comfyui_controlnet_aux
# List installed nodes
ujust comfyui node-list
# Update all nodes
ujust comfyui node-update
When no directories are configured, ComfyUI uses internal container directories:
When directories are configured, they are mounted into the container:
/path/to/models/ # Your MODELS_DIR
├── checkpoints/ # Main SD models (.safetensors, .ckpt)
├── loras/ # LoRA adapters
├── vae/ # VAE models
├── embeddings/ # Textual inversions
├── controlnet/ # ControlNet models
└── upscale_models/ # Upscaler models
/path/to/output/ # Your OUTPUT_DIR - generated images
/path/to/input/ # Your INPUT_DIR - input images for img2img
/path/to/custom_nodes/ # Your CUSTOM_NODES_DIR - node extensions
# 1. Configure with persistent models directory
ujust comfyui config --models-dir=/data/comfyui/models
# 2. Download a checkpoint model
ujust comfyui download --model-url=https://civitai.com/models/101055 --model-type=checkpoint
# 3. Start ComfyUI
ujust comfyui start
# 4. Open in browser
ujust comfyui open
# 1. Configure with defaults (ephemeral)
ujust comfyui config
# 2. Start ComfyUI
ujust comfyui start
# 3. Open in browser
ujust comfyui open
# Note: Download models via the UI - they will be lost on container recreation
# Start ComfyUI
ujust comfyui start
# Open in browser
ujust comfyui open
# View logs
ujust comfyui logs
# Stop when done
ujust comfyui stop
ComfyUI automatically detects and configures GPU acceleration:
| GPU | Configuration | Performance |
|---|---|---|
| NVIDIA | CDI device passthrough | Full CUDA acceleration |
| AMD | /dev/dri + /dev/kfd | ROCm acceleration |
| Intel | /dev/dri | oneAPI acceleration |
| CPU | Fallback mode | Very slow (not recommended) |
If NVIDIA GPU is not detected:
# Generate CDI specification
sudo nvidia-ctk cdi generate --output=/etc/cdi/nvidia.yaml
# Reconfigure ComfyUI
ujust comfyui delete
ujust comfyui config /data/models
Symptom: "No MODELS_DIR configured" or "No CUSTOM_NODES_DIR configured"
Cause: Using ephemeral mode (no directories configured)
Fix: Reconfigure with persistent directories:
# Add models directory
ujust comfyui config --models-dir=/path/to/models
# Or add both models and custom_nodes
ujust comfyui config --models-dir=/path/to/models --nodes-dir=/path/to/nodes
Symptom: Downloaded model not visible in ComfyUI
Fix:
# Restart ComfyUI to reload models
ujust comfyui restart
# Verify model is in correct directory
ls /path/to/your/models/checkpoints/
Symptom: Cannot download from CivitAI
Cause: Model requires authentication or is restricted
Fix:
# Download manually and place in appropriate directory
mv ~/Downloads/model.safetensors /path/to/models/checkpoints/
Symptom: CUDA out of memory error
Fix: Check logs and consider using smaller models or lower precision:
ujust comfyui logs
Symptom: ComfyUI fails to start
Fix:
# Check logs for errors
ujust comfyui logs
# Verify GPU access
nvidia-smi
# Delete and reconfigure
ujust comfyui delete
ujust comfyui config --models-dir=/data/models
| File | Purpose | Location |
|---|---|---|
| Instance config | Settings | ~/.config/comfyui/1.env |
| Quadlet file | Service definition | ~/.config/containers/systemd/comfyui-1.container |
ollama (LLM inference), jupyter (notebooks)/bazzite-ai-dev:build skill for developersUse when the user asks about:
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience