diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..f7cf2db
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+.DS_Store
+*.backup
diff --git a/README.en.md b/README.en.md
index 737013e..a94c597 100644
--- a/README.en.md
+++ b/README.en.md
@@ -1,6 +1,11 @@
-# Magazine Web PPT · Editorial-Style Web Slide Deck Skill
+# Guizang PPT Skill · Web Decks / Images / Covers
-An agent skill for Claude Code, Codex, and similar coding-agent environments. It generates **single-file HTML horizontal-swipe decks** with an "**editorial magazine × electronic ink**" aesthetic — picture *Monocle* with code stitched in.
+An agent skill for Claude Code, Codex, and similar coding-agent environments. It generates **single-file HTML horizontal-swipe decks**, deck visuals, and social cover pages.
+
+It ships with two visual systems:
+
+- **Style A: editorial magazine × electronic ink**. Picture *Monocle* with code stitched in. Best for narrative talks, opinions, salons, and personal voice.
+- **Style B: Swiss International Typographic Style**. Grid-first, one high-saturation anchor color, sharp rectangles, hairline rules, and extreme type contrast. Best for facts, products, analysis, and frameworks.
> Distilled by [Guizang](https://x.com/op7418) from offline talks like "One-Person Company: Organizations Folded by AI" and "A New Way of Working." Every pitfall hit during those decks is logged in `checklist.md`.
@@ -8,12 +13,14 @@ An agent skill for Claude Code, Codex, and similar coding-agent environments. It
## What you get
-- 🖋 **Three-tier type system**: serif for headlines, sans-serif for body, mono for metadata
-- 🌊 **WebGL fluid / dispersion backgrounds** — visible on hero pages, restrained on body pages
+- 🖋 **Two visual systems**: editorial storytelling for Style A, factual Swiss structure for Style B
- 📐 **Horizontal swipe navigation**: ← → arrows / scroll wheel / touch swipe / bottom dots / ESC for index
-- 🎨 **5 curated theme presets**: Ink Classic / Indigo Porcelain / Forest Ink / Kraft Paper / Dune
-- 🧩 **10 page layouts**: cover, act divider, big numbers, lead image + text, image grid, pipeline, hero question, big quote, before/after, image + text mix
-- 🖼 **Optional Codex image flow**: generate documentary photos, infographics, flow diagrams, system maps, and UI scenes with GPT-M 2.0, then insert them at template-safe ratios
+- 🧩 **Style A 10 layouts**: cover, divider, big numbers, image/text, image grid, pipeline, comparison, and more
+- 🧱 **Style B 22 locked layouts**: Cover, Statement, KPI Tower, Loop Diagram, Duo Compare, Image Hero, Closing Manifesto, and more
+- 🎨 **Curated theme presets**: 5 electronic-ink themes for Style A, 4 Swiss anchor-color themes for Style B
+- 🖼 **Optional Codex image flow**: generate documentary photos, infographics, flow diagrams, system maps, and UI scenes with GPT-Image 2.0 / GPT-M 2.0, then insert them at template-safe ratios
+- 📰 **Social covers**: generate 21:9 WeChat cover images, 1:1 share cards, 3:4 Xiaohongshu covers, video thumbnails, and related variants
+- 📴 **Low-power static mode**: press `B` to turn WebGL / canvas animation into static visuals
- 📄 **Single HTML file** — no build, no server, open directly in the browser
## Fits / Doesn't fit
@@ -52,24 +59,46 @@ git clone https://github.com/op7418/guizang-ppt-skill.git ~/.claude/skills/guiza
Once installed, Claude Code auto-detects the skill. Trigger phrases:
- "Make me a magazine-style deck"
+- "Make me a Swiss-style deck"
- "Generate a horizontal swipe deck"
- "Editorial magazine style presentation"
- "Electronic ink slides for my talk"
+- "Create a 21:9 WeChat cover from this article"
+- "Create a 1:1 share card from this deck"
## Workflow
The skill is a structured workflow; the agent walks you through each step:
-1. **Clarify intent** — 6-question checklist: audience, duration, source material, images, theme, hard constraints
-2. **Copy template** — `assets/template.html` → project folder, update `
`, swap theme vars
-3. **Fill content** — pick from 10 layout skeletons, paste, edit copy (with class-name pre-flight + theme rhythm plan)
-4. **Optional image generation** — in Codex, ask whether to use GPT-M 2.0 images, then insert them at page-appropriate ratios
-5. **Self-check** — match against `references/checklist.md`; P0 issues must all pass
-6. **Preview** — open the HTML in a browser
-7. **Iterate** — use inline styles to tune font size, height, spacing
+1. **Choose style** — Style A editorial magazine, or Style B Swiss International
+2. **Clarify intent** — 6-question checklist: audience, duration, source material, images, theme, hard constraints
+3. **Copy template** — Style A uses `assets/template.html`; Style B uses `assets/template-swiss.html`
+4. **Fill content** — create a rhythm plan, then choose and adapt the matching layout skeletons
+5. **Optional image generation** — in Codex, ask whether to use GPT-Image 2.0 / GPT-M 2.0 images, then insert them at page-appropriate ratios
+6. **Self-check** — match against `references/checklist.md`; P0 issues must all pass; Swiss decks must also pass the layout validator
+7. **Preview** — open the HTML in a browser
+8. **Iterate** — use inline styles to tune font size, height, spacing
Full spec in [`SKILL.md`](./SKILL.md).
+## Style B Swiss
+
+The Swiss theme is a strict layout system, not just a CSS skin.
+
+- **22 named layouts**: body slides must use `S01` to `S22`; do not invent new structures
+- **4 anchor colors**: International Klein Blue, lemon yellow, lemon green, safety orange
+- **Grid lock**: 16-column grid, sharp rectangles, 1px hairlines, no shadows, no gradients, no rounded cards
+- **Chinese title scaling**: all-Chinese headlines should be one step smaller to preserve space for content and images
+- **Image/text bottom alignment**: text and image blocks should align at the bottom in left/right image layouts, while staying clear of pagination controls
+- **Image slots**: images must sit in template-defined `data-image-slot` regions, often generated at 21:9 or 16:10
+- **Hard validation**: the validator catches centered body titles, experimental layouts, visible SVG text, and images placed outside slots
+
+Swiss validation:
+
+```bash
+node scripts/validate-swiss-deck.mjs path/to/index.html
+```
+
## Codex Image Flow
In Codex, after the first deck draft is ready, the agent can ask whether the user wants generated visuals. Once confirmed, choose an image type or style. Common types include:
@@ -77,11 +106,27 @@ In Codex, after the first deck draft is ready, the agent can ask whether the use
- Documentary photos: Fuji / Leica-like real-world scenes that add human texture
- Infographics / flow diagrams / comparison charts / system maps: for concepts that cannot be explained well with photos
- Screenshot redesigns / UI scenes: reshape raw screenshots into consistent slide-friendly ratios and visual density
+- Data posters / charts: turn key numbers into insert-ready visual assets
+- Multi-image compositions: useful for ultra-wide slots where three unrelated 16:9 images would break the grid
-Generated images must follow two core rules:
+Generated images must follow three core rules:
- Treat the image as an embedded asset, not a standalone slide: no footer, page bottom, title, page number, corner mark, signature, or decorative border
-- Match the slot ratio before generation: 16:9 / 16:10 for main visuals, 16:10 for UI scenes, fixed equal heights for image grids
+- Match the deck language: Chinese decks use Chinese labels inside infographics, English decks use English labels
+- Match the slot ratio before generation: 21:9 for many Swiss hero slots, 16:9 / 16:10 for common main visuals, 16:10 for UI scenes, fixed equal heights for image grids
+
+Image prompts live in [`references/image-prompts.md`](./references/image-prompts.md).
+
+## Cover Generation
+
+The skill can also turn an article or deck idea into platform covers:
+
+- **WeChat main cover**: 21:9, headline-first, with one visual anchor
+- **WeChat share card**: 1:1, visually paired with the 21:9 cover
+- **Xiaohongshu cover / carousel**: 3:4, large title, consistent type scale across a batch
+- **Video thumbnail**: 16:9, title + subtitle + one focal visual
+
+The same rule applies: use a few strong keywords, keep the title as the visual center, and do not fill the canvas with body copy.
## Directory
@@ -91,12 +136,18 @@ guizang-ppt-skill/
├── README.md ← Chinese README
├── README.en.md ← this file
├── assets/
-│ └── template.html ← runnable seed HTML (CSS + WebGL + swipe JS pre-wired)
+│ ├── template.html ← Style A editorial magazine template
+│ └── template-swiss.html ← Style B Swiss template
+├── scripts/
+│ └── validate-swiss-deck.mjs ← Swiss layout validator
└── references/
├── components.md ← component catalog (type, color, grid, icons, callout, stat, pipeline)
├── layouts.md ← 10 layout skeletons (paste-ready)
+ ├── layouts-swiss.md ← 22 locked Swiss layouts
+ ├── swiss-layout-lock.md ← Swiss fidelity and layout hard rules
├── themes.md ← 5 theme presets (pick, don't customize)
- ├── image-prompts.md ← GPT-M 2.0 image types, ratios, and base prompts
+ ├── themes-swiss.md ← 4 Swiss anchor-color themes
+ ├── image-prompts.md ← GPT-Image 2.0 / GPT-M 2.0 image types, ratios, and base prompts
└── checklist.md ← quality checklist (P0 / P1 / P2 / P3 tiers)
```
@@ -114,6 +165,19 @@ Pick from `references/themes.md`. **Custom hex values are not allowed** — prot
Switching themes only requires replacing the 6 variables at the top of `template.html`'s `:root{}` block — all other CSS flows through `var(--...)`.
+### Style B Swiss Themes
+
+Pick from `references/themes-swiss.md`. **Custom hex values are not allowed** here either.
+
+| Theme | Best for |
+|------|---------|
+| International Klein Blue | default, commercial launch, AI products, frameworks |
+| Lemon Yellow | youth, sports, retail, Y2K retro |
+| Lemon Green | ecology, sustainability, Gen Z brands |
+| Safety Orange | alerts, news, energetic topics |
+
+If the user asks for a Swiss-style deck without specifying color, default to International Klein Blue.
+
## Core design principles
1. **Restraint over flash** — WebGL backgrounds only bleed through on hero pages
@@ -121,12 +185,15 @@ Switching themes only requires replacing the 6 variables at the top of `template
3. **Images are first-class citizens** — align them with the body content area, keep ratios stable, crop only from the bottom, and preserve top/sides
4. **Generated visuals are assets** — keep only the core photo / chart / UI; do not render slide titles, footers, or corner marks inside the image
5. **Rhythm lives on hero pages** — hero / non-hero alternation keeps the eye from fatiguing
-6. **Terms stay consistent** — Skills is Skills; no mix-and-match translations
+6. **Dynamic effects must be optional** — `B` toggles static mode so animation never becomes a reading burden
+7. **Terms stay consistent** — Skills is Skills; no mix-and-match translations
+8. **Swiss layouts stay locked** — Style B should restore and reuse the original 22-page layout system instead of inventing unrelated pages
## Visual references
- [*Monocle*](https://monocle.com) magazine layouts
- YC Garry Tan — "Thin Harness, Fat Skills"
+- Massimo Vignelli / Helvetica Forever / Swiss International Typographic Style
- Guizang's offline talk deck series
## Contributing
@@ -134,6 +201,8 @@ Switching themes only requires replacing the 6 variables at the top of `template
Bugs, layout issues, new layout requests — Issues and PRs welcome. Prioritize:
- Add new classes to `template.html` first; don't let `layouts.md` reference undefined classes
+- When changing `template-swiss.html`, update `layouts-swiss.md` and `swiss-layout-lock.md` together
+- When adding Swiss rules, update `scripts/validate-swiss-deck.mjs`
- Log pitfalls into `checklist.md` at the matching P0 / P1 / P2 / P3 tier
- New theme colors go into `themes.md` with a recommended use case
diff --git a/README.md b/README.md
index 244b111..77f2244 100644
--- a/README.md
+++ b/README.md
@@ -1,8 +1,13 @@
-# Magazine Web PPT · 电子杂志风网页 PPT Skill
+# Guizang PPT Skill · 网页 PPT / 配图 / 封面
> 🌏 **English version: [README.en.md](./README.en.md)**
-一个适配 Claude Code / Codex 等 Agent 环境的网页 PPT 技能,用于生成**单文件 HTML 横向翻页 PPT**,视觉基调是"**电子杂志 × 电子墨水**"——像 *Monocle* 贴上了代码的样子。
+一个适配 Claude Code / Codex 等 Agent 环境的网页 PPT 技能,用于生成**单文件 HTML 横向翻页 PPT**、PPT 配图和多平台封面。
+
+内置两套视觉系统:
+
+- **Style A: 电子杂志 × 电子墨水**。像 *Monocle* 贴上了代码,适合叙事、观点、分享、个人风格表达。
+- **Style B: 瑞士国际主义**。网格至上、单一高饱和锚点色、直角、发丝线、极致字号对比,适合事实、产品、分析、方法论表达。
> 由 [歸藏](https://x.com/op7418) 在"一人公司:被 AI 折叠的组织"、"一种新的工作方式"等线下分享中沉淀而成,踩过的每一个坑都写进了 `checklist.md`。
@@ -10,12 +15,14 @@
## 效果
-- 🖋 **衬线大标题 + 非衬线正文 + 等宽元数据**的三级字体分工
-- 🌊 **WebGL 流体/色散背景**,hero 页可见,正文页克制
+- 🖋 **双视觉系统**:电子杂志风负责叙事,瑞士风负责事实表达
- 📐 **横向左右翻页**:键盘 ← → / 滚轮 / 触屏滑动 / 底部圆点 / ESC 索引
-- 🎨 **5 套主题色预设**:墨水经典 / 靛蓝瓷 / 森林墨 / 牛皮纸 / 沙丘
-- 🧩 **10 种页面布局**:开场封面、章节幕封、数据大字报、左文右图、图片网格、Pipeline、悬念问题、大引用、Before/After 对比、图文混排
-- 🖼 **Codex 可选配图流程**:可用 GPT-M 2.0 生成纪实照片、信息图、流程图、系统关系图、UI 情景图,并按模板比例插入
+- 🧩 **Style A 10 种布局**:封面、章节、数据大字报、图文、图片网格、Pipeline、对比等
+- 🧱 **Style B 22 种锁定版式**:Cover、Statement、KPI Tower、Loop Diagram、Duo Compare、Image Hero、Closing Manifesto 等
+- 🎨 **主题色预设**:Style A 5 套电子墨水主题,Style B 4 套瑞士高饱和锚点色
+- 🖼 **Codex 可选配图流程**:可用 GPT-Image 2.0 / GPT-M 2.0 生成纪实照片、信息图、流程图、系统关系图、UI 情景图,并按模板比例插入
+- 📰 **多平台封面**:可用同一套视觉规则生成公众号 21:9、公众号分享卡 1:1、小红书 3:4、视频号横版等封面
+- 📴 **低性能静态模式**:按 `B` 可关闭 WebGL / canvas 动画,让动态内容退回静态背景
- 📄 **单文件 HTML**:不需要构建、不需要服务器,浏览器直接打开
## 适合 / 不适合
@@ -54,36 +61,74 @@ git clone https://github.com/op7418/guizang-ppt-skill.git ~/.claude/skills/guiza
装好后,Claude Code 会在对话里自动发现并调用这个 skill。触发关键词:
- "帮我做一份杂志风 PPT"
+- "帮我做一份瑞士风 PPT"
- "生成一个 horizontal swipe deck"
- "editorial magazine style presentation"
- "electronic ink 风格演讲 slides"
+- "基于这篇文章做一张公众号 21:9 封面"
+- "基于这份 PPT 生成一张 1:1 分享卡"
## 使用流程
Skill 本身是结构化工作流,Agent 会逐步引导:
-1. **需求澄清** — 6 问清单:受众、时长、素材、图片、主题色、硬约束
-2. **拷贝模板** — `assets/template.html` → 项目目录,改 ``,换主题色
-3. **填充内容** — 从 10 种 layout 骨架里挑、粘、改文案(先做类名预检 + 主题节奏规划)
-4. **可选配图** — 在 Codex 中可询问是否用 GPT-M 2.0 生成配图,再按页面比例插入
-5. **自检** — 对照 `references/checklist.md`,P0 级问题必须全过
-6. **预览** — 浏览器直接打开
-7. **迭代** — inline style 改字号/高度/间距
+1. **选择风格** — Style A 电子杂志风,或 Style B 瑞士国际主义
+2. **需求澄清** — 6 问清单:受众、时长、素材、图片、主题色、硬约束
+3. **拷贝模板** — Style A 用 `assets/template.html`,Style B 用 `assets/template-swiss.html`
+4. **填充内容** — 先做主题节奏表,再从对应 layout 骨架里挑、粘、改文案
+5. **可选配图** — 在 Codex 中询问是否用 GPT-Image 2.0 / GPT-M 2.0 生成配图,再按页面比例插入
+6. **自检** — 对照 `references/checklist.md`,P0 级问题必须全过;瑞士风还要运行版式校验器
+7. **预览** — 浏览器直接打开
+8. **迭代** — inline style 改字号/高度/间距
详细说明见 [`SKILL.md`](./SKILL.md)。
+## Style B 瑞士风
+
+瑞士风是这次新增的结构化主题。它不是"换一套 CSS",而是一套更严格的版式系统。
+
+- **22 个具名版式**:正文页只能从 `S01` 到 `S22` 中选择,不能临时发明页面结构
+- **4 套锚点色**:克莱因蓝 IKB、柠檬黄、柠檬绿、安全橙
+- **网格锁定**:16 列 grid、直角色块、1px 发丝线、无阴影、无渐变、无圆角
+- **中文字号收敛**:全中文大标题需要降一档,避免占掉正文和图片空间
+- **图文底对齐**:左文右图 / 左图右文场景优先让正文块与图片底部对齐,同时避开页脚翻页组件
+- **图片槽位绑定**:图片必须进入模板预留的 `data-image-slot`,常见主图按 21:9 或 16:10 生成
+- **强校验**:用脚本拦住居中标题、实验版式、SVG 内写字、图片脱离槽位等问题
+
+瑞士风校验命令:
+
+```bash
+node scripts/validate-swiss-deck.mjs path/to/index.html
+```
+
## Codex 配图能力
-在 Codex 环境中,完成 deck 初稿后可以主动询问用户是否需要生成配图。用户确认后,再选择图片类型或风格,常用类型包括:
+在 Codex 环境中,完成 deck 初稿后可以主动询问用户是否需要生成配图。用户确认后,再询问图片类型或风格,常用类型包括:
- 人文纪实照片:富士 / 徕卡感的真实场景,增加人文表现力
- 信息图 / 流程图 / 对比图 / 系统关系图:用于解释无法用实拍照片说明的概念
- 截图再设计 / UI 情景图:把原始截图统一成适合 PPT 的比例和视觉密度
+- 数据大字报 / 数据图表:把关键数字做成可直接插入 PPT 的视觉素材
+- 多图拼贴:用于极宽图片槽位,避免把三张 16:9 图片硬塞进三列
-生成图片时要遵守两个关键规则:
+生成图片时要遵守三个关键规则:
- 图片是 PPT 中的嵌入素材,不要自带页脚、页底、标题、角标、页码或装饰边框
-- 图片比例必须先匹配落位:主图常用 16:9 / 16:10,截图再设计常用 16:10,多图网格统一高度
+- 图片语言跟随 deck 语言:中文 deck 的信息图用中文标签,英文 deck 用英文标签
+- 图片比例必须先匹配落位:瑞士风主图常用 21:9,通用主图常用 16:9 / 16:10,截图再设计常用 16:10,多图网格统一高度
+
+配图提示词见 [`references/image-prompts.md`](./references/image-prompts.md)。
+
+## 封面生成
+
+这个 Skill 也可以基于文章或 PPT 核心观点生成平台封面。典型规格:
+
+- **公众号头图**:21:9,主标题优先,右侧或边缘保留视觉锚点
+- **公众号分享卡**:1:1,与头图共用主题色、关键词和视觉元素
+- **小红书封面 / 轮播**:3:4,大标题优先,多张时统一字号和视觉节奏
+- **视频号 / 横版封面**:16:9,适合标题 + 副标题 + 单一视觉焦点
+
+封面原则和 PPT 一样:只用少量关键词,视觉重心落在大标题上,不要把正文堆满。
## 目录结构
@@ -92,12 +137,18 @@ guizang-ppt-skill/
├── SKILL.md ← Skill 主文件:工作流、原则、常见错误
├── README.md ← 本文件
├── assets/
-│ └── template.html ← 完整可运行的种子 HTML(CSS + WebGL + 翻页 JS 全配好)
+│ ├── template.html ← Style A 电子杂志风模板
+│ └── template-swiss.html ← Style B 瑞士国际主义模板
+├── scripts/
+│ └── validate-swiss-deck.mjs ← 瑞士风版式校验器
└── references/
├── components.md ← 组件手册(字体、色、网格、图标、callout、stat、pipeline)
├── layouts.md ← 10 种页面布局骨架(可直接粘贴)
+ ├── layouts-swiss.md ← 22 种瑞士风锁定版式
+ ├── swiss-layout-lock.md ← 瑞士风还原度和版式硬约束
├── themes.md ← 5 套主题色预设(只能选不能自定义)
- ├── image-prompts.md ← GPT-M 2.0 配图类型、比例和基础提示词
+ ├── themes-swiss.md ← 4 套瑞士风锚点色
+ ├── image-prompts.md ← GPT-Image 2.0 / GPT-M 2.0 配图类型、比例和基础提示词
└── checklist.md ← 质量检查清单(P0 / P1 / P2 / P3 分级)
```
@@ -115,6 +166,19 @@ guizang-ppt-skill/
切换主题只需替换 `template.html` 开头 `:root{}` 里的 6 行变量,其他 CSS 全走 `var(--...)`。
+### Style B 瑞士主题
+
+瑞士风从 `references/themes-swiss.md` 里选一套,同样**不允许自定义 hex 值**。
+
+| 主题 | 适合场景 |
+|------|---------|
+| 克莱因蓝 IKB | 通用默认、商业发布、AI 产品、方法论 |
+| 柠檬黄 | 年轻、运动、零售、Y2K 复古 |
+| 柠檬绿 | 生态、可持续、Z 世代品牌 |
+| 安全橙 | 警示、新闻、活力主题 |
+
+如果用户说"瑞士风 PPT"但没有指定颜色,默认推荐克莱因蓝 IKB。
+
## 核心设计原则
1. **克制优于炫技** — WebGL 背景只在 hero 页透出
@@ -122,12 +186,15 @@ guizang-ppt-skill/
3. **图片是第一公民** — 图片要对齐正文内容区,比例稳定,只裁底部,顶部和左右完整
4. **配图只做素材** — 生成图只保留核心照片 / 图表 / UI,不要把 PPT 页脚、标题和角标画进图片里
5. **节奏靠 hero 页** — hero / non-hero 交替,才不累眼睛
-6. **术语统一** — Skills 就是 Skills,不中英混译
+6. **低性能可退场** — 按 `B` 能切换到静态模式,动态效果不能成为阅读负担
+7. **术语统一** — Skills 就是 Skills,不中英混译
+8. **瑞士风必须守版式** — Style B 优先还原原始 22P 版式,不要为了"多样"发明不存在的页面
## 视觉参考
- [*Monocle*](https://monocle.com) 杂志的版式
- YC Garry Tan "Thin Harness, Fat Skills"
+- Massimo Vignelli / Helvetica Forever / 瑞士国际主义网格系统
- 歸藏线下分享 PPT 系列
## 贡献
@@ -135,6 +202,8 @@ guizang-ppt-skill/
Bug、排版问题、新布局需求——欢迎开 Issue 或 PR。改动请优先:
- 在 `template.html` 里补类,不要让 layouts.md 使用未定义的类
+- 在 `template-swiss.html` 里补类时,同步更新 `layouts-swiss.md` 和 `swiss-layout-lock.md`
+- 瑞士风新增规则后,同步更新 `scripts/validate-swiss-deck.mjs`
- 把踩过的坑写到 `checklist.md` 对应的 P0 / P1 / P2 / P3 级别
- 新主题色进 `themes.md` 并给出适合的场景
diff --git a/SKILL.md b/SKILL.md
index ca55251..c0309fd 100644
--- a/SKILL.md
+++ b/SKILL.md
@@ -1,23 +1,32 @@
---
name: guizang-ppt-skill
-description: 生成"电子杂志 × 电子墨水"风格的横向翻页网页 PPT(单 HTML 文件),含 WebGL 流体背景、衬线标题 + 非衬线正文、章节幕封、数据大字报、图片网格等模板。当用户需要制作分享 / 演讲 / 发布会风格的网页 PPT,或提到"杂志风 PPT"、"horizontal swipe deck"、"editorial magazine"、"e-ink presentation"时使用。
+description: 生成横向翻页网页 PPT(单 HTML 文件),含 WebGL 背景、章节幕封、数据大字报、图片网格等模板。提供两种风格:① "电子杂志 × 电子墨水"(衬线 + 流体背景 + 暖色) ② "瑞士国际主义"(无衬线 + 网格点阵 + IKB/柠檬黄/柠檬绿/安全橙高亮)。当用户需要制作分享 / 演讲 / 发布会风格的网页 PPT,或提到"杂志风 PPT"、"瑞士风 PPT"、"Swiss Style"、"horizontal swipe deck"时使用。
---
# Magazine Web Ppt
## 这个 Skill 做什么
-生成一份**单文件 HTML**的横向翻页 PPT,视觉基调是:
+生成一份**单文件 HTML**的横向翻页 PPT,提供两种可选的视觉基调:
+
+### 风格 A · 电子杂志 × 电子墨水(默认)
-- **电子杂志 + 电子墨水**混血风格
- **WebGL 流体 / 等高线 / 色散背景**(hero 页可见)
-- **衬线标题(Noto Serif SC + Playfair Display)+ 非衬线正文(Noto Sans SC + Inter)+ 等宽元数据(IBM Plex Mono)**
-- **Lucide 线性图标**(不用 emoji)
-- **横向左右翻页**(键盘 ← →、滚轮、触屏滑动、底部圆点、ESC 索引)
-- **主题平滑插值**:翻到 hero 页时颜色和 shader 柔顺过渡
-- **翻页入场动效**(Motion One 驱动,5 种 recipe 自动匹配布局,本地 + CDN 双保险,离线可用)
+- **衬线标题(Noto Serif SC + Playfair Display)+ 非衬线正文 + 等宽元数据**
+- 适合:人文分享、行业观察、商业发布、需要"杂志感"的演讲
+- 模板:`assets/template.html` · 主题色:`references/themes.md` · 布局:`references/layouts.md`
+- 美学锚点:像 *Monocle* 杂志贴上了代码
-这个 skill 的美学不是"商务 PPT",也不是"消费互联网 UI"——它像 *Monocle* 杂志贴上了代码后的样子。
+### 风格 B · 瑞士国际主义(Swiss Style)
+
+- **WebGL 极细网格 + 点阵背景**(信息驱动设计)
+- **全程无衬线(Inter + Helvetica + Noto Sans SC)+ 极致字号对比**
+- **高反差功能色**:克莱因蓝 IKB / 柠檬黄 / 柠檬绿 / 安全橙(四选一)
+- 适合:科技产品、数据汇报、设计/工程领域分享、年度总结
+- 模板:`assets/template-swiss.html` · 主题色:`references/themes-swiss.md` · 布局:`references/layouts-swiss.md`
+- 美学锚点:像 Massimo Vignelli + Helvetica Forever
+
+**两种风格共享**:横向翻页(键盘 ← →、滚轮、触屏、ESC 索引)、Lucide 图标、Motion One 入场动效(本地 + CDN 双保险)。
## 何时使用
@@ -45,16 +54,29 @@ description: 生成"电子杂志 × 电子墨水"风格的横向翻页网页 PPT
- **在 Codex 中**:用普通对话直接询问用户,不要调用 Claude Code 的 `ask question` / `ask_question` 机制,也不要假设这些工具可用。一次最多问 1-3 个最关键问题;如果信息缺口不影响开工,先做合理假设并在回复里说明。
- **在 Claude Code 中**:可以继续使用原有的 `ask question` 交互方式来逐项澄清。
-#### 6 问澄清清单
+#### 7 问澄清清单
| # | 问题 | 为什么要问 |
|---|------|-----------|
-| 1 | **受众是谁?分享场景?**(行业内部 / 商业发布 / demo day / 私享会) | 决定语言风格和深度 |
-| 2 | **分享时长?** | 15 分钟 ≈ 10 页,30 分钟 ≈ 20 页,45 分钟 ≈ 25-30 页 |
-| 3 | **有没有原始素材?**(文档 / 数据 / 旧 PPT / 文章链接) | 有素材就基于素材,没有就帮他搭 |
-| 4 | **有没有图片?放在哪?** | 详见下方"图片约定" |
-| 5 | **想要哪套主题色?** | 见 `references/themes.md`,5 套预设挑一 |
-| 6 | **有没有硬约束?**(必须包含 XX 数据 / 不能出现 YY) | 避免返工 |
+| 1 | **风格 A 还是 B?**(电子杂志风 / 瑞士国际主义风) | **必须先问**,决定用哪个 template + layouts + themes 文件 |
+| 2 | **受众是谁?分享场景?**(行业内部 / 商业发布 / demo day / 私享会) | 决定语言风格和深度 |
+| 3 | **分享时长?** | 15 分钟 ≈ 10 页,30 分钟 ≈ 20 页,45 分钟 ≈ 25-30 页 |
+| 4 | **有没有原始素材?**(文档 / 数据 / 旧 PPT / 文章链接) | 有素材就基于素材,没有就帮他搭 |
+| 5 | **有没有图片?放在哪?** | 详见下方"图片约定" |
+| 6 | **想要哪套主题色?** | 杂志风 5 套(`themes.md`) / 瑞士风 4 套(`themes-swiss.md`),挑一 |
+| 7 | **有没有硬约束?**(必须包含 XX 数据 / 不能出现 YY) | 避免返工 |
+
+#### 风格选择参考(问题 1)
+
+| 如果用户说... | 推荐风格 |
+|---|---|
+| "杂志感" / "人文" / "Monocle 风" / 不指定 | **A · 电子杂志风** |
+| "瑞士风" / "Swiss Style" / "Helvetica" / "极简" / "网格" / "信息图" / "数据驱动" | **B · 瑞士国际主义风** |
+| 内容是 AI 产品 / 技术 / 工程 / 数据汇报 | B 更合适 |
+| 内容是行业观察 / 人文 / 故事 / 文化 | A 更合适 |
+| 用户给了大量 KPI 数字 / 路线图 / 流程 | B 更合适(`Data Hero` 布局是瑞士风专长) |
+| 用户给了大量纪实照片 / 人文图片 | A 更合适(图片网格、左文右图是杂志风专长) |
+| 用户需要 GPT-M 2.0 生成截图再设计 / 信息图 / 证据墙 | B 也很合适(P23/P24 是瑞士风图片专用版式) |
#### 大纲协助(如果用户没有大纲)
@@ -100,7 +122,7 @@ description: 生成"电子杂志 × 电子墨水"风格的横向翻页网页 PPT
生成配图时遵守:
- 提示词保持简短,只框定主题、用途、风格和比例,不要写长篇摄影指导
-- 图片风格必须贴合本 skill 的"电子杂志 × 电子墨水"基调
+- 图片风格必须贴合当前 deck 风格:风格 A 用"电子杂志 × 电子墨水";风格 B 用"瑞士国际主义 / Swiss Style"
- 信息图、图表、截图再设计里的文字语言必须跟随用户正在使用的语言;中文 deck 用中文,英文 deck 用英文
- 先看 `references/image-prompts.md` 选择图片类型和基础提示词
- 配图比例必须匹配最终落位:主视觉 16:9,左文右图 16:10 / 4:3,信息图 16:9 / 16:10,截图再设计 16:10,图文混排小图 3:2 / 3:4,网格图统一高度裁切
@@ -108,14 +130,21 @@ description: 生成"电子杂志 × 电子墨水"风格的横向翻页网页 PPT
### Step 2 · 拷贝模板
-从 `assets/template.html` 拷贝一份到目标位置(通常是 `项目/XXX/ppt/index.html`),同时在同级建一个 `images/` 文件夹准备接图片。
+**根据 Step 1 选定的风格,拷贝对应的模板**到目标位置(通常是 `项目/XXX/ppt/index.html`),同时在同级建一个 `images/` 文件夹准备接图片。
```bash
mkdir -p "项目/XXX/ppt/images"
+
+# 风格 A · 电子杂志风
cp "/assets/template.html" "项目/XXX/ppt/index.html"
+
+# 或 风格 B · 瑞士国际主义风
+cp "/assets/template-swiss.html" "项目/XXX/ppt/index.html"
```
-`template.html` 是一个**完整可运行**的文件——CSS、WebGL shader、翻页 JS、字体/图标 CDN 全已预设好,只有 `` 里面是 3 个示例 slide(封面、章节幕封、空白填充页)。
+两个 `template*.html` 都是**完整可运行**的文件——CSS、WebGL shader、翻页 JS、字体/图标 CDN 全已预设好,只有 `` 占位符等待你填充 slide 内容。
+
+**注意**:风格 A 和 B **不能混用**。layouts.md 里的类(如 `.h-hero` 衬线大标题、`.display-zh` 等)只在 template.html 有定义;layouts-swiss.md 里的类(如 `.kpi-hero`、`.accent-block`、`.span-N`、`.dots` 等)只在 template-swiss.html 有定义。一份 deck 只能选一套。
#### 2.1 · 必改占位符(**容易漏**)
@@ -152,20 +181,39 @@ cp "/assets/template.html" "项目/XXX/ppt/index.html"
### Step 3 · 填充内容
-#### 3.0 · 预检:类名必须在 template.html 里有定义(**最重要**)
+#### 3.0 · 预检:类名必须在模板的 `
+
+
+
+
+
+← → 翻页 · B 静态 · ESC 索引
+
+
+
+
+
+
+
+
+
+
+
+
[必填] Deck 标题 · Issue/Field Note 编号
+
SS · 25.05.10 · 01 / NN
+
+
+
+
+
[必填] 章节英文 / Section En
+
+
[必填] 中文主标题
(≤ 12 字,可在某字加 italic 微强调)
+
+
+
[必填] 一段 1-2 行的副标 / 引子,定调全场.
+
+
[选填] 作者 · 日期 · 出处
+
→ swipe / arrow keys
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
MANIFESTO
+
[必填] Build a model.
Run forever.
+
[必填] 一句 1-2 行的中文/英文注脚,把宣言落地.
+
+
+
+
[选填] 作者 · 头衔
+
YY.MM.DD
+
+
+
+
+
+
+
+
+
+
01
+
+
[必填] takeaway 标题 01
+
[必填] 1-2 行展开说明.
+
+
+
+
02
+
+
[必填] takeaway 标题 02
+
[必填] 1-2 行展开说明.
+
+
+
+
03
+
+
[必填] takeaway 标题 03 · accent 强调
+
[必填] 最后一条用 IKB 强调,与封面色彩首尾闭环.
+
+
+
+
+
→ 完 · END OF FIELD NOTE
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+