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: align flowchart examples and template with diagram specs
Cathryn Laverybbf6836f9967
diff --git a/skills/diagram-design/assets/example-flowchart-dark.html b/skills/diagram-design/assets/example-flowchart-dark.htmlindex 9123dcf..e918695 100644--- a/skills/diagram-design/assets/example-flowchart-dark.html+++ b/skills/diagram-design/assets/example-flowchart-dark.html@@ -28,7 +28,8 @@padding: 3rem 2rem;}- .frame { max-width: 1200px; width: 100%; }+ .frame { max-width: 1200px; width: 100%; min-width: 0; }+ .diagram-container { width: 100%; overflow-x: auto; }.eyebrow {font-family: var(--font-mono);@@ -50,7 +51,11 @@margin-bottom: 1.5rem;}- svg { width: 100%; min-width: 900px; display: block; }+ svg { width: 100%; min-width: 1000px; display: block; }+ @media print {+ .diagram-container { overflow-x: visible; }+ svg { min-width: 0; }+ }</style></head><body>@@ -58,9 +63,10 @@<p class="eyebrow">Flowchart · Diagram Design</p><h1>Should you write this as a skill?</h1>- <svg viewBox="0 0 1000 600" xmlns="http://www.w3.org/2000/svg" role="img" aria-labelledby="flowchart-dark-title flowchart-dark-desc">- <title id="flowchart-dark-title">Should you write this as a skill?</title>- <desc id="flowchart-dark-desc">Flowchart showing when a new workflow should stay manual, become a project note, or be written as a reusable skill.</desc>+ <div class="diagram-container">+ <svg viewBox="0 0 1000 600" xmlns="http://www.w3.org/2000/svg" role="img" aria-labelledby="flowchart-dark-title flowchart-dark-desc">+ <title id="flowchart-dark-title">Should you write this as a skill?</title>+ <desc id="flowchart-dark-desc">Flowchart showing when a new workflow should stay manual, become a project note, or be written as a reusable skill.</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)"/>@@ -87,20 +93,20 @@<line x1="500" y1="424" x2="500" y2="464" stroke="#f08a59" stroke-width="1.4" marker-end="url(#arrow-accent)"/><!-- Arrow labels -->- <rect x="644" y="230" width="24" height="12" rx="2" fill="#2d3142"/>- <text x="656" y="239" fill="#bfc0c0" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.12em">NO</text>+ <rect x="644" y="220" width="24" height="12" rx="2" fill="#2d3142"/>+ <text x="656" y="229" fill="#bfc0c0" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.12em">NO</text>- <rect x="484" y="298" width="32" height="12" rx="2" fill="#2d3142"/>- <text x="500" y="307" fill="#bfc0c0" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.12em">YES</text>+ <rect x="508" y="298" width="32" height="12" rx="2" fill="#2d3142"/>+ <text x="524" y="307" fill="#bfc0c0" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.12em">YES</text>- <rect x="644" y="366" width="24" height="12" rx="2" fill="#2d3142"/>- <text x="656" y="375" fill="#bfc0c0" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.12em">NO</text>+ <rect x="644" y="356" width="24" height="12" rx="2" fill="#2d3142"/>+ <text x="656" y="365" fill="#bfc0c0" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.12em">NO</text>- <rect x="484" y="434" width="32" height="12" rx="2" fill="#2d3142"/>- <text x="500" y="443" fill="#f08a59" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.12em">YES</text>+ <rect x="508" y="434" width="32" height="12" rx="2" fill="#2d3142"/>+ <text x="524" y="443" fill="#f08a59" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.12em">YES</text><!-- Start oval -->- <rect x="420" y="40" width="160" height="48" rx="24" fill="rgba(245,245,245,0.03)" stroke="rgba(245,245,245,0.30)" stroke-width="1"/>+ <rect x="420" y="40" width="160" height="48" rx="20" fill="rgba(245,245,245,0.03)" stroke="rgba(245,245,245,0.30)" stroke-width="1"/><text x="500" y="68" fill="#f5f5f5" font-size="12" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">New workflow</text><!-- Rectangle: Step -->@@ -109,26 +115,26 @@<!-- Diamond 1: Repeated >3 times? --><polygon points="500,192 600,240 500,288 400,240" fill="#393e53" stroke="#f5f5f5" stroke-width="1"/>- <text x="500" y="238" fill="#f5f5f5" font-size="11" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">Will you repeat</text>- <text x="500" y="252" fill="#f5f5f5" font-size="11" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">it >3 times?</text>+ <text x="500" y="238" fill="#f5f5f5" font-size="12" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">Will you repeat</text>+ <text x="500" y="252" fill="#f5f5f5" font-size="12" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">it >3 times?</text><!-- End oval: One-off -->- <rect x="720" y="216" width="160" height="48" rx="24" fill="rgba(245,245,245,0.03)" stroke="rgba(245,245,245,0.30)" stroke-width="1"/>+ <rect x="720" y="216" width="160" height="48" rx="20" fill="rgba(245,245,245,0.03)" stroke="rgba(245,245,245,0.30)" stroke-width="1"/><text x="800" y="240" fill="#f5f5f5" font-size="12" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">One-off</text><text x="800" y="254" fill="#bfc0c0" font-size="9" font-family="'Geist Mono', monospace" text-anchor="middle">keep manual</text><!-- Diamond 2: Reusable across projects? --><polygon points="500,328 600,376 500,424 400,376" fill="#393e53" stroke="#f5f5f5" stroke-width="1"/>- <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>+ <text x="500" y="374" fill="#f5f5f5" font-size="12" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">Reusable across</text>+ <text x="500" y="388" fill="#f5f5f5" font-size="12" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">projects?</text><!-- 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"/>+ <rect x="720" y="352" width="160" height="48" rx="20" 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">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) -->- <rect x="420" y="464" width="160" height="56" rx="28" fill="rgba(240,138,89,0.08)" stroke="#f08a59" stroke-width="1"/>+ <rect x="420" y="464" width="160" height="56" rx="20" fill="rgba(240,138,89,0.08)" stroke="#f08a59" stroke-width="1"/><text x="500" y="492" fill="#f5f5f5" font-size="12" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">Write a skill</text><text x="500" y="508" fill="#bfc0c0" font-size="9" font-family="'Geist Mono', monospace" text-anchor="middle">reusable + assets</text>@@ -151,6 +157,7 @@<line x1="768" y1="580" x2="796" y2="580" stroke="#bfc0c0" stroke-width="1.2" marker-end="url(#arrow)"/><text x="804" y="582" fill="#bfc0c0" font-size="8.5" font-family="'Geist', sans-serif">Branch</text></svg>+ </div></div></body></html>diff --git a/skills/diagram-design/assets/example-flowchart-full.html b/skills/diagram-design/assets/example-flowchart-full.htmlindex c51f04f..31b77c6 100644--- a/skills/diagram-design/assets/example-flowchart-full.html+++ b/skills/diagram-design/assets/example-flowchart-full.html@@ -14,8 +14,9 @@.header-eyebrow { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-muted); margin-bottom: 0.75rem; }h1 { font-family: var(--font-serif); font-size: clamp(1.75rem, 3vw + 1rem, 2.5rem); font-weight: 400; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 0.5rem; }.subtitle { font-size: 1rem; line-height: 1.55; color: var(--color-muted); max-width: 58ch; }- .diagram-container { background: var(--color-paper-2); border-radius: 8px; border: 1px solid var(--color-rule); padding: 1.5rem; overflow-x: auto; }- svg { width: 100%; min-width: 900px; display: block; }+ .diagram-container { width: 100%; background: var(--color-paper-2); border-radius: 8px; border: 1px solid var(--color-rule); padding: 1.5rem; overflow-x: auto; }+ svg { width: 100%; min-width: 1000px; display: block; }+ @media print { .diagram-container { overflow-x: visible; } svg { min-width: 0; } }.cards { display: grid; grid-template-columns: 1.1fr 1fr 0.9fr; gap: 1rem; margin-top: 1.5rem; }@media (max-width: 820px) { .cards { grid-template-columns: 1fr; } }.card { background: #fff; border-radius: 6px; border: 1px solid var(--color-rule); padding: 1.25rem; }@@ -68,20 +69,20 @@<line x1="500" y1="424" x2="500" y2="464" stroke="#eb6c36" stroke-width="1.4" marker-end="url(#arrow-accent)"/><!-- Arrow labels -->- <rect x="644" y="230" width="24" height="12" rx="2" fill="#f5f5f5"/>- <text x="656" y="239" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.12em">NO</text>+ <rect x="644" y="220" width="24" height="12" rx="2" fill="#f5f5f5"/>+ <text x="656" y="229" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.12em">NO</text>- <rect x="484" y="298" width="32" height="12" rx="2" fill="#f5f5f5"/>- <text x="500" y="307" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.12em">YES</text>+ <rect x="508" y="298" width="32" height="12" rx="2" fill="#f5f5f5"/>+ <text x="524" y="307" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.12em">YES</text>- <rect x="644" y="366" width="24" height="12" rx="2" fill="#f5f5f5"/>- <text x="656" y="375" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.12em">NO</text>+ <rect x="644" y="356" width="24" height="12" rx="2" fill="#f5f5f5"/>+ <text x="656" y="365" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.12em">NO</text>- <rect x="484" y="434" width="32" height="12" rx="2" fill="#f5f5f5"/>- <text x="500" y="443" fill="#eb6c36" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.12em">YES</text>+ <rect x="508" y="434" width="32" height="12" rx="2" fill="#f5f5f5"/>+ <text x="524" y="443" fill="#eb6c36" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.12em">YES</text><!-- Start oval -->- <rect x="420" y="40" width="160" height="48" rx="24" fill="rgba(45,49,66,0.03)" stroke="rgba(45,49,66,0.30)" stroke-width="1"/>+ <rect x="420" y="40" width="160" height="48" rx="20" fill="rgba(45,49,66,0.03)" stroke="rgba(45,49,66,0.30)" stroke-width="1"/><text x="500" y="68" fill="#2d3142" font-size="12" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">New workflow</text><!-- Rectangle: Step -->@@ -90,26 +91,26 @@<!-- Diamond 1: Repeated >3 times? --><polygon points="500,192 600,240 500,288 400,240" fill="#ffffff" stroke="#2d3142" stroke-width="1"/>- <text x="500" y="238" fill="#2d3142" font-size="11" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">Will you repeat</text>- <text x="500" y="252" fill="#2d3142" font-size="11" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">it >3 times?</text>+ <text x="500" y="238" fill="#2d3142" font-size="12" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">Will you repeat</text>+ <text x="500" y="252" fill="#2d3142" font-size="12" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">it >3 times?</text><!-- End oval: One-off -->- <rect x="720" y="216" width="160" height="48" rx="24" fill="rgba(45,49,66,0.03)" stroke="rgba(45,49,66,0.30)" stroke-width="1"/>+ <rect x="720" y="216" width="160" height="48" rx="20" fill="rgba(45,49,66,0.03)" stroke="rgba(45,49,66,0.30)" stroke-width="1"/><text x="800" y="240" fill="#2d3142" font-size="12" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">One-off</text><text x="800" y="254" fill="#4f5d75" font-size="9" font-family="'Geist Mono', monospace" text-anchor="middle">keep manual</text><!-- Diamond 2: Reusable across projects? --><polygon points="500,328 600,376 500,424 400,376" fill="#ffffff" stroke="#2d3142" stroke-width="1"/>- <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>+ <text x="500" y="374" fill="#2d3142" font-size="12" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">Reusable across</text>+ <text x="500" y="388" fill="#2d3142" font-size="12" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">projects?</text><!-- 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"/>+ <rect x="720" y="352" width="160" height="48" rx="20" 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">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) -->- <rect x="420" y="464" width="160" height="56" rx="28" fill="rgba(235,108,54,0.08)" stroke="#eb6c36" stroke-width="1"/>+ <rect x="420" y="464" width="160" height="56" rx="20" fill="rgba(235,108,54,0.08)" stroke="#eb6c36" stroke-width="1"/><text x="500" y="492" fill="#2d3142" font-size="12" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">Write a skill</text><text x="500" y="508" fill="#4f5d75" font-size="9" font-family="'Geist Mono', monospace" text-anchor="middle">reusable + assets</text>diff --git a/skills/diagram-design/assets/example-flowchart.html b/skills/diagram-design/assets/example-flowchart.htmlindex 2a3d136..f679e1c 100644--- a/skills/diagram-design/assets/example-flowchart.html+++ b/skills/diagram-design/assets/example-flowchart.html@@ -28,7 +28,8 @@padding: 3rem 2rem;}- .frame { max-width: 1200px; width: 100%; }+ .frame { max-width: 1200px; width: 100%; min-width: 0; }+ .diagram-container { width: 100%; overflow-x: auto; }.eyebrow {font-family: var(--font-mono);@@ -50,7 +51,11 @@margin-bottom: 1.5rem;}- svg { width: 100%; min-width: 900px; display: block; }+ svg { width: 100%; min-width: 1000px; display: block; }+ @media print {+ .diagram-container { overflow-x: visible; }+ svg { min-width: 0; }+ }</style></head><body>@@ -58,9 +63,10 @@<p class="eyebrow">Flowchart · Diagram Design</p><h1>Should you write this as a skill?</h1>- <svg viewBox="0 0 1000 600" xmlns="http://www.w3.org/2000/svg" role="img" aria-labelledby="flowchart-title flowchart-desc">- <title id="flowchart-title">Should you write this as a skill?</title>- <desc id="flowchart-desc">Flowchart showing when a new workflow should stay manual, become a project note, or be written as a reusable skill.</desc>+ <div class="diagram-container">+ <svg viewBox="0 0 1000 600" xmlns="http://www.w3.org/2000/svg" role="img" aria-labelledby="flowchart-title flowchart-desc">+ <title id="flowchart-title">Should you write this as a skill?</title>+ <desc id="flowchart-desc">Flowchart showing when a new workflow should stay manual, become a project note, or be written as a reusable skill.</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)"/>@@ -87,20 +93,20 @@<line x1="500" y1="424" x2="500" y2="464" stroke="#eb6c36" stroke-width="1.4" marker-end="url(#arrow-accent)"/><!-- Arrow labels -->- <rect x="644" y="230" width="24" height="12" rx="2" fill="#f5f5f5"/>- <text x="656" y="239" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.12em">NO</text>+ <rect x="644" y="220" width="24" height="12" rx="2" fill="#f5f5f5"/>+ <text x="656" y="229" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.12em">NO</text>- <rect x="484" y="298" width="32" height="12" rx="2" fill="#f5f5f5"/>- <text x="500" y="307" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.12em">YES</text>+ <rect x="508" y="298" width="32" height="12" rx="2" fill="#f5f5f5"/>+ <text x="524" y="307" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.12em">YES</text>- <rect x="644" y="366" width="24" height="12" rx="2" fill="#f5f5f5"/>- <text x="656" y="375" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.12em">NO</text>+ <rect x="644" y="356" width="24" height="12" rx="2" fill="#f5f5f5"/>+ <text x="656" y="365" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.12em">NO</text>- <rect x="484" y="434" width="32" height="12" rx="2" fill="#f5f5f5"/>- <text x="500" y="443" fill="#eb6c36" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.12em">YES</text>+ <rect x="508" y="434" width="32" height="12" rx="2" fill="#f5f5f5"/>+ <text x="524" y="443" fill="#eb6c36" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.12em">YES</text><!-- Start oval -->- <rect x="420" y="40" width="160" height="48" rx="24" fill="rgba(45,49,66,0.03)" stroke="rgba(45,49,66,0.30)" stroke-width="1"/>+ <rect x="420" y="40" width="160" height="48" rx="20" fill="rgba(45,49,66,0.03)" stroke="rgba(45,49,66,0.30)" stroke-width="1"/><text x="500" y="68" fill="#2d3142" font-size="12" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">New workflow</text><!-- Rectangle: Step -->@@ -109,26 +115,26 @@<!-- Diamond 1: Repeated >3 times? --><polygon points="500,192 600,240 500,288 400,240" fill="#ffffff" stroke="#2d3142" stroke-width="1"/>- <text x="500" y="238" fill="#2d3142" font-size="11" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">Will you repeat</text>- <text x="500" y="252" fill="#2d3142" font-size="11" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">it >3 times?</text>+ <text x="500" y="238" fill="#2d3142" font-size="12" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">Will you repeat</text>+ <text x="500" y="252" fill="#2d3142" font-size="12" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">it >3 times?</text><!-- End oval: One-off -->- <rect x="720" y="216" width="160" height="48" rx="24" fill="rgba(45,49,66,0.03)" stroke="rgba(45,49,66,0.30)" stroke-width="1"/>+ <rect x="720" y="216" width="160" height="48" rx="20" fill="rgba(45,49,66,0.03)" stroke="rgba(45,49,66,0.30)" stroke-width="1"/><text x="800" y="240" fill="#2d3142" font-size="12" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">One-off</text><text x="800" y="254" fill="#4f5d75" font-size="9" font-family="'Geist Mono', monospace" text-anchor="middle">keep manual</text><!-- Diamond 2: Reusable across projects? --><polygon points="500,328 600,376 500,424 400,376" fill="#ffffff" stroke="#2d3142" stroke-width="1"/>- <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>+ <text x="500" y="374" fill="#2d3142" font-size="12" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">Reusable across</text>+ <text x="500" y="388" fill="#2d3142" font-size="12" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">projects?</text><!-- 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"/>+ <rect x="720" y="352" width="160" height="48" rx="20" 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">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) -->- <rect x="420" y="464" width="160" height="56" rx="28" fill="rgba(235,108,54,0.08)" stroke="#eb6c36" stroke-width="1"/>+ <rect x="420" y="464" width="160" height="56" rx="20" fill="rgba(235,108,54,0.08)" stroke="#eb6c36" stroke-width="1"/><text x="500" y="492" fill="#2d3142" font-size="12" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">Write a skill</text><text x="500" y="508" fill="#4f5d75" font-size="9" font-family="'Geist Mono', monospace" text-anchor="middle">reusable + assets</text>@@ -151,6 +157,7 @@<line x1="768" y1="580" x2="796" y2="580" stroke="#4f5d75" stroke-width="1.2" marker-end="url(#arrow)"/><text x="804" y="582" fill="#4f5d75" font-size="8.5" font-family="'Geist', sans-serif">Branch</text></svg>+ </div></div></body></html>diff --git a/skills/diagram-design/assets/template.html b/skills/diagram-design/assets/template.htmlindex 686b835..28b1291 100644--- a/skills/diagram-design/assets/template.html+++ b/skills/diagram-design/assets/template.html@@ -54,7 +54,7 @@margin-bottom: 1.5rem;}- svg { width: 100%; min-width: 1000px; display: block; }+ svg { width: 100%; min-width: 960px; display: block; }/* Paper has no scrollbar, so the local scroller would clip instead ofscroll. Let the diagram scale down to the sheet: smaller but wholebeats sharp but cut off. Must come after the svg rule above - a media@@ -72,7 +72,7 @@<!-- Replace [diagram-slug] with a unique slug for this diagram before export. --><div class="diagram-container">- <svg viewBox="0 0 1000 600" xmlns="http://www.w3.org/2000/svg" role="img" aria-labelledby="[diagram-slug]-title [diagram-slug]-desc">+ <svg viewBox="0 0 960 600" xmlns="http://www.w3.org/2000/svg" role="img" aria-labelledby="[diagram-slug]-title [diagram-slug]-desc"><title id="[diagram-slug]-title">[Diagram title]</title><desc id="[diagram-slug]-desc">[One sentence describing what the diagram shows]</desc><defs>diff --git a/skills/diagram-design/references/export.md b/skills/diagram-design/references/export.mdindex aaa00a8..f95c373 100644--- a/skills/diagram-design/references/export.md+++ b/skills/diagram-design/references/export.md@@ -97,7 +97,7 @@ Render **the original HTML** (not the extracted SVG) and screenshot only the `<sBefore running anything, verify Playwright is installed:```-python -c "import playwright" 2>NUL || python -c "import playwright"+python3 -c "import playwright"```If the import fails, surface this exact instruction to the user and stop:@@ -111,7 +111,7 @@ Don't auto-install. The user asked for one feature, not a system change.### Rasterize-Write the snippet below to a temp file and run it with `python <tmp.py> <src.html> <out.png>`:+Write the snippet below to a temp file and run it with `python3 <tmp.py> <src.html> <out.png>`:```pythonfrom playwright.sync_api import TimeoutError as PlaywrightTimeoutError, sync_playwright