Логотип Corezoid Node Layout

Corezoid Node Layout

Организация
corezoid
corezoid-node-layout

Автоматически расположите узлы процесса Corezoid так, чтобы схема была чистой и удобной для чтения: бизнес-поток идёт сверху вниз, обработка ошибок вынесена вправо, узлы не перекрываются. Используйте этот навык АВТОМАТИЧЕСКИ для каждого созданного или собранного ВАМИ процесса — в качестве последнего шага перед push-process. Не расставляйте координаты вручную на глаз: сетка, заданная на глаз, начнёт перекрываться, как только высота узлов превысит шаг. Используйте навык и тогда, когда пользователь говорит, что процесс невозможно прочитать, он запутан, выглядит некрасиво, представляет собой беспорядок или узлы накладываются друг на друга, а также просит «расположить», «разложить», «привести в порядок», «сделать читаемым», «исправить позиции», «очистить диаграмму», «устранить перекрытия» — или выражает ту же просьбу другими словами на любом языке. НЕ перестраивайте без предупреждения процесс, расположение узлов которого пользователь уже настроил: см. правила «Когда МОЖНО перестраивать» в тексте навыка. Меняются только координаты x/y — состояние сворачивания/разворачивания, связи, логика, conv_id, псевдонимы и типы узлов остаются без изменений.

Add to TypingMind

Обзор

Издательcorezoid
Репозиторийcorezoid-ai-plugin
Название навыкаcorezoid-node-layout
Звёзды
74
Форки
26
Файлы в комплекте
Только инструкции
ЛицензияMIT
Ссылки
  • Инструкции в формате Markdown

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

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

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

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

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

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

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

Установка

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

1

Установка в TypingMind

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Auto-Layout Corezoid Process Nodes

You make a process readable: business logic as a clear vertical spine, error handling collected in a tidy right-hand rail, nothing overlapping. This is the mechanical companion to the positioning rules in ${CLAUDE_PLUGIN_ROOT}/docs/process/node-positioning-best-practices.md — that doc is the source of truth for why; this skill does it deterministically.

When you MAY re-layout — and when you MUST NOT

A process's layout is part of how its author reads it. Re-flowing someone's diagram without asking is destructive even though the logic is untouched — it throws away a mental map they are used to. So the rule is about authorship, not just readability:

  • A process YOU built this session, from scratch → always lay it out. You own its positions; arrange it cleanly before push-process. No need to ask.

  • An existing / pulled / user-authored process → do NOT re-layout by default. Preserve the author's x/y. This holds even if you just edited it — a user who is used to their arrangement must not find it rearranged.

  • When you add nodes to someone else's process (an edit, not a rebuild): leave the new nodes at x: 0, y: 0 — push-process auto-places them next to their graph neighbours while keeping every existing node where it was (preserve mode; see node-positioning-best-practices.md § Automatic Placement on Push). Do not run the whole-process auto-layout — that repositions everything. Full re-layout on a foreign process happens only on request.

  • The user explicitly asks ("tidy this up", "fix the positions", "make it readable" — in any language) → re-layout the whole process. This is the one case where rearranging a foreign process is wanted.

  • The process is genuinely unreadable (heavy node overlaps, a tangled mess) → don't silently fix it. Offer: briefly say it's hard to read and ask if they want it re-arranged. Re-layout only after a clear yes. If they decline, leave it exactly as is.

When in doubt, ask before touching an existing layout — a wrong guess costs the user their familiarity; asking costs one sentence.

Workflow (once the rules above say you may)

Run the layout after the process JSON is finalized and before push-process:

  1. finish building the process (nodes + edges correct),
  2. call the layout-process MCP tool on the .conv.json,
  3. lint-process, then push-process.

The tool rewrites the file in place, touching only x/y. The user's existing extra.modeForm state is immutable: expanded nodes stay expanded and collapsed nodes stay collapsed. extra, edges, logic, conv_id, aliases and node types are left intact.

How to run

Call the MCP tool (no auth needed — it works entirely on the local file):

layout-process(process_path="path/to/NNN_name.conv.json")

Preview without writing (the result lists the planned coordinates):

layout-process(process_path="path/to/NNN_name.conv.json", dry=true)

Control the spacing with density="compact"|"medium"|"roomy" (default medium). The density pass re-spaces rows and columns from the nodes' REAL sizes — a row of collapsed 48px IF-squares stops reserving a full block-row of air, so a process fits on screen without zooming out. roomy skips the pass and keeps the coarse block-sized rhythm (useful for presentations).

The same tool is available from a shell via the server's CLI mode:

bash
sh "${CLAUDE_PLUGIN_ROOT}/mcp-server/run.sh" layout-process process_path=<file> dry=true

The engine lives inside the plugin's Go MCP server — no extra runtime, no network, no server call.

What it does (the layout rules it enforces)

The engine picks a strategy automatically (the result reports which one and why):

  • Small and tree-like processes (fewer than ~25 nodes, or one main flow with branches) → a vertical "waterfall": the happy path runs straight down the central column, branches fan out to the sides (longer branches nearer the centre — a hub with rays reads as a star, cascaded IFs as a tree), and each error cluster is pinned tight to the right of the node it protects. Small processes always get the waterfall: the layered machinery below only pays off at scale, and on a small graph its spine drifts sideways.

  • Region composition — big processes routinely combine shapes, so region detection runs in a loop and each region gets its own geometry while the rest of the graph keeps the waterfall:

    • TABLE: a dispatcher fanning into 3+ structurally identical pipelines that reconverge (one sync pipeline per entity type is the canonical case) → parallel columns with row-aligned steps, and the shared tail (a DLQ, the columns' error clusters) in a side column;
    • STAR / sun: a hub fanning into 4+ chain-shaped rays of varying depth that reconverge → rays hang symmetrically around the hub→merge axis, deepest nearest the axis (a fir-tree silhouette);
    • DIAMOND: a compact two-way fork/rejoin → the primary branch stays on the hub axis, the short optional branch sits immediately to its right, and the merge returns to the original axis;
    • several regions in sequence — two tables, a star followed by a table — compose cleanly (each expansion makes its own room).
  • Large mesh processes (many independent flows, lots of error handling) → the graph is split into (1) the business flow, laid out as a clean layered top-to-bottom spine with edge-crossings minimised, (2) dedicated error clusters, pinned locally beside their single owner, (3) genuinely shared error clusters, placed on a clean right rail using their existing collapse/expand state, and (4) unreachable historical components, packed into a separate zone below the active Start flow. A high error-node percentage alone does not select this strategy; ownership topology does.

  • Recovery lanes — an err_node_id target is not automatically terminal error handling. If it enters a substantial compensating pipeline or rejoins the active flow, that pipeline is anchored beside its owner/merge as business logic while retaining its current mode. Callback entrypoints are treated like Start roots; a component goes to the archive zone only when it has no attachment to the active graph in either direction.

Both strategies guarantee: no node overlaps, top-to-bottom flow with Start at the top and the deepest success Final sunk to the bottom of the active flow (early success exits remain local), every node's existing collapse/expand state preserved, and the diagram re-centred on the origin so it sits in the middle of the canvas instead of drifting off one edge.

Note what that last point is not: there is no hard ±10000 clamp. The vertical step does shrink for deep processes, but it has a floor, so a very deep process (roughly 125+ layers) legitimately extends past ±10000. That is fine — the node schema allows ±100000 precisely because real processes reach about ±25500.

Example — a typical result on a freshly built process:

strategy: waterfall  (21 nodes, 4 flow(s), 5% error-handling nodes)  density=medium  engine=recovery-v6-preserve-modes
nodes=21 width=1000px height=4070px overlaps=0 collapsed=0
readability: estimated-crossings=0 max-dedicated-error-span=376px long-dedicated-errors=0
edges: max-span=420px p95-span=310px long=0 upward=0
layout applied: 042_payment.conv.json (21 nodes, 21 moved)
Next: lint-process, then push-process.

overlaps=0 is the number to check; anything else means a bug worth reporting. Full re-layout is idempotent: running it again over its own output must preserve the same coordinates. Every input extra.modeForm must be identical after the run; collapsed=0 and mode-passes=1 are mandatory. The engine revision makes stale runtime tests visible.

Honest limits

Some graphs cannot be made beautiful because the graph itself is tangled — a node called from a dozen places is an unavoidable fan of edges no layout can remove. When a process is this big and knotty, the real fix is to split it into smaller, repeatable sub-processes; the layout only makes an unavoidable monster as readable as it can be, never magically simple.

Verifying a change to the engine

The engine's test suite lives with the server code (plugins/corezoid/mcp-server/layout_*_test.go — synthetic topologies: chains, stars, loops, fractals, tables, and an error-heavy process):

bash
cd "${CLAUDE_PLUGIN_ROOT}/mcp-server" && go test -run 'TestLayout' ./...

It asserts the invariants that make a layout clean: all nodes placed, zero overlaps, deterministic output (so adding a node re-flows rather than piles up), coordinates within canvas, top-to-bottom flow, correct strategy routing, table/star/diamond region geometry, dedicated-vs-shared error ownership, detached component zoning, local early exits, and golden coordinate files that freeze every fixture against unintended churn.

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

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

Автоматически расположите узлы процесса Corezoid так, чтобы схема была чистой и удобной для чтения: бизнес-поток идёт сверху вниз, обработка ошибок вынесена вправо, узлы не перекрываются. Используйте этот навык АВТОМАТИЧЕСКИ для каждого созданного или собранного ВАМИ процесса — в качестве последнего шага перед push-process. Не расставляйте координаты вручную на глаз: сетка, заданная на глаз, начнёт перекрываться, как только высота узлов превысит шаг. Используйте навык и тогда, когда пользователь говорит, что процесс невозможно прочитать, он запутан, выглядит некрасиво, представляет собой бе...

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Все

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

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