# Comfy Analyze

> Use when understanding a ComfyUI workflow, analyzing what a workflow does, tracing node connections, finding upstream/downstream nodes, or reading workflow JSON.

- Skill: `tomevault-io/comfy-analyze` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/comfy-analyze`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/comfy-analyze/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Productivity
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/comfy-analyze

---


# ComfyUI Workflow Analysis

Understand workflow structure and node connections.

## MCP Tools

| Tool | When to use |
|------|-------------|
| `comfy_read` | First step - get human-readable summary of any workflow |
| `comfy_trace` | See a specific node's inputs and outputs with slot names |
| `comfy_upstream` | Find all nodes feeding INTO a target node |
| `comfy_downstream` | Find all nodes FED BY a source node |

## Workflow

1. **Summarize**: `comfy_read(workflow)` → pattern, key params, flow
2. **Deep dive**: `comfy_trace(workflow, node_id)` → specific connections
3. **Follow data**: `comfy_upstream`/`comfy_downstream` → trace the graph

## What comfy_read Returns

```
## Pattern: Flux txt2img +LoRA

## Key Parameters
  model: flux-dev.safetensors
  steps: 20
  cfg: 3.5

## Variables (3)
  $model <- Node 1 (CheckpointLoader)

## Flow
  [image] 1 -> 5 -> 12 -> 15
```

## What comfy_trace Returns

```
[Node 577] WanVideoSampler

  INPUTS:
    [0] model <- Node 608 (GetNode, slot 0)
    [1] image_embeds <- Node 1179 (WanVideoVACEEncode, slot 0)

  OUTPUTS:
    [0] samples -> Node 595 (WanVideoDecode, slot 1)
```

## CLI Equivalents

If MCP isn't available, use CLI commands:

| MCP Tool | CLI Command |
|----------|-------------|
| `comfy_read` | `python we_vibin.py analyze workflow.json` |
| `comfy_trace` | `python we_vibin.py trace workflow.json NODE` |
| `comfy_upstream` | `python we_vibin.py upstream workflow.json NODE` |
| `comfy_downstream` | `python we_vibin.py downstream workflow.json NODE` |

## Setup

Requires MCP server. See [MCP_SETUP.md](../comfy-edit/MCP_SETUP.md).

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/peteromallet) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-11 -->

