Logo de Corezoid Node Layout

Corezoid Node Layout

Organização
corezoid
corezoid-node-layout

Organize automaticamente os nós de um processo do Corezoid em um layout claro e fácil de ler: um fluxo de negócios vertical, de cima para baixo, com o tratamento de erros deslocado para a direita e sem nós sobrepostos. Use esta habilidade AUTOMATICAMENTE em todo processo que VOCÊ criar ou montar, como última etapa antes de push-process — nunca posicione as coordenadas manualmente a olho (grades estimadas se sobrepõem assim que os nós ficam mais altos que o espaçamento). Use-a também sempre que o usuário disser que um processo está ilegível, confuso, feio, uma bagunça ou que os nós estão uns sobre os outros, ou pedir para “organizar”, “dispor”, “arrumar”, “tornar legível”, “corrigir posições”, “limpar o diagrama”, “remover as sobreposições” — ou usar expressões equivalentes em qualquer idioma. NÃO reorganize silenciosamente um processo cujas posições já foram definidas pelo usuário — consulte as regras “Quando VOCÊ PODE reorganizar o layout” no corpo. A habilidade altera somente as coordenadas x/y — nunca o estado de recolhimento/expansão, as conexões, a lógica, conv_id, aliases ou os tipos de nó.

Add to TypingMind

Visão geral

Publicado porcorezoid
Repositóriocorezoid-ai-plugin
Nome da habilidadecorezoid-node-layout
Estrelas
74
Forks
26
Arquivos incluídos
Somente instruções
LicençaMIT
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    As habilidades de IA são escritas em Markdown simples, não em código específico de um provedor. Por isso, funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Sem arquivos extras

    Tudo de que o modelo precisa está nas instruções — sem arquivos extras para sincronizar.

  • Código aberto

    Publicada por corezoid no GitHub. Leia os arquivos da habilidade antes de instalá-la.

Instalação

Instale a habilidade de IA Corezoid Node Layout no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL abaixo, que aponta para a pasta da habilidade, e confirme.
    https://github.com/corezoid/corezoid-ai-plugin/tree/main/plugins/corezoid/skills/corezoid-node-layout
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Adicionar habilidade → Via URL do GitHub. Depois, cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

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
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Corezoid Node Layout em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Corezoid Node Layout automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Corezoid Node Layout não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

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.

Perguntas frequentes

O que a habilidade de IA Corezoid Node Layout faz?

Organize automaticamente os nós de um processo do Corezoid em um layout claro e fácil de ler: um fluxo de negócios vertical, de cima para baixo, com o tratamento de erros deslocado para a direita e sem nós sobrepostos. Use esta habilidade AUTOMATICAMENTE em todo processo que VOCÊ criar ou montar, como última etapa antes de push-process — nunca posicione as coordenadas manualmente a olho (grades estimadas se sobrepõem assim que os nós ficam mais altos que o espaçamento). Use-a também sempre que o usuário disser que um processo está ilegível, confuso, feio, uma bagunça ou que os nós estão uns...

Por que usar Corezoid Node Layout no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. A habilidade Corezoid Node Layout é escrita em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. No TypingMind, você usa suas próprias chaves de API e paga diretamente aos provedores, em vez de pagar uma assinatura por licença de usuário. Suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Corezoid Node Layout no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/corezoid/corezoid-ai-plugin/tree/main/plugins/corezoid/skills/corezoid-node-layout. O TypingMind lê o arquivo SKILL.md e instala a habilidade para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Corezoid Node Layout?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Corezoid Node Layout?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Corezoid Node Layout com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Corezoid Node Layout é gratuita?

Sim. A habilidade é publicada no GitHub por corezoid sob a licença MIT. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, templates ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas que ele pode acionar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA dá ao modelo o conhecimento e as orientações de que ele precisa: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver lista completa

Crie seu próprio espaço de trabalho com IA agora

Inscreva-se na nossa newsletter para receber avisos sobre novos recursos e futuros sorteios 👇