Editorial diagram design for Claude Code, Codex, GitHub Copilot, Cursor, Factory Droid, Qoder, and Pi. 45 diagram types. Self-contained HTML + SVG. No shadows. No Mermaid slop.
fix(examples): route connectors orthogonally from their own ports
Cathryn Lavery3f74485a253f
diff --git a/skills/diagram-design/assets/example-architecture-dark.html b/skills/diagram-design/assets/example-architecture-dark.htmlindex 49f3f63..35e9cb6 100644--- a/skills/diagram-design/assets/example-architecture-dark.html+++ b/skills/diagram-design/assets/example-architecture-dark.html@@ -83,9 +83,9 @@<!-- Arrows first (behind boxes) --><line x1="168" y1="272" x2="220" y2="272" stroke="#6a95d8" stroke-width="1.2" marker-end="url(#arrow-link)"/><line x1="364" y1="272" x2="416" y2="272" stroke="#f08a59" stroke-width="1.4" marker-end="url(#arrow-accent)"/>- <path d="M 496,240 H 692 Q 700,240 700,232 V 224"+ <path d="M 576,260 H 692 Q 700,260 700,252 V 224"fill="none" stroke="#bfc0c0" stroke-width="1.2" marker-end="url(#arrow)"/>- <path d="M 496,304 H 692 Q 700,304 700,312 V 320"+ <path d="M 576,284 H 692 Q 700,284 700,292 V 320"fill="none" stroke="#bfc0c0" stroke-width="1.2" marker-end="url(#arrow)"/><!-- Dashed return: Cloudflare→Reader (cached HTML) -->@@ -101,11 +101,11 @@<rect x="368" y="252" width="48" height="12" rx="2" fill="#2d3142"/><text x="392" y="262" fill="#f08a59" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">SSR</text>- <rect x="632" y="246" width="60" height="12" rx="2" fill="#2d3142"/>- <text x="662" y="255" fill="#bfc0c0" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">READ MDX</text>+ <rect x="632" y="240" width="60" height="12" rx="2" fill="#2d3142"/>+ <text x="662" y="249" fill="#bfc0c0" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">READ MDX</text>- <rect x="632" y="286" width="44" height="12" rx="2" fill="#2d3142"/>- <text x="654" y="295" fill="#bfc0c0" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">QUERY</text>+ <rect x="632" y="292" width="44" height="12" rx="2" fill="#2d3142"/>+ <text x="654" y="301" fill="#bfc0c0" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">QUERY</text><!-- Node: Reader --><rect x="40" y="240" width="128" height="64" rx="6" fill="#2d3142"/>diff --git a/skills/diagram-design/assets/example-architecture-full.html b/skills/diagram-design/assets/example-architecture-full.htmlindex ba5d663..696ed91 100644--- a/skills/diagram-design/assets/example-architecture-full.html+++ b/skills/diagram-design/assets/example-architecture-full.html@@ -73,9 +73,9 @@<!-- Arrows first (behind boxes) --><line x1="168" y1="272" x2="220" y2="272" stroke="#2e5aa8" stroke-width="1.2" marker-end="url(#arrow-link)"/><line x1="364" y1="272" x2="416" y2="272" stroke="#eb6c36" stroke-width="1.4" marker-end="url(#arrow-accent)"/>- <path d="M 496,240 H 692 Q 700,240 700,232 V 224"+ <path d="M 576,260 H 692 Q 700,260 700,252 V 224"fill="none" stroke="#4f5d75" stroke-width="1.2" marker-end="url(#arrow)"/>- <path d="M 496,304 H 692 Q 700,304 700,312 V 320"+ <path d="M 576,284 H 692 Q 700,284 700,292 V 320"fill="none" stroke="#4f5d75" stroke-width="1.2" marker-end="url(#arrow)"/><!-- Dashed return: Cloudflare→Reader (cached HTML) -->@@ -91,11 +91,11 @@<rect x="368" y="252" width="48" height="12" rx="2" fill="#f5f5f5"/><text x="392" y="262" fill="#eb6c36" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">SSR</text>- <rect x="632" y="246" width="60" height="12" rx="2" fill="#f5f5f5"/>- <text x="662" y="255" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">READ MDX</text>+ <rect x="632" y="240" width="60" height="12" rx="2" fill="#f5f5f5"/>+ <text x="662" y="249" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">READ MDX</text>- <rect x="632" y="286" width="44" height="12" rx="2" fill="#f5f5f5"/>- <text x="654" y="295" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">QUERY</text>+ <rect x="632" y="292" width="44" height="12" rx="2" fill="#f5f5f5"/>+ <text x="654" y="301" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">QUERY</text><!-- Node: Reader --><rect x="40" y="240" width="128" height="64" rx="6" fill="#f5f5f5"/>diff --git a/skills/diagram-design/assets/example-architecture.html b/skills/diagram-design/assets/example-architecture.htmlindex 4d0675f..e8c8b83 100644--- a/skills/diagram-design/assets/example-architecture.html+++ b/skills/diagram-design/assets/example-architecture.html@@ -83,10 +83,10 @@<!-- Arrows first (behind boxes) --><line x1="168" y1="272" x2="220" y2="272" stroke="#2e5aa8" stroke-width="1.2" marker-end="url(#arrow-link)"/><line x1="364" y1="272" x2="416" y2="272" stroke="#eb6c36" stroke-width="1.4" marker-end="url(#arrow-accent)"/>- <!-- Exit Astro top→enter MDX bottom; exit Astro bottom→enter CMS top -->- <path d="M 496,240 H 692 Q 700,240 700,232 V 224"+ <!-- Two fanned ports on Astro's right edge, each turning once into MDX bottom / CMS top -->+ <path d="M 576,260 H 692 Q 700,260 700,252 V 224"fill="none" stroke="#4f5d75" stroke-width="1.2" marker-end="url(#arrow)"/>- <path d="M 496,304 H 692 Q 700,304 700,312 V 320"+ <path d="M 576,284 H 692 Q 700,284 700,292 V 320"fill="none" stroke="#4f5d75" stroke-width="1.2" marker-end="url(#arrow)"/><!-- Dashed return: Cloudflare→Reader (cached HTML — same orthogonal rules as solid) -->@@ -102,11 +102,11 @@<rect x="368" y="252" width="48" height="12" rx="2" fill="#f5f5f5"/><text x="392" y="262" fill="#eb6c36" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">SSR</text>- <rect x="632" y="246" width="60" height="12" rx="2" fill="#f5f5f5"/>- <text x="662" y="255" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">READ MDX</text>+ <rect x="632" y="240" width="60" height="12" rx="2" fill="#f5f5f5"/>+ <text x="662" y="249" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">READ MDX</text>- <rect x="632" y="286" width="44" height="12" rx="2" fill="#f5f5f5"/>- <text x="654" y="295" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">QUERY</text>+ <rect x="632" y="292" width="44" height="12" rx="2" fill="#f5f5f5"/>+ <text x="654" y="301" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">QUERY</text><!-- Node: Reader --><rect x="40" y="240" width="128" height="64" rx="6" fill="#f5f5f5"/>diff --git a/skills/diagram-design/assets/example-datalake-dark.html b/skills/diagram-design/assets/example-datalake-dark.htmlindex efb017a..0d43176 100644--- a/skills/diagram-design/assets/example-datalake-dark.html+++ b/skills/diagram-design/assets/example-datalake-dark.html@@ -94,10 +94,10 @@<rect x="586" y="102" width="28" height="12" rx="2" fill="#2d3142"/><text x="600" y="111" fill="#f08a59" font-size="7" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">SQL</text>- <path d="M 760,76 H 784 Q 788,76 788,68 H 815" fill="none" stroke="#bfc0c0" stroke-width="1" marker-end="url(#arrow)"/>- <path d="M 760,100 H 780 Q 788,100 788,108 V 148 Q 788,156 796,156 H 815" fill="none" stroke="#bfc0c0" stroke-width="1" marker-end="url(#arrow)"/>- <path d="M 760,180 H 782 Q 788,180 788,168 H 815" fill="none" stroke="#bfc0c0" stroke-width="1" marker-end="url(#arrow)"/>- <path d="M 760,204 H 780 Q 788,204 788,212 V 232 Q 788,240 796,240 H 815" fill="none" stroke="#bfc0c0" stroke-width="1" marker-end="url(#arrow)"/>+ <line x1="760" y1="88" x2="815" y2="88" stroke="#bfc0c0" stroke-width="1" marker-end="url(#arrow)"/>+ <path d="M 688,116 V 132 Q 688,140 696,140 H 876 Q 884,140 884,148 V 152" fill="none" stroke="#bfc0c0" stroke-width="1" marker-end="url(#arrow)"/>+ <line x1="760" y1="180" x2="815" y2="180" stroke="#bfc0c0" stroke-width="1" marker-end="url(#arrow)"/>+ <path d="M 688,220 V 232 Q 688,240 696,240 H 876 Q 884,240 884,244" fill="none" stroke="#bfc0c0" stroke-width="1" marker-end="url(#arrow)"/><path d="M 884,300 V 312 Q 884,320 876,320 H 480 Q 472,320 472,312 V 180" fill="none" stroke="rgba(245,245,245,0.30)" stroke-width="1" stroke-dasharray="4,3" marker-end="url(#arrow)"/><rect x="660" y="314" width="36" height="12" rx="2" fill="#2d3142"/>diff --git a/skills/diagram-design/assets/example-datalake-full.html b/skills/diagram-design/assets/example-datalake-full.htmlindex 2bfd388..5e09bfa 100644--- a/skills/diagram-design/assets/example-datalake-full.html+++ b/skills/diagram-design/assets/example-datalake-full.html@@ -81,10 +81,10 @@<path d="M 553,152 H 576 Q 584,152 584,160 V 180 Q 584,188 592,188 H 615" fill="none" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/><rect x="586" y="102" width="28" height="12" rx="2" fill="#f5f5f5"/><text x="600" y="111" fill="#eb6c36" font-size="7" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">SQL</text>- <path d="M 760,76 H 784 Q 788,76 788,68 H 815" fill="none" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/>- <path d="M 760,100 H 780 Q 788,100 788,108 V 148 Q 788,156 796,156 H 815" fill="none" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/>- <path d="M 760,180 H 782 Q 788,180 788,168 H 815" fill="none" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/>- <path d="M 760,204 H 780 Q 788,204 788,212 V 232 Q 788,240 796,240 H 815" fill="none" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/>+ <line x1="760" y1="88" x2="815" y2="88" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/>+ <path d="M 688,116 V 132 Q 688,140 696,140 H 876 Q 884,140 884,148 V 152" fill="none" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/>+ <line x1="760" y1="180" x2="815" y2="180" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/>+ <path d="M 688,220 V 232 Q 688,240 696,240 H 876 Q 884,240 884,244" fill="none" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/><path d="M 884,300 V 312 Q 884,320 876,320 H 480 Q 472,320 472,312 V 180" fill="none" stroke="rgba(45,49,66,0.30)" stroke-width="1" stroke-dasharray="4,3" marker-end="url(#arrow)"/><rect x="660" y="314" width="36" height="12" rx="2" fill="#f5f5f5"/><text x="678" y="323" fill="#7a8399" font-size="7" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">WRITE</text>diff --git a/skills/diagram-design/assets/example-high-level-dark.html b/skills/diagram-design/assets/example-high-level-dark.htmlindex 95c1705..899cd54 100644--- a/skills/diagram-design/assets/example-high-level-dark.html+++ b/skills/diagram-design/assets/example-high-level-dark.html@@ -92,19 +92,19 @@<rect x="4" y="388" width="992" height="40" rx="6" fill="rgba(245,245,245,0.06)" stroke="rgba(245,245,245,0.18)" stroke-width="0.8"/><!-- Arrows -->- <path d="M 144,92 H 156 Q 164,92 164,100 V 112 Q 164,120 176,120" fill="none" stroke="#bfc0c0" stroke-width="1" marker-end="url(#arrow)"/>- <path d="M 144,172 H 156 Q 164,172 164,164 V 144 Q 164,136 176,136" fill="none" stroke="#bfc0c0" stroke-width="1" marker-end="url(#arrow)"/>- <path d="M 144,252 H 156 Q 164,252 164,244 V 160 Q 164,152 176,152" fill="none" stroke="#bfc0c0" stroke-width="1" marker-end="url(#arrow)"/>- <path d="M 144,336 H 156 Q 164,336 164,328 V 176 Q 164,168 176,168" fill="none" stroke="#bfc0c0" stroke-width="1" marker-end="url(#arrow)"/>+ <path d="M 128,124 Q 128,132 136,132 H 176" fill="none" stroke="#bfc0c0" stroke-width="1" marker-end="url(#arrow)"/>+ <path d="M 144,172 H 176" fill="none" stroke="#bfc0c0" stroke-width="1" marker-end="url(#arrow)"/>+ <path d="M 144,252 H 196 Q 204,252 204,244 V 192" fill="none" stroke="#bfc0c0" stroke-width="1" marker-end="url(#arrow)"/>+ <path d="M 144,336 H 220 Q 228,336 228,328 V 192" fill="none" stroke="#bfc0c0" stroke-width="1" marker-end="url(#arrow)"/><line x1="452" y1="96" x2="452" y2="104" stroke="#bfc0c0" stroke-width="1" stroke-dasharray="4,3" marker-end="url(#arrow-sm)"/><line x1="682" y1="96" x2="682" y2="144" stroke="#bfc0c0" stroke-width="1" stroke-dasharray="4,3" marker-end="url(#arrow-sm)"/><line x1="896" y1="96" x2="896" y2="144" stroke="#bfc0c0" stroke-width="1" stroke-dasharray="4,3" marker-end="url(#arrow-sm)"/>- <path d="M 328,152 H 344 Q 348,152 348,148 V 144 Q 348,140 352,140 H 372" fill="none" stroke="#bfc0c0" stroke-width="1" marker-end="url(#arrow)"/>- <path d="M 328,152 H 344 Q 352,152 352,160 V 240 Q 352,248 372,248" fill="none" stroke="#f08a59" stroke-width="1.2" marker-end="url(#arrow-accent)"/>- <line x1="448" y1="176" x2="448" y2="208" stroke="#bfc0c0" stroke-width="1" marker-end="url(#arrow)"/>- <line x1="456" y1="208" x2="456" y2="176" stroke="rgba(245,245,245,0.25)" stroke-width="1" stroke-dasharray="4,3" marker-end="url(#arrow)"/>- <path d="M 532,140 H 556 Q 564,140 564,148 V 176 Q 564,184 600,184" fill="none" stroke="#bfc0c0" stroke-width="1" marker-end="url(#arrow)"/>- <path d="M 532,248 H 556 Q 564,248 564,240 V 192 Q 564,184 600,184" fill="none" stroke="#f08a59" stroke-width="1.2" marker-end="url(#arrow-accent)"/>+ <path d="M 328,140 H 372" fill="none" stroke="#bfc0c0" stroke-width="1" marker-end="url(#arrow)"/>+ <path d="M 328,164 H 344 Q 352,164 352,172 V 240 Q 352,248 360,248 H 372" fill="none" stroke="#f08a59" stroke-width="1.2" marker-end="url(#arrow-accent)"/>+ <line x1="444" y1="176" x2="444" y2="208" stroke="#bfc0c0" stroke-width="1" marker-end="url(#arrow)"/>+ <line x1="460" y1="208" x2="460" y2="176" stroke="rgba(245,245,245,0.25)" stroke-width="1" stroke-dasharray="4,3" marker-end="url(#arrow)"/>+ <path d="M 532,140 H 556 Q 564,140 564,148 V 160 Q 564,168 572,168 H 600" fill="none" stroke="#bfc0c0" stroke-width="1" marker-end="url(#arrow)"/>+ <path d="M 532,248 H 556 Q 564,248 564,240 V 208 Q 564,200 572,200 H 600" fill="none" stroke="#f08a59" stroke-width="1.2" marker-end="url(#arrow-accent)"/><line x1="764" y1="184" x2="820" y2="184" stroke="#bfc0c0" stroke-width="1" marker-end="url(#arrow)"/><!-- Nodes -->diff --git a/skills/diagram-design/assets/example-high-level-full.html b/skills/diagram-design/assets/example-high-level-full.htmlindex b62d4e7..f06aadd 100644--- a/skills/diagram-design/assets/example-high-level-full.html+++ b/skills/diagram-design/assets/example-high-level-full.html@@ -81,19 +81,19 @@<rect x="4" y="388" width="992" height="40" rx="6" fill="rgba(45,49,66,0.05)" stroke="rgba(45,49,66,0.20)" stroke-width="0.8"/><!-- Arrows -->- <path d="M 144,92 H 156 Q 164,92 164,100 V 112 Q 164,120 176,120" fill="none" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/>- <path d="M 144,172 H 156 Q 164,172 164,164 V 144 Q 164,136 176,136" fill="none" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/>- <path d="M 144,252 H 156 Q 164,252 164,244 V 160 Q 164,152 176,152" fill="none" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/>- <path d="M 144,336 H 156 Q 164,336 164,328 V 176 Q 164,168 176,168" fill="none" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/>+ <path d="M 128,124 Q 128,132 136,132 H 176" fill="none" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/>+ <path d="M 144,172 H 176" fill="none" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/>+ <path d="M 144,252 H 196 Q 204,252 204,244 V 192" fill="none" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/>+ <path d="M 144,336 H 220 Q 228,336 228,328 V 192" fill="none" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/><line x1="452" y1="96" x2="452" y2="104" stroke="#4f5d75" stroke-width="1" stroke-dasharray="4,3" marker-end="url(#arrow-sm)"/><line x1="682" y1="96" x2="682" y2="144" stroke="#4f5d75" stroke-width="1" stroke-dasharray="4,3" marker-end="url(#arrow-sm)"/><line x1="896" y1="96" x2="896" y2="144" stroke="#4f5d75" stroke-width="1" stroke-dasharray="4,3" marker-end="url(#arrow-sm)"/>- <path d="M 328,152 H 344 Q 348,152 348,148 V 144 Q 348,140 352,140 H 372" fill="none" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/>- <path d="M 328,152 H 344 Q 352,152 352,160 V 240 Q 352,248 372,248" fill="none" stroke="#eb6c36" stroke-width="1.2" marker-end="url(#arrow-accent)"/>- <line x1="448" y1="176" x2="448" y2="208" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/>- <line x1="456" y1="208" x2="456" y2="176" stroke="rgba(45,49,66,0.30)" stroke-width="1" stroke-dasharray="4,3" marker-end="url(#arrow)"/>- <path d="M 532,140 H 556 Q 564,140 564,148 V 176 Q 564,184 600,184" fill="none" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/>- <path d="M 532,248 H 556 Q 564,248 564,240 V 192 Q 564,184 600,184" fill="none" stroke="#eb6c36" stroke-width="1.2" marker-end="url(#arrow-accent)"/>+ <path d="M 328,140 H 372" fill="none" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/>+ <path d="M 328,164 H 344 Q 352,164 352,172 V 240 Q 352,248 360,248 H 372" fill="none" stroke="#eb6c36" stroke-width="1.2" marker-end="url(#arrow-accent)"/>+ <line x1="444" y1="176" x2="444" y2="208" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/>+ <line x1="460" y1="208" x2="460" y2="176" stroke="rgba(45,49,66,0.30)" stroke-width="1" stroke-dasharray="4,3" marker-end="url(#arrow)"/>+ <path d="M 532,140 H 556 Q 564,140 564,148 V 160 Q 564,168 572,168 H 600" fill="none" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/>+ <path d="M 532,248 H 556 Q 564,248 564,240 V 208 Q 564,200 572,200 H 600" fill="none" stroke="#eb6c36" stroke-width="1.2" marker-end="url(#arrow-accent)"/><line x1="764" y1="184" x2="820" y2="184" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/><!-- Source nodes -->diff --git a/skills/diagram-design/assets/example-high-level.html b/skills/diagram-design/assets/example-high-level.htmlindex c140e6e..07620ee 100644--- a/skills/diagram-design/assets/example-high-level.html+++ b/skills/diagram-design/assets/example-high-level.html@@ -106,33 +106,33 @@ARROWS — drawn before boxes (z-order rule)═══════════════════════════════════════════ -->- <!-- Data sources → NiFi (staggered entry points) -->- <path d="M 144,92 H 156 Q 164,92 164,100 V 112 Q 164,120 176,120" fill="none" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/>- <path d="M 144,172 H 156 Q 164,172 164,164 V 144 Q 164,136 176,136" fill="none" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/>- <path d="M 144,252 H 156 Q 164,252 164,244 V 160 Q 164,152 176,152" fill="none" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/>- <path d="M 144,336 H 156 Q 164,336 164,328 V 176 Q 164,168 176,168" fill="none" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/>+ <!-- Data sources → NiFi: WEB and FTP enter the left edge, DB and Legacy rise into the bottom edge -->+ <path d="M 128,124 Q 128,132 136,132 H 176" fill="none" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/>+ <path d="M 144,172 H 176" fill="none" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/>+ <path d="M 144,252 H 196 Q 204,252 204,244 V 192" fill="none" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/>+ <path d="M 144,336 H 220 Q 228,336 228,328 V 192" fill="none" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/><!-- Airflow → tools (dashed orchestration drops) --><line x1="452" y1="96" x2="452" y2="104" stroke="#4f5d75" stroke-width="1" stroke-dasharray="4,3" marker-end="url(#arrow-sm)"/><line x1="682" y1="96" x2="682" y2="144" stroke="#4f5d75" stroke-width="1" stroke-dasharray="4,3" marker-end="url(#arrow-sm)"/><line x1="896" y1="96" x2="896" y2="144" stroke="#4f5d75" stroke-width="1" stroke-dasharray="4,3" marker-end="url(#arrow-sm)"/>- <!-- NiFi → Trino (bend up) -->- <path d="M 328,152 H 344 Q 348,152 348,148 V 144 Q 348,140 352,140 H 372" fill="none" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/>+ <!-- NiFi → Trino (straight, own port) -->+ <path d="M 328,140 H 372" fill="none" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/><!-- NiFi → MinIO (bend down — ACCENT primary path) -->- <path d="M 328,152 H 344 Q 352,152 352,160 V 240 Q 352,248 372,248" fill="none" stroke="#eb6c36" stroke-width="1.2" marker-end="url(#arrow-accent)"/>+ <path d="M 328,164 H 344 Q 352,164 352,172 V 240 Q 352,248 360,248 H 372" fill="none" stroke="#eb6c36" stroke-width="1.2" marker-end="url(#arrow-accent)"/><!-- Trino → MinIO (vertical, Trino queries storage) -->- <line x1="448" y1="176" x2="448" y2="208" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/>+ <line x1="444" y1="176" x2="444" y2="208" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/><!-- MinIO → Trino (write-back, dashed) -->- <line x1="456" y1="208" x2="456" y2="176" stroke="rgba(45,49,66,0.30)" stroke-width="1" stroke-dasharray="4,3" marker-end="url(#arrow)"/>+ <line x1="460" y1="208" x2="460" y2="176" stroke="rgba(45,49,66,0.30)" stroke-width="1" stroke-dasharray="4,3" marker-end="url(#arrow)"/><!-- Trino → Data Modeling (bend down) -->- <path d="M 532,140 H 556 Q 564,140 564,148 V 176 Q 564,184 600,184" fill="none" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/>+ <path d="M 532,140 H 556 Q 564,140 564,148 V 160 Q 564,168 572,168 H 600" fill="none" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/><!-- MinIO → Data Modeling (bend up — ACCENT primary path) -->- <path d="M 532,248 H 556 Q 564,248 564,240 V 192 Q 564,184 600,184" fill="none" stroke="#eb6c36" stroke-width="1.2" marker-end="url(#arrow-accent)"/>+ <path d="M 532,248 H 556 Q 564,248 564,240 V 208 Q 564,200 572,200 H 600" fill="none" stroke="#eb6c36" stroke-width="1.2" marker-end="url(#arrow-accent)"/><!-- Data Modeling → Dashboards (straight) --><line x1="764" y1="184" x2="820" y2="184" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/>diff --git a/skills/diagram-design/assets/example-paved-road-animated.html b/skills/diagram-design/assets/example-paved-road-animated.htmlindex b5e668e..b0ac599 100644--- a/skills/diagram-design/assets/example-paved-road-animated.html+++ b/skills/diagram-design/assets/example-paved-road-animated.html@@ -275,10 +275,10 @@<!-- STEP 3: Security Gate Approval → Production Gateway → Database Deployment --><g data-motion-item data-step="3" aria-label="Step 3: Security gate verifies OPA policy, approves artifact, and deploys via Production API Gateway to Isolated Core Database">- <!-- Gate ✓ PASS → Production API Gateway (diagonal: gate right edge to gateway left edge) -->- <path d="M 690 230 L 780 132" fill="none" stroke="#2d3142" stroke-width="2" marker-end="url(#arrow-ink)" />- <rect x="700" y="166" width="65" height="18" rx="3" fill="#ffffff" stroke="#2d3142" stroke-width="1" />- <text x="732" y="179" text-anchor="middle" fill="#2d3142" font-family="'Geist Mono', monospace" font-size="9" font-weight="600">✓ PASS</text>+ <!-- Gate ✓ PASS → Production API Gateway (elbow through the gutter between zones at x=735) -->+ <path d="M 690 248 H 727 Q 735 248 735 240 V 140 Q 735 132 743 132 H 780" fill="none" stroke="#2d3142" stroke-width="2" marker-end="url(#arrow-ink)" />+ <rect x="702.5" y="181" width="65" height="18" rx="3" fill="#ffffff" stroke="#2d3142" stroke-width="1" />+ <text x="735" y="194" text-anchor="middle" fill="#2d3142" font-family="'Geist Mono', monospace" font-size="9" font-weight="600">✓ PASS</text><!-- Production API Gateway → Isolated Core Database (vertical: gateway bottom to db top) --><path d="M 940 168 L 940 210" fill="none" stroke="#2d3142" stroke-width="2" marker-end="url(#arrow-ink)" /></g>diff --git a/skills/diagram-design/assets/example-queue-animated.html b/skills/diagram-design/assets/example-queue-animated.htmlindex 002ec26..45aa4f0 100644--- a/skills/diagram-design/assets/example-queue-animated.html+++ b/skills/diagram-design/assets/example-queue-animated.html@@ -247,8 +247,8 @@<!-- STEP 1: Ingress Traffic Arrives (Slots 1 & 2 + Initial 2/5 Queue Depth Badge) --><g data-motion-item data-step="1" aria-label="Step 1: Web App and Mobile API send steady ingress traffic (7 req/sec total) into queue slots 1 and 2"><!-- Ingress Flow Arrows 1 & 2 -->- <path d="M 260 132 L 340 234" fill="none" stroke="#2d3142" stroke-width="2" marker-end="url(#arrow-ink)" />- <path d="M 260 232 L 340 282" fill="none" stroke="#2d3142" stroke-width="2" marker-end="url(#arrow-ink)" />+ <path d="M 260 132 H 308 Q 316 132 316 140 V 226 Q 316 234 324 234 H 340" fill="none" stroke="#2d3142" stroke-width="2" marker-end="url(#arrow-ink)" />+ <path d="M 260 248 H 284 Q 292 248 292 256 V 270 Q 292 278 300 278 H 340" fill="none" stroke="#2d3142" stroke-width="2" marker-end="url(#arrow-ink)" /><!-- Queue Slot 1 --><rect x="360" y="216" width="265" height="36" rx="4" fill="#ffffff" stroke="#2d3142" stroke-width="1.5" />@@ -269,8 +269,8 @@<!-- STEP 2: Ingress Spike Fills Queue (Slots 3, 4, 5 + Updated 5/5 Full Warn Queue Depth Badge) --><g data-motion-item data-step="2" aria-label="Step 2: Payment and ERP traffic spike (20 req/sec total) fills queue to 5/5 slots capacity"><!-- Ingress Flow Arrows 3 & 4 -->- <path d="M 260 332 L 340 322" fill="none" stroke="#eb6c36" stroke-width="2" marker-end="url(#arrow-accent)" />- <path d="M 260 432 L 340 370" fill="none" stroke="#eb6c36" stroke-width="2" marker-end="url(#arrow-accent)" />+ <path d="M 260 332 H 340" fill="none" stroke="#eb6c36" stroke-width="2" marker-end="url(#arrow-accent)" />+ <path d="M 260 432 H 292 Q 300 432 300 424 V 374 Q 300 366 308 366 H 340" fill="none" stroke="#eb6c36" stroke-width="2" marker-end="url(#arrow-accent)" /><!-- Queue Slot 3 --><rect x="360" y="304" width="265" height="36" rx="4" fill="#ffffff" stroke="#eb6c36" stroke-width="1.5" />@@ -294,7 +294,7 @@<!-- STEP 3: Rate Limiter Diverts Excess Traffic (429 Dropped Sink) --><g data-motion-item data-step="3" aria-label="Step 3: Overflow backpressure activates, shedding excess 19 req/sec to 429 Rate Limiter sink"><!-- Overflow Diverter Connector -->- <path d="M 525 150 L 525 92 L 760 92" fill="none" stroke="#eb6c36" stroke-width="2" stroke-dasharray="4 4" marker-end="url(#arrow-accent)" />+ <path d="M 525 150 V 100 Q 525 92 533 92 H 760" fill="none" stroke="#eb6c36" stroke-width="2" stroke-dasharray="4 4" marker-end="url(#arrow-accent)" /><!-- 429 Dropped Traffic Sink Node (Expanded to width 350px) --><rect x="760" y="50" width="350" height="85" rx="6" fill="rgba(235,108,54,0.08)" stroke="#eb6c36" stroke-width="1.5" />@@ -305,7 +305,7 @@<!-- STEP 4: Worker Service Processing & Downstream Output --><g data-motion-item data-step="4" aria-label="Step 4: Constrained worker node processes queue at 8 req/sec max emitting 200 OK downstream responses"><!-- Worker Processing Connector -->- <path d="M 710 310 L 760 280" fill="none" stroke="#2d3142" stroke-width="2" marker-end="url(#arrow-ink)" />+ <path d="M 710 280 H 760" fill="none" stroke="#2d3142" stroke-width="2" marker-end="url(#arrow-ink)" /><!-- Worker Node A (Expanded to width 350px) --><rect x="760" y="215" width="350" height="130" rx="6" fill="#ffffff" stroke="#2d3142" stroke-width="1.5" />diff --git a/skills/diagram-design/assets/example-swimlane-dark.html b/skills/diagram-design/assets/example-swimlane-dark.htmlindex 774fa8d..2a7a3a8 100644--- a/skills/diagram-design/assets/example-swimlane-dark.html+++ b/skills/diagram-design/assets/example-swimlane-dark.html@@ -91,26 +91,26 @@<!-- Arrows (drawn first) --><!-- 1. Draft → Open PR (within Author) --><line x1="300" y1="120" x2="340" y2="120" stroke="#bfc0c0" stroke-width="1.2" marker-end="url(#arrow)"/>- <!-- 2. Open PR → Review (Author → Reviewer handoff, diagonal down-right) -->- <line x1="460" y1="144" x2="500" y2="176" stroke="#bfc0c0" stroke-width="1.2" marker-end="url(#arrow)"/>+ <!-- 2. Open PR → Review (Author → Reviewer handoff: right edge, one turn, down into Review's top) -->+ <path d="M 460,120 H 512 Q 520,120 520,128 V 176" fill="none" stroke="#bfc0c0" stroke-width="1.2" marker-end="url(#arrow)"/><!-- 3. Review → Polish (Reviewer → Editor, vertical down) --><line x1="570" y1="224" x2="570" y2="256" stroke="#bfc0c0" stroke-width="1.2" stroke-dasharray="5,4" marker-end="url(#arrow)"/><!-- 4. Polish → Approve (within Editor) --><line x1="640" y1="280" x2="680" y2="280" stroke="#bfc0c0" stroke-width="1.2" marker-end="url(#arrow)"/>- <!-- 5. Approve → Build (Editor → CI/CD, coral handoff) -->- <line x1="750" y1="304" x2="720" y2="336" stroke="#f08a59" stroke-width="1.4" marker-end="url(#arrow-accent)"/>+ <!-- 5. Approve → Build (Editor → CI/CD, coral handoff, straight down) -->+ <line x1="720" y1="304" x2="720" y2="336" stroke="#f08a59" stroke-width="1.4" marker-end="url(#arrow-accent)"/><!-- 6. Build → Deploy (within CI/CD) --><line x1="760" y1="360" x2="800" y2="360" stroke="#bfc0c0" stroke-width="1.2" marker-end="url(#arrow)"/><!-- Arrow labels -->- <rect x="478" y="140" width="60" height="12" rx="2" fill="#2d3142"/>- <text x="508" y="150" fill="#bfc0c0" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.12em">HANDOFF</text>+ <rect x="528" y="140" width="60" height="12" rx="2" fill="#2d3142"/>+ <text x="558" y="150" fill="#bfc0c0" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.12em">HANDOFF</text>- <rect x="548" y="228" width="52" height="12" rx="2" fill="#393e53"/>- <text x="574" y="238" fill="#bfc0c0" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.12em">REVISE</text>+ <rect x="578" y="234" width="52" height="12" rx="2" fill="#393e53"/>+ <text x="604" y="244" fill="#bfc0c0" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.12em">REVISE</text>- <rect x="712" y="308" width="80" height="12" rx="2" fill="#2d3142"/>- <text x="752" y="318" fill="#f08a59" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.12em">DEPLOY TRIGGER</text>+ <rect x="728" y="314" width="80" height="12" rx="2" fill="#2d3142"/>+ <text x="768" y="324" fill="#f08a59" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.12em">DEPLOY TRIGGER</text><!-- Steps --><!-- Author: Draft MDX -->diff --git a/skills/diagram-design/assets/example-swimlane-full.html b/skills/diagram-design/assets/example-swimlane-full.htmlindex 1063832..ca2f793 100644--- a/skills/diagram-design/assets/example-swimlane-full.html+++ b/skills/diagram-design/assets/example-swimlane-full.html@@ -72,26 +72,26 @@<!-- Arrows (drawn first) --><!-- 1. Draft → Open PR (within Author) --><line x1="300" y1="120" x2="340" y2="120" stroke="#4f5d75" stroke-width="1.2" marker-end="url(#arrow)"/>- <!-- 2. Open PR → Review (Author → Reviewer handoff, diagonal down-right) -->- <line x1="460" y1="144" x2="500" y2="176" stroke="#4f5d75" stroke-width="1.2" marker-end="url(#arrow)"/>+ <!-- 2. Open PR → Review (Author → Reviewer handoff: right edge, one turn, down into Review's top) -->+ <path d="M 460,120 H 512 Q 520,120 520,128 V 176" fill="none" stroke="#4f5d75" stroke-width="1.2" marker-end="url(#arrow)"/><!-- 3. Review → Polish (Reviewer → Editor, vertical down) --><line x1="570" y1="224" x2="570" y2="256" stroke="#4f5d75" stroke-width="1.2" stroke-dasharray="5,4" marker-end="url(#arrow)"/><!-- 4. Polish → Approve (within Editor) --><line x1="640" y1="280" x2="680" y2="280" stroke="#4f5d75" stroke-width="1.2" marker-end="url(#arrow)"/>- <!-- 5. Approve → Build (Editor → CI/CD, coral handoff) -->- <line x1="750" y1="304" x2="720" y2="336" stroke="#eb6c36" stroke-width="1.4" marker-end="url(#arrow-accent)"/>+ <!-- 5. Approve → Build (Editor → CI/CD, coral handoff, straight down) -->+ <line x1="720" y1="304" x2="720" y2="336" stroke="#eb6c36" stroke-width="1.4" marker-end="url(#arrow-accent)"/><!-- 6. Build → Deploy (within CI/CD) --><line x1="760" y1="360" x2="800" y2="360" stroke="#4f5d75" stroke-width="1.2" marker-end="url(#arrow)"/><!-- Arrow labels -->- <rect x="478" y="140" width="60" height="12" rx="2" fill="#f5f5f5"/>- <text x="508" y="150" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.12em">HANDOFF</text>+ <rect x="528" y="140" width="60" height="12" rx="2" fill="#f5f5f5"/>+ <text x="558" y="150" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.12em">HANDOFF</text>- <rect x="548" y="228" width="52" height="12" rx="2" fill="#ececec"/>- <text x="574" y="238" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.12em">REVISE</text>+ <rect x="578" y="234" width="52" height="12" rx="2" fill="#ececec"/>+ <text x="604" y="244" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.12em">REVISE</text>- <rect x="712" y="308" width="80" height="12" rx="2" fill="#f5f5f5"/>- <text x="752" y="318" fill="#eb6c36" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.12em">DEPLOY TRIGGER</text>+ <rect x="728" y="314" width="80" height="12" rx="2" fill="#f5f5f5"/>+ <text x="768" y="324" fill="#eb6c36" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.12em">DEPLOY TRIGGER</text><!-- Steps --><!-- Author: Draft MDX -->diff --git a/skills/diagram-design/assets/example-swimlane.html b/skills/diagram-design/assets/example-swimlane.htmlindex f9e144c..2efea7d 100644--- a/skills/diagram-design/assets/example-swimlane.html+++ b/skills/diagram-design/assets/example-swimlane.html@@ -91,26 +91,26 @@<!-- Arrows (drawn first) --><!-- 1. Draft → Open PR (within Author) --><line x1="300" y1="120" x2="340" y2="120" stroke="#4f5d75" stroke-width="1.2" marker-end="url(#arrow)"/>- <!-- 2. Open PR → Review (Author → Reviewer handoff, diagonal down-right) -->- <line x1="460" y1="144" x2="500" y2="176" stroke="#4f5d75" stroke-width="1.2" marker-end="url(#arrow)"/>+ <!-- 2. Open PR → Review (Author → Reviewer handoff: right edge, one turn, down into Review's top) -->+ <path d="M 460,120 H 512 Q 520,120 520,128 V 176" fill="none" stroke="#4f5d75" stroke-width="1.2" marker-end="url(#arrow)"/><!-- 3. Review → Polish (Reviewer → Editor, vertical down) --><line x1="570" y1="224" x2="570" y2="256" stroke="#4f5d75" stroke-width="1.2" stroke-dasharray="5,4" marker-end="url(#arrow)"/><!-- 4. Polish → Approve (within Editor) --><line x1="640" y1="280" x2="680" y2="280" stroke="#4f5d75" stroke-width="1.2" marker-end="url(#arrow)"/>- <!-- 5. Approve → Build (Editor → CI/CD, coral handoff) -->- <line x1="750" y1="304" x2="720" y2="336" stroke="#eb6c36" stroke-width="1.4" marker-end="url(#arrow-accent)"/>+ <!-- 5. Approve → Build (Editor → CI/CD, coral handoff, straight down) -->+ <line x1="720" y1="304" x2="720" y2="336" stroke="#eb6c36" stroke-width="1.4" marker-end="url(#arrow-accent)"/><!-- 6. Build → Deploy (within CI/CD) --><line x1="760" y1="360" x2="800" y2="360" stroke="#4f5d75" stroke-width="1.2" marker-end="url(#arrow)"/><!-- Arrow labels -->- <rect x="478" y="140" width="60" height="12" rx="2" fill="#f5f5f5"/>- <text x="508" y="150" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.12em">HANDOFF</text>+ <rect x="528" y="140" width="60" height="12" rx="2" fill="#f5f5f5"/>+ <text x="558" y="150" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.12em">HANDOFF</text>- <rect x="548" y="228" width="52" height="12" rx="2" fill="#ececec"/>- <text x="574" y="238" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.12em">REVISE</text>+ <rect x="578" y="234" width="52" height="12" rx="2" fill="#ececec"/>+ <text x="604" y="244" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.12em">REVISE</text>- <rect x="712" y="308" width="80" height="12" rx="2" fill="#f5f5f5"/>- <text x="752" y="318" fill="#eb6c36" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.12em">DEPLOY TRIGGER</text>+ <rect x="728" y="314" width="80" height="12" rx="2" fill="#f5f5f5"/>+ <text x="768" y="324" fill="#eb6c36" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.12em">DEPLOY TRIGGER</text><!-- Steps --><!-- Author: Draft MDX -->diff --git a/skills/diagram-design/references/primitives-core.md b/skills/diagram-design/references/primitives-core.mdindex 9180f46..13b710e 100644--- a/skills/diagram-design/references/primitives-core.md+++ b/skills/diagram-design/references/primitives-core.md@@ -53,7 +53,7 @@ Don't use the dot pattern when the diagram sits inside a product page, slide, orThese six rules are **non-negotiable**. Run the pre-output checklist (SKILL.md §9) to verify before producing any diagram.-1. **Rounded right-angle (orthogonal) connectors are mandatory.** Never use diagonal `<line>` or straight slanted paths between nodes that don't share an x or y axis. Every bend must be a quarter-arc with `r=8` (or `r=6` minimum for tight layouts). See `references/type-architecture.md` for the elbow-path formula. Reserve plain straight `<line>` only for connections whose endpoints share the same x or y coordinate. Diagonal connectors are an automatic fail.+1. **Rounded right-angle (orthogonal) connectors are mandatory.** Never use diagonal `<line>` or straight slanted paths between nodes that don't share an x or y axis. Every bend must be a quarter-arc with `r=8` (or `r=6` minimum for tight layouts). See `references/type-architecture.md` for the elbow-path formula. Reserve plain straight `<line>` only for connections whose endpoints share the same x or y coordinate. Diagonal connectors are an automatic fail. A connector also leaves and enters each box perpendicular to the edge it touches, at a port on the straight part of that edge at least 8px from a corner. A horizontal segment that starts on a top or bottom edge, or a vertical one that starts on a side edge, runs along the border behind the node fill and reads as an arrow coming out of the corner. From a repository checkout, `python3 <repo-root>/scripts/verify-geometry.py <file>` reports diagonal connectors, border-riding segments, and corner ports.2. **Label-to-connector margin: 6–10px gap, always.** A label must never sit *on* its arrow — the connector must remain visible. Place the label centered above (or beside, for vertical segments) the line with a **minimum 6px gap** between the bottom of the label's mask rect and the connector stroke. The opaque mask rect prevents the arrow from bleeding through, but the *visible* gap between mask edge and line preserves the reader's ability to trace the connection. If the label is large enough that 6px feels cramped, push it to 8–10px. Never let the mask rect touch or overlap the stroke.diff --git a/skills/diagram-design/references/type-architecture.md b/skills/diagram-design/references/type-architecture.mdindex e33dc3f..e7c62ff 100644--- a/skills/diagram-design/references/type-architecture.md+++ b/skills/diagram-design/references/type-architecture.md@@ -21,15 +21,17 @@Flip the vertical signs for right+up. Use a plain `<line>` only when endpoints share the same x or y. Arrow labels sit on the vertical segment, centered horizontally on `mid` and vertically between the two corners.-**Port selection — use top/bottom for vertical connectors.** When the destination is noticeably above or below the source, exit the source's top/bottom edge and enter the destination's top/bottom edge. Use a single-bend L-path (horizontal → corner → vertical into the node), not a left/right side port:+**Port selection for vertical connectors.** When the destination is noticeably above or below the source, enter the destination through its top or bottom edge. Use a single-bend L-path: leave the source through the side edge that faces the destination's column, run horizontally, turn once, and run vertically into the destination:```svg-<!-- entering a node from its bottom (destination above source) -->-<path d="M x1,y_src H x2-8 Q x2,y_src x2,y_src-8 V y_dst"+<!-- destination above source: leave the source's right edge at (x_right, y_port), enter the destination's bottom edge at x2 -->+<path d="M x_right,y_port H x2-8 Q x2,y_port x2,y_port-8 V y_dst"fill="none" stroke="…" stroke-width="1.2" marker-end="url(#arrow)"/>```-Reserve left/right ports for connections that travel primarily horizontally. Entering a node from the side on a mainly-vertical path looks like the arrow punctures the node face rather than arriving from above or below.+Every segment leaves its box perpendicular to the edge it starts on. Never start a horizontal segment on a top or bottom edge: it runs along the border, hidden behind the node fill, and the arrow looks like it grows out of the corner. When two of these connectors leave the same side edge, fan their ports (primitives-core.md rule 4) and keep each port at least 8px from a corner so it never lands on the corner radius.++Reserve left/right ports on the destination for connections that travel primarily horizontally. Entering a node from the side on a mainly-vertical path looks like the arrow punctures the node face rather than arriving from above or below.**Dashed paths — same routing rules.** Optional, return, async, and passive flows use `stroke-dasharray="4,3"` and a lighter stroke weight (`stroke-width="1"`). Apply the **same orthogonal routing, port-selection, and bridge/hop rules** as solid paths — the dash pattern only communicates semantic weight, not a different routing grammar. When a dashed path and a solid path must cross, bridge the dashed one (it is by definition the less important connection).