/comfyui-vfx:comfy-cli-skillsfrom comfyui-vfx
Installs comfy-cli's bundled agent skills for driving ComfyUI workflows from an agent. Includes validate gate and credit audit steps before paid runs that bill partner-node credits.
Ships in comfyui-vfx. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
comfy-cli (Comfy-Org, GPL-3.0) ships its own agent skills for driving ComfyUI
from an agent: comfy (run and edit workflows), comfy-build, comfy-debug,
comfy-deploy, comfy-director (multi-shot narrative) and comfy-relay (media
presentation). They are not vendored in this MIT toolkit; install them from the
CLI so every harness reads the same text.
pip install --upgrade comfy-cli
comfy --version
comfy skills install
comfy skills install needs comfy-cli 1.20 or newer; older builds expose the
same step inside the comfy setup wizard. Afterwards confirm the six comfy*
entries appear in the harness's skill catalog (restart the client if it caches).
The skills document a 1.20 command baseline: on an older CLI, read comfy --help
before using a command they name.
Partner nodes (Kling, Seedance, MiniMax, Veo, Gemini image) bill credits the moment a graph is accepted. Two zero-cost steps come first, every time:
comfy validate --workflow api.json --where local must be clean, then comfy run --workflow api.json --print-prompt --json logs the exact graph. This catches wrong input names
and DynamicCombo dot-path mistakes for free. "Clean" means valid=true,
error_count=0 and every warning READ, not merely counted. Known false
positive (comfy validate 1.11.1): an edge_type_mismatch warning when the
expected input is a type UNION that already contains the produced type
(e.g. "expects MESH,FILE_3D_GLB,...,FILE_3D but X produces FILE_3D_GLB") -
the validator compares the whole comma-joined union as one string. That one
warning is acceptable; any other warning stops the run. The validator can
also be wrong the other way (pass a graph the server rejects), so the real
pass is the expected output file on disk after the run, never the status.GET https://api.comfy.org/customers/balance
with header X-API-KEY: <key>; effective_balance_micros is US CENTS despite the name:
value / 100 = USD, USD x 211 = credits (docs.comfy.org billing reference; comfy-cli PR #926).
Reconcile the delta against the price badges. A larger drop than predicted
means stop and find what else billed. The ledger settles a few seconds after
the run: an AFTER read taken in the same command as comfy run --wait can
return the BEFORE value exactly. If the delta is zero for a run with a
non-zero price badge, re-read after about 30 s before concluding anything
(obs 269). On a shared account the delta can include other people's jobs:
read the billing activity feed before blaming your run.Submit with comfy run --workflow api.json --wait --json --timeout 600. Feed the
workflow's API-format export; UI-format graphs with Get/Set virtual nodes or
subgraphs only resolve in the frontend and cannot run headless. Keep the API key
in the environment (COMFY_API_KEY), never in a workflow file or a chat message.
Save3DAdvanced and Preview3DAdvanced (the bundled native 3D templates,
e.g. Trellis2 image-to-model) require a viewport_state input of type
LOAD_3D that only the browser supplies, and they write nothing headless
even when the job reports completed. Swap in SaveGLB instead (mesh or
FILE_3D in, filename_prefix) - it needs no viewport state and writes the
file. Verify any headless 3D-template run by checking the outputs list for
the expected file extension; ok: true alone is not proof anything was
written.
comfy run converts a UI-format workflow client-side, but on the native 3D
nodes some combo/int widgets arrive wrong: Trellis2UpsampleStage.target_resolution
came through as the string "1536" and the width of Preview3DAdvanced and
Save3DAdvanced as "" (four shape_mismatch errors). Fix: take the API prompt
from the run's prompt_preview event, patch the values, and submit that API
file instead of the UI file. Validate it with comfy validate --where local
before the run.
comfy validate only knows the constraints it is fed. scripts/comfy_gate.py enforces the checks below: run pre on the workflow before a paid run and post on the saved comfy run --wait --json output after it. Its limits table is stamped with the ComfyUI version it was read from.
ok and the files on disk.data object of the validate envelope (data.valid,
data.error_count), not the top level.unknown_enum_value. Use unique names and read back by hash.queued event: validation_warnings must be empty or explained, the
output node the run exists to produce (SaveImage, SaveVideo, SaveGLB) must be
in executed_node_ids, and the file must exist. A template saved before a
ComfyUI upgrade can be missing newly required inputs; diff its node inputs
against /object_info before the first run."ref_images": {"ref_image0": ["15", 0]}),
and the validator's hint can be wrong. When a validated graph dies at
runtime with an unexpected-keyword error, read the node's execute()
signature in comfy_extras/; it is the ground truth for argument shape.Design so any single process (the agent, the server, the GPU) can die at any second and the only loss is the clip in flight.
nvidia-smi --query-gpu=... -l 5 to a CSV) so a fault leaves evidence.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
comfyui, comfy-cli, workflow-automation, credit-audit, agent-skills
3 skills in this plugin
/comfyui-workflow-analysisAnalyzes a downloaded ComfyUI workflow JSON to list required custom nodes and models, install locations and a setup checklist. Use when the user shares a workflow JSON or asks 'what nodes does this need' or 'help me set up this workflow'./previs-anchor-keyframesGenerates photoreal anchor keyframes from CG previs for reference-guided video models such as Seedance - previs shading, frame choice, pose reference sets. Use for "anchor keyframes", "previs to photoreal video", or generations that ignore the CG pose.npx claudepluginhub sideshowroberto/vfx-agent-toolkit --plugin comfyui-vfxOther plugins' skills for the same job