Validation layers
Validate in this order where applicable:
- JSON parse and representation detection;
- current/version-matched workflow schema;
- live node existence;
- input names and required values;
- output/link compatibility;
- enum/model/resource values exposed by the target;
- custom-node-specific constraints;
- official validator/test framework when available;
- representative execution only after preflight passes.
CLI failure guidance
If validation is happening because a comfy-cli job failed, inspect the current/version-matched CLI debugging guidance in addition to this structural validation skill. Use the CLI guidance for its error envelope and remediation flow; use the target schema/node catalog for workflow correctness.
Live catalog
Prefer the running target's node definitions over a bundled/static catalog. A static catalog cannot prove that the user's installed custom nodes match it.
If the comfyui-development skill is available, use its conservative workflow-preflight helper as a fallback. Activate that skill through the harness rather than assuming its files are reachable from this skill directory. The fallback is not a substitute for a stronger current official validator when one is available.
Official tooling
When comfy-cli, comfy-mcp, or the official test framework is installed, inspect its current help/docs and use the relevant validation command. Do not assume command syntax from an old version.
A command invocation succeeding is not the same as a valid workflow. Read the returned verdict/errors.
Debugging procedure
- Preserve the failing workflow before edits.
- Capture exact error text and server/browser logs.
- Determine frontend vs API representation.
- Compare failing node definitions with live target data.
- Check whether custom-node imports failed at startup.
- Check resource/model names against target choices.
- Reduce to a minimal failing graph if the cause remains unclear.
- Make one causal fix at a time.
- Revalidate.
Do not
- randomly rewire sockets until the error disappears;
- replace missing nodes with unrelated alternatives without explaining the semantic change;
- clear queues/history or delete user data as a diagnostic shortcut;
- upgrade the user's installation unless the task is specifically an upgrade.
Acceptance gate
Before calling a workflow fixed or valid:
- preserve the original failing workflow;
- capture the exact failure evidence;
- identify the workflow representation;
- resolve all deterministic validation errors found by the strongest available validator;
- re-run validation after the fix;
- report any live/runtime gate that could not be completed instead of treating it as a pass.