@iasiv5/dsh-skills 1.0.0 → 1.0.2

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.
Files changed (37) hide show
  1. package/locale/en.json +6 -0
  2. package/locale/zh.json +6 -0
  3. package/package.json +4 -2
  4. package/skills/answer-me-with-html/SKILL.md +4 -2
  5. package/skills/answer-me-with-html/scripts/am.mjs +627 -192
  6. package/skills/guizang-ppt-skill/README.en.md +10 -8
  7. package/skills/guizang-ppt-skill/README.md +10 -8
  8. package/skills/guizang-ppt-skill/SKILL.md +20 -16
  9. package/skills/guizang-ppt-skill/assets/template-swiss.html +1068 -456
  10. package/skills/guizang-ppt-skill/assets/template.html +991 -225
  11. package/skills/guizang-ppt-skill/references/checklist.md +5 -4
  12. package/skills/guizang-ppt-skill/references/components.md +9 -5
  13. package/skills/guizang-ppt-skill/references/gz-components.md +289 -0
  14. package/skills/guizang-ppt-skill/references/layouts-swiss.md +17 -17
  15. package/skills/guizang-ppt-skill/references/layouts.md +1 -1
  16. package/skills/guizang-ppt-skill/references/themes-swiss.md +57 -86
  17. package/skills/guizang-ppt-skill/references/themes.md +65 -63
  18. package/skills/guizang-ppt-skill/scripts/gz-theme.mjs +434 -0
  19. package/skills/guizang-social-card-skill/HANDOFF.md +19 -1
  20. package/skills/guizang-social-card-skill/README.en.md +20 -7
  21. package/skills/guizang-social-card-skill/README.md +20 -7
  22. package/skills/guizang-social-card-skill/SKILL.md +7 -5
  23. package/skills/guizang-social-card-skill/assets/template-editorial-card.html +954 -126
  24. package/skills/guizang-social-card-skill/assets/template-swiss-card.html +588 -84
  25. package/skills/guizang-social-card-skill/package-lock.json +90 -1
  26. package/skills/guizang-social-card-skill/package.json +7 -4
  27. package/skills/guizang-social-card-skill/references/background-systems.md +7 -15
  28. package/skills/guizang-social-card-skill/references/components.md +16 -10
  29. package/skills/guizang-social-card-skill/references/gz-components.md +289 -0
  30. package/skills/guizang-social-card-skill/references/layout-recipes.md +1 -1
  31. package/skills/guizang-social-card-skill/references/production-workflow.md +10 -12
  32. package/skills/guizang-social-card-skill/references/style-system.md +1 -1
  33. package/skills/guizang-social-card-skill/references/theme-presets.md +59 -111
  34. package/skills/guizang-social-card-skill/scripts/gz-fonts.mjs +654 -0
  35. package/skills/guizang-social-card-skill/scripts/gz-theme.mjs +434 -0
  36. package/skills/guizang-social-card-skill/scripts/render.mjs +92 -0
  37. package/skills/guizang-social-card-skill/validate-social-deck.mjs +11 -6
@@ -9,7 +9,24 @@
9
9
  "version": "1.0.0",
10
10
  "license": "ISC",
11
11
  "dependencies": {
12
- "playwright": "^1.60.0"
12
+ "playwright": "^1.60.0",
13
+ "subset-font": "^2.9.0"
14
+ }
15
+ },
16
+ "node_modules/argparse": {
17
+ "version": "2.0.1",
18
+ "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
19
+ "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
20
+ "license": "Python-2.0"
21
+ },
22
+ "node_modules/fontverter": {
23
+ "version": "2.0.0",
24
+ "resolved": "https://registry.npmjs.org/fontverter/-/fontverter-2.0.0.tgz",
25
+ "integrity": "sha512-DFVX5hvXuhi1Jven1tbpebYTCT9XYnvx6/Z+HFUPb7ZRMCW+pj2clU9VMhoTPgWKPhAs7JJDSk3CW1jNUvKCZQ==",
26
+ "license": "BSD-3-Clause",
27
+ "dependencies": {
28
+ "wawoff2": "^2.0.0",
29
+ "woff2sfnt-sfnt2woff": "^1.0.0"
13
30
  }
14
31
  },
15
32
  "node_modules/fsevents": {
@@ -25,6 +42,33 @@
25
42
  "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
26
43
  }
27
44
  },
45
+ "node_modules/harfbuzzjs": {
46
+ "version": "1.6.4",
47
+ "resolved": "https://registry.npmjs.org/harfbuzzjs/-/harfbuzzjs-1.6.4.tgz",
48
+ "integrity": "sha512-T/PyfhVt1gGR2Tkf5KJUj1DQFkVBXHw552lS1iLEEDhV1Lukb3eq1pk2ov85kgbT2YUiZtJBTak9w+M7YgzUEQ==",
49
+ "license": "MIT"
50
+ },
51
+ "node_modules/p-limit": {
52
+ "version": "3.1.0",
53
+ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",
54
+ "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==",
55
+ "license": "MIT",
56
+ "dependencies": {
57
+ "yocto-queue": "^0.1.0"
58
+ },
59
+ "engines": {
60
+ "node": ">=10"
61
+ },
62
+ "funding": {
63
+ "url": "https://github.com/sponsors/sindresorhus"
64
+ }
65
+ },
66
+ "node_modules/pako": {
67
+ "version": "1.0.11",
68
+ "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz",
69
+ "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==",
70
+ "license": "(MIT AND Zlib)"
71
+ },
28
72
  "node_modules/playwright": {
29
73
  "version": "1.60.0",
30
74
  "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.60.0.tgz",
@@ -52,6 +96,51 @@
52
96
  "engines": {
53
97
  "node": ">=18"
54
98
  }
99
+ },
100
+ "node_modules/subset-font": {
101
+ "version": "2.9.0",
102
+ "resolved": "https://registry.npmjs.org/subset-font/-/subset-font-2.9.0.tgz",
103
+ "integrity": "sha512-WJulQeFwbewrXIGcLJbSZFWI44fHW8gNRuPzLywfDL8w38IPRbN1JFxwG76aoohw9kcFdvjVIn2QmID1iy119A==",
104
+ "license": "BSD-3-Clause",
105
+ "dependencies": {
106
+ "fontverter": "^2.0.0",
107
+ "harfbuzzjs": "^1.6.1",
108
+ "p-limit": "^3.1.0"
109
+ }
110
+ },
111
+ "node_modules/wawoff2": {
112
+ "version": "2.0.1",
113
+ "resolved": "https://registry.npmjs.org/wawoff2/-/wawoff2-2.0.1.tgz",
114
+ "integrity": "sha512-r0CEmvpH63r4T15ebFqeOjGqU4+EgTx4I510NtK35EMciSdcTxCw3Byy3JnBonz7iyIFZ0AbVo0bbFpEVuhCYA==",
115
+ "license": "MIT",
116
+ "dependencies": {
117
+ "argparse": "^2.0.1"
118
+ },
119
+ "bin": {
120
+ "woff2_compress.js": "bin/woff2_compress.js",
121
+ "woff2_decompress.js": "bin/woff2_decompress.js"
122
+ }
123
+ },
124
+ "node_modules/woff2sfnt-sfnt2woff": {
125
+ "version": "1.0.0",
126
+ "resolved": "https://registry.npmjs.org/woff2sfnt-sfnt2woff/-/woff2sfnt-sfnt2woff-1.0.0.tgz",
127
+ "integrity": "sha512-edK4COc1c1EpRfMqCZO1xJOvdUtM5dbVb9iz97rScvnTevqEB3GllnLWCmMVp1MfQBdF1DFg/11I0rSyAdS4qQ==",
128
+ "license": "MIT",
129
+ "dependencies": {
130
+ "pako": "^1.0.7"
131
+ }
132
+ },
133
+ "node_modules/yocto-queue": {
134
+ "version": "0.1.0",
135
+ "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",
136
+ "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==",
137
+ "license": "MIT",
138
+ "engines": {
139
+ "node": ">=10"
140
+ },
141
+ "funding": {
142
+ "url": "https://github.com/sponsors/sindresorhus"
143
+ }
55
144
  }
56
145
  }
57
146
  }
@@ -1,16 +1,19 @@
1
1
  {
2
2
  "name": "guizang-social-card-skill",
3
3
  "version": "1.0.0",
4
- "description": "",
4
+ "description": "歸藏图文卡片 skill:小红书图文、公众号封面、Live Photo",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "test:docs": "node scripts/check-skill-docs.mjs",
8
- "validate": "node validate-social-deck.mjs"
8
+ "validate": "node validate-social-deck.mjs",
9
+ "render": "node scripts/render.mjs"
9
10
  },
10
11
  "keywords": [],
11
12
  "author": "",
12
13
  "license": "ISC",
13
14
  "dependencies": {
14
- "playwright": "^1.60.0"
15
- }
15
+ "playwright": "^1.60.0",
16
+ "subset-font": "^2.9.0"
17
+ },
18
+ "type": "module"
16
19
  }
@@ -67,25 +67,17 @@ If screenshots are the main evidence, the background should support them rather
67
67
 
68
68
  ## WebGL Helper
69
69
 
70
- The skill includes `assets/magazine-bg-webgl.js`, a small helper for a deterministic ink-flow background:
70
+ The Editorial seed template already ships the ink-flow background (the shared guizang-design effects runtime, inlined in its `GZ:EFFECTS` block). Every `<canvas class="mag-bg">` inside a poster is mounted automatically, coloured from the current theme (`--ink` / `--paper` / `--accent`) and frozen at a fixed time, so repeated renders are identical. Nothing to copy or call.
71
+
72
+ Per-canvas options are data attributes:
71
73
 
72
74
  ```html
73
- <canvas class="mag-bg" data-seed="workbuddy"></canvas>
74
- <script src="assets/magazine-bg-webgl.js"></script>
75
- <script>
76
- document.querySelectorAll(".mag-bg").forEach((canvas, i) => {
77
- MagazineBg.mount(canvas, {
78
- ink: [26, 46, 31],
79
- paper: [245, 241, 232],
80
- accent: [46, 107, 79],
81
- strength: canvas.closest(".hero") ? 0.62 : 0.28,
82
- frozenTime: 2.4 + i * 0.37
83
- });
84
- });
85
- </script>
75
+ <canvas class="mag-bg"></canvas> <!-- default: strength .32, frozen at 12.5s -->
76
+ <canvas class="mag-bg" data-strength=".62"></canvas> <!-- cover, divider, pull quote, closing -->
77
+ <canvas class="mag-bg" data-strength=".28" data-frozen="2.77"></canvas> <!-- vary the pattern between posters -->
86
78
  ```
87
79
 
88
- For screenshot exports, prefer `frozenTime` so repeated renders look stable.
80
+ Use stronger values (.5–.62) on cover, divider, pull-quote, sparse thesis and closing posters, subtle values (.24–.32) on screenshot, ledger, checklist and evidence posters. Vary `data-frozen` between posters (for example `2.4 + i * 0.37`) so a carousel does not repeat the same pattern.
89
81
 
90
82
  ## 2D Fallback
91
83
 
@@ -2,12 +2,16 @@
2
2
 
3
3
  Shared component spec for both seed templates. Read this when you need to look up a class, a font size, or a hard rule that recurs across recipes. Per-recipe details live in `layout-recipes.md`; per-theme color tokens live in `theme-presets.md`.
4
4
 
5
+ ## Shared design-system components (optional)
6
+
7
+ Besides the recipe classes below, the seed templates ship the shared `gz-*` components (cover, stats, quote, process, compare, figure, gallery, ledger, chrome) used by every Guizang skill. Their markup and fields are in `references/gz-components.md` (generated). Use them when a recipe has no class for what you need; text sizes come from the `gz-t-<role>` classes shown there.
8
+
5
9
  ## Font Stacks
6
10
 
7
11
  Editorial Magazine x E-ink (`template-editorial-card.html`):
8
12
 
9
13
  - `--serif-zh`: Noto Serif SC, Songti SC, STSong — display titles.
10
- - `--serif-en`: Playfair Display, italic for subtitles and pull quotes.
14
+ - `--serif-en`: Playfair Display, italic for English subtitles and English words inside pull quotes. Chinese text is never italic.
11
15
  - `--sans-zh`: Noto Sans SC, PingFang SC — utility text and fallback; body and lead default to serif-zh in Editorial.
12
16
  - `--sans-en`: Inter — Latin body in mixed content.
13
17
  - `--mono`: IBM Plex Mono — labels, page metadata, issue strip, captions.
@@ -16,7 +20,7 @@ Swiss International (`template-swiss-card.html`):
16
20
 
17
21
  - `--sans`: Inter, Helvetica Neue, Helvetica.
18
22
  - `--sans-zh`: Noto Sans SC, PingFang SC — Chinese body.
19
- - `--mono`: IBM Plex Mono — labels, captions, t-meta.
23
+ - `--mono`: JetBrains Mono — labels, captions, t-meta (Swiss uses JetBrains Mono, Editorial uses IBM Plex Mono, same as the PPT skill).
20
24
 
21
25
  Never load a serif font in the Swiss template. Never let the Editorial template lose its serif display family.
22
26
 
@@ -117,14 +121,16 @@ The smoke deck's p2 title `第三次进山,装备比上一次轻 3.4kg` is the 2
117
121
 
118
122
  A 1080x1440 PNG is usually viewed on a phone at 360-420 logical pixels wide. Anything below the listed size becomes unreadable:
119
123
 
120
- | Role | Minimum | Notes |
121
- | ------------------- | ------- | ---------------------------------------- |
122
- | Body / paragraph | 28px | Editorial, Swiss alike |
123
- | Lead | 30px | The "1.5x body" guard |
124
- | Caption / kicker | 20px | Do not drop below 18px |
125
- | Label / meta strip | 20px | Mono only |
126
- | Cell title in grids | 24px | Matrix / brief cards |
127
- | Number annotation | 22px | Stat-card .lbl, ledger .sub |
124
+ | Role | Recommended | Hard floor (validator FAIL below) | Notes |
125
+ | ------------------- | ----------- | --------------------------------- | --------------------------- |
126
+ | Body / paragraph | 28px | 24px | Editorial, Swiss alike |
127
+ | Lead | 30px | 26px (WARN only) | The "1.5x body" guard |
128
+ | Caption / kicker | 20px | 18px | |
129
+ | Label / meta strip | 20px | 18px | Mono only |
130
+ | Cell title in grids | 24px | 20px | Matrix / brief cards |
131
+ | Number annotation | 22px | 20px | Stat-card .lbl, ledger .sub |
132
+
133
+ The hard floors are shared with the design system (guizang-design tokens, card medium) and enforced by R4.
128
134
 
129
135
  If you cannot fit the copy, cut the copy. Do not shrink type.
130
136
 
@@ -0,0 +1,289 @@
1
+ # 组件参考
2
+
3
+ 由 `scripts/docs.mjs` 从 `components/render.mjs` 生成,不要手改。
4
+
5
+ 用法:页面根节点写 `<html data-family="magazine|swiss" data-medium="slide|card|page" data-theme="…">`,
6
+ 引入 `gz-<family>.css`、`gz-<family>-<medium>.css`、`gz-components.css`。组件只管布局和颜色,
7
+ 字号来自 `gz-t-<角色>` 类,所以同一段 HTML 在 PPT、卡片、网页里会自动换成各自的字号和排法。
8
+ 反色块加 `data-surface="ink|accent|paper-2"`,块内文字颜色自动切换;整张强调色或墨色的卡片 / 页面,把它加在 `<section class="poster">` 或 `<section class="slide">` 上。
9
+ 强调色当文字色时不要直接写 `var(--accent)`:小字用 `.gz-c-accent`(`--accent-ink`),大字和大数字用 `.gz-c-accent-display`(`--accent-display`)。
10
+ 条目清单的编号用 `gz-t-label`,大数字组件把数字角色类(如 `gz-t-num-l`)加在 `.gz-stat__value` 上,单位按它的 0.4 倍显示。
11
+
12
+ ## 页眉页脚 · `chrome`
13
+
14
+ | 字段 | 说明 |
15
+ |---|---|
16
+ | `left` | 左侧文字(数组) |
17
+ | `right` | 右侧文字(数组) |
18
+ | `pos` | top \| bottom |
19
+ | `accentFirst` | 左侧第一项用强调色 |
20
+
21
+ ```html
22
+ <div class="gz-chrome gz-t-meta" data-pos="top">
23
+ <div class="gz-chrome__group">
24
+ <span class="gz-chrome__accent">Issue 07</span>
25
+ <span>Numbers</span>
26
+ </div>
27
+ <div class="gz-chrome__group">
28
+ <span>02 / 08</span>
29
+ </div>
30
+ </div>
31
+ ```
32
+
33
+ ## 封面 · `cover`
34
+
35
+ | 字段 | 说明 |
36
+ |---|---|
37
+ | `kicker` | 眉题 |
38
+ | `title` | 标题,可用 `<br>` 断行 |
39
+ | `sub` | 副标题 |
40
+ | `meta` | 底部信息(数组) |
41
+ | `surface` | ink \| accent(可选) |
42
+
43
+ 文案上限:
44
+ - `title`:card 每行 ≤ 8 字,≤ 2 行;slide 每行 ≤ 12 字,≤ 2 行;page ≤ 30 字
45
+
46
+ ```html
47
+ <header class="gz-cover">
48
+ <div class="gz-cover__kicker gz-t-label">Issue 07 · AI Weekly</div>
49
+ <div class="gz-cover__body">
50
+ <h1 class="gz-cover__title gz-t-display-zh" style="--chars:7.10">模型越来越便宜<br>Agent 才刚开始</h1>
51
+ <div class="gz-cover__rule">
52
+ </div>
53
+ <p class="gz-cover__sub gz-t-lead">推理成本一年降了一个数量级,真正改变工作方式的是能连续工作的系统。</p>
54
+ </div>
55
+ <div class="gz-cover__meta gz-chrome gz-t-meta">
56
+ <div class="gz-chrome__group">
57
+ <span>歸藏</span>
58
+ <span>2026.10.30</span>
59
+ <span>内容生产 · 第 7 期</span>
60
+ </div>
61
+ </div>
62
+ </header>
63
+ ```
64
+
65
+ ## 大数字 · `stats`
66
+
67
+ | 字段 | 说明 |
68
+ |---|---|
69
+ | `items` | [{ label, value, unit, note, accent }],1–4 个 |
70
+
71
+ 文案上限:
72
+ - `value`:数字 ≤ 4 位,单位单独写在 unit 里
73
+
74
+ ```html
75
+ <div class="gz-stats" data-count="3">
76
+ <div class="gz-stat">
77
+ <div class="gz-stat__label gz-t-label">推理成本</div>
78
+ <div class="gz-stat__value gz-t-num-l">
79
+ <span class="gz-stat__num">−92</span>
80
+ <span class="gz-stat__unit">%</span>
81
+ </div>
82
+ <p class="gz-stat__note gz-t-small">同等能力的模型,每百万 token 价格</p>
83
+ </div>
84
+ <div class="gz-stat is-accent">
85
+ <div class="gz-stat__label gz-t-label">Agent 起草</div>
86
+ <div class="gz-stat__value gz-t-num-l">
87
+ <span class="gz-stat__num">87</span>
88
+ <span class="gz-stat__unit">%</span>
89
+ </div>
90
+ <p class="gz-stat__note gz-t-small">本栏目选题由 Agent 起草初稿</p>
91
+ </div>
92
+ <div class="gz-stat">
93
+ <div class="gz-stat__label gz-t-label">单次任务</div>
94
+ <div class="gz-stat__value gz-t-num-l">
95
+ <span class="gz-stat__num">3.5</span>
96
+ <span class="gz-stat__unit">h</span>
97
+ </div>
98
+ <p class="gz-stat__note gz-t-small">Agent 不间断工作的中位时长</p>
99
+ </div>
100
+ </div>
101
+ ```
102
+
103
+ ## 引言 · `quote`
104
+
105
+ | 字段 | 说明 |
106
+ |---|---|
107
+ | `text` | 引文,可用 `<br>` 断行 |
108
+ | `source` | 出处 |
109
+
110
+ 文案上限:
111
+ - `text`:card ≤ 3 行;slide ≤ 3 行;page ≤ 80 字
112
+
113
+ ```html
114
+ <figure class="gz-quote">
115
+ <blockquote class="gz-quote__text gz-t-quote">
116
+ <p>好的工具不替你做决定,<br>而是让你更快看清<br>该做什么决定。</p>
117
+ </blockquote>
118
+ <figcaption class="gz-quote__source gz-t-meta">歸藏 · Next Token 第 31 期</figcaption>
119
+ </figure>
120
+ ```
121
+
122
+ ## 流程 · `process`
123
+
124
+ | 字段 | 说明 |
125
+ |---|---|
126
+ | `steps` | [{ title, desc }],3–5 步 |
127
+
128
+ ```html
129
+ <ol class="gz-process" style="--n:4">
130
+ <li class="gz-process__step">
131
+ <span class="gz-process__nb gz-t-label">01</span>
132
+ <h3 class="gz-process__title gz-t-heading">去 AI 味</h3>
133
+ <p class="gz-process__desc gz-t-small">先过一遍 Humanizer,统一语气。</p>
134
+ </li>
135
+ <li class="gz-process__step">
136
+ <span class="gz-process__nb gz-t-label">02</span>
137
+ <h3 class="gz-process__title gz-t-heading">锁定主题</h3>
138
+ <p class="gz-process__desc gz-t-small">读取工作区 theme.json,所有产出同一套色板。</p>
139
+ </li>
140
+ <li class="gz-process__step">
141
+ <span class="gz-process__nb gz-t-label">03</span>
142
+ <h3 class="gz-process__title gz-t-heading">并行生成</h3>
143
+ <p class="gz-process__desc gz-t-small">长文网页、小红书图文、公众号封面同时出。</p>
144
+ </li>
145
+ <li class="gz-process__step">
146
+ <span class="gz-process__nb gz-t-label">04</span>
147
+ <h3 class="gz-process__title gz-t-heading">入库归档</h3>
148
+ <p class="gz-process__desc gz-t-small">素材按栏目进展示库,可以一键做同款。</p>
149
+ </li>
150
+ </ol>
151
+ ```
152
+
153
+ ## 对比 · `compare`
154
+
155
+ | 字段 | 说明 |
156
+ |---|---|
157
+ | `before` | { tag, title, desc, list } |
158
+ | `after` | 同 before |
159
+ | `afterSurface` | 瑞士风可给 after 加 ink / accent 底 |
160
+
161
+ ```html
162
+ <div class="gz-compare">
163
+ <section class="gz-compare__side" data-side="before">
164
+ <div class="gz-compare__tag gz-t-label">Before</div>
165
+ <h3 class="gz-compare__title gz-t-heading">三个 skill 各管各的</h3>
166
+ <ul class="gz-compare__list gz-t-small">
167
+ <li>每次重新选风格</li>
168
+ <li>配色对不上</li>
169
+ <li>字号文档和模板不一致</li>
170
+ </ul>
171
+ </section>
172
+ <div class="gz-compare__rule">
173
+ </div>
174
+ <section class="gz-compare__side" data-side="after">
175
+ <div class="gz-compare__tag gz-t-label">After</div>
176
+ <h3 class="gz-compare__title gz-t-heading">一套 token 驱动三种产出</h3>
177
+ <ul class="gz-compare__list gz-t-small">
178
+ <li>主题一次锁定</li>
179
+ <li>对比度构建时校验</li>
180
+ <li>字体按需内置</li>
181
+ </ul>
182
+ </section>
183
+ </div>
184
+ ```
185
+
186
+ ## 图框 · `figure`
187
+
188
+ | 字段 | 说明 |
189
+ |---|---|
190
+ | `src` | 图片地址 |
191
+ | `alt` | 替代文字 |
192
+ | `kind` | photo \| screenshot |
193
+ | `ratio` | 16x9 \| 16x10 \| 4x3 \| 3x2 \| 1x1 \| 3x4 \| 21x9 |
194
+ | `idx` | 编号,如 Fig.1 |
195
+ | `caption` | 说明 |
196
+
197
+ ```html
198
+ <figure class="gz-figure" data-kind="screenshot" data-ratio="16x10">
199
+ <div class="gz-figure__well">
200
+ <img src="assets/screenshot.png" alt="">
201
+ </div>
202
+ <figcaption class="gz-figure__cap gz-t-caption">
203
+ <span class="gz-figure__idx">Fig.1</span>
204
+ <span>瑞士风 4 个主题的小红书卡片样张</span>
205
+ </figcaption>
206
+ </figure>
207
+ ```
208
+
209
+ ## 图片网格 · `gallery`
210
+
211
+ | 字段 | 说明 |
212
+ |---|---|
213
+ | `items` | [figure 的数据],2–6 张 |
214
+ | `cols` | 列数(幻灯片 / 网页) |
215
+
216
+ ```html
217
+ <div class="gz-gallery" data-count="3">
218
+ <figure class="gz-figure" data-kind="photo" data-ratio="4x3">
219
+ <div class="gz-figure__well">
220
+ <img src="assets/forest-ink.webp" alt="">
221
+ </div>
222
+ <figcaption class="gz-figure__cap gz-t-caption">
223
+ <span class="gz-figure__idx">01</span>
224
+ <span>森林墨</span>
225
+ </figcaption>
226
+ </figure>
227
+ <figure class="gz-figure" data-kind="photo" data-ratio="4x3">
228
+ <div class="gz-figure__well">
229
+ <img src="assets/kraft-paper.webp" alt="">
230
+ </div>
231
+ <figcaption class="gz-figure__cap gz-t-caption">
232
+ <span class="gz-figure__idx">02</span>
233
+ <span>牛皮纸</span>
234
+ </figcaption>
235
+ </figure>
236
+ <figure class="gz-figure" data-kind="photo" data-ratio="4x3">
237
+ <div class="gz-figure__well">
238
+ <img src="assets/indigo-porcelain.webp" alt="">
239
+ </div>
240
+ <figcaption class="gz-figure__cap gz-t-caption">
241
+ <span class="gz-figure__idx">03</span>
242
+ <span>靛蓝瓷</span>
243
+ </figcaption>
244
+ </figure>
245
+ </div>
246
+ ```
247
+
248
+ ## 条目清单 · `ledger`
249
+
250
+ | 字段 | 说明 |
251
+ |---|---|
252
+ | `rows` | [{ title, note, value }],3–6 行 |
253
+
254
+ ```html
255
+ <ol class="gz-ledger">
256
+ <li class="gz-ledger__row">
257
+ <span class="gz-ledger__nb gz-t-label">01</span>
258
+ <div>
259
+ <div class="gz-ledger__title gz-t-heading">共享组件库</div>
260
+ <p class="gz-ledger__note gz-t-small">九个组件覆盖三个 skill 的重叠部分</p>
261
+ </div>
262
+ <span class="gz-ledger__value gz-t-meta">进行中</span>
263
+ </li>
264
+ <li class="gz-ledger__row">
265
+ <span class="gz-ledger__nb gz-t-label">02</span>
266
+ <div>
267
+ <div class="gz-ledger__title gz-t-heading">特效库</div>
268
+ <p class="gz-ledger__note gz-t-small">WebGL 背景、ASCII 呼吸场、点阵</p>
269
+ </div>
270
+ <span class="gz-ledger__value gz-t-meta">11 月</span>
271
+ </li>
272
+ <li class="gz-ledger__row">
273
+ <span class="gz-ledger__nb gz-t-label">03</span>
274
+ <div>
275
+ <div class="gz-ledger__title gz-t-heading">迁移 PPT</div>
276
+ <p class="gz-ledger__note gz-t-small">逐页截图对比,视觉不回退</p>
277
+ </div>
278
+ <span class="gz-ledger__value gz-t-meta">11 月</span>
279
+ </li>
280
+ <li class="gz-ledger__row">
281
+ <span class="gz-ledger__nb gz-t-label">04</span>
282
+ <div>
283
+ <div class="gz-ledger__title gz-t-heading">插件与展示库</div>
284
+ <p class="gz-ledger__note gz-t-small">DeepSeek Harness</p>
285
+ </div>
286
+ <span class="gz-ledger__value gz-t-meta">12 月</span>
287
+ </li>
288
+ </ol>
289
+ ```
@@ -169,7 +169,7 @@ Structure:
169
169
  - WebGL ink-flow background visible across most of the canvas (Editorial template mounts this by default).
170
170
  - One mono `kicker` like `Act II` or `Part 2 of 3`.
171
171
  - One large serif `h-display` naming the section (3-6 Chinese characters).
172
- - One short subtitle in serif italic.
172
+ - One short English subtitle in serif italic (Playfair). A Chinese subtitle stays upright.
173
173
  - Optional bottom `issue-strip` with the section's promise.
174
174
 
175
175
  HTML skeleton (3:4):
@@ -7,9 +7,8 @@ Create a task folder under `local-tests/` by default:
7
7
  ```text
8
8
  local-tests/<slug>/
9
9
  index.html
10
- render.cjs
11
10
  assets/
12
- output/
11
+ output/ ← written by scripts/render.mjs
13
12
  ```
14
13
 
15
14
  Use descriptive slugs:
@@ -55,9 +54,8 @@ Each frame must have stable dimensions:
55
54
  height: 1080px;
56
55
  }
57
56
 
58
- .wechat-pair-preview {
59
- width: 2400px;
60
- min-height: 1180px;
57
+ .pair-preview {
58
+ width: max-content; /* 2100 + 1080 + gaps; the renderer widens its window to fit */
61
59
  }
62
60
  ```
63
61
 
@@ -81,17 +79,17 @@ For electronic-magazine pages, place background canvases inside each `.poster` i
81
79
  </section>
82
80
  ```
83
81
 
84
- The skill includes a reusable helper at `assets/magazine-bg-webgl.js`. Copy or inline it into the generated project when a WebGL background is useful.
82
+ The Editorial seed template already includes the ink-flow background (`<canvas class="mag-bg">`, see background-systems.md); nothing to copy.
85
83
 
86
84
  ## Rendering
87
85
 
88
- Use Playwright or an equivalent browser screenshot workflow:
86
+ Run the bundled renderer (install dependencies once with `npm install` in the skill root):
89
87
 
90
- 1. Open `index.html`.
91
- 2. Wait for fonts and images.
92
- 3. Screenshot each frame node by id.
93
- 4. Save to `output/`.
94
- 5. Verify dimensions.
88
+ ```bash
89
+ node <SKILL_ROOT>/scripts/render.mjs local-tests/<slug>
90
+ ```
91
+
92
+ It embeds the fonts the page actually uses (subset, written into the HTML, so rendering is offline and repeatable), waits for fonts, the frozen background and Lucide icons, screenshots every `.poster` by id into `output/<id>.png` plus `wechat-cover-pair-preview.png`, and fails if any image is not the board size (1080×1440 / 1080×1080 / 2100×900). Options: `--only xhs-01,wechat-1x1`, `--out <dir>`, `--no-embed` (use online fonts).
95
93
 
96
94
  If using WebGL or procedural canvas backgrounds:
97
95
 
@@ -144,7 +144,7 @@ These all rendered without errors and looked plausible in isolation, but failed
144
144
  A page with all of the following looks Swiss-in-disguise even if you intended Editorial:
145
145
 
146
146
  - Single flat paper color, no grain, no ink wash, no WebGL,
147
- - Mono labels (`IBM Plex Mono uppercase`) on every kicker, foot, pill, and row label,
147
+ - Mono labels (uppercase `--mono`) on every kicker, foot, pill, and row label,
148
148
  - A serif headline floating alone with no large image, pull quote, or marginalia column.
149
149
 
150
150
  Fix by **one** of: