@topmindspace/tms-skills 0.1.0 → 0.1.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.
- package/CHANGELOG.md +76 -0
- package/README.md +9 -3
- package/bin/tms-skills.js +200 -160
- package/package.json +12 -9
- package/top-ppt-html/README.md +162 -254
- package/top-ppt-html/SKILL.md +126 -111
- package/top-ppt-html/assets/examples/2026-09-09-architecture-graphite-dark.html +3926 -3926
- package/top-ppt-html/assets/examples/2026-09-09-architecture-graphite-dark.model.json +167 -167
- package/top-ppt-html/assets/examples/2026-09-09-presentation-business-blue.html +4325 -4325
- package/top-ppt-html/assets/examples/2026-09-09-presentation-business-blue.model.json +320 -320
- package/top-ppt-html/assets/examples/2026-09-09-research-mckinsey.html +5527 -5527
- package/top-ppt-html/assets/examples/2026-09-09-research-mckinsey.model.json +913 -913
- package/top-ppt-html/assets/pptx-export.js +1944 -1944
- package/top-ppt-html/assets/style-gallery.html +589 -589
- package/top-ppt-html/assets/templates/architecture.html +3728 -3728
- package/top-ppt-html/assets/templates/engine.css +840 -840
- package/top-ppt-html/assets/templates/presentation.html +3738 -3738
- package/top-ppt-html/assets/templates/research.html +4017 -4017
- package/top-ppt-html/assets/templates/ui.js +520 -520
- package/top-ppt-html/assets/theme-overview-architecture.png +0 -0
- package/top-ppt-html/assets/theme-overview-research.png +0 -0
- package/top-ppt-html/assets/theme-overview.png +0 -0
- package/top-ppt-html/evals/prompts.csv +15 -15
- package/top-ppt-html/evals/rubric.schema.json +25 -25
- package/top-ppt-html/evals/run_evals.py +220 -220
- package/top-ppt-html/evals/trace.example.json +16 -16
- package/top-ppt-html/package-lock.json +186 -0
- package/top-ppt-html/package.json +11 -11
- package/top-ppt-html/references/charts-basic.md +624 -624
- package/top-ppt-html/references/charts-discipline.md +110 -108
- package/top-ppt-html/references/charts-extended.md +482 -482
- package/top-ppt-html/references/charts.md +37 -28
- package/top-ppt-html/references/components-atoms.md +624 -624
- package/top-ppt-html/references/components.md +30 -30
- package/top-ppt-html/references/content-rules.md +510 -490
- package/top-ppt-html/references/default-surface.md +61 -0
- package/top-ppt-html/references/design-system.md +478 -478
- package/top-ppt-html/references/failure-modes.md +227 -214
- package/top-ppt-html/references/high-fidelity.md +127 -127
- package/top-ppt-html/references/icons.md +176 -397
- package/top-ppt-html/references/infographics-stats.md +308 -308
- package/top-ppt-html/references/infographics-structure.md +226 -226
- package/top-ppt-html/references/infographics.md +43 -43
- package/top-ppt-html/references/layout-grammar.md +325 -315
- package/top-ppt-html/references/layouts-architecture.md +108 -108
- package/top-ppt-html/references/layouts-combo.md +600 -600
- package/top-ppt-html/references/layouts-research.md +160 -160
- package/top-ppt-html/references/modes.md +259 -254
- package/top-ppt-html/references/outline-design.md +275 -275
- package/top-ppt-html/references/playbook.md +284 -266
- package/top-ppt-html/references/pptx-export.md +227 -209
- package/top-ppt-html/references/presentation-craft.md +69 -0
- package/top-ppt-html/references/styles.md +370 -370
- package/top-ppt-html/references/tech-design.md +138 -138
- package/top-ppt-html/scripts/audit_css.py +109 -109
- package/top-ppt-html/scripts/audit_docs.py +176 -176
- package/top-ppt-html/scripts/audit_skill.py +231 -220
- package/top-ppt-html/scripts/audit_styles.py +351 -351
- package/top-ppt-html/scripts/build_examples.py +55 -2276
- package/top-ppt-html/scripts/build_pptx.js +2386 -2380
- package/top-ppt-html/scripts/capture_theme_overview.js +79 -78
- package/top-ppt-html/scripts/checks_html.py +166 -127
- package/top-ppt-html/scripts/cross_verify.py +298 -294
- package/top-ppt-html/scripts/env_probe.py +158 -158
- package/top-ppt-html/scripts/extract_model.py +210 -210
- package/top-ppt-html/scripts/extract_snippet.py +374 -374
- package/top-ppt-html/scripts/gen_channel_a.js +214 -214
- package/top-ppt-html/scripts/layout-constants.json +111 -18
- package/top-ppt-html/scripts/lib_layout_regions.js +410 -412
- package/top-ppt-html/scripts/measure_height.py +178 -178
- package/top-ppt-html/scripts/negative_tests.py +433 -307
- package/top-ppt-html/scripts/package_skill.py +294 -291
- package/top-ppt-html/scripts/prepare_images.py +341 -341
- package/top-ppt-html/scripts/probe_image_export.py +187 -188
- package/top-ppt-html/scripts/quality_gate.py +309 -301
- package/top-ppt-html/scripts/recommend_layout.py +384 -0
- package/top-ppt-html/scripts/regression.py +308 -308
- package/top-ppt-html/scripts/render_compare.py +275 -275
- package/top-ppt-html/scripts/render_from_model.py +698 -698
- package/top-ppt-html/scripts/scaffold_report.py +1054 -1054
- package/top-ppt-html/scripts/section-file-map.json +104 -104
- package/top-ppt-html/scripts/smoke_pptx.sh +30 -0
- package/top-ppt-html/scripts/sync_runtime.py +659 -662
- package/top-ppt-html/scripts/validate_pptx.py +1579 -1510
- package/top-ppt-html/scripts/validate_report.py +1755 -1456
- package/top-ppt-html/assets/examples/2026-09-09-architecture-spectrum.html +0 -3926
- package/top-ppt-html/assets/examples/2026-09-09-architecture-spectrum.model.json +0 -168
- package/top-ppt-html/assets/examples/2026-09-09-presentation-apple-mono.html +0 -4325
- package/top-ppt-html/assets/examples/2026-09-09-presentation-apple-mono.model.json +0 -321
- package/top-ppt-html/assets/examples/2026-09-09-presentation-brand-red.html +0 -4325
- package/top-ppt-html/assets/examples/2026-09-09-presentation-brand-red.model.json +0 -321
- package/top-ppt-html/assets/examples/2026-09-09-research-deep-teal.html +0 -5527
- package/top-ppt-html/assets/examples/2026-09-09-research-deep-teal.model.json +0 -914
- package/top-ppt-html/assets/examples/2026-09-09-research-indigo-violet.html +0 -5527
- package/top-ppt-html/assets/examples/2026-09-09-research-indigo-violet.model.json +0 -914
- package/top-ppt-html/assets/examples/2026-09-09-research-warm-sand.html +0 -5527
- package/top-ppt-html/assets/examples/2026-09-09-research-warm-sand.model.json +0 -914
- package/top-ppt-html/assets/theme-overview-presentation.png +0 -0
- package/top-ppt-html/references/design-system-engine.md +0 -235
- package/top-ppt-html/references/industry-benchmark.md +0 -105
- package/top-ppt-html/references/reform-plan.md +0 -252
- package/top-ppt-html/scripts/layout_slots.json +0 -830
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# 演示工艺清单 · Presentation Craft(L2 · Mode A)
|
|
2
|
+
|
|
3
|
+
> **何时读**:Mode A / 正式演示 / 路演 / 演讲 / Fast 演示路径。与 `default-surface.md` 同级常读。
|
|
4
|
+
> **何时不读**:Mode B 密排、Mode C 架构深读(能力保留,不反向污染 A)。
|
|
5
|
+
> **定位**:大气、演讲友好;一屏一主张;图标/图表克制配文——非 gadget deck、非咨询 dump。
|
|
6
|
+
|
|
7
|
+
## 铁律速查(Hard rules)
|
|
8
|
+
|
|
9
|
+
| 中文原则 | English | 可执行 |
|
|
10
|
+
|----------|---------|--------|
|
|
11
|
+
| 一屏一主张 | one idea per slide | 标题即结论;第二主张拆页 |
|
|
12
|
+
| 三秒可读 | 3-second / glance rule | 主信息 3 秒可抓;广告牌不是文档 |
|
|
13
|
+
| 留白即设计 | whitespace as design | 合法空:封面/章节幕/金句/收尾;内容页半空 = underfill |
|
|
14
|
+
| 最后一排 | back of the room | 投影正文宜大;少字号档(display/h1 · body · caption) |
|
|
15
|
+
| CRAP | Contrast / Repetition / Alignment / Proximity | 强焦点;跨页 chrome 锁死;左缘顶边齐;相关成组 |
|
|
16
|
+
| 行动标题 | action / claim title | 主张句,非「现状分析」式话题标签 |
|
|
17
|
+
| 少色单强调 | single accent | 2–3 主色 + 灰阶;1 accent;红仅警示 |
|
|
18
|
+
| 图表克制 | restrain / reduce / emphasize | 8 核图优先;简单图禁全幅;极偏禁 donut→V3 |
|
|
19
|
+
| 图标语义 | icons as meaning | 约 3–8/屏;固定 px 档;禁表内/图内乱插 |
|
|
20
|
+
| **默认无动画** | **motion = none** | 禁炫技转场/飞入作默认;HTML 翻页即可 |
|
|
21
|
+
| 无障碍对比 | WCAG AA | 正文 ≥4.5:1;大字/图形 ≥3:1;不靠颜色单独编码 |
|
|
22
|
+
| 舞台纪律 | 16:9 stage | 安全边距;一屏一重心;同页双大件 FAIL |
|
|
23
|
+
|
|
24
|
+
## 默认面(与 default-surface 对齐)
|
|
25
|
+
|
|
26
|
+
- **页型**:12 默认页型;**主力骨架 P1–P4 + P6/P10**(≈V1–V4)覆盖约 80% 页。
|
|
27
|
+
- **次级骨架 P7–P9 / P11–P12**:合法保留;A 下仅密表/全幅结构/一主两从等意图命中再用,**不进默认轮换**。P5 为常用扩展。
|
|
28
|
+
- **核图 8**:`bar` · `hbar` · `line` · `donut` · `progress` · `area` · `stack` · `dualline`。默认读面 = 纪律 + 核图;**不预读** `charts-extended.md`。
|
|
29
|
+
- **多样性**:先拉开核图;advanced **计入** `minTypes`(不罚)但**只按内容需要**选用,绝不为凑下限垫冷门图。
|
|
30
|
+
|
|
31
|
+
## 交付门禁(Mode A)
|
|
32
|
+
|
|
33
|
+
```
|
|
34
|
+
validate_report.py --strict # presentation 自动隐含 --layout-qa
|
|
35
|
+
quality_gate.py … --deliver # 同口径
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
检查:V 契约 · 简单全幅 · 骨架连用 · 截断/溢出未拆页 · 半空卡 · 对齐节奏 · 主张标题 WARN · 核图多样性 · WCAG。
|
|
39
|
+
|
|
40
|
+
## 自检(上台前 30 秒)
|
|
41
|
+
|
|
42
|
+
- [ ] 标题是主张句,不是话题词
|
|
43
|
+
- [ ] 眯眼可见:一条左线、一条顶线、一块重心
|
|
44
|
+
- [ ] 休止页有意留白;内容页不无故半空
|
|
45
|
+
- [ ] 无多强调色、无动画墙、无冷门图硬凑
|
|
46
|
+
- [ ] `motion = none`;翻页靠内容节奏
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
## 长文与信息承载(anti-truncation)
|
|
50
|
+
|
|
51
|
+
> **硬原则**:大量文字**不得**为了「看起来像稀疏 demo 甲板」而被故意压缩或删除。留白是设计;**删掉证据 / so-what / 口径不是设计**。
|
|
52
|
+
|
|
53
|
+
**Mode A 仍主张一屏一主张**——但「一主张」可以带充分证据:次要卡、列表、表、跟进页。内容密时优先**加结构**,不砍实质。
|
|
54
|
+
|
|
55
|
+
### 溢出处置顺序(铁律 · 与 `containers.overflowRule` 同源)
|
|
56
|
+
|
|
57
|
+
1. **重构承载**:段落 → 列表 / 卡片 / 表 / 图 / 组合版式
|
|
58
|
+
2. **拆页 / 分章**:议程→主张→证据卡→明细列表等多页序列;01a/01b;多部分章节
|
|
59
|
+
3. **换布局形态**:V1–V4 · 多列 · 卡栅格 · `g-side` / `g-bento`
|
|
60
|
+
4. **有限 `fontShrink`**(阶梯内、模式 floor 以上,最多 4 档)
|
|
61
|
+
5. **禁止**静默截断、砍 so-what、砍证据、为审美稀疏而删决策必需信息
|
|
62
|
+
|
|
63
|
+
### 密度许可
|
|
64
|
+
|
|
65
|
+
- 卡片/列表页在主张清楚时可**偏密**(多卡、多条),仍须可读、对齐、一重心。
|
|
66
|
+
- 单页字数预算是**溢出预警**,不是「字数太多就删」的许可证;超预算先走 1–3 步。
|
|
67
|
+
- 校验:`overflow-without-split` / 截断迹象 → FAIL 或 WARN;**不为「字多」单独 FAIL**。
|
|
68
|
+
|
|
69
|
+
> *Hard rules protect the stage; adaptive choices serve the content.*
|