workflow-layout

Solid

Lay out and organize a ComfyUI workflow cleanly on the live panel canvas — dependency-layered node placement with no overlaps, subgraphs, colored group boxes, and subgraph rail alignment. Use when asked to tidy / clean up / organize / arrange a workflow, add groups or subgraphs, fix overlapping nodes, or build a workflow that should look good from the start.

AI & Automation 450 stars 76 forks Updated today MIT

Install

View on GitHub

Quality Score: 90/100

Stars 20%
88
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# ComfyUI Workflow Layout & Organization Turn a tangled graph into a clean **left-to-right dataflow** a human reads at a glance, using the `panel_*` canvas tools. The golden rule: **never lay out blind** — read the real node sizes and rail positions first, then compute positions from them. ## Primitives (panel tools) - **`panel_query_graph {fields:'detail', limit:200, max_chars:60000}`** — READ FIRST, every time. Returns, for the graph you're viewing: - each node's **`pos` [x,y]**, **`size` [w,h]** (body only), and **`full_height`** (the TRUE rendered footprint = title bar + body; use this for vertical stacking), - all **`groups`** (`id`, `title`, `color`, `bounding [x,y,w,h]`), - and — only when inside a subgraph — the **`rails`**: the `input` / `output` boundary node positions. Everything below is computed from these numbers. - `panel_move_node(node_id, [x,y])`, `panel_set_node_title(node_id, title)`, `panel_set_node_collapsed(node_id, collapsed)` (minimize to title bar), `panel_set_node_color(node_id, {preset|color|bgcolor})` (color-code stages — presets: red/brown/green/blue/pale_blue/cyan/purple/yellow/black) - **Groups** (colored boxes; nodes stay put): `panel_create_group` (pass `node_ids` to auto-wrap, or `bounds [x,y,w,h]`; `color` hex), `panel_move_group`, `panel_edit_group`, `panel_remove_group`. - **Subgraphs** (nest nodes into one collapsible node): `panel_create_subgraph(node_ids)`, `panel_enter_subgraph` / `panel_exit_subgraph`, `pa...

Details

Author
artokun
Repository
artokun/comfyui-mcp
Created
5 months ago
Last Updated
today
Language
TypeScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category