Логотип Workflow Layout

Workflow Layout

Сообщество
artokun
workflow-layout

Аккуратно размещайте и организуйте workflow ComfyUI на холсте live-панели. Располагайте узлы слоями с учётом зависимостей, избегая наложений; используйте подграфы, цветные групповые блоки и выравнивание подграфов по направляющим. Применяйте этот навык, когда нужно привести workflow в порядок, очистить его, организовать или расположить узлы, добавить группы или подграфы, устранить наложения узлов либо с самого начала создать наглядный workflow.

Add to TypingMind

Обзор

Издательartokun
Репозиторийcomfyui-mcp
Название навыкаworkflow-layout
Звёзды
811
Форки
137
Файлы в комплекте
Только инструкции
ЛицензияMIT
Ссылки
  • Инструкции в формате Markdown

    Модель загружает файл SKILL.md по мере необходимости, поэтому токены расходуются только при подходящем запросе.

  • Работает с любой большой языковой моделью

    Навыки ИИ — это обычный Markdown, а не код для конкретного поставщика, поэтому они работают с GPT, Claude, Gemini, Grok и локальными моделями.

  • Всё необходимое — в инструкциях

    Всё необходимое для модели содержится в инструкциях — никаких дополнительных файлов для синхронизации.

  • Открытый исходный код

    Издатель навыка на GitHub — artokun. Перед установкой изучите исходные материалы.

Установка

Установите навык ИИ Workflow Layout в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать SKILL.md.

1

Установка в TypingMind

TypingMind устанавливает навык прямо из его папки на GitHub: читает SKILL.md, собирает файлы ресурсов и сохраняет результат локально.

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/artokun/comfyui-mcp/tree/main/plugin/skills/workflow-layout
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Добавить навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
2

Установка в другом агенте

Любой агент с поддержкой формата Agent Skills может использовать этот навык — скопируйте папку в каталог навыков этого агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/artokun/comfyui-mcp.git /tmp/comfyui-mcp
mkdir -p .claude/skills
cp -r /tmp/comfyui-mcp/plugin/skills/workflow-layout .claude/skills/workflow-layout
После копирования перезапустите Claude Code, чтобы загрузить новый навык.

Использование в TypingMind

Включите навык Workflow Layout в любом чате TypingMind, и дальше модель всё сделает сама. Его название и описание хранятся в системном промпте, а при появлении подходящего запроса модель сама загружает полные инструкции. Вам не нужно вызывать навык вручную, и до фактического использования он не расходует токены.

Модель сама загружает навык Workflow Layout, как только появляется подходящий для него запрос.

Работает с любой моделью ИИ

Навыки ИИ — это обычные инструкции в Markdown, а не код для конкретного поставщика, поэтому навык Workflow Layout не привязан к модели, для которой он был создан. Установите его один раз в TypingMind и используйте с GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama или локальной моделью, которую запускаете самостоятельно, — со своими ключами API.

  • Загружается только при необходимости

    Системный промпт содержит только название и описание. Инструкции загружаются при первом подходящем запросе, поэтому неиспользуемый навык не расходует токены.

  • Меняйте модели прямо в чате

    Навык состоит из инструкций, а не кода, поэтому смена модели не нарушает его работу: новая модель читает тот же файл SKILL.md.

Инструкции навыка

Это содержимое файла SKILL.md, которое загружает модель. Прочитайте его перед установкой: навык — это инструкции, которым будет следовать ваша модель.

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_edit_node({node_id, pos?, size?, title?, collapsed?, preset?|color?|bgcolor?}) atomically moves, resizes, retitles, collapses, or color-codes a node. Widget values remain on their dedicated tool; execution mode is available as mode when needed.
  • 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, panel_get_subgraph, panel_promote_widget, panel_move_rail(rail, [x,y]) (rail = "input"|"output", must be inside the subgraph), panel_expose_subgraph_output(from_node_id, from_output) / panel_expose_subgraph_input(to_node_id, to_input) (expose an interior slot on the boundary rail; must be inside the subgraph), and panel_unpack_subgraph(node_id) (expand/dissolve a subgraph back into the parent, the inverse of panel_create_subgraph).
  • panel_canvas({action:"fit"}) to frame the result; panel_save_workflow to persist.

The layout algorithm (dependency-layered, overlap-free)

  1. Read the graph. Build a DAG from each input's connected_from (ignore unconnected widget inputs; only node→node edges matter).
  2. Layer every node by longest path from a source: layer(n) = 0 if it has no incoming node edges, else 1 + max(layer(of its sources)). Layers become columns, left → right.
  3. X by layer: x = X0 + layer * COL_PITCH, where COL_PITCH ≈ widest node.size[0] in that column + ~80.
  4. Y by FULL height (this is what stops overlaps): stack a column top→down with y[i+1] = y[i] + node[i].full_height + ROW_GAP. Use full_height (from panel_query_graph detail rows), NOT size[1]. size[1] is the BODY only (slots + widgets); the title bar renders ~30px ABOVE pos and is NOT in size[1], so stacking by size[1] overlaps every node by a header (the classic "headers eating the node above" bug). full_height already includes that header (and is only the title height for a collapsed node), so y += full_height + ROW_GAP lands an exact ROW_GAP gap between the previous node's bottom and the next node's title. Never use a fixed row pitch. Tall nodes (KSampler, WanVideo Sampler, LoRA-select) are 480 to 600px and WILL overlap a 320 pitch. (If full_height is ever absent, fall back to size[1] + ~30 for the header.)
  5. Order within a column to cut wire crossings: place each node near the average Y of its connected nodes (a median/barycenter pass is plenty).

Reads-well constants: COL_PITCH 360 to 480, ROW_GAP 40. Because full_height already accounts for the title bar, you don't add extra top headroom per node. ROW_GAP is the clean gap you'll actually see.

Subgraph interiors — move the rails!

A subgraph has two boundary rails (input left, output right). They do not follow the inner nodes. Move the nodes without moving the rails and you get a huge gap (a common mistake). For each subgraph: panel_enter_subgraph → lay out the inner nodes (algorithm above) → then pin the rails to the node band:

  • input rail → panel_move_rail("input", [minNodeX - 180, bandTopY])
  • output rail → panel_move_rail("output", [maxNodeX + 60, bandTopY])

Keep rails at the same Y as the first row. Read current rail positions from panel_query_graph (rails) before deciding. panel_exit_subgraph when done.

Wiring interior nodes to the boundary (don't connect to a guessed rail id). To expose an interior node's output/input on the boundary so the PARENT graph can wire it, do NOT panel_connect to a rail node id you guessed. Use panel_expose_subgraph_output(from_node_id, from_output) (interior output → output rail) and panel_expose_subgraph_input(to_node_id, to_input) (interior input → input rail), both while inside the subgraph. panel_query_graph's rails shows which boundary slots already exist and which still need exposing. To expand or dissolve a subgraph back into the parent (inline its inner nodes and rewire external links, removing the wrapper, the inverse of panel_create_subgraph), use panel_unpack_subgraph(node_id). All undoable with Ctrl+Z.

Groups vs subgraphs — choose deliberately

  • Group (colored box): lightweight visual band; nodes stay in place and editable. Reach for this first, to label regions of a flat graph or band stage-columns at the root.
  • Subgraph: collapses a stage into one node. Useful for large graphs, but it nests and hides nodes and adds boundary ports. Don't subgraph everything. A 2 or 3 node stage rarely earns it, and over-subgraphing hurts readability and complicates packaging and handoff.
  • Clean recipe: lay the flat graph out well → wrap only the complex stages in subgraphs → drop colored group bands around the columns at the root.

Stage decomposition that fits most pipelines

Loaders → Inputs → Preprocess (pose/controlnet/conditioning) → Embeds → Sample → Decode/Output, one concern per column/stage, strictly left-to-right.

Always leave inputs & outputs exposed

The nodes a user touches first, the input (Load Image / Load Video) and the output (save / video-combine / preview), must stay expanded and visible so they can jump straight in: drop in their media, hit run, watch the result. Collapse the internal machinery (loaders, encoders, samplers) into chips to cut noise, but never collapse the inputs or outputs. When they live inside subgraphs, keep those subgraph nodes expanded, and consider panel_promote_widget to lift the one key widget (prompt, seed) onto the subgraph node so it's editable without drilling in.

Heads-up: input/output preview nodes (LoadImage, VHS_LoadVideo, video-combine) report their full size[1] but render short until media loads. Size their group band to the .size (so it fits once filled), not to the empty-preview render.

End-to-end workflow

  1. panel_query_graph {fields:'detail', limit:200, max_chars:60000} to capture pos/size/groups (and rails inside each subgraph).
  2. Compute layers and overlap-free positions from the real sizes.
  3. panel_edit_node for each node (or bulk only when the same presentation change is intended).
  4. Per subgraph: enter → lay out inner nodes → panel_move_rail both rails → exit.
  5. Optional: panel_create_group bands around the root columns (and panel_remove_group any stranded empty groups left behind by earlier edits).
  6. panel_save_workflow, then panel_canvas({action:"fit"}).

Gotchas

  • Save before relying on it. Node positions, titles, and groups persist only once saved; a browser refresh reloads from the saved workflow (and re-binds nodes after installing packs).
  • Converting nodes to a subgraph preserves inner node ids; the subgraph node gets a new id.
  • Moving nodes inside a subgraph leaves the rails behind. Always re-pin them (see above).
  • Canvas edits never affect an in-flight render; but a ComfyUI restart clears the queue.
  • Image/video nodes under-report height. LoadImage, VHS_LoadVideo, preview nodes return a tiny size[1] because the image/video preview height isn't in .size. Leave extra vertical room (≈250 to 300px) below them so the preview doesn't overlap the next node.
  • Color-code by stage (e.g. all loaders blue, sampler green) and collapsed rarely-touched loaders to cut visual noise. Cheap wins once the positions are right.
  • Don't over-tidy a graph that's mid-build for the user. Confirm if a big reorg is wanted.

Sources

  • Official: comfyui-mcp panel layout tools (this repo).
  • Empirical: spacing/grouping recipes from observed unreadable canvases.

Часто задаваемые вопросы

Что делает навык ИИ Workflow Layout?

Аккуратно размещайте и организуйте workflow ComfyUI на холсте live-панели. Располагайте узлы слоями с учётом зависимостей, избегая наложений; используйте подграфы, цветные групповые блоки и выравнивание подграфов по направляющим. Применяйте этот навык, когда нужно привести workflow в порядок, очистить его, организовать или расположить узлы, добавить группы или подграфы, устранить наложения узлов либо с самого начала создать наглядный workflow.

Зачем использовать Workflow Layout в TypingMind?

Потому что вы устанавливаете навык один раз и используете его с любой моделью. Workflow Layout — это обычный текст в формате Markdown, а не код для конкретного поставщика, поэтому один и тот же навык работает с GPT-5, Claude, Gemini, Grok или локальной моделью. Вы можете менять модель прямо во время чата, и навык продолжит работать. TypingMind использует ваши собственные ключи API, поэтому вы платите поставщикам напрямую, а не оформляете подписку с оплатой за каждое место. Ваши навыки и чаты остаются в вашем собственном хранилище.

Как установить Workflow Layout в TypingMind?

В TypingMind откройте «Плагины → Навыки → Установить из GitHub» и вставьте https://github.com/artokun/comfyui-mcp/tree/main/plugin/skills/workflow-layout. TypingMind прочитает файл SKILL.md и установит навык, который можно включать отдельно для каждого чата.

Какие модели ИИ могут использовать Workflow Layout?

Любая модель, которую вы подключите в TypingMind. Навыки ИИ — это обычные инструкции в формате Markdown, а не код для конкретного поставщика, поэтому GPT, Claude, Gemini, Grok и локальные модели могут загружать этот навык, когда запрос ему соответствует.

Со сколькими моделями ИИ можно использовать Workflow Layout?

С любым количеством. В TypingMind вы можете использовать Workflow Layout с любой моделью, которая поддерживает навыки, в том числе с GPT, Claude, Gemini, Grok, DeepSeek, Mistral и Llama. Для этого вы используете собственные ключи API.

Бесплатен ли навык ИИ Workflow Layout?

Да. Навык опубликован на GitHub по лицензии MIT. Издатель — artokun. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это набор инструкций, которыми модель ИИ может пользоваться каждый раз, когда ей нужно выполнить конкретную задачу. Он соответствует открытому формату Agent Skills: файл SKILL.md с названием и описанием, а также любые скрипты, шаблоны или справочные файлы, которые могут понадобиться модели. Модель читает инструкции, только когда ваш запрос соответствует навыку, поэтому установленный навык ничего не стоит, пока не используется.

Чем навыки ИИ отличаются от плагинов и серверов MCP?

Плагин или сервер MCP даёт модели новые инструменты, которые она может вызывать: при вызове где-то выполняется код и возвращает результат. Навык ИИ, напротив, даёт модели знания и описывает порядок действий: как подойти к задаче, какие шаги выполнить и каким должен быть хороший результат. Навыки — это обычный текст в формате Markdown, поэтому им не нужны сервер, ключ API или среда выполнения, и они работают с любой моделью.

Все
Логотип mattpocock

Grill Me

mattpocock
СообществоПопулярный

Настойчивое интервью, которое помогает улучшить план или дизайн.

23K
273.1K
Файлы: 1
Открыть
Логотип affaan-m

Brand Discovery

affaan-m
СообществоПопулярный

Используйте, когда бренду нужно выявить или сформулировать свою идентичность в ходе структурированных интервью, проходящих в несколько сессий. Охватывает цель, позиционирование, аудиторию, характер, тон коммуникации, повествование и противоречия между брендом и его основателем…

40.4K
270.2K
Файлы: 9
Открыть
Логотип affaan-m

Competitive Platform Analysis

affaan-m
СообществоПопулярный

Используйте при определении конкурентной среды: выявлении конкурентов, их классификации и отборе по оценкам до начала сравнительного анализа. Определяет, кого считать конкурентом, к какому уровню его отнести…

40.4K
270.2K
Файлы: 1
Открыть
Логотип affaan-m

Frontend Slides

affaan-m
СообществоПопулярный

Создавайте впечатляющие HTML-презентации с множеством анимаций с нуля или преобразуйте файлы PowerPoint. Используйте этот навык, если пользователь хочет подготовить презентацию, преобразовать PPT/PPTX в веб-формат или создать слайды для…

40.4K
270.2K
Файлы: 2
Открыть

Создайте своё рабочее пространство с ИИ прямо сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇