diagram-design
Create branded architecture, architecture delta, IT current-state, flowchart, sequence, state machine, ER/data model, timeline, swimlane, quadrant, radar/spider, polar chart (polar/radial lollipop), loop/flywheel, nested, tree, org chart, layer stack, exploded axonometric, axonometric plan, Venn, pyramid/funnel, treemap and marimekko, heatmap, bar and dumbbell, waterfall, line (slopegraph, ridgeline, streamgraph, bump), Gantt and scatter charts (bubble, beeswarm, box plot), high-level, process,
Install
npx skills add https://github.com/cathrynlavery/diagram-design --skill diagram-designLayout grid, per-type budgets, page layout, and summary cards
Routed from SKILL.md §7 and §8. SKILL.md keeps the grid rule in one line, the universal complexity limits, and the split rule. This file holds the full grid table, every per-type budget row, the page layout, and the summary card pattern.
Layout & Spacing
4px grid
Structural geometry, divisible by 4: node origins, widths, heights, gaps, padding. Off-grid by design: type sizes (role ramp in references/output-spec.md), radii, data-derived positions, text baselines, arrow markers, .5 offsets that keep 1px strokes crisp, stroke widths, opacity, and the 22×22 dot-pattern.
Complexity budget (per diagram)
These are the per-type limits. The universal rows in SKILL.md §7 (9 nodes, 12 arrows or transitions, 2 coral elements, 2 annotation callouts, and the motion limits) apply to every type on top of these, and a semantic pattern's own budget in semantic-patterns.md [blocked] can only tighten them. One type is the exception: SBGN replaces the 9 nodes and 12 arrows rows with its own ceiling below, because a process square is a reaction marker rather than a node and every reaction needs its consumption and production arcs. Its other universal rows still apply, and no other type may exceed 9 nodes or 12 arrows by analogy.
If you exceed, split into two diagrams (overview + detail).
Page layout
- Header —
eyebrowrole,titlerole, optional subtitle (node-namefamily,muted). - Diagram container — default: clean, borderless, no background — the SVG sits directly on the page paper. Optional framed variant (for card-heavy layouts or hero placements):
paper-2bg + 1pxruleborder + 8px radius +1.5rempadding +overflow-x: auto. - Summary cards — 2–3 col grid with varied widths (e.g.,
1.1fr 1fr 0.9fr). - Footer — colophon in the
sublabelrole,muted, hairline top border.
Summary Card Pattern
Don't use 3 identical generic cards. Vary the treatment:
Rules:
background: #ffffff(not paper — slight lift without shadow)border: 1px solidtherulecolorborder-radius: 6px,padding: 1.25rem- No
box-shadow - Card dots: 7px,
border-radius: 50%— ink / muted / coral / link / soft variants