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(verify-geometry): parse compact arc flags, hold ports to 12px, catch stacked trunks
Cathryn Laverydab0b924e930
diff --git a/.github/pr-visual-proof/279/high-level-vertical.png b/.github/pr-visual-proof/279/high-level-vertical.pngnew file mode 100644index 0000000..ef87ea3Binary files /dev/null and b/.github/pr-visual-proof/279/high-level-vertical.png differdiff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex dd15ca1..849e16f 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -61,7 +61,7 @@ Every validation gate below must pass before a PR is ready. They also run automa| README WebP previews match their PNGs, manifest, dimensions, and full-size links | `python3 scripts/test-build-readme-thumbs.py && python3 scripts/build-readme-thumbs.py --check` (requires `Pillow==12.1.1`) || Packaged output self-check behaves (pass + adversarial cases) | `python3 scripts/test-self-check.py` || Standalone SVG export carries CSS and namespaces defs IDs | `python3 scripts/test-export-svg-standalone.py` |-| Label masks are never clipped by a node painted after them; connectors stay orthogonal, off node borders and corners, and on their own ports | `python3 scripts/verify-geometry.py --all` |+| Label masks are never clipped by a node painted after them; connectors stay orthogonal, off node borders, corners, and each other, and on their own ports | `python3 scripts/verify-geometry.py --all` || Label geometry checker behaves (pass + adversarial cases) | `python3 scripts/test-verify-geometry.py` || Architecture delta snapshots preserve identity, ledger coverage, signatures, positions, and relationship endpoints | `python3 scripts/verify-architecture-delta.py --all` || Architecture delta checker behaves (pass + adversarial cases) | `python3 scripts/test-verify-architecture-delta.py` |@@ -205,7 +205,7 @@ python3 scripts/test-plugin-package.py \- **`verify-bump.py`:** a vertex sits off the rank grid the figure itself declares, a snapshot's ranks are not a permutation of 1..N, a segment curves or arrives by a relative command, or an endpoint label is missing a coordinate, drawn inboard of the end it names, or off the gutter its peers share. Fix the geometry or the declaration, never the label — and never nudge a vertex off its row to dodge a label collision, because a rank between two ranks is not a rank.- **`verify-beeswarm.py`:** a dot is drawn off the shared value scale its peers describe, two dots declaring one value sit at two positions, a pair overprints instead of dodging, a second radius or a second non-focal fill appears, a second dot wears the accent, two dots share a `data-name` (or one is empty), anything positions a mark from CSS (`transform`, `translate`/`rotate`/`scale`, a geometry property, a motion path) by any carrier — attribute, inline `style`, or `<style>` rule, or a bound label/tick disagrees with the mark it names. Fix the geometry, never the binding — and never move a dot along the value axis to open up space, because crowding is data and the dodge is the only honest resolution.- **`verify-skin-polarity.py`:** a legend key or caption names the ramp's direction by lightness (`darker is larger`) in a file whose ramp composites the other way. `ink` is a role, not a colour — it resolves near-black on light paper and near-white on dark — so one set of opacities runs darker as it strengthens in the light skin and lighter in the dark one. Name the direction by contrast against the paper (`stronger contrast is larger`), which survives the skin swap, and ship the same sentence in every variant; never invert the word for one file. The gate also fails closed on a claim it cannot substantiate — no resolvable paper colour, fewer than three rank-bearing ramp members, or a ramp that is not strictly ordered — and on wording it cannot parse: a tone word within six words of a magnitude word that no supported sentence form binds. Rephrase that as `<tone> <is|means|represents> <magnitude>` (`stronger contrast is larger`), because a claim the gate cannot read is a claim nothing checks.-- **`verify-geometry.py`:** a label mask overlaps a node declared later in the document, so the node fill clips the label at render time. Move the label to a free segment of its connector — keep the 6–10px gap from the stroke required by SKILL.md §6, and do not shrink the mask to sneak under the check. It also fails an arrowed connector with a diagonal straight segment, a segment lying on a node's border, an endpoint within 8px of a node corner, or two connectors leaving (or arriving at) one node through the same point. Reroute the connector so it leaves each box perpendicular to the edge it starts on, from its own port; do not drop the marker or the node stroke to get past the check.+- **`verify-geometry.py`:** a label mask overlaps a node declared later in the document, so the node fill clips the label at render time. Move the label to a free segment of its connector — keep the 6–10px gap from the stroke required by SKILL.md §6, and do not shrink the mask to sneak under the check. It also fails an arrowed connector with a diagonal straight segment, a segment lying on a node's border, an endpoint within 8px of a node corner, a port closer to another on the same edge than rule 4 allows (12px, or 8px on an edge under 48px), a straight run stacked on another connector, or path data it cannot parse. Reroute the connector so it leaves each box perpendicular to the edge it starts on, from its own port; do not drop the marker or the node stroke to get past the check.- **`verify-architecture-delta.py`:** a stable ID, snapshot membership, status, signature, position, endpoint, or ledger target disagrees with the declared migration. Follow `type-architecture-delta.md`: record every changed object in the center ledger, retain unchanged positions on matching grids, and distinguish CHANGED, MOVED, and REWIRED by what actually differs. Fix the diagram and metadata together; never suppress the ledger entry to hide an unaccounted change.- **`verify-exploded.py`:** a part's silhouette is off the projection of the box it declares, a level sits at two heights, the gaps differ or fall under max(0.5 x top-face height, 3 x part thickness), a leader bends, starts off its part, or crosses another part, labels crowd or leave the column, or an animated lift disagrees with the geometry. Change the model in `scripts/build-exploded-examples.py` and rebuild; never nudge a drawn coordinate, and never shrink a gap to fit the canvas.- **`verify-axonometric-plan.py`:** a box's silhouette is off the projection of its declared footprint, a box stands outside the plate, floats above it, or shares floor with another, a box is painted after one in front of it, or a tag is off its plan point, stands on a room or roof it does not name, overlaps another tag, runs past two words, or is missing or doubled for a room or building. Change the plan in `scripts/build-axonometric-plan-examples.py` and rebuild; move a tag to open floor rather than shrinking it.diff --git a/README.md b/README.mdindex 839010b..216a8cf 100644--- a/README.md+++ b/README.md@@ -536,7 +536,7 @@ If you touch the Excalidraw import path, `python3 scripts/verify-excalidraw-impopass — it covers scene parsing, bound labels, groups and frames, adversarial labels,trust-boundary behavior, resource caps, named failures, and reference/command wiring.-Label placement is gated geometrically: `python3 scripts/verify-geometry.py --all` fails CI when a label mask overlaps a node declared later in the document, because the node fill would clip the text at render time. The same script fails diagonal connectors, connectors that run along a node's border or attach at its corner, and two arrows forced through one port. `python3 scripts/test-verify-geometry.py` keeps that checker honest in both directions.+Label placement is gated geometrically: `python3 scripts/verify-geometry.py --all` fails CI when a label mask overlaps a node declared later in the document, because the node fill would clip the text at render time. The same script fails diagonal connectors, connectors that run along a node's border or attach at its corner, ports crowded closer than 12px, and arrows stacked on one trunk. `python3 scripts/test-verify-geometry.py` keeps that checker honest in both directions.Diagrams using the traceable block decomposition pattern get a structural gate on top of that: `python3 scripts/verify-block-registry.py --all` fails CI on a duplicate `data-block-id`, a `data-block-parent` that doesn't resolve to another block in the same file, a cycle in the parent chain, a blank `data-block-id`, or a missing or blank `data-block-name` — the same defects that would make `--registry`'s exported JSON (see [`export-registry.md`](skills/diagram-design/references/export-registry.md)) misrepresent the tree it claims to describe. `python3 scripts/test-verify-block-registry.py` keeps that checker honest in both directions.Treemaps get a second geometric gate, because their whole claim is that area *is* the encoding: `python3 scripts/verify-treemap.py --all` fails CI when a cell's share of the drawn area doesn't match the value printed inside it, or when a label overruns the cell it names. It measures area error as a *relative* figure — an absolute one passes exactly the small cells most likely to be wrong. `python3 scripts/test-verify-treemap.py` keeps it honest in both directions.Waterfalls get the same treatment, because their whole claim is that the running total is conserved: `python3 scripts/verify-waterfall.py --all` fails CI when the declared start, deltas, and end don't reconcile, when a bridge bar is drawn anywhere other than its two running levels on the shared scale, when a carry connector is missing or sits at the wrong level, when a delta prints without an explicit sign, or when the two directions collapse into one fill. `python3 scripts/test-verify-waterfall.py` keeps it honest in both directions.diff --git a/scripts/test-verify-geometry.py b/scripts/test-verify-geometry.pyindex aead6d2..3461263 100644--- a/scripts/test-verify-geometry.py+++ b/scripts/test-verify-geometry.py@@ -55,6 +55,16 @@ def main() -> int:else:print(f"OK: {label}")+ def check_message(label: str, source: str, expect_text: str) -> None:+ with tempfile.TemporaryDirectory() as scratch:+ candidate = Path(scratch) / "candidate.html"+ candidate.write_text(source, encoding="utf-8")+ findings = module.check(candidate)+ if len(findings) != 1 or expect_text not in findings[0]:+ failures.append(f"{label}: expected one finding naming {expect_text!r}, got {findings}")+ else:+ print(f"OK: {label}")+def check_file(label: str, path: Path, expect_findings: int) -> None:findings = module.check(path)if len(findings) != expect_findings:@@ -159,13 +169,14 @@ def main() -> int:document(f'<line x1="40" y1="60" x2="100" y2="60" {arrow}/>' + stroked),1,)+ # A fork shares the port and stacks its first 20px: both rules fire.check("two connectors forking from one port",document(f'<path d="M 260,84 H 300" {arrow}/>'f'<path d="M 260,84 H 280 Q 288,84 288,92 V 120" {arrow}/>' + stroked),- 1,+ 2,)# One arrow lands where the next leaves: a chain the reader follows in order.check(@@ -192,6 +203,44 @@ def main() -> int:),0,)+ # Compact arc flags (`0120 20` = flags 0 and 1, then 20 20) must parse, so a+ # diagonal after the arc is still found rather than the path being dropped.+ check_message(+ "diagonal after a compact-flag arc is found",+ document(f'<path d="M 20,20 A 8 8 0 0128 28 L 60 60" {arrow}/>'),+ "diagonal segment",+ )+ check_message(+ "unparseable arrowed path fails closed",+ document(f'<path d="M 10 10 L 20" {arrow}/>'),+ "cannot parse",+ )+ # Rule 4: 12px between ports on a normal edge, 8px on a very small box.+ check(+ "ports 10px apart on a 64px edge",+ document(+ f'<path d="M 260,80 H 300" {arrow}/><path d="M 260,90 H 280 Q 288,90 288,98 V 140" {arrow}/>'+ + stroked+ ),+ 1,+ )+ check(+ "ports 10px apart on a 40px edge",+ document(+ f'<path d="M 260,72 H 300" {arrow}/><path d="M 260,82 H 280 Q 288,82 288,90 V 140" {arrow}/>'+ '<rect x="100" y="60" width="160" height="40" rx="6" fill="#fff" stroke="#2d3142"/>'+ ),+ 0,+ )+ # Rule 3: two sources sharing one trunk stack their strokes.+ check(+ "two connectors stacked on one trunk",+ document(+ f'<path d="M 20,200 H 52 Q 60,200 60,192 V 100" {arrow}/>'+ f'<path d="M 20,240 H 52 Q 60,240 60,232 V 120" {arrow}/>'+ ),+ 1,+ )# Coordinates under a rotate are not canvas space; skip rather than misjudge.check("connector under a non-translate transform is skipped",diff --git a/scripts/verify-geometry.py b/scripts/verify-geometry.pyindex e6adf76..90718d5 100644--- a/scripts/verify-geometry.py+++ b/scripts/verify-geometry.py@@ -28,7 +28,7 @@ Shape heuristics follow the shipped templates:It also checks connector routing (references/primitives-core.md rule 1). Aconnector is a `<path>` or `<line>` that carries an arrow marker; a node, forthis check, is a stroked `<rect>` at least 60x40, so unstroked quadrant fills-and chart bars stay out of it. Four shapes are reported:+and chart bars stay out of it. Five shapes are reported:* A straight segment that is neither horizontal nor vertical. Loop write-backspokes (`class="spoke"`) are the documented radial exception and skipped.@@ -36,9 +36,14 @@ and chart bars stay out of it. Four shapes are reported:the node fill, so the arrow appears to start at the corner.* A connector endpoint within 8px of a node corner, where the rounded cornermakes the port ambiguous.-* Two connectors leaving (or two arriving at) the same node less than 8px- apart, the hard minimum in primitives-core.md rule 4, so neither arrow can be- traced alone. A head-to-tail chain joint is allowed.+* Two connectors leaving (or two arriving at) the same edge of a node closer+ than primitives-core.md rule 4 allows: 12px, or 8px on an edge shorter than+ 48px. A head-to-tail chain joint is allowed.+* Two connectors whose straight segments lie on the same line for more than+ 4px, the stacked trunk primitives-core.md rule 3 forbids.++An arrowed path whose data the checker cannot parse is reported too, so a+connector never passes because nothing read it.Usage:python3 scripts/verify-geometry.py --all@@ -131,9 +136,11 @@ TAG_RE = re.compile(TRANSLATE_RE = re.compile(r"^\s*translate\(\s*([-+]?[\d.]+)(?:[\s,]+([-+]?[\d.]+))?\s*\)\s*$")-PATH_TOKEN_RE = re.compile(- r"[MmLlHhVvQqCcSsTtAaZz]|[-+]?(?:\d+\.?\d*|\.\d+)(?:[eE][-+]?\d+)?"-)+PATH_COMMAND_RE = re.compile(r"[\s,]*([MmLlHhVvQqCcSsTtAaZz])")+PATH_NUMBER_RE = re.compile(r"[\s,]*([-+]?(?:\d+\.?\d*|\.\d+)(?:[eE][-+]?\d+)?)")+# Arc flags are one character and may run into the next number: `A 8 8 0 0120 20`.+PATH_FLAG_RE = re.compile(r"[\s,]*([01])")+PATH_END_RE = re.compile(r"[\s,]*$")# Parameters each path command consumes per repetition.PATH_ARITY = {"M": 2, "L": 2, "H": 1, "V": 1, "Q": 4, "T": 2, "C": 6, "S": 4, "A": 7, "Z": 0}@@ -142,7 +149,9 @@ BORDER_TOLERANCE = 1.0 # a segment this close to a node edge lies on itBORDER_MIN_RUN = 4.0 # shorter shared runs are a port touching the edge, not a ridePORT_TOLERANCE = 4.0 # an endpoint this close to a node outline attaches to itCORNER_CLEARANCE = 8.0 # ports keep this far from a corner (primitives-core rule 1)-SHARED_PORT_MIN = 8.0 # two ports on one node keep at least this far apart (rule 4)+SHARED_PORT_MIN = 12.0 # two ports on one edge keep at least this far apart (rule 4)+SMALL_PORT_MIN = 8.0 # rule 4's floor for very small boxes...+SMALL_EDGE = 48.0 # ...meaning an edge shorter than thisdef attribute(attrs: str, name: str) -> str | None:@@ -164,31 +173,30 @@ Segment = tuple[str, float, float, float, float] # (kind, x1, y1, x2, y2)def path_segments(d: str) -> list[Segment] | None:"""Flatten a path into straight and curved segments, or None if unparseable."""- tokens = PATH_TOKEN_RE.findall(d)segments: list[Segment] = []x = y = start_x = start_y = 0.0command = ""- index = 0- while index < len(tokens):- if tokens[index].isalpha():- command = tokens[index]- index += 1+ pos = 0+ while not PATH_END_RE.match(d, pos):+ match = PATH_COMMAND_RE.match(d, pos)+ if match:+ command, pos = match.group(1), match.end()if command in "Zz":if (x, y) != (start_x, start_y):segments.append(("line", x, y, start_x, start_y))x, y = start_x, start_ycontinue- if not command:- return None+ elif not command or command in "Zz":+ return None # numbers before the first command or after a closepathupper = command.upper()- arity = PATH_ARITY.get(upper)- if not arity or index + arity > len(tokens):- return None # unknown command, numbers after Z, or truncated arguments- try:- args = [float(token) for token in tokens[index : index + arity]]- except ValueError:- return None- index += arity+ args: list[float] = []+ for slot in range(PATH_ARITY[upper]):+ pattern = PATH_FLAG_RE if upper == "A" and slot in (3, 4) else PATH_NUMBER_RE+ match = pattern.match(d, pos)+ if not match:+ return None # truncated arguments or an unexpected character+ args.append(float(match.group(1)))+ pos = match.end()relative = command.islower()if upper == "H":nx, ny = (x + args[0] if relative else args[0]), y@@ -257,10 +265,14 @@ def shifted(segments: list[Segment], frame: Offset) -> list[Segment]:return [(kind, x1 + dx, y1 + dy, x2 + dx, y2 + dy) for kind, x1, y1, x2, y2 in segments]-def connectors(source: str) -> list[tuple[int, str, list[Segment]]]:- """Return (line number, short label, segments) for every arrowed connector."""+def connectors(source: str) -> list[tuple[int, str, list[Segment] | None]]:+ """Return (line number, short label, segments) for every arrowed connector.++ Segments are None for a path the parser cannot read, so the caller can+ fail closed instead of passing a connector nothing checked.+ """- found: list[tuple[int, str, list[Segment]]] = []+ found: list[tuple[int, str, list[Segment] | None]] = []for tag, attrs, start, frame in shapes(source):if tag == "rect" or frame is None:continue@@ -280,7 +292,9 @@ def connectors(source: str) -> list[tuple[int, str, list[Segment]]]:d = attribute(attrs, "d") or ""segments = path_segments(d)label = f'<path d="{d if len(d) <= 48 else d[:45] + "..."}">'- if segments:+ if segments is None:+ found.append((line, label, None))+ elif segments:found.append((line, label, shifted(segments, frame)))return found@@ -327,6 +341,21 @@ def attached(px: float, py: float, node: Rect) -> bool:return max(outside_x, outside_y) <= PORT_TOLERANCE and inside <= PORT_TOLERANCE+def port_edge(px: float, py: float, node: Rect) -> tuple[str, float, float]:+ """Return (side, edge length, position along the edge) for an attached port."""++ distances = {+ "top": abs(py - node.y),+ "bottom": abs(py - node.bottom),+ "left": abs(px - node.x),+ "right": abs(px - node.right),+ }+ side = min(distances, key=distances.__getitem__)+ if side in {"top", "bottom"}:+ return side, node.w, px+ return side, node.h, py++def near_corner(px: float, py: float, node: Rect) -> tuple[float, float] | None:if not attached(px, py, node):return None@@ -341,8 +370,16 @@ def check_connectors(path: Path, source: str) -> list[str]:nodes = stroked_nodes(source)findings: list[str] = []ports: list[tuple[int, float, float, int, str, str, int]] = []+ parsed: list[tuple[int, str, list[Segment]]] = []for ident, (line, label, segments) in enumerate(connectors(source)):where = f"{path.name}:{line}: connector {label}"+ if segments is None:+ findings.append(+ f"{where} has path data the checker cannot parse"+ f" - write it with absolute M/L/H/V/Q/C/A commands"+ )+ continue+ parsed.append((line, label, segments))for kind, x1, y1, x2, y2 in segments:if kind == "line" and abs(x1 - x2) > AXIS_TOLERANCE and abs(y1 - y2) > AXIS_TOLERANCE:findings.append(@@ -377,6 +414,43 @@ def check_connectors(path: Path, source: str) -> list[str]:if attached(px, py, node):ports.append((index, px, py, line, label, role, ident))findings.extend(shared_ports(path, nodes, ports))+ findings.extend(stacked_connectors(path, parsed))+ return findings+++def collinear_overlap(a: Segment, b: Segment) -> float:+ """Length two axis-aligned straight segments share on one line, else 0."""++ if a[0] != "line" or b[0] != "line":+ return 0.0+ _, ax1, ay1, ax2, ay2 = a+ _, bx1, by1, bx2, by2 = b+ a_flat, b_flat = abs(ay1 - ay2) <= AXIS_TOLERANCE, abs(by1 - by2) <= AXIS_TOLERANCE+ a_tall, b_tall = abs(ax1 - ax2) <= AXIS_TOLERANCE, abs(bx1 - bx2) <= AXIS_TOLERANCE+ if a_flat and b_flat and abs(ay1 - by1) <= BORDER_TOLERANCE:+ return min(max(ax1, ax2), max(bx1, bx2)) - max(min(ax1, ax2), min(bx1, bx2))+ if a_tall and b_tall and abs(ax1 - bx1) <= BORDER_TOLERANCE:+ return min(max(ay1, ay2), max(by1, by2)) - max(min(ay1, ay2), min(by1, by2))+ return 0.0+++def stacked_connectors(+ path: Path, parsed: list[tuple[int, str, list[Segment]]]+) -> list[str]:+ """Report two connectors drawn on top of each other (primitives-core rule 3)."""++ findings: list[str] = []+ for i, (line_a, label_a, segments_a) in enumerate(parsed):+ for line_b, label_b, segments_b in parsed[i + 1 :]:+ shared = max(+ (collinear_overlap(a, b) for a in segments_a for b in segments_b), default=0.0+ )+ if shared > BORDER_MIN_RUN:+ findings.append(+ f"{path.name}:{line_b}: connector {label_b} runs on top of {label_a}"+ f" (line {line_a}) for {shared:g}px - offset one route by at least"+ f" {SHARED_PORT_MIN:g}px so each arrow stays traceable"+ )return findings@@ -395,12 +469,18 @@ def shared_ports(for node_b, bx, by, line_b, label_b, role_b, id_b in ports[i + 1 :]:if node_a != node_b or id_a == id_b or role_a != role_b:continue- if max(abs(ax - bx), abs(ay - by)) < SHARED_PORT_MIN:- node = nodes[node_a]+ node = nodes[node_a]+ side_a, length, along_a = port_edge(ax, ay, node)+ side_b, _, along_b = port_edge(bx, by, node)+ if side_a != side_b:+ continue+ minimum = SMALL_PORT_MIN if length < SMALL_EDGE else SHARED_PORT_MIN+ gap = abs(along_a - along_b)+ if gap < minimum:findings.append(- f"{path.name}:{line_b}: connector {label_b} shares the {bx:g},{by:g} port on"- f" node {node} (line {node.line}) with {label_a} at line {line_a}"- f" - give each connector its own attach point, >={SHARED_PORT_MIN:g}px apart"+ f"{path.name}:{line_b}: connector {label_b} attaches {gap:g}px from"+ f" {label_a} (line {line_a}) on the {side_a} edge of node {node}"+ f" (line {node.line}) - fan the ports at least {minimum:g}px apart")return findingsdiff --git a/skills/diagram-design/assets/example-high-level-vertical-dark.html b/skills/diagram-design/assets/example-high-level-vertical-dark.htmlindex 7b7e8c1..a1cd565 100644--- a/skills/diagram-design/assets/example-high-level-vertical-dark.html+++ b/skills/diagram-design/assets/example-high-level-vertical-dark.html@@ -103,17 +103,17 @@<rect x="4" y="388" width="960" height="40" rx="6" fill="rgba(217,122,120,0.12)" stroke="rgba(217,122,120,0.45)" stroke-width="0.8"/><!-- Arrows (drawn before nodes) -->- <path d="M 184,92 H 196 Q 200,92 200,96 V 128 Q 200,132 204,132 H 212" fill="none" stroke="#bfc0c0" stroke-width="1" marker-end="url(#arrow)"/>- <path d="M 184,172 H 196 Q 200,172 200,168 V 156 Q 200,152 204,152 H 212" fill="none" stroke="#bfc0c0" stroke-width="1" marker-end="url(#arrow)"/>- <path d="M 184,252 H 196 Q 200,252 200,248 V 176 Q 200,172 204,172 H 212" fill="none" stroke="#bfc0c0" stroke-width="1" marker-end="url(#arrow)"/>- <path d="M 184,332 H 196 Q 200,332 200,328 V 192 Q 200,188 204,188 H 212" fill="none" stroke="#bfc0c0" stroke-width="1" marker-end="url(#arrow)"/>+ <path d="M 168,124 Q 168,132 176,132 H 212" fill="none" stroke="#bfc0c0" stroke-width="1" marker-end="url(#arrow)"/>+ <path d="M 184,172 H 212" fill="none" stroke="#bfc0c0" stroke-width="1" marker-end="url(#arrow)"/>+ <path d="M 184,252 H 228 Q 236,252 236,244 V 200" fill="none" stroke="#bfc0c0" stroke-width="1" marker-end="url(#arrow)"/>+ <path d="M 184,332 H 252 Q 260,332 260,324 V 200" fill="none" stroke="#bfc0c0" stroke-width="1" marker-end="url(#arrow)"/><line x1="288" y1="96" x2="288" y2="120" stroke="#bfc0c0" stroke-width="1" stroke-dasharray="4,3" marker-end="url(#arrow-sm)"/><line x1="480" y1="96" x2="480" y2="120" stroke="#bfc0c0" stroke-width="1" stroke-dasharray="4,3" marker-end="url(#arrow-sm)"/><line x1="672" y1="96" x2="672" y2="120" stroke="#bfc0c0" stroke-width="1" stroke-dasharray="4,3" marker-end="url(#arrow-sm)"/>- <line x1="364" y1="164" x2="404" y2="164" stroke="#bfc0c0" stroke-width="1" marker-end="url(#arrow)"/>- <path d="M 364,156 H 384 Q 388,156 388,164 V 248 Q 388,256 396,256 H 404" fill="none" stroke="#f08a59" stroke-width="1.2" marker-end="url(#arrow-accent)"/>+ <line x1="364" y1="148" x2="404" y2="148" stroke="#bfc0c0" stroke-width="1" marker-end="url(#arrow)"/>+ <path d="M 364,176 H 380 Q 388,176 388,184 V 248 Q 388,256 396,256 H 404" fill="none" stroke="#f08a59" stroke-width="1.2" marker-end="url(#arrow-accent)"/><line x1="480" y1="200" x2="480" y2="216" stroke="rgba(245,245,245,0.30)" stroke-width="1" stroke-dasharray="4,3" marker-end="url(#arrow-dim)"/>diff --git a/skills/diagram-design/assets/example-high-level-vertical-full.html b/skills/diagram-design/assets/example-high-level-vertical-full.htmlindex e94366e..d13ff0f 100644--- a/skills/diagram-design/assets/example-high-level-vertical-full.html+++ b/skills/diagram-design/assets/example-high-level-vertical-full.html@@ -84,15 +84,15 @@<rect x="4" y="388" width="960" height="40" rx="6" fill="rgba(184,84,80,0.06)" stroke="rgba(184,84,80,0.35)" stroke-width="0.8"/><!-- Arrows -->- <path d="M 184,92 H 196 Q 200,92 200,96 V 128 Q 200,132 204,132 H 212" fill="none" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/>- <path d="M 184,172 H 196 Q 200,172 200,168 V 156 Q 200,152 204,152 H 212" fill="none" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/>- <path d="M 184,252 H 196 Q 200,252 200,248 V 176 Q 200,172 204,172 H 212" fill="none" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/>- <path d="M 184,332 H 196 Q 200,332 200,328 V 192 Q 200,188 204,188 H 212" fill="none" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/>+ <path d="M 168,124 Q 168,132 176,132 H 212" fill="none" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/>+ <path d="M 184,172 H 212" fill="none" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/>+ <path d="M 184,252 H 228 Q 236,252 236,244 V 200" fill="none" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/>+ <path d="M 184,332 H 252 Q 260,332 260,324 V 200" fill="none" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/><line x1="288" y1="96" x2="288" y2="120" stroke="#4f5d75" stroke-width="1" stroke-dasharray="4,3" marker-end="url(#arrow-sm)"/><line x1="480" y1="96" x2="480" y2="120" stroke="#4f5d75" stroke-width="1" stroke-dasharray="4,3" marker-end="url(#arrow-sm)"/><line x1="672" y1="96" x2="672" y2="120" stroke="#4f5d75" stroke-width="1" stroke-dasharray="4,3" marker-end="url(#arrow-sm)"/>- <line x1="364" y1="164" x2="404" y2="164" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/>- <path d="M 364,156 H 384 Q 388,156 388,164 V 248 Q 388,256 396,256 H 404" fill="none" stroke="#eb6c36" stroke-width="1.2" marker-end="url(#arrow-accent)"/>+ <line x1="364" y1="148" x2="404" y2="148" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/>+ <path d="M 364,176 H 380 Q 388,176 388,184 V 248 Q 388,256 396,256 H 404" fill="none" stroke="#eb6c36" stroke-width="1.2" marker-end="url(#arrow-accent)"/><line x1="480" y1="200" x2="480" y2="216" stroke="rgba(45,49,66,0.30)" stroke-width="1" stroke-dasharray="4,3" marker-end="url(#arrow-dim)"/><path d="M 556,256 H 576 Q 580,256 580,248 V 168 Q 580,160 588,160 H 596" fill="none" stroke="#eb6c36" stroke-width="1.2" marker-end="url(#arrow-accent)"/><line x1="748" y1="160" x2="790" y2="160" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/>diff --git a/skills/diagram-design/assets/example-high-level-vertical.html b/skills/diagram-design/assets/example-high-level-vertical.htmlindex 3b23830..499ecbe 100644--- a/skills/diagram-design/assets/example-high-level-vertical.html+++ b/skills/diagram-design/assets/example-high-level-vertical.html@@ -125,21 +125,21 @@ARROWS (drawn before nodes — z-order rule)═══════════════════════════════════════════ -->- <!-- Sources → NiFi (staggered entry on NiFi left edge x=212; entry_y = 132,152,172,188) -->- <path d="M 184,92 H 196 Q 200,92 200,96 V 128 Q 200,132 204,132 H 212" fill="none" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/>- <path d="M 184,172 H 196 Q 200,172 200,168 V 156 Q 200,152 204,152 H 212" fill="none" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/>- <path d="M 184,252 H 196 Q 200,252 200,248 V 176 Q 200,172 204,172 H 212" fill="none" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/>- <path d="M 184,332 H 196 Q 200,332 200,328 V 192 Q 200,188 204,188 H 212" fill="none" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/>+ <!-- Sources → NiFi: PostgreSQL and SFTP enter the left edge (y=132, 172); Web forms and Legacy rise into the bottom edge (x=236, 260) -->+ <path d="M 168,124 Q 168,132 176,132 H 212" fill="none" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/>+ <path d="M 184,172 H 212" fill="none" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/>+ <path d="M 184,252 H 228 Q 236,252 236,244 V 200" fill="none" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/>+ <path d="M 184,332 H 252 Q 260,332 260,324 V 200" fill="none" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/><!-- Airflow bar → NiFi, Trino, Notebooks (trigger drops at each node's cx, from bar.bottom=96 to node.top=120) --><line x1="288" y1="96" x2="288" y2="120" stroke="#4f5d75" stroke-width="1" stroke-dasharray="4,3" marker-end="url(#arrow-sm)"/><line x1="480" y1="96" x2="480" y2="120" stroke="#4f5d75" stroke-width="1" stroke-dasharray="4,3" marker-end="url(#arrow-sm)"/><line x1="672" y1="96" x2="672" y2="120" stroke="#4f5d75" stroke-width="1" stroke-dasharray="4,3" marker-end="url(#arrow-sm)"/>- <!-- NiFi → Trino (secondary, straight at cy=164) -->- <line x1="364" y1="164" x2="404" y2="164" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/>- <!-- NiFi → MinIO (PRIMARY accent — trunk at boundary x=388, drop to MinIO cy=256) -->- <path d="M 364,156 H 384 Q 388,156 388,164 V 248 Q 388,256 396,256 H 404" fill="none" stroke="#eb6c36" stroke-width="1.2" marker-end="url(#arrow-accent)"/>+ <!-- NiFi → Trino (secondary, straight at y=148) -->+ <line x1="364" y1="148" x2="404" y2="148" stroke="#4f5d75" stroke-width="1" marker-end="url(#arrow)"/>+ <!-- NiFi → MinIO (PRIMARY accent — own port at y=176, trunk at boundary x=388, drop to MinIO cy=256) -->+ <path d="M 364,176 H 380 Q 388,176 388,184 V 248 Q 388,256 396,256 H 404" fill="none" stroke="#eb6c36" stroke-width="1.2" marker-end="url(#arrow-accent)"/><!-- Trino ↔ MinIO (query read-back, dashed) --><line x1="480" y1="200" x2="480" y2="216" stroke="rgba(45,49,66,0.30)" stroke-width="1" stroke-dasharray="4,3" marker-end="url(#arrow-dim)"/>