chompyy 0.1.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +79 -6
- package/THIRD_PARTY_NOTICES.md +28 -0
- package/dist/appstate.js +43 -2
- package/dist/away.js +104 -15
- package/dist/board.js +33 -3
- package/dist/claudesettings.js +23 -0
- package/dist/cli.js +409 -27
- package/dist/coldstart.js +207 -0
- package/dist/config.js +36 -1
- package/dist/costs.js +162 -0
- package/dist/gate.js +29 -0
- package/dist/history.js +308 -0
- package/dist/livequota.js +15 -1
- package/dist/pacing.js +189 -0
- package/dist/picture.js +117 -0
- package/dist/projects.js +2 -2
- package/dist/quota.js +31 -5
- package/dist/report.js +38 -21
- package/dist/review.js +47 -4
- package/dist/runner.js +268 -8
- package/dist/taste.js +507 -0
- package/dist/triggers.js +182 -0
- package/dist/verify.js +131 -0
- package/package.json +2 -1
- package/skills/taste/SKILL.md +4 -1
- package/vendor/diagram-design/LICENSE +21 -0
- package/vendor/diagram-design/SKILL.md +399 -0
- package/vendor/diagram-design/UPSTREAM.md +18 -0
- package/vendor/diagram-design/assets/example-arc-diagram.html +111 -0
- package/vendor/diagram-design/assets/example-architecture-containment.html +205 -0
- package/vendor/diagram-design/assets/example-architecture-delta.html +193 -0
- package/vendor/diagram-design/assets/example-architecture.html +183 -0
- package/vendor/diagram-design/assets/example-axonometric-plan-campus.html +108 -0
- package/vendor/diagram-design/assets/example-axonometric-plan-coffee-shop.html +121 -0
- package/vendor/diagram-design/assets/example-axonometric-plan-warehouse.html +127 -0
- package/vendor/diagram-design/assets/example-axonometric-plan.html +114 -0
- package/vendor/diagram-design/assets/example-bar.html +129 -0
- package/vendor/diagram-design/assets/example-beeswarm.html +384 -0
- package/vendor/diagram-design/assets/example-box-plot.html +127 -0
- package/vendor/diagram-design/assets/example-bubble.html +147 -0
- package/vendor/diagram-design/assets/example-bump.html +142 -0
- package/vendor/diagram-design/assets/example-data-flow.html +143 -0
- package/vendor/diagram-design/assets/example-datalake.html +269 -0
- package/vendor/diagram-design/assets/example-db-schema.html +302 -0
- package/vendor/diagram-design/assets/example-dependency.html +224 -0
- package/vendor/diagram-design/assets/example-deployment.html +190 -0
- package/vendor/diagram-design/assets/example-dp-integration.html +81 -0
- package/vendor/diagram-design/assets/example-dp-security-matrix.html +88 -0
- package/vendor/diagram-design/assets/example-er.html +202 -0
- package/vendor/diagram-design/assets/example-event-modeling.html +64 -0
- package/vendor/diagram-design/assets/example-exploded-ai-stack.html +85 -0
- package/vendor/diagram-design/assets/example-exploded-keyboard.html +84 -0
- package/vendor/diagram-design/assets/example-exploded-phone.html +83 -0
- package/vendor/diagram-design/assets/example-exploded-unboxing.html +84 -0
- package/vendor/diagram-design/assets/example-exploded.html +83 -0
- package/vendor/diagram-design/assets/example-fishbone.html +152 -0
- package/vendor/diagram-design/assets/example-flowchart.html +163 -0
- package/vendor/diagram-design/assets/example-gantt.html +137 -0
- package/vendor/diagram-design/assets/example-heatmap.html +224 -0
- package/vendor/diagram-design/assets/example-high-level-vertical.html +325 -0
- package/vendor/diagram-design/assets/example-high-level.html +301 -0
- package/vendor/diagram-design/assets/example-import-drawio.html +185 -0
- package/vendor/diagram-design/assets/example-import-excalidraw.html +70 -0
- package/vendor/diagram-design/assets/example-import-mermaid.html +70 -0
- package/vendor/diagram-design/assets/example-import-plantuml.html +107 -0
- package/vendor/diagram-design/assets/example-it-state.html +128 -0
- package/vendor/diagram-design/assets/example-journey.html +148 -0
- package/vendor/diagram-design/assets/example-kanban.html +174 -0
- package/vendor/diagram-design/assets/example-layers.html +123 -0
- package/vendor/diagram-design/assets/example-line.html +111 -0
- package/vendor/diagram-design/assets/example-loop.html +100 -0
- package/vendor/diagram-design/assets/example-marimekko.html +148 -0
- package/vendor/diagram-design/assets/example-medallion.html +159 -0
- package/vendor/diagram-design/assets/example-nested.html +136 -0
- package/vendor/diagram-design/assets/example-org-chart.html +45 -0
- package/vendor/diagram-design/assets/example-polar.html +116 -0
- package/vendor/diagram-design/assets/example-process.html +64 -0
- package/vendor/diagram-design/assets/example-pyramid.html +119 -0
- package/vendor/diagram-design/assets/example-quadrant-consultant.html +166 -0
- package/vendor/diagram-design/assets/example-quadrant.html +135 -0
- package/vendor/diagram-design/assets/example-radar.html +139 -0
- package/vendor/diagram-design/assets/example-requirement-traceability.html +122 -0
- package/vendor/diagram-design/assets/example-ridgeline.html +104 -0
- package/vendor/diagram-design/assets/example-sankey.html +150 -0
- package/vendor/diagram-design/assets/example-sbgn.html +213 -0
- package/vendor/diagram-design/assets/example-scatter.html +141 -0
- package/vendor/diagram-design/assets/example-sequence-oauth.html +227 -0
- package/vendor/diagram-design/assets/example-sequence.html +222 -0
- package/vendor/diagram-design/assets/example-service-blueprint.html +185 -0
- package/vendor/diagram-design/assets/example-slopegraph.html +119 -0
- package/vendor/diagram-design/assets/example-state-lifecycle.html +92 -0
- package/vendor/diagram-design/assets/example-state.html +147 -0
- package/vendor/diagram-design/assets/example-steps.html +78 -0
- package/vendor/diagram-design/assets/example-story-map.html +184 -0
- package/vendor/diagram-design/assets/example-streamgraph.html +99 -0
- package/vendor/diagram-design/assets/example-swimlane.html +172 -0
- package/vendor/diagram-design/assets/example-timeline.html +135 -0
- package/vendor/diagram-design/assets/example-tree-block-decomposition.html +151 -0
- package/vendor/diagram-design/assets/example-tree.html +173 -0
- package/vendor/diagram-design/assets/example-treemap.html +107 -0
- package/vendor/diagram-design/assets/example-uml-class.html +188 -0
- package/vendor/diagram-design/assets/example-unit-grid.html +141 -0
- package/vendor/diagram-design/assets/example-venn.html +110 -0
- package/vendor/diagram-design/assets/example-wardley.html +153 -0
- package/vendor/diagram-design/assets/example-waterfall.html +129 -0
- package/vendor/diagram-design/assets/template-dark.html +99 -0
- package/vendor/diagram-design/assets/template.html +100 -0
- package/vendor/diagram-design/references/layout-budget.md +103 -0
- package/vendor/diagram-design/references/output-spec.md +277 -0
- package/vendor/diagram-design/references/primitive-annotation.md +36 -0
- package/vendor/diagram-design/references/primitive-sketchy.md +43 -0
- package/vendor/diagram-design/references/primitives-core.md +146 -0
- package/vendor/diagram-design/references/semantic-patterns.md +154 -0
- package/vendor/diagram-design/references/style-guide.md +234 -0
- package/vendor/diagram-design/references/type-architecture-delta.md +143 -0
- package/vendor/diagram-design/references/type-architecture.md +117 -0
- package/vendor/diagram-design/references/type-axonometric-plan.md +83 -0
- package/vendor/diagram-design/references/type-bar.md +108 -0
- package/vendor/diagram-design/references/type-data-flow.md +371 -0
- package/vendor/diagram-design/references/type-db-schema.md +48 -0
- package/vendor/diagram-design/references/type-dependency.md +113 -0
- package/vendor/diagram-design/references/type-deployment.md +45 -0
- package/vendor/diagram-design/references/type-dp-integration.md +407 -0
- package/vendor/diagram-design/references/type-dp-security-matrix.md +379 -0
- package/vendor/diagram-design/references/type-er.md +25 -0
- package/vendor/diagram-design/references/type-event-modeling.md +36 -0
- package/vendor/diagram-design/references/type-exploded.md +115 -0
- package/vendor/diagram-design/references/type-fishbone.md +75 -0
- package/vendor/diagram-design/references/type-flowchart.md +23 -0
- package/vendor/diagram-design/references/type-gantt.md +45 -0
- package/vendor/diagram-design/references/type-heatmap.md +80 -0
- package/vendor/diagram-design/references/type-high-level.md +470 -0
- package/vendor/diagram-design/references/type-it-state.md +468 -0
- package/vendor/diagram-design/references/type-journey.md +55 -0
- package/vendor/diagram-design/references/type-kanban.md +49 -0
- package/vendor/diagram-design/references/type-layers.md +26 -0
- package/vendor/diagram-design/references/type-line.md +337 -0
- package/vendor/diagram-design/references/type-loop.md +223 -0
- package/vendor/diagram-design/references/type-medallion.md +356 -0
- package/vendor/diagram-design/references/type-nested.md +22 -0
- package/vendor/diagram-design/references/type-org-chart.md +44 -0
- package/vendor/diagram-design/references/type-polar.md +136 -0
- package/vendor/diagram-design/references/type-process.md +490 -0
- package/vendor/diagram-design/references/type-pyramid.md +33 -0
- package/vendor/diagram-design/references/type-quadrant.md +81 -0
- package/vendor/diagram-design/references/type-radar.md +82 -0
- package/vendor/diagram-design/references/type-requirement-traceability.md +45 -0
- package/vendor/diagram-design/references/type-sankey.md +75 -0
- package/vendor/diagram-design/references/type-sbgn.md +80 -0
- package/vendor/diagram-design/references/type-scatter.md +276 -0
- package/vendor/diagram-design/references/type-sequence.md +130 -0
- package/vendor/diagram-design/references/type-service-blueprint.md +103 -0
- package/vendor/diagram-design/references/type-state.md +30 -0
- package/vendor/diagram-design/references/type-steps.md +180 -0
- package/vendor/diagram-design/references/type-story-map.md +46 -0
- package/vendor/diagram-design/references/type-swimlane.md +22 -0
- package/vendor/diagram-design/references/type-timeline.md +20 -0
- package/vendor/diagram-design/references/type-tree.md +24 -0
- package/vendor/diagram-design/references/type-treemap.md +137 -0
- package/vendor/diagram-design/references/type-uml-class.md +65 -0
- package/vendor/diagram-design/references/type-unit-grid.md +63 -0
- package/vendor/diagram-design/references/type-venn.md +26 -0
- package/vendor/diagram-design/references/type-wardley.md +39 -0
- package/vendor/diagram-design/references/type-waterfall.md +75 -0
- package/vendor/diagram-design/scripts/self_check.py +1177 -0
- package/vendor/diagram-design/scripts/verify_geometry.py +696 -0
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>Product milestones · Timeline</title>
|
|
7
|
+
<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">
|
|
8
|
+
<style>
|
|
9
|
+
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
|
10
|
+
:root {
|
|
11
|
+
--color-paper: #f5f5f5;
|
|
12
|
+
--color-ink: #2d3142;
|
|
13
|
+
--color-muted: #4f5d75;
|
|
14
|
+
--color-accent: #bf4520;
|
|
15
|
+
--font-sans: 'Geist', system-ui, sans-serif;
|
|
16
|
+
--font-serif: 'Instrument Serif', serif;
|
|
17
|
+
--font-mono: 'Geist Mono', ui-monospace, monospace;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
body {
|
|
21
|
+
font-family: var(--font-sans);
|
|
22
|
+
background: var(--color-paper);
|
|
23
|
+
color: var(--color-ink);
|
|
24
|
+
min-height: 100vh;
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
justify-content: center;
|
|
28
|
+
padding: 3rem 2rem;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.frame { max-width: 1200px; width: 100%; }
|
|
32
|
+
|
|
33
|
+
.eyebrow {
|
|
34
|
+
font-family: var(--font-mono);
|
|
35
|
+
font-size: 0.66rem;
|
|
36
|
+
font-weight: 500;
|
|
37
|
+
letter-spacing: 0.18em;
|
|
38
|
+
text-transform: uppercase;
|
|
39
|
+
color: var(--color-muted);
|
|
40
|
+
margin-bottom: 0.5rem;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
h1 {
|
|
44
|
+
font-family: var(--font-serif);
|
|
45
|
+
font-size: clamp(1.5rem, 2.4vw + 0.75rem, 2rem);
|
|
46
|
+
font-weight: 400;
|
|
47
|
+
letter-spacing: -0.02em;
|
|
48
|
+
line-height: 1.15;
|
|
49
|
+
color: var(--color-ink);
|
|
50
|
+
margin-bottom: 1.5rem;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
svg { width: 100%; min-width: 900px; display: block; }
|
|
54
|
+
</style>
|
|
55
|
+
</head>
|
|
56
|
+
<body>
|
|
57
|
+
<div class="frame">
|
|
58
|
+
<p class="eyebrow">Timeline · Diagram Design</p>
|
|
59
|
+
<h1>Product launch · fourteen months</h1>
|
|
60
|
+
|
|
61
|
+
<svg viewBox="0 0 1000 420" xmlns="http://www.w3.org/2000/svg" role="img" aria-labelledby="timeline-title timeline-desc">
|
|
62
|
+
<title id="timeline-title">Product launch · fourteen months</title>
|
|
63
|
+
<desc id="timeline-desc">Timeline showing product milestones from the first post in February 2025 through three design versions and the schematic skill in April 2026.</desc>
|
|
64
|
+
<defs>
|
|
65
|
+
<pattern id="dots" width="22" height="22" patternUnits="userSpaceOnUse">
|
|
66
|
+
<circle cx="1" cy="1" r="0.9" fill="rgba(45,49,66,0.10)"/>
|
|
67
|
+
</pattern>
|
|
68
|
+
</defs>
|
|
69
|
+
|
|
70
|
+
<rect width="100%" height="100%" fill="#f5f5f5"/>
|
|
71
|
+
<rect width="100%" height="100%" fill="url(#dots)" opacity="0.55"/>
|
|
72
|
+
|
|
73
|
+
<!-- Year markers (background) -->
|
|
74
|
+
<text x="60" y="340" fill="rgba(45,49,66,0.06)" font-size="72" font-weight="600" font-family="'Geist Mono', monospace">2025</text>
|
|
75
|
+
<text x="700" y="340" fill="rgba(45,49,66,0.06)" font-size="72" font-weight="600" font-family="'Geist Mono', monospace">2026</text>
|
|
76
|
+
|
|
77
|
+
<!-- Baseline -->
|
|
78
|
+
<line x1="80" y1="240" x2="920" y2="240" stroke="rgba(79,93,117,0.45)" stroke-width="1"/>
|
|
79
|
+
|
|
80
|
+
<!-- Year boundary tick (between 2025 and 2026) -->
|
|
81
|
+
<line x1="680" y1="232" x2="680" y2="248" stroke="rgba(45,49,66,0.20)" stroke-width="1"/>
|
|
82
|
+
<text x="680" y="260" fill="#5a6580" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.14em">JAN '26</text>
|
|
83
|
+
|
|
84
|
+
<!-- Start / end caps -->
|
|
85
|
+
<line x1="80" y1="232" x2="80" y2="248" stroke="rgba(45,49,66,0.20)" stroke-width="1"/>
|
|
86
|
+
<line x1="920" y1="232" x2="920" y2="248" stroke="rgba(45,49,66,0.20)" stroke-width="1"/>
|
|
87
|
+
|
|
88
|
+
<!-- Event 1: FEB 2025 · First post (below) -->
|
|
89
|
+
<line x1="100" y1="240" x2="100" y2="296" stroke="rgba(45,49,66,0.30)" stroke-width="1"/>
|
|
90
|
+
<circle cx="100" cy="240" r="4" fill="#2d3142"/>
|
|
91
|
+
<text x="100" y="312" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.14em">FEB 2025</text>
|
|
92
|
+
<text x="100" y="328" fill="#2d3142" font-size="12" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">First post</text>
|
|
93
|
+
|
|
94
|
+
<!-- Event 2: APR 2025 · Design v1 (above) -->
|
|
95
|
+
<line x1="240" y1="184" x2="240" y2="240" stroke="rgba(45,49,66,0.30)" stroke-width="1"/>
|
|
96
|
+
<circle cx="240" cy="240" r="4" fill="#2d3142"/>
|
|
97
|
+
<text x="240" y="156" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.14em">APR 2025</text>
|
|
98
|
+
<text x="240" y="172" fill="#2d3142" font-size="12" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">Design v1</text>
|
|
99
|
+
|
|
100
|
+
<!-- Event 3: SEP 2025 · Design v2 (below) -->
|
|
101
|
+
<line x1="500" y1="240" x2="500" y2="296" stroke="rgba(45,49,66,0.30)" stroke-width="1"/>
|
|
102
|
+
<circle cx="500" cy="240" r="4" fill="#2d3142"/>
|
|
103
|
+
<text x="500" y="312" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.14em">SEP 2025</text>
|
|
104
|
+
<text x="500" y="328" fill="#2d3142" font-size="12" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">Design v2</text>
|
|
105
|
+
<text x="500" y="344" fill="#4f5d75" font-size="9" font-family="'Geist Mono', monospace" text-anchor="middle">typography pass</text>
|
|
106
|
+
|
|
107
|
+
<!-- Event 4: JAN 2026 · Design v3 (above, coral major) -->
|
|
108
|
+
<line x1="740" y1="160" x2="740" y2="240" stroke="#bf4520" stroke-width="1"/>
|
|
109
|
+
<circle cx="740" cy="240" r="6" fill="#bf4520"/>
|
|
110
|
+
<text x="740" y="128" fill="#bf4520" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.14em">JAN 2026</text>
|
|
111
|
+
<text x="740" y="148" fill="#2d3142" font-size="14" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">Design v3</text>
|
|
112
|
+
<text x="740" y="164" fill="#4f5d75" font-size="9" font-family="'Geist Mono', monospace" text-anchor="middle">complexity budget</text>
|
|
113
|
+
|
|
114
|
+
<!-- Event 5: APR 2026 · now · Diagram Design skill (below, coral) -->
|
|
115
|
+
<line x1="900" y1="240" x2="900" y2="296" stroke="#bf4520" stroke-width="1"/>
|
|
116
|
+
<circle cx="900" cy="240" r="6" fill="#bf4520"/>
|
|
117
|
+
<text x="900" y="312" fill="#bf4520" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.14em">APR 2026 · NOW</text>
|
|
118
|
+
<text x="900" y="328" fill="#2d3142" font-size="12" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">Schematic skill</text>
|
|
119
|
+
<text x="900" y="344" fill="#4f5d75" font-size="9" font-family="'Geist Mono', monospace" text-anchor="middle">eight diagram types</text>
|
|
120
|
+
|
|
121
|
+
<!-- Legend -->
|
|
122
|
+
<line x1="40" y1="376" x2="960" y2="376" stroke="rgba(45,49,66,0.10)" stroke-width="0.8"/>
|
|
123
|
+
<text x="40" y="392" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" letter-spacing="0.18em">LEGEND</text>
|
|
124
|
+
|
|
125
|
+
<circle cx="52" cy="408" r="4" fill="#2d3142"/>
|
|
126
|
+
<text x="68" y="412" fill="#4f5d75" font-size="8.5" font-family="'Geist', sans-serif">Event</text>
|
|
127
|
+
|
|
128
|
+
<circle cx="148" cy="408" r="6" fill="#bf4520"/>
|
|
129
|
+
<text x="164" y="412" fill="#4f5d75" font-size="8.5" font-family="'Geist', sans-serif">Major milestone</text>
|
|
130
|
+
|
|
131
|
+
<text x="296" y="412" fill="#4f5d75" font-size="8.5" font-family="'Geist', sans-serif" font-style="italic">Spacing is proportional to real elapsed time.</text>
|
|
132
|
+
</svg>
|
|
133
|
+
</div>
|
|
134
|
+
</body>
|
|
135
|
+
</html>
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>Payment gateway block decomposition · Tree</title>
|
|
7
|
+
<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">
|
|
8
|
+
<style>
|
|
9
|
+
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
|
10
|
+
:root {
|
|
11
|
+
--color-paper: #f5f5f5;
|
|
12
|
+
--color-ink: #2d3142;
|
|
13
|
+
--color-muted: #4f5d75;
|
|
14
|
+
--color-accent: #bf4520;
|
|
15
|
+
--font-sans: 'Geist', system-ui, sans-serif;
|
|
16
|
+
--font-serif: 'Instrument Serif', serif;
|
|
17
|
+
--font-mono: 'Geist Mono', ui-monospace, monospace;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
body {
|
|
21
|
+
font-family: var(--font-sans);
|
|
22
|
+
background: var(--color-paper);
|
|
23
|
+
color: var(--color-ink);
|
|
24
|
+
min-height: 100vh;
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
justify-content: center;
|
|
28
|
+
padding: 3rem 2rem;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.frame { max-width: 1100px; width: 100%; }
|
|
32
|
+
|
|
33
|
+
.eyebrow {
|
|
34
|
+
font-family: var(--font-mono);
|
|
35
|
+
font-size: 0.66rem;
|
|
36
|
+
font-weight: 500;
|
|
37
|
+
letter-spacing: 0.18em;
|
|
38
|
+
text-transform: uppercase;
|
|
39
|
+
color: var(--color-muted);
|
|
40
|
+
margin-bottom: 0.5rem;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
h1 {
|
|
44
|
+
font-family: var(--font-serif);
|
|
45
|
+
font-size: clamp(1.5rem, 2.4vw + 0.75rem, 2rem);
|
|
46
|
+
font-weight: 400;
|
|
47
|
+
letter-spacing: -0.02em;
|
|
48
|
+
line-height: 1.15;
|
|
49
|
+
color: var(--color-ink);
|
|
50
|
+
margin-bottom: 1.5rem;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
svg { width: 100%; min-width: 900px; display: block; }
|
|
54
|
+
</style>
|
|
55
|
+
</head>
|
|
56
|
+
<body>
|
|
57
|
+
<div class="frame">
|
|
58
|
+
<p class="eyebrow">Semantic pattern · Traceable block decomposition</p>
|
|
59
|
+
<h1>Payment gateway block decomposition</h1>
|
|
60
|
+
|
|
61
|
+
<svg viewBox="0 0 1000 320" xmlns="http://www.w3.org/2000/svg" role="img"
|
|
62
|
+
aria-labelledby="tree-block-decomposition-title tree-block-decomposition-desc">
|
|
63
|
+
<title id="tree-block-decomposition-title">Payment gateway block decomposition</title>
|
|
64
|
+
<desc id="tree-block-decomposition-desc">Traceable block decomposition of a payment gateway
|
|
65
|
+
into card authorization, fraud screening, and settlement ledger, with a stable ID, inputs,
|
|
66
|
+
outputs, constraints, and an implementation path carried as metadata on each block.</desc>
|
|
67
|
+
<defs>
|
|
68
|
+
<pattern id="dots" width="22" height="22" patternUnits="userSpaceOnUse">
|
|
69
|
+
<circle cx="1" cy="1" r="0.9" fill="rgba(45,49,66,0.10)"/>
|
|
70
|
+
</pattern>
|
|
71
|
+
</defs>
|
|
72
|
+
|
|
73
|
+
<rect width="100%" height="100%" fill="#f5f5f5"/>
|
|
74
|
+
<rect width="100%" height="100%" fill="url(#dots)" opacity="0.55"/>
|
|
75
|
+
|
|
76
|
+
<!-- Tier tags (left margin) -->
|
|
77
|
+
<text x="40" y="70" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" letter-spacing="0.18em">TIER 0 · ROOT</text>
|
|
78
|
+
<text x="40" y="210" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" letter-spacing="0.18em">TIER 1</text>
|
|
79
|
+
|
|
80
|
+
<!-- Connectors first (§5 paint order), orthogonal elbow, 1px muted stroke -->
|
|
81
|
+
<path d="M 500 92 V 130 H 280 V 180" fill="none" stroke="#4f5d75" stroke-width="1"/>
|
|
82
|
+
<path d="M 500 92 V 180" fill="none" stroke="#4f5d75" stroke-width="1"/>
|
|
83
|
+
<path d="M 500 92 V 130 H 720 V 180" fill="none" stroke="#4f5d75" stroke-width="1"/>
|
|
84
|
+
|
|
85
|
+
<!-- Root: PAY-001 Payment Gateway (coral focal) -->
|
|
86
|
+
<rect x="420" y="40" width="160" height="52" rx="6" fill="#f5f5f5"/>
|
|
87
|
+
<rect x="420" y="40" width="160" height="52" rx="6" fill="rgba(191,69,32,0.08)" stroke="#bf4520" stroke-width="1"
|
|
88
|
+
data-block-id="PAY-001" data-block-name="Payment Gateway"
|
|
89
|
+
data-block-output="Settled transaction record"
|
|
90
|
+
data-block-constraint="Every transaction reaches exactly one terminal state"
|
|
91
|
+
data-block-impl="src/payments/gateway/"/>
|
|
92
|
+
<rect x="428" y="46" width="46" height="12" rx="2" fill="transparent" stroke="rgba(191,69,32,0.50)" stroke-width="0.8"/>
|
|
93
|
+
<text x="451" y="55" fill="#bf4520" font-size="7" font-family="'Geist Mono', monospace"
|
|
94
|
+
text-anchor="middle" letter-spacing="0.08em">PAY-001</text>
|
|
95
|
+
<text x="500" y="70" fill="#2d3142" font-size="12" font-weight="600"
|
|
96
|
+
font-family="'Geist', sans-serif" text-anchor="middle">Payment Gateway</text>
|
|
97
|
+
<text x="500" y="86" fill="#4f5d75" font-size="9"
|
|
98
|
+
font-family="'Geist Mono', monospace" text-anchor="middle">request → settlement</text>
|
|
99
|
+
|
|
100
|
+
<!-- Child: PAY-001-01 Card Authorization -->
|
|
101
|
+
<rect x="200" y="180" width="160" height="52" rx="6" fill="#f5f5f5"/>
|
|
102
|
+
<rect x="200" y="180" width="160" height="52" rx="6" fill="#ffffff" stroke="#2d3142" stroke-width="1"
|
|
103
|
+
data-block-id="PAY-001-01" data-block-parent="PAY-001" data-block-name="Card Authorization"
|
|
104
|
+
data-block-input="Raw card details from checkout"
|
|
105
|
+
data-block-output="Authorization token or decline"
|
|
106
|
+
data-block-constraint="Never persists a raw card number"
|
|
107
|
+
data-block-assumption="Runs behind the PCI-scoped boundary"
|
|
108
|
+
data-block-impl="src/payments/authorization/"/>
|
|
109
|
+
<rect x="208" y="186" width="62" height="12" rx="2" fill="transparent" stroke="rgba(45,49,66,0.40)" stroke-width="0.8"/>
|
|
110
|
+
<text x="239" y="195" fill="#2d3142" font-size="7" font-family="'Geist Mono', monospace"
|
|
111
|
+
text-anchor="middle" letter-spacing="0.08em">PAY-001-01</text>
|
|
112
|
+
<text x="280" y="210" fill="#2d3142" font-size="12" font-weight="600"
|
|
113
|
+
font-family="'Geist', sans-serif" text-anchor="middle">Card Authorization</text>
|
|
114
|
+
<text x="280" y="226" fill="#4f5d75" font-size="9"
|
|
115
|
+
font-family="'Geist Mono', monospace" text-anchor="middle">card → token</text>
|
|
116
|
+
|
|
117
|
+
<!-- Child: PAY-001-02 Fraud Screening -->
|
|
118
|
+
<rect x="420" y="180" width="160" height="52" rx="6" fill="#f5f5f5"/>
|
|
119
|
+
<rect x="420" y="180" width="160" height="52" rx="6" fill="#ffffff" stroke="#2d3142" stroke-width="1"
|
|
120
|
+
data-block-id="PAY-001-02" data-block-parent="PAY-001" data-block-name="Fraud Screening"
|
|
121
|
+
data-block-input="Authorization token"
|
|
122
|
+
data-block-output="Risk score and hold/release decision"
|
|
123
|
+
data-block-constraint="Blocks release above the configured risk threshold"
|
|
124
|
+
data-block-impl="src/payments/fraud/"/>
|
|
125
|
+
<rect x="428" y="186" width="62" height="12" rx="2" fill="transparent" stroke="rgba(45,49,66,0.40)" stroke-width="0.8"/>
|
|
126
|
+
<text x="459" y="195" fill="#2d3142" font-size="7" font-family="'Geist Mono', monospace"
|
|
127
|
+
text-anchor="middle" letter-spacing="0.08em">PAY-001-02</text>
|
|
128
|
+
<text x="500" y="210" fill="#2d3142" font-size="12" font-weight="600"
|
|
129
|
+
font-family="'Geist', sans-serif" text-anchor="middle">Fraud Screening</text>
|
|
130
|
+
<text x="500" y="226" fill="#4f5d75" font-size="9"
|
|
131
|
+
font-family="'Geist Mono', monospace" text-anchor="middle">token → score</text>
|
|
132
|
+
|
|
133
|
+
<!-- Child: PAY-001-03 Settlement Ledger -->
|
|
134
|
+
<rect x="640" y="180" width="160" height="52" rx="6" fill="#f5f5f5"/>
|
|
135
|
+
<rect x="640" y="180" width="160" height="52" rx="6" fill="#ffffff" stroke="#2d3142" stroke-width="1"
|
|
136
|
+
data-block-id="PAY-001-03" data-block-parent="PAY-001" data-block-name="Settlement Ledger"
|
|
137
|
+
data-block-input="Released authorization"
|
|
138
|
+
data-block-output="Settled transaction record"
|
|
139
|
+
data-block-constraint="Append-only, no ledger row is ever mutated after write"
|
|
140
|
+
data-block-impl="src/payments/ledger/"/>
|
|
141
|
+
<rect x="648" y="186" width="62" height="12" rx="2" fill="transparent" stroke="rgba(45,49,66,0.40)" stroke-width="0.8"/>
|
|
142
|
+
<text x="679" y="195" fill="#2d3142" font-size="7" font-family="'Geist Mono', monospace"
|
|
143
|
+
text-anchor="middle" letter-spacing="0.08em">PAY-001-03</text>
|
|
144
|
+
<text x="720" y="210" fill="#2d3142" font-size="12" font-weight="600"
|
|
145
|
+
font-family="'Geist', sans-serif" text-anchor="middle">Settlement Ledger</text>
|
|
146
|
+
<text x="720" y="226" fill="#4f5d75" font-size="9"
|
|
147
|
+
font-family="'Geist Mono', monospace" text-anchor="middle">release → ledger</text>
|
|
148
|
+
</svg>
|
|
149
|
+
</div>
|
|
150
|
+
</body>
|
|
151
|
+
</html>
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>Claude Code skill taxonomy · Tree</title>
|
|
7
|
+
<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">
|
|
8
|
+
<style>
|
|
9
|
+
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
|
10
|
+
:root {
|
|
11
|
+
--color-paper: #f5f5f5;
|
|
12
|
+
--color-ink: #2d3142;
|
|
13
|
+
--color-muted: #4f5d75;
|
|
14
|
+
--color-accent: #bf4520;
|
|
15
|
+
--font-sans: 'Geist', system-ui, sans-serif;
|
|
16
|
+
--font-serif: 'Instrument Serif', serif;
|
|
17
|
+
--font-mono: 'Geist Mono', ui-monospace, monospace;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
body {
|
|
21
|
+
font-family: var(--font-sans);
|
|
22
|
+
background: var(--color-paper);
|
|
23
|
+
color: var(--color-ink);
|
|
24
|
+
min-height: 100vh;
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
justify-content: center;
|
|
28
|
+
padding: 3rem 2rem;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.frame { max-width: 1200px; width: 100%; }
|
|
32
|
+
|
|
33
|
+
.eyebrow {
|
|
34
|
+
font-family: var(--font-mono);
|
|
35
|
+
font-size: 0.66rem;
|
|
36
|
+
font-weight: 500;
|
|
37
|
+
letter-spacing: 0.18em;
|
|
38
|
+
text-transform: uppercase;
|
|
39
|
+
color: var(--color-muted);
|
|
40
|
+
margin-bottom: 0.5rem;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
h1 {
|
|
44
|
+
font-family: var(--font-serif);
|
|
45
|
+
font-size: clamp(1.5rem, 2.4vw + 0.75rem, 2rem);
|
|
46
|
+
font-weight: 400;
|
|
47
|
+
letter-spacing: -0.02em;
|
|
48
|
+
line-height: 1.15;
|
|
49
|
+
color: var(--color-ink);
|
|
50
|
+
margin-bottom: 1.5rem;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
svg { width: 100%; min-width: 900px; display: block; }
|
|
54
|
+
</style>
|
|
55
|
+
</head>
|
|
56
|
+
<body>
|
|
57
|
+
<div class="frame">
|
|
58
|
+
<p class="eyebrow">Tree · Diagram Design</p>
|
|
59
|
+
<h1>Claude Code skill taxonomy</h1>
|
|
60
|
+
|
|
61
|
+
<svg viewBox="0 0 1000 480" xmlns="http://www.w3.org/2000/svg" role="img" aria-labelledby="tree-title tree-desc">
|
|
62
|
+
<title id="tree-title">Claude Code skill taxonomy</title>
|
|
63
|
+
<desc id="tree-desc">Tree diagram showing a Skills root branching into Design, Engineering, and Research categories and their leaf skills.</desc>
|
|
64
|
+
<defs>
|
|
65
|
+
<pattern id="dots" width="22" height="22" patternUnits="userSpaceOnUse">
|
|
66
|
+
<circle cx="1" cy="1" r="0.9" fill="rgba(45,49,66,0.10)"/>
|
|
67
|
+
</pattern>
|
|
68
|
+
</defs>
|
|
69
|
+
|
|
70
|
+
<rect width="100%" height="100%" fill="#f5f5f5"/>
|
|
71
|
+
<rect width="100%" height="100%" fill="url(#dots)" opacity="0.55"/>
|
|
72
|
+
|
|
73
|
+
<!-- Tier tags (left margin) -->
|
|
74
|
+
<text x="40" y="108" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" letter-spacing="0.18em">TIER 0 · ROOT</text>
|
|
75
|
+
<text x="40" y="224" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" letter-spacing="0.18em" text-anchor="start">TIER 1</text>
|
|
76
|
+
<text x="40" y="324" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" letter-spacing="0.18em" text-anchor="start">TIER 2</text>
|
|
77
|
+
|
|
78
|
+
<!-- Connectors drawn first (behind nodes) -->
|
|
79
|
+
<!-- Root → Tier 1 bus -->
|
|
80
|
+
<path d="M 500 128 L 500 168 L 220 168 L 220 208" fill="none" stroke="#4f5d75" stroke-width="1"/>
|
|
81
|
+
<path d="M 500 168 L 500 208" fill="none" stroke="#4f5d75" stroke-width="1"/>
|
|
82
|
+
<path d="M 500 168 L 780 168 L 780 208" fill="none" stroke="#4f5d75" stroke-width="1"/>
|
|
83
|
+
|
|
84
|
+
<!-- Design → leaves -->
|
|
85
|
+
<path d="M 220 256 L 220 296 L 140 296 L 140 336" fill="none" stroke="#4f5d75" stroke-width="1"/>
|
|
86
|
+
<path d="M 220 296 L 300 296 L 300 336" fill="none" stroke="#4f5d75" stroke-width="1"/>
|
|
87
|
+
|
|
88
|
+
<!-- Engineering → leaves -->
|
|
89
|
+
<path d="M 500 256 L 500 296 L 480 296 L 480 336" fill="none" stroke="#4f5d75" stroke-width="1"/>
|
|
90
|
+
<path d="M 500 296 L 660 296 L 660 336" fill="none" stroke="#4f5d75" stroke-width="1"/>
|
|
91
|
+
|
|
92
|
+
<!-- Research → single leaf -->
|
|
93
|
+
<path d="M 780 256 L 780 296 L 840 296 L 840 336" fill="none" stroke="#4f5d75" stroke-width="1"/>
|
|
94
|
+
|
|
95
|
+
<!-- Root node: Skills (coral focal) -->
|
|
96
|
+
<rect x="420" y="80" width="160" height="48" rx="6" fill="#f5f5f5"/>
|
|
97
|
+
<rect x="420" y="80" width="160" height="48" rx="6" fill="rgba(191,69,32,0.08)" stroke="#bf4520" stroke-width="1"/>
|
|
98
|
+
<rect x="428" y="88" width="32" height="12" rx="2" fill="transparent" stroke="rgba(191,69,32,0.50)" stroke-width="0.8"/>
|
|
99
|
+
<text x="444" y="97" fill="#bf4520" font-size="7" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">ROOT</text>
|
|
100
|
+
<text x="500" y="118" fill="#2d3142" font-size="12" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">Skills</text>
|
|
101
|
+
|
|
102
|
+
<!-- Tier 1: Design -->
|
|
103
|
+
<rect x="140" y="208" width="160" height="48" rx="6" fill="#f5f5f5"/>
|
|
104
|
+
<rect x="140" y="208" width="160" height="48" rx="6" fill="#ffffff" stroke="#2d3142" stroke-width="1"/>
|
|
105
|
+
<rect x="148" y="216" width="28" height="12" rx="2" fill="transparent" stroke="rgba(45,49,66,0.40)" stroke-width="0.8"/>
|
|
106
|
+
<text x="162" y="225" fill="#2d3142" font-size="7" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">CAT</text>
|
|
107
|
+
<text x="220" y="240" fill="#2d3142" font-size="12" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">Design</text>
|
|
108
|
+
<text x="220" y="252" fill="#4f5d75" font-size="9" font-family="'Geist Mono', monospace" text-anchor="middle">ui · visual · ux</text>
|
|
109
|
+
|
|
110
|
+
<!-- Tier 1: Engineering -->
|
|
111
|
+
<rect x="420" y="208" width="160" height="48" rx="6" fill="#f5f5f5"/>
|
|
112
|
+
<rect x="420" y="208" width="160" height="48" rx="6" fill="#ffffff" stroke="#2d3142" stroke-width="1"/>
|
|
113
|
+
<rect x="428" y="216" width="28" height="12" rx="2" fill="transparent" stroke="rgba(45,49,66,0.40)" stroke-width="0.8"/>
|
|
114
|
+
<text x="442" y="225" fill="#2d3142" font-size="7" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">CAT</text>
|
|
115
|
+
<text x="500" y="240" fill="#2d3142" font-size="12" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">Engineering</text>
|
|
116
|
+
<text x="500" y="252" fill="#4f5d75" font-size="9" font-family="'Geist Mono', monospace" text-anchor="middle">ship · review · test</text>
|
|
117
|
+
|
|
118
|
+
<!-- Tier 1: Research -->
|
|
119
|
+
<rect x="700" y="208" width="160" height="48" rx="6" fill="#f5f5f5"/>
|
|
120
|
+
<rect x="700" y="208" width="160" height="48" rx="6" fill="#ffffff" stroke="#2d3142" stroke-width="1"/>
|
|
121
|
+
<rect x="708" y="216" width="28" height="12" rx="2" fill="transparent" stroke="rgba(45,49,66,0.40)" stroke-width="0.8"/>
|
|
122
|
+
<text x="722" y="225" fill="#2d3142" font-size="7" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">CAT</text>
|
|
123
|
+
<text x="780" y="240" fill="#2d3142" font-size="12" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">Research</text>
|
|
124
|
+
<text x="780" y="252" fill="#4f5d75" font-size="9" font-family="'Geist Mono', monospace" text-anchor="middle">investigate · analyze</text>
|
|
125
|
+
|
|
126
|
+
<!-- Tier 2: polish -->
|
|
127
|
+
<rect x="60" y="336" width="160" height="48" rx="6" fill="#f5f5f5"/>
|
|
128
|
+
<rect x="60" y="336" width="160" height="48" rx="6" fill="rgba(45,49,66,0.05)" stroke="#4f5d75" stroke-width="0.8"/>
|
|
129
|
+
<text x="140" y="360" fill="#2d3142" font-size="12" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">polish</text>
|
|
130
|
+
<text x="140" y="372" fill="#4f5d75" font-size="9" font-family="'Geist Mono', monospace" text-anchor="middle">align · space · rhythm</text>
|
|
131
|
+
|
|
132
|
+
<!-- Tier 2: critique -->
|
|
133
|
+
<rect x="220" y="336" width="160" height="48" rx="6" fill="#f5f5f5"/>
|
|
134
|
+
<rect x="220" y="336" width="160" height="48" rx="6" fill="rgba(45,49,66,0.05)" stroke="#4f5d75" stroke-width="0.8"/>
|
|
135
|
+
<text x="300" y="360" fill="#2d3142" font-size="12" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">critique</text>
|
|
136
|
+
<text x="300" y="372" fill="#4f5d75" font-size="9" font-family="'Geist Mono', monospace" text-anchor="middle">hierarchy · density</text>
|
|
137
|
+
|
|
138
|
+
<!-- Tier 2: review -->
|
|
139
|
+
<rect x="400" y="336" width="160" height="48" rx="6" fill="#f5f5f5"/>
|
|
140
|
+
<rect x="400" y="336" width="160" height="48" rx="6" fill="rgba(45,49,66,0.05)" stroke="#4f5d75" stroke-width="0.8"/>
|
|
141
|
+
<text x="480" y="360" fill="#2d3142" font-size="12" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">review</text>
|
|
142
|
+
<text x="480" y="372" fill="#4f5d75" font-size="9" font-family="'Geist Mono', monospace" text-anchor="middle">pre-land diff · sql</text>
|
|
143
|
+
|
|
144
|
+
<!-- Tier 2: ship -->
|
|
145
|
+
<rect x="580" y="336" width="160" height="48" rx="6" fill="#f5f5f5"/>
|
|
146
|
+
<rect x="580" y="336" width="160" height="48" rx="6" fill="rgba(45,49,66,0.05)" stroke="#4f5d75" stroke-width="0.8"/>
|
|
147
|
+
<text x="660" y="360" fill="#2d3142" font-size="12" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">ship</text>
|
|
148
|
+
<text x="660" y="372" fill="#4f5d75" font-size="9" font-family="'Geist Mono', monospace" text-anchor="middle">merge · deploy · verify</text>
|
|
149
|
+
|
|
150
|
+
<!-- Tier 2: investigate -->
|
|
151
|
+
<rect x="760" y="336" width="160" height="48" rx="6" fill="#f5f5f5"/>
|
|
152
|
+
<rect x="760" y="336" width="160" height="48" rx="6" fill="rgba(45,49,66,0.05)" stroke="#4f5d75" stroke-width="0.8"/>
|
|
153
|
+
<text x="840" y="360" fill="#2d3142" font-size="12" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">investigate</text>
|
|
154
|
+
<text x="840" y="372" fill="#4f5d75" font-size="9" font-family="'Geist Mono', monospace" text-anchor="middle">root cause · evidence</text>
|
|
155
|
+
|
|
156
|
+
<!-- Legend strip -->
|
|
157
|
+
<line x1="40" y1="412" x2="960" y2="412" stroke="rgba(45,49,66,0.10)" stroke-width="0.8"/>
|
|
158
|
+
<text x="40" y="428" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" letter-spacing="0.18em">LEGEND</text>
|
|
159
|
+
|
|
160
|
+
<rect x="40" y="444" width="14" height="10" rx="2" fill="rgba(191,69,32,0.08)" stroke="#bf4520" stroke-width="1"/>
|
|
161
|
+
<text x="60" y="452" fill="#4f5d75" font-size="8.5" font-family="'Geist', sans-serif">Root · focal</text>
|
|
162
|
+
|
|
163
|
+
<rect x="180" y="444" width="14" height="10" rx="2" fill="#ffffff" stroke="#2d3142" stroke-width="1"/>
|
|
164
|
+
<text x="200" y="452" fill="#4f5d75" font-size="8.5" font-family="'Geist', sans-serif">Category branch</text>
|
|
165
|
+
|
|
166
|
+
<rect x="340" y="444" width="14" height="10" rx="2" fill="rgba(45,49,66,0.05)" stroke="#4f5d75" stroke-width="0.8"/>
|
|
167
|
+
<text x="360" y="452" fill="#4f5d75" font-size="8.5" font-family="'Geist', sans-serif">Leaf skill</text>
|
|
168
|
+
|
|
169
|
+
<text x="500" y="452" fill="#4f5d75" font-size="8.5" font-family="'Geist', sans-serif" font-style="italic">Orthogonal connectors only. Coral marks the root — every branch descends from one idea.</text>
|
|
170
|
+
</svg>
|
|
171
|
+
</div>
|
|
172
|
+
</body>
|
|
173
|
+
</html>
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>World population · Treemap</title>
|
|
7
|
+
<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">
|
|
8
|
+
<style>
|
|
9
|
+
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
|
10
|
+
:root {
|
|
11
|
+
--color-paper: #f5f5f5;
|
|
12
|
+
--color-ink: #2d3142;
|
|
13
|
+
--color-muted: #4f5d75;
|
|
14
|
+
--color-accent: #bf4520;
|
|
15
|
+
--font-sans: 'Geist', system-ui, sans-serif;
|
|
16
|
+
--font-serif: 'Instrument Serif', serif;
|
|
17
|
+
--font-mono: 'Geist Mono', ui-monospace, monospace;
|
|
18
|
+
}
|
|
19
|
+
body { font-family: var(--font-sans); background: var(--color-paper); color: var(--color-ink); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 3rem 2rem; }
|
|
20
|
+
.frame { max-width: 1200px; width: 100%; }
|
|
21
|
+
.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.5rem; }
|
|
22
|
+
h1 { font-family: var(--font-serif); font-size: clamp(1.5rem, 2.4vw + 0.75rem, 2rem); font-weight: 400; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 1.5rem; }
|
|
23
|
+
svg { width: 100%; min-width: 760px; display: block; }
|
|
24
|
+
</style>
|
|
25
|
+
</head>
|
|
26
|
+
<body>
|
|
27
|
+
<div class="frame">
|
|
28
|
+
<p class="eyebrow">Treemap · Diagram Design</p>
|
|
29
|
+
<h1>World population · six continents</h1>
|
|
30
|
+
|
|
31
|
+
<svg viewBox="0 0 1000 500" xmlns="http://www.w3.org/2000/svg" role="img" aria-labelledby="treemap-title treemap-desc">
|
|
32
|
+
<title id="treemap-title">World population · six continents</title>
|
|
33
|
+
<desc id="treemap-desc">Treemap of world population by continent in mid-2023, where cell area is population; Asia holds about 59 percent of the world total and Oceania, at under one percent, is too small to label.</desc>
|
|
34
|
+
<defs>
|
|
35
|
+
<pattern id="dots" width="22" height="22" patternUnits="userSpaceOnUse">
|
|
36
|
+
<circle cx="1" cy="1" r="0.9" fill="rgba(45,49,66,0.10)"/>
|
|
37
|
+
</pattern>
|
|
38
|
+
</defs>
|
|
39
|
+
|
|
40
|
+
<rect width="100%" height="100%" fill="#f5f5f5"/>
|
|
41
|
+
<rect width="100%" height="100%" fill="url(#dots)" opacity="0.55"/>
|
|
42
|
+
|
|
43
|
+
<!-- ─── CELLS ─── Squarified layout on a 4px grid. Area is the only
|
|
44
|
+
encoding: every cell is within 2.7% of its true share, measured as
|
|
45
|
+
RELATIVE error, because a 0.1pp slip is nothing on Asia and a third
|
|
46
|
+
of Oceania. Verified by scripts/verify-treemap.py. The non-focal
|
|
47
|
+
cells run a rank-ordered ink ramp, so their order survives greyscale;
|
|
48
|
+
the focal cell is marked by its accent stroke, not by tone. ─── -->
|
|
49
|
+
|
|
50
|
+
<!-- Asia FOCAL: 532×380 -->
|
|
51
|
+
<rect x="40" y="40" width="532" height="380" rx="2" fill="#f5f5f5"/>
|
|
52
|
+
<rect x="40" y="40" width="532" height="380" rx="2" data-share="59.04" fill="rgba(191,69,32,0.16)" stroke="#bf4520" stroke-width="1.5"/>
|
|
53
|
+
<text x="56" y="68" fill="#2d3142" font-size="14" font-weight="600" font-family="'Geist', sans-serif">Asia</text>
|
|
54
|
+
<text x="56" y="88" fill="#4f5d75" font-size="9" font-family="'Geist Mono', monospace">4.78B · 59% of world</text>
|
|
55
|
+
|
|
56
|
+
<!-- Africa: 252×252 -->
|
|
57
|
+
<rect x="576" y="40" width="252" height="252" rx="2" fill="#f5f5f5"/>
|
|
58
|
+
<rect x="576" y="40" width="252" height="252" rx="2" data-share="18.29" fill="rgba(45,49,66,0.16)" stroke="rgba(45,49,66,0.30)" stroke-width="1"/>
|
|
59
|
+
<text x="592" y="68" fill="#2d3142" font-size="13" font-weight="600" font-family="'Geist', sans-serif">Africa</text>
|
|
60
|
+
<text x="592" y="88" fill="#4f5d75" font-size="9" font-family="'Geist Mono', monospace">1.48B · 18%</text>
|
|
61
|
+
|
|
62
|
+
<!-- Europe: 124×252 -->
|
|
63
|
+
<rect x="832" y="40" width="124" height="252" rx="2" fill="#f5f5f5"/>
|
|
64
|
+
<rect x="832" y="40" width="124" height="252" rx="2" data-share="9.23" fill="rgba(45,49,66,0.13)" stroke="rgba(45,49,66,0.30)" stroke-width="1"/>
|
|
65
|
+
<text x="848" y="68" fill="#2d3142" font-size="13" font-weight="600" font-family="'Geist', sans-serif">Europe</text>
|
|
66
|
+
<text x="848" y="88" fill="#4f5d75" font-size="9" font-family="'Geist Mono', monospace">0.75B · 9%</text>
|
|
67
|
+
|
|
68
|
+
<!-- North America: 208×124 -->
|
|
69
|
+
<rect x="576" y="296" width="208" height="124" rx="2" fill="#f5f5f5"/>
|
|
70
|
+
<rect x="576" y="296" width="208" height="124" rx="2" data-share="7.52" fill="rgba(45,49,66,0.10)" stroke="rgba(45,49,66,0.30)" stroke-width="1"/>
|
|
71
|
+
<text x="592" y="324" fill="#2d3142" font-size="12" font-weight="600" font-family="'Geist', sans-serif">North America</text>
|
|
72
|
+
<text x="592" y="344" fill="#4f5d75" font-size="9" font-family="'Geist Mono', monospace">0.61B · 8%</text>
|
|
73
|
+
|
|
74
|
+
<!-- South America: 148×124 -->
|
|
75
|
+
<rect x="788" y="296" width="148" height="124" rx="2" fill="#f5f5f5"/>
|
|
76
|
+
<rect x="788" y="296" width="148" height="124" rx="2" data-share="5.35" fill="rgba(45,49,66,0.07)" stroke="rgba(45,49,66,0.30)" stroke-width="1"/>
|
|
77
|
+
<text x="804" y="324" fill="#2d3142" font-size="12" font-weight="600" font-family="'Geist', sans-serif">South America</text>
|
|
78
|
+
<text x="804" y="344" fill="#4f5d75" font-size="9" font-family="'Geist Mono', monospace">0.43B · 5%</text>
|
|
79
|
+
|
|
80
|
+
<!-- Oceania: 16×124. Too narrow for a label, so it carries the info mark
|
|
81
|
+
rather than sideways text — the only rotated glyph in the figure would
|
|
82
|
+
read as a mistake. The cell keeps its honest area and is named in the
|
|
83
|
+
legend: a treemap must not silently omit a part of the whole it claims
|
|
84
|
+
to show, but it need not label what it cannot label well. -->
|
|
85
|
+
<rect x="940" y="296" width="16" height="124" rx="2" fill="#f5f5f5"/>
|
|
86
|
+
<rect x="940" y="296" width="16" height="124" rx="2" data-share="0.56" fill="rgba(45,49,66,0.04)" stroke="rgba(45,49,66,0.30)" stroke-width="1"/>
|
|
87
|
+
<circle cx="948" cy="320" r="5" fill="#2d3142"/>
|
|
88
|
+
<text x="948" y="323" fill="#f5f5f5" font-size="7" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">i</text>
|
|
89
|
+
|
|
90
|
+
<!-- Legend -->
|
|
91
|
+
<line x1="40" y1="462" x2="960" y2="462" stroke="rgba(45,49,66,0.10)" stroke-width="0.8"/>
|
|
92
|
+
<text x="40" y="478" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" letter-spacing="0.18em">LEGEND</text>
|
|
93
|
+
<text x="960" y="478" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" letter-spacing="0.06em" text-anchor="end">AREA = POPULATION · OUR WORLD IN DATA CONTINENTS (UN WPP) · MID-2023 · 8.09B TOTAL · PARTS ROUNDED, MAY NOT SUM</text>
|
|
94
|
+
|
|
95
|
+
<rect x="40" y="488" width="16" height="10" rx="2" fill="rgba(191,69,32,0.16)" stroke="#bf4520" stroke-width="1"/>
|
|
96
|
+
<text x="64" y="497" fill="#4f5d75" font-size="8.5" font-family="'Geist', sans-serif">Asia · the focal share</text>
|
|
97
|
+
|
|
98
|
+
<rect x="240" y="488" width="16" height="10" rx="2" fill="rgba(45,49,66,0.16)" stroke="rgba(45,49,66,0.30)" stroke-width="1"/>
|
|
99
|
+
<text x="264" y="497" fill="#4f5d75" font-size="8.5" font-family="'Geist', sans-serif">Other continents · stronger contrast is larger</text>
|
|
100
|
+
|
|
101
|
+
<circle cx="516" cy="493" r="5" fill="#2d3142"/>
|
|
102
|
+
<text x="516" y="496" fill="#f5f5f5" font-size="7" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">i</text>
|
|
103
|
+
<text x="532" y="497" fill="#4f5d75" font-size="8.5" font-family="'Geist', sans-serif">Oceania · 0.05B, 0.6% — too small to label</text>
|
|
104
|
+
</svg>
|
|
105
|
+
</div>
|
|
106
|
+
</body>
|
|
107
|
+
</html>
|