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: make skill guard compatible (#167)
jassonbla561112cd88cc
diff --git a/.github/pr-visual-proof/167/flowchart-dark.png b/.github/pr-visual-proof/167/flowchart-dark.pngnew file mode 100644index 0000000..d4cb4ebBinary files /dev/null and b/.github/pr-visual-proof/167/flowchart-dark.png differdiff --git a/.github/pr-visual-proof/167/flowchart-full.png b/.github/pr-visual-proof/167/flowchart-full.pngnew file mode 100644index 0000000..0154f32Binary files /dev/null and b/.github/pr-visual-proof/167/flowchart-full.png differdiff --git a/.github/pr-visual-proof/167/flowchart-light.png b/.github/pr-visual-proof/167/flowchart-light.pngnew file mode 100644index 0000000..7fc7987Binary files /dev/null and b/.github/pr-visual-proof/167/flowchart-light.png differdiff --git a/.github/pr-visual-proof/167/nested-dark.png b/.github/pr-visual-proof/167/nested-dark.pngnew file mode 100644index 0000000..0ea57efBinary files /dev/null and b/.github/pr-visual-proof/167/nested-dark.png differdiff --git a/.github/pr-visual-proof/167/nested-full.png b/.github/pr-visual-proof/167/nested-full.pngnew file mode 100644index 0000000..cfb582aBinary files /dev/null and b/.github/pr-visual-proof/167/nested-full.png differdiff --git a/.github/pr-visual-proof/167/nested-light.png b/.github/pr-visual-proof/167/nested-light.pngnew file mode 100644index 0000000..1c9d2eeBinary files /dev/null and b/.github/pr-visual-proof/167/nested-light.png differdiff --git a/docs/screenshots/flowchart.png b/docs/screenshots/flowchart.pngindex 6d38c08..d53dd6c 100644Binary files a/docs/screenshots/flowchart.png and b/docs/screenshots/flowchart.png differdiff --git a/docs/screenshots/manifest.json b/docs/screenshots/manifest.jsonindex 260a1ae..5a08556 100644--- a/docs/screenshots/manifest.json+++ b/docs/screenshots/manifest.json@@ -33,8 +33,8 @@"slug": "flowchart","source": "skills/diagram-design/assets/example-flowchart.html","screenshot": "docs/screenshots/flowchart.png",- "source_sha256": "ba0a39df57d5fd4beccebeb51d62028b420371b30793b2658d308df04d571ff3",- "screenshot_sha256": "47c84d9f89a4e60ad131b05b0619e356894052d0477a8b3b024d56e5bd91b517",+ "source_sha256": "735b3cd96c77d0897f15b1b399e551fc18f5bc0fc7b8615fbe8dcb17743acef1",+ "screenshot_sha256": "74729889a792981f49bd652b337e9eb3087001c14bc28dd7fd5ea9cfc6814b57","width": 2400,"height": 1442},@@ -123,8 +123,8 @@"slug": "nested","source": "skills/diagram-design/assets/example-nested.html","screenshot": "docs/screenshots/nested.png",- "source_sha256": "17648e5a26604bf678d7cd256ec0d84a54f7f2c6920fb56c030226e6ffc6557a",- "screenshot_sha256": "7199d6871a0aab4377af0002a42c3dc9daee9e869f1131493ecf6e17a5a1cac0",+ "source_sha256": "33608608681a08fd6a6cd16837442b6209e1b9af042adfb7160a91e024fca72e",+ "screenshot_sha256": "16fa6c5fad38160cc70ad64a4d8642cb22b2c74c2f583407245e9183f3fc9994","width": 2400,"height": 1202},diff --git a/docs/screenshots/nested.png b/docs/screenshots/nested.pngindex 54b4505..084e63b 100644Binary files a/docs/screenshots/nested.png and b/docs/screenshots/nested.png differdiff --git a/docs/screenshots/thumbs/flowchart.webp b/docs/screenshots/thumbs/flowchart.webpindex 4b88293..52d3bb6 100644Binary files a/docs/screenshots/thumbs/flowchart.webp and b/docs/screenshots/thumbs/flowchart.webp differdiff --git a/docs/screenshots/thumbs/manifest.json b/docs/screenshots/thumbs/manifest.jsonindex 51c04c1..900c73b 100644--- a/docs/screenshots/thumbs/manifest.json+++ b/docs/screenshots/thumbs/manifest.json@@ -99,11 +99,11 @@{"thumb": "flowchart.webp","source": "docs/screenshots/flowchart.png",- "source_sha256": "47c84d9f89a4e60ad131b05b0619e356894052d0477a8b3b024d56e5bd91b517",+ "source_sha256": "74729889a792981f49bd652b337e9eb3087001c14bc28dd7fd5ea9cfc6814b57","width": 600,"height": 360,"quality": 82,- "thumb_sha256": "7232caea4a42ea2a8368fccea295bed4ff86b941c83247cce7b7d7a70172705c"+ "thumb_sha256": "44224cd3f8b0e6fa0b8fad43371659be08d3eeded256d2b895736acd9076fcb1"},{"thumb": "gantt.webp",@@ -198,11 +198,11 @@{"thumb": "nested.webp","source": "docs/screenshots/nested.png",- "source_sha256": "7199d6871a0aab4377af0002a42c3dc9daee9e869f1131493ecf6e17a5a1cac0",+ "source_sha256": "16fa6c5fad38160cc70ad64a4d8642cb22b2c74c2f583407245e9183f3fc9994","width": 600,"height": 300,"quality": 82,- "thumb_sha256": "c12d8e15f30e382987b05d22d1e930cfd801a7d76792348b2a22ce107785f979"+ "thumb_sha256": "a20e8f99a4962d88fe2b451a9aeba871c0c7319d17d570026e1f225632405aa0"},{"thumb": "org-chart.webp",diff --git a/docs/screenshots/thumbs/nested.webp b/docs/screenshots/thumbs/nested.webpindex 911546c..e9600ae 100644Binary files a/docs/screenshots/thumbs/nested.webp and b/docs/screenshots/thumbs/nested.webp differdiff --git a/scripts/verify-doctor.py b/scripts/verify-doctor.pyindex a839bae..8b90b1b 100644--- a/scripts/verify-doctor.py+++ b/scripts/verify-doctor.py@@ -196,7 +196,7 @@ def check_playwright(python_cmd: str | None) -> CheckResult:name="Playwright PNG export readiness",status=FAIL,message="Playwright check skipped because no Python command was available.",- fix="Resolve Python first; then install with: pip install playwright && playwright install chromium",+ fix="Provision an approved Playwright renderer after resolving Python, then re-run this check.",)import_probe = run_command([python_cmd, "-c", "import playwright; print(playwright.__version__)"])@@ -205,7 +205,7 @@ def check_playwright(python_cmd: str | None) -> CheckResult:name="Playwright PNG export readiness",status=WARN,message="Playwright package is not available in the active Python interpreter.",- fix="pip install playwright && playwright install chromium",+ fix="Provision an approved Playwright renderer in the host environment, then re-run this check.",)chromium_probe = run_command(@@ -234,7 +234,7 @@ def check_playwright(python_cmd: str | None) -> CheckResult:name="Playwright PNG export readiness",status=WARN,message=f"Playwright is installed but Chromium is not ready: {detail}",- fix="pip install playwright && playwright install chromium",+ fix="Provision an approved browser for the existing Playwright installation, then re-run this check.",)diff --git a/scripts/verify-drawio-import.py b/scripts/verify-drawio-import.pyindex 8fa45f4..0457871 100644--- a/scripts/verify-drawio-import.py+++ b/scripts/verify-drawio-import.py@@ -241,6 +241,37 @@ def check_nested_geometry(tmp: Path) -> None:ok("nested geometry and bounds are independent of cell order")+def check_bom_prefixed(tmp: Path) -> None:+ model = re.search(+ r"<mxGraphModel.*?</mxGraphModel>", FIXTURE.read_text(encoding="utf-8"), re.S+ )+ if not model:+ fail("fixture has no mxGraphModel")+ # ElementTree accepts a leading U+FEFF, so the raw XML case passes even+ # without BOM handling. The bare payload is the case that needs it:+ # base64 decoding rejects the BOM and the extractor exits 2.+ inputs = {+ "raw XML": FIXTURE.read_bytes(),+ "bare base64+deflate payload": compress_model(model.group(0)).encode("ascii"),+ }+ for index, (label, body) in enumerate(inputs.items()):+ # Same file name in both runs: a bare payload's page is named after it.+ plain = tmp / f"bom-{index}" / "plain" / "input.drawio"+ prefixed = tmp / f"bom-{index}" / "prefixed" / "input.drawio"+ for path in (plain, prefixed):+ path.parent.mkdir(parents=True)+ plain.write_bytes(body)+ prefixed.write_bytes(b"\xef\xbb\xbf" + body)+ expected = json.loads(run_extract([str(plain), "--json"]))["pages"]+ actual = json.loads(run_extract([str(prefixed), "--json"]))["pages"]+ analysis = actual[0]["analysis"]+ if analysis["nodes_total"] != 12 or analysis["edges_total"] != 8:+ fail(f"UTF-8 BOM-prefixed {label} graph differs from the source fixture")+ if actual != expected:+ fail(f"UTF-8 BOM-prefixed {label} extracts differently from the same input without a BOM")+ ok("UTF-8 BOM-prefixed raw XML and bare compressed payload parse like their unprefixed input")++def check_containers(tmp: Path) -> None:model = re.search(r"<mxGraphModel.*?</mxGraphModel>", FIXTURE.read_text(encoding="utf-8"), re.S@@ -550,6 +581,7 @@ def main() -> int:check_files()check_parse_raw()check_nested_geometry(tmp)+ check_bom_prefixed(tmp)check_containers(tmp)check_legacy_stdout_encoding(tmp)check_digest_escaping(tmp)diff --git a/skills/diagram-design/assets/example-flowchart-dark.html b/skills/diagram-design/assets/example-flowchart-dark.htmlindex bd6fec0..9123dcf 100644--- a/skills/diagram-design/assets/example-flowchart-dark.html+++ b/skills/diagram-design/assets/example-flowchart-dark.html@@ -122,9 +122,9 @@<text x="500" y="374" fill="#f5f5f5" font-size="11" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">Reusable across</text><text x="500" y="388" fill="#f5f5f5" font-size="11" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">projects?</text>- <!-- End oval: CLAUDE.md note -->+ <!-- End oval: project note --><rect x="720" y="352" width="160" height="48" rx="24" fill="rgba(245,245,245,0.03)" stroke="rgba(245,245,245,0.30)" stroke-width="1"/>- <text x="800" y="376" fill="#f5f5f5" font-size="12" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">CLAUDE.md note</text>+ <text x="800" y="376" fill="#f5f5f5" font-size="12" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">Project note</text><text x="800" y="390" fill="#bfc0c0" font-size="9" font-family="'Geist Mono', monospace" text-anchor="middle">project-scoped</text><!-- End oval: Write a skill (coral focal) -->diff --git a/skills/diagram-design/assets/example-flowchart-full.html b/skills/diagram-design/assets/example-flowchart-full.htmlindex 4a6d029..c51f04f 100644--- a/skills/diagram-design/assets/example-flowchart-full.html+++ b/skills/diagram-design/assets/example-flowchart-full.html@@ -103,9 +103,9 @@<text x="500" y="374" fill="#2d3142" font-size="11" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">Reusable across</text><text x="500" y="388" fill="#2d3142" font-size="11" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">projects?</text>- <!-- End oval: CLAUDE.md note -->+ <!-- End oval: project note --><rect x="720" y="352" width="160" height="48" rx="24" fill="rgba(45,49,66,0.03)" stroke="rgba(45,49,66,0.30)" stroke-width="1"/>- <text x="800" y="376" fill="#2d3142" font-size="12" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">CLAUDE.md note</text>+ <text x="800" y="376" fill="#2d3142" font-size="12" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">Project note</text><text x="800" y="390" fill="#4f5d75" font-size="9" font-family="'Geist Mono', monospace" text-anchor="middle">project-scoped</text><!-- End oval: Write a skill (coral focal) -->diff --git a/skills/diagram-design/assets/example-flowchart.html b/skills/diagram-design/assets/example-flowchart.htmlindex bcaa172..2a3d136 100644--- a/skills/diagram-design/assets/example-flowchart.html+++ b/skills/diagram-design/assets/example-flowchart.html@@ -122,9 +122,9 @@<text x="500" y="374" fill="#2d3142" font-size="11" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">Reusable across</text><text x="500" y="388" fill="#2d3142" font-size="11" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">projects?</text>- <!-- End oval: CLAUDE.md note -->+ <!-- End oval: project note --><rect x="720" y="352" width="160" height="48" rx="24" fill="rgba(45,49,66,0.03)" stroke="rgba(45,49,66,0.30)" stroke-width="1"/>- <text x="800" y="376" fill="#2d3142" font-size="12" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">CLAUDE.md note</text>+ <text x="800" y="376" fill="#2d3142" font-size="12" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">Project note</text><text x="800" y="390" fill="#4f5d75" font-size="9" font-family="'Geist Mono', monospace" text-anchor="middle">project-scoped</text><!-- End oval: Write a skill (coral focal) -->diff --git a/skills/diagram-design/assets/example-nested-dark.html b/skills/diagram-design/assets/example-nested-dark.htmlindex 1334842..bebcbdb 100644--- a/skills/diagram-design/assets/example-nested-dark.html+++ b/skills/diagram-design/assets/example-nested-dark.html@@ -3,7 +3,7 @@<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">- <title>The CLAUDE.md Hierarchy</title>+ <title>The Project Guidance Hierarchy</title><link href="https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@400;500;600&family=Geist+Mono:wght@400;500;600&display=swap" rel="stylesheet"><style>*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }@@ -56,11 +56,11 @@<body><div class="frame"><p class="eyebrow">Nested · Diagram Design</p>- <h1>The CLAUDE.md Hierarchy</h1>+ <h1>The Project Guidance Hierarchy</h1><svg viewBox="0 0 1000 500" xmlns="http://www.w3.org/2000/svg" role="img" aria-labelledby="nested-dark-title nested-dark-desc">- <title id="nested-dark-title">The CLAUDE.md Hierarchy</title>- <desc id="nested-dark-desc">Nested diagram showing how project CLAUDE.md instructions inherit broader scopes from the global, vault, business, and marketing levels.</desc>+ <title id="nested-dark-title">The Project Guidance Hierarchy</title>+ <desc id="nested-dark-desc">Nested diagram showing how project guidance inherits broader scopes from the global, vault, business, and marketing levels.</desc><defs><pattern id="dots" width="22" height="22" patternUnits="userSpaceOnUse"><circle cx="1" cy="1" r="0.9" fill="rgba(245,245,245,0.10)"/>@@ -116,7 +116,7 @@</g><!-- Innermost label — human readable -->- <text x="500" y="248" fill="#f5f5f5" font-size="16" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">CLAUDE.md</text>+ <text x="500" y="248" fill="#f5f5f5" font-size="16" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">PROJECT GUIDANCE</text><text x="500" y="272" fill="#bfc0c0" font-size="9" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">inherits every level above</text><!-- Annotation top-right: italic callout with curved arrow -->diff --git a/skills/diagram-design/assets/example-nested-full.html b/skills/diagram-design/assets/example-nested-full.htmlindex 3e0081e..0a1d9be 100644--- a/skills/diagram-design/assets/example-nested-full.html+++ b/skills/diagram-design/assets/example-nested-full.html@@ -3,7 +3,7 @@<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">- <title>The CLAUDE.md Hierarchy</title>+ <title>The Project Guidance Hierarchy</title><link href="https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@400;500;600&family=Geist+Mono:wght@400;500;600&display=swap" rel="stylesheet"><style>*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }@@ -34,14 +34,14 @@<div class="container"><div class="header"><p class="header-eyebrow">Nested · Diagram Design</p>- <h1>The CLAUDE.md Hierarchy</h1>- <p class="subtitle">How Claude Code composes context from every folder level above. Each outer ring is a broader scope; the innermost box is where the work happens — inheriting every instruction above it without a single import statement.</p>+ <h1>The Project Guidance Hierarchy</h1>+ <p class="subtitle">How folder-scoped guidance composes into one working context. Each outer ring is a broader scope; the innermost box is where the work happens — inheriting every instruction above it without a single import statement.</p></div><div class="diagram-container"><svg viewBox="0 0 1000 500" xmlns="http://www.w3.org/2000/svg" role="img" aria-labelledby="nested-full-title nested-full-desc">- <title id="nested-full-title">The CLAUDE.md Hierarchy</title>- <desc id="nested-full-desc">Nested diagram showing how project CLAUDE.md instructions inherit broader scopes from the global, vault, business, and marketing levels.</desc>+ <title id="nested-full-title">The Project Guidance Hierarchy</title>+ <desc id="nested-full-desc">Nested diagram showing how project guidance inherits broader scopes from the global, vault, business, and marketing levels.</desc><defs><pattern id="dots" width="22" height="22" patternUnits="userSpaceOnUse"><circle cx="1" cy="1" r="0.9" fill="rgba(45,49,66,0.10)"/>@@ -97,7 +97,7 @@</g><!-- Innermost label — human readable -->- <text x="500" y="248" fill="#2d3142" font-size="16" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">CLAUDE.md</text>+ <text x="500" y="248" fill="#2d3142" font-size="16" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">PROJECT GUIDANCE</text><text x="500" y="272" fill="#4f5d75" font-size="9" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">inherits every level above</text><!-- Annotation top-right: italic callout with curved arrow -->@@ -114,7 +114,7 @@<div class="card"><p class="eyebrow">THE HEADLINE</p><div class="card-header"><span class="card-dot coral"></span><h3>Containment is the config</h3></div>- <p>Every CLAUDE.md inside a parent folder implicitly wraps the one below. No manifest, no import graph — the file tree itself declares scope, so renaming a folder is the only migration you'll ever run.</p>+ <p>Every guidance layer in a parent folder implicitly wraps the one below. No manifest, no import graph — the file tree itself declares scope, so renaming a folder is the only migration you'll ever run.</p></div><div class="card"><div class="card-header"><span class="card-dot ink"></span><h3>Reads outside-in</h3></div>@@ -127,7 +127,7 @@</div><div class="footer">- <span>the claude.md hierarchy · nested containment</span>+ <span>the project guidance hierarchy · nested containment</span><span>example · schematic skill</span></div></div>diff --git a/skills/diagram-design/assets/example-nested.html b/skills/diagram-design/assets/example-nested.htmlindex 2feb24a..eb0edb2 100644--- a/skills/diagram-design/assets/example-nested.html+++ b/skills/diagram-design/assets/example-nested.html@@ -3,7 +3,7 @@<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">- <title>The CLAUDE.md Hierarchy</title>+ <title>The Project Guidance Hierarchy</title><link href="https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@400;500;600&family=Geist+Mono:wght@400;500;600&display=swap" rel="stylesheet"><style>*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }@@ -56,11 +56,11 @@<body><div class="frame"><p class="eyebrow">Nested · Diagram Design</p>- <h1>The CLAUDE.md Hierarchy</h1>+ <h1>The Project Guidance Hierarchy</h1><svg viewBox="0 0 1000 500" xmlns="http://www.w3.org/2000/svg" role="img" aria-labelledby="nested-title nested-desc">- <title id="nested-title">The CLAUDE.md Hierarchy</title>- <desc id="nested-desc">Nested diagram showing how project CLAUDE.md instructions inherit broader scopes from the global, vault, business, and marketing levels.</desc>+ <title id="nested-title">The Project Guidance Hierarchy</title>+ <desc id="nested-desc">Nested diagram showing how project guidance inherits broader scopes from the global, vault, business, and marketing levels.</desc><defs><pattern id="dots" width="22" height="22" patternUnits="userSpaceOnUse"><circle cx="1" cy="1" r="0.9" fill="rgba(45,49,66,0.10)"/>@@ -120,7 +120,7 @@</g><!-- Innermost label — human readable -->- <text x="500" y="248" fill="#2d3142" font-size="16" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">CLAUDE.md</text>+ <text x="500" y="248" fill="#2d3142" font-size="16" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">PROJECT GUIDANCE</text><text x="500" y="272" fill="#4f5d75" font-size="9" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">inherits every level above</text><!-- Annotation top-right: italic callout with curved arrow -->diff --git a/skills/diagram-design/references/doctor.md b/skills/diagram-design/references/doctor.mdindex 86e9e8e..c899e46 100644--- a/skills/diagram-design/references/doctor.md+++ b/skills/diagram-design/references/doctor.md@@ -43,8 +43,8 @@ Run all checks in this order and report each as `pass`, `warn`, or `fail`.2. Playwright availability for PNG export- Check whether Playwright import works in the active Python interpreter (`import playwright`).- Check whether Chromium is installed for Playwright (`playwright install --help` availability is sufficient for command presence; prefer also checking browser cache when practical).-- If missing, mark `warn` and print exact setup hint:- - `pip install playwright && playwright install chromium`+- If missing, mark `warn` and report that the host environment must provision+ an approved Playwright installation and compatible browser.- Never auto-install dependencies.3. Expected script presence (maintainer-checkout mode only)@@ -122,6 +122,6 @@ Doctor summary: WARN (6 pass, 2 warn, 0 fail)...Next actions-- Install PNG export dependencies: pip install playwright && playwright install chromium+- Provision an approved PNG export renderer, then re-run the doctor check- Re-run: /diagram-design:doctor --strict```diff --git a/skills/diagram-design/references/export.md b/skills/diagram-design/references/export.mdindex 9cf535b..73b9159 100644--- a/skills/diagram-design/references/export.md+++ b/skills/diagram-design/references/export.md@@ -76,11 +76,9 @@ python -c "import playwright" 2>NUL || python -c "import playwright"If the import fails, surface this exact instruction to the user and stop:-> Playwright isn't installed. To enable PNG export, run:-> ```-> pip install playwright-> playwright install chromium-> ```+> Playwright is not available. PNG export requires an approved Playwright+> installation and a compatible browser to be provisioned by the host+> environment; the skill never installs runtime dependencies automatically.> Then ask me to export again.Don't auto-install. The user asked for one feature, not a system change.diff --git a/skills/diagram-design/references/output-spec.md b/skills/diagram-design/references/output-spec.mdindex 90a1c8b..29b79ed 100644--- a/skills/diagram-design/references/output-spec.md+++ b/skills/diagram-design/references/output-spec.md@@ -174,7 +174,7 @@ Worked example — the same node through all three:Two rules that hold at every audience level:-- **Never invent detail to fill a slot.** If the source says `svc-04`, `executive` output says what it does only if you can tell from context — otherwise ask, don't guess a business name.+- **Never invent detail to fill a slot.** If an input names `svc-04` but provides no explanation, keep the identifier and ask rather than guessing a business name.- **Keep the source's vocabulary for proper nouns.** Renaming `Kafka` to `Message Bus` is fine at `executive`; renaming it to `Event Grid` (a different product) is a factual error.### Non-Latin labelsdiff --git a/skills/diagram-design/references/type-nested.md b/skills/diagram-design/references/type-nested.mdindex e13134f..92b9d8a 100644--- a/skills/diagram-design/references/type-nested.md+++ b/skills/diagram-design/references/type-nested.md@@ -1,6 +1,6 @@# Nested Containment-**Best for:** hierarchy through containment — scope boundaries, CLAUDE.md cascade, trust zones, folder nesting, blast radius. Outer = broader, inner = more specific.+**Best for:** hierarchy through containment — scope boundaries, trust zones, folder nesting, blast radius. Outer = broader, inner = more specific.## Layout conventions- 3–5 rounded rectangles (`rx=8`), nested with consistent inset padding (24–32px horizontal, 32–36px vertical recommended).diff --git a/skills/diagram-design/scripts/drawio_extract.py b/skills/diagram-design/scripts/drawio_extract.pyindex cd0ca80..6a11153 100644--- a/skills/diagram-design/scripts/drawio_extract.py+++ b/skills/diagram-design/scripts/drawio_extract.py@@ -12,7 +12,7 @@ Usage:python3 drawio_extract.py <file.drawio> [--page N|NAME] [--json][--max-rows N] [--out PATH]-Default output is a compact Markdown digest meant to be read into context.+Default output is a compact Markdown digest for local review.``--json`` emits the full IR instead (every node, every edge, every style).Exit codes: 0 ok, 2 unreadable / unsupported input.@@ -173,7 +173,7 @@ def load_mxfile(path: Path) -> str:if not xml:_fail(f"{path.name}: PNG has no embedded draw.io diagram")return xml- text = data.decode("utf-8", "replace").lstrip("").strip()+ text = data.decode("utf-8-sig", "replace").strip()if "<mxfile" in text or "<mxGraphModel" in text:return textif "<svg" in text[:2000]: