From comfy
Visualizes a ComfyUI workflow JSON from file path or inline as a mermaid flowchart diagram grouping nodes by category with values and data type labels.
How this command is triggered — by the user, by Claude, or both
Slash command
/comfy:viz Path to workflow JSON file, or paste JSON inlineThe summary Claude sees in its command listing — used to decide when to auto-load this command
# /comfy-viz — Visualize a Workflow The user wants to visualize a ComfyUI workflow as a mermaid flowchart diagram. ## Instructions 1. **Get the workflow JSON.** The argument may be: $ARGUMENTS - A file path to a workflow JSON file — read it with the Read tool - Inline JSON pasted directly as the argument - Nothing — ask the user to provide a workflow file path or paste the JSON 2. **Validate the input.** The workflow must be in ComfyUI's API format: an object where keys are node IDs and values have `class_type` and `inputs`. If it looks like the web UI format (has `nodes` and `...
The user wants to visualize a ComfyUI workflow as a mermaid flowchart diagram.
Get the workflow JSON. The argument may be: $ARGUMENTS
Validate the input. The workflow must be in ComfyUI's API format: an object where keys are node IDs and values have class_type and inputs. If it looks like the web UI format (has nodes and links arrays), tell the user it needs to be in API format and suggest they export it via "Save (API Format)" in ComfyUI.
Visualize. Use the visualize_workflow tool with:
workflow: the parsed workflow JSONshow_values: true (to include parameter values in node labels)direction: "LR" (left-to-right, easiest to read)Present the diagram. Show the mermaid output to the user. The mermaid code block will render as a flowchart showing nodes grouped by category with labeled connections.
User: /comfy-viz ~/workflows/my-workflow.json
Steps:
~/workflows/my-workflow.jsonvisualize_workflowdirection: "TB" (top-to-bottom) for better readabilitynpx claudepluginhub artokun/comfyui-mcp --plugin comfy/create-excalidraw-dataflow<!-- AUTO-GENERATED by export-plugins.py — DO NOT EDIT -->
/create-excalidraw-dataflow<!-- AUTO-GENERATED by export-plugins.py — DO NOT EDIT -->
/createCreates production-quality draw.io diagrams by analyzing project context to auto-select type, applying styles, themes, multi-page support, and layers.
/diagramCreate or improve Mermaid, PlantUML, or Excalidraw diagrams for a specific Slidev slide using content analysis and design best practices.
/diagramCreates Mermaid or ASCII diagrams for flowcharts, sequence diagrams, ERDs, C4 models, mindmaps, architecture, and more from natural language descriptions.