@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,61 @@
|
|
|
1
|
+
# 默认生成面(L1.5 · Mode A 主读 · ≤6KB)
|
|
2
|
+
|
|
3
|
+
> **Mode A / Fast 演示的首要读面**(正式场合 · 大气演讲)。完整决策见 `playbook.md`;工艺清单见 `presentation-craft.md`;代码用 `extract_snippet.py`。
|
|
4
|
+
> Mode B/C 能力保留——**需要时**再读 modes / layouts-*;勿把密排/架构默认反向污染 A。
|
|
5
|
+
|
|
6
|
+
## A 默认三件套
|
|
7
|
+
|
|
8
|
+
1. **12 默认页型**(下表)
|
|
9
|
+
2. **8 核心图**(核图池;advanced 按需)
|
|
10
|
+
3. **V1–V4** 演讲构图(≈ P1–P4)
|
|
11
|
+
|
|
12
|
+
**骨架分层(A)**:**主力** P1–P4 + P6/P10;**扩展** P5;**次级** P7–P9、P11–P12(意图命中再用,勿默认轮换)。
|
|
13
|
+
**图表**:**核图 8** 为默认池;`charts-extended.md` / advanced **仅意图命中才读/才用**(禁为凑多样性硬上)。
|
|
14
|
+
**按需**:Mode B Exhibit/密表 · Mode C 全幅架构——意图命中再读 modes / layouts-*。
|
|
15
|
+
|
|
16
|
+
## 12 默认页型
|
|
17
|
+
|
|
18
|
+
| 意图 | pageType | A 主力 skel | 备注 |
|
|
19
|
+
|------|----------|-------------|------|
|
|
20
|
+
| 封面 | cover | **P1** | |
|
|
21
|
+
| 议程 | agenda | **P2** | |
|
|
22
|
+
| 大数/KPI | kpi | **P3** | V3 |
|
|
23
|
+
| 要点 | points | **P4** | |
|
|
24
|
+
| 卡片 | cards | P5 | 扩展(非默认轮换) |
|
|
25
|
+
| 指标带 | metrics | **P2** | |
|
|
26
|
+
| 对比 | comparison | **P4** | V4 |
|
|
27
|
+
| 表 | table / halftable | **P4** / P1 | A 少用次级 P8;密表意图才 P8 |
|
|
28
|
+
| 图证 | exhibit / bar | **P1** / P2 | A 演讲图文;P8 为 B 证据次级 |
|
|
29
|
+
| 双栏论述 | twocol | **P6** | 主力 |
|
|
30
|
+
| 结构/泳道 | diagram / lane | **P10** | 全幅结构次级 P9;一主两从次级 P11 |
|
|
31
|
+
| 收尾 | closing | **P1** | |
|
|
32
|
+
|
|
33
|
+
选型:`recommend_layout.py --mode A|B|C`;矩阵见 playbook §三/§四。演示优先 V1–V4 对应页。
|
|
34
|
+
|
|
35
|
+
## 8 核心图
|
|
36
|
+
|
|
37
|
+
`bar` · `hbar` · `line` · `donut` · `progress` · `area` · `stack` · `dualline`
|
|
38
|
+
|
|
39
|
+
极偏占比 → **禁 donut/pie**,改 KPI/进度/对比条(V3)。简单图禁全幅。
|
|
40
|
+
**多样性**:先拉开核图 8;advanced 用了也计入 `minTypes`(不罚),但**只在内容需要时选**,绝不为凑下限垫冷门图。默认**不**预读 `charts-extended.md`。
|
|
41
|
+
|
|
42
|
+
## V1–V4(演示默认)
|
|
43
|
+
|
|
44
|
+
| V | 结构 | 何时 |
|
|
45
|
+
|---|------|------|
|
|
46
|
+
| V1 | 主视觉 + 右注解 | 默认图文 |
|
|
47
|
+
| V2 | 上图下带 | 总览→分解 |
|
|
48
|
+
| V3 | 大数 + 佐证 | 极偏/单点结论 |
|
|
49
|
+
| V4 | 双图对照 | 前后/方案 |
|
|
50
|
+
|
|
51
|
+
## 命令链(模型单写 · Mode A 含 layout-qa)
|
|
52
|
+
|
|
53
|
+
```
|
|
54
|
+
scaffold_report → 只填 REPORT_MODEL → render_from_model --inplace
|
|
55
|
+
→ validate_report --strict # presentation 自动 --layout-qa
|
|
56
|
+
→ quality_gate --deliver →(可选)pptx
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## 长文与密度(Mode A)
|
|
60
|
+
|
|
61
|
+
一屏一主张;证据用卡/列表或跟进页。**禁止**为稀疏 demo 感删实质。溢出顺序:重构 → 拆页 → 换 V/栅格 → 有限 fontShrink。详见 `presentation-craft.md`「长文与信息承载」。
|