Node link and diagram layout

From openai/plugins · View interactive version

Node link and diagram layout is an AI agent skill from the GitHub repository openai/plugins. 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

How to use this skill

Skill file

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

  1. Classify the graph structure before choosing a renderer:
  1. Identify the primary reading task:
  1. Record geometry constraints up front:
  1. Choose the layout family that matches the structure:
  1. Choose edge routing separately from node placement:
  1. Treat overlap removal, label placement, and packing as explicit phases:
  1. Prefer stability when users will edit, compare revisions, or recognize repeated diagrams:
  1. Validate the result with readability criteria instead of trusting the engine:

Algorithm Defaults

Stack Defaults

Anti-Patterns

Reference Guide

Output Expectations

Adjacent Skills

Representative Prompts

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.