comfyui-inventory
Discover and cache all installed ComfyUI models, custom nodes, and system capabilities. Works online (API queries) and offline (directory scanning). Use before generating workflows to verify available resources.
By mckruz · 449 installs
npx skills add mckruz/comfyui-expert --skill comfyui-inventory
Source repository · Upstream listing
ComfyUI Inventory Skill
Discovers what's installed in the user's ComfyUI instance and caches results for workflow validation.
Purpose
Every workflow generation MUST be preceded by an inventory check. This prevents:
Referencing models that aren't downloaded
Using nodes that aren't installed
Exceeding VRAM limits
Two Discovery Modes
Online Mode (ComfyUI API Running)
Query the live server for authoritative information.
1. System info:
Extracts: GPU name, total VRAM, free VRAM, ComfyUI version.
2. Installed nodes:
Returns all registered node classes with their input/output specifications.
3. Installed models (per type):
Offline Mode (Directory Scan)
When ComfyUI isn't running, scan the filesystem directly.
Requires : ComfyUI installation path (e.g., C:\ComfyUI )
Scan directories:
Custom node detection : List directories under custom nodes/ . Each directory name corresponds to a node package (e.g., ComfyUI IPAdapter plus , ComfyUI Impact Pack ).
Cache Format
Save results to state/inventory.json :
Workflow Validation
Given a workflow JSON, validate against inventory:
Common Node to Package Mapping
Node Class Package
ApplyInstantID ComfyUI InstantID
IPAdapterUnifiedLoader ComfyUI IPAdapter plus
FaceDetailer ComfyUI Impact Pack
ReactorFaceSwap ComfyUI ReActor
AnimateDiffLoaderWithContext ComfyUI AnimateDiff Evolved
VideoHelper ComfyUI VideoHelperSuite
ControlNetApply comfyui controlnet aux
UltimateSDUpscale ComfyUI UltimateSDUpscale
VHS ComfyUI VideoHelperSuite
RIFE ComfyUI Frame Interpolation
Cache Freshness
Cache is valid for 1 hour during active sessions
Invalidate cache when user installs new models/nodes
Force refresh: scan inventory.ps1 or API re query
Integration
Called by comfyui workflow builder before generating workflows
Called by comfyui character gen (via agent wrapper) for model selection
Called by comfyui troubleshooter when diagnosing missing model errors
Results stored in state/inventory.json for all skills to reference