node-link-and-diagram-layout
БесплатноБез исполняемых скриптовНе проверенChoose and apply automatic layout strategies for node-link diagrams and connected-node visuals. Use when the user asks how to auto-arrange nodes, reduce line…
от openai★ 8 494 звезды на GitHubОб этом скилле
Node-Link and Diagram Layout
Overview
Use this skill when the main problem is not which notation to use, but how to place connected nodes so the diagram stays readable. The job is to classify the graph family, choose a layout algorithm that matches the reading task, separate node placement from edge routing and overlap removal, and recommend a stack that can preserve those constraints in production.
Default assumption: the best automatic layout is the one that reinforces the intended reading path with the fewest crossings, bends, overlaps, and surprise placements. Do not treat force-directed layout as a generic answer for all diagrams. Trees, DAGs, port-constrained block diagrams, ERDs, and undirected exploration graphs usually need different algorithms.
For browser-facing node-link views, mobile layout is a graph-reading constraint, not only a CSS breakpoint. Use ../../references/foundations/mobile-first-responsive-visualization.md when choosing portrait focus views, optional landscape inspection, touch/pan/zoom ownership, and settings placement.
For operational graph workspaces, use ../../references/foundations/operational-visualization-workspaces.md so layout decisions account for outlines, inspectors, command bars, selected neighborhoods, URL state, mobile panels, and repeated navigation.
Core Workflow
- Classify the graph structure before choosing a renderer:
- rooted tree or forest
- directed acyclic graph
- cyclic directed graph with a dominant flow
- general undirected graph
- radial or hub-and-spoke structure
- clustered or compound graph
- port-constrained block diagram
- table-like schema or ERD
- nearly planar topology where crossing count dominates readability
- Identify the primary reading task:
- parent-child depth
- top-to-bottom or left-to-right flow
- reachability and dependency tracing
- cluster discovery
- cycle inspection
- shortest path or neighborhood exploration
- table relationship tracing
- stable editing with minimal layout drift
- Record geometry constraints up front:
- real node widths and heights, not point nodes
- labels that must fit without scaling below readability
- ports, handles, side constraints, or fixed connection order
- nested groups, lanes, clusters, or compounds
- whether some nodes are pinned or semi-pinned
- Choose the layout family that matches the structure:
- tidy tree layout for rooted ordered trees and decision trees
- layered or Sugiyama-style layout for directional processes, state machines, dependency maps, class hierarchies, ERDs, and most UML-like flow diagrams
- stress majorization or force-directed layout for undirected relational exploration where cluster shape matters more than global direction
- radial or concentric layout when distance from a root is the main story
- circular layout when cycle structure is the evidence
- planarization-driven layout when the graph is non-planar but low crossing count is the main objective
- Choose edge routing separately from node placement:
- straight or polyline when the graph is sparse and directional flow is already clear
- orthogonal when tables, ports, block diagrams, lanes, or circuit-like reading dominate
- spline routing when static aesthetics matter more than precise traceability and there is enough whitespace
- Treat overlap removal, label placement, and packing as explicit phases:
- remove node overlap after layout if the engine starts from point nodes
- reserve gutters for connector-dense tables and schemas
- keep edge labels out of node bodies and above selected paths
- pack connected components only after the component layouts are individually legible
- Prefer stability when users will edit, compare revisions, or recognize repeated diagrams:
- preserve node order when the source model has meaningful order
- preserve port order when connectors are semantically ordered
- use interactive or constraint-aware layered modes instead of re-randomizing
- Validate the result with readability criteria instead of trusting the engine:
- crossings are low enough for the task
- bends are limited and meaningful
- nodes and labels do not overlap
- directionality is obvious
- edge tracing is possible without visual hunting
- the layout stays readable on narrow widths or falls back to scrolling, filtering, or faceting
- mobile portrait starts on the most important region instead of shrinking the entire graph
- mobile landscape is offered when a wide graph, timeline, or schema materially improves tracing
- operational shells keep filters, outline trees, selected nodes, and inspectors synchronized without stealing space from the graph
Algorithm Defaults
- Rooted ordered trees and decision trees:
- Prefer Reingold-Tilford style tidy trees and Buchheim's linear-time refinement.
- Use radial tree variants only when depth from a root matters more tha
Установить node-link-and-diagram-layout в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл node-link-and-diagram-layout?
Choose and apply automatic layout strategies for node-link diagrams and connected-node visuals. Use when the user asks how to auto-arrange nodes, reduce line crossings, route edges, avoid overlaps, stabilize layout, or choose graph-layout algorithms for network diagrams, dependency graphs, database schema diagrams, ERDs, state machines, decision trees, flow diagrams, box-and-line editors, or other line-connected nodes.
Как установить скилл node-link-and-diagram-layout?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл node-link-and-diagram-layout запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic