AI turns documents or topics into real, native PowerPoint decks—with native shapes, transitions and animations, data-backed charts and tables on demand, audio narration from speaker notes, and support for your own .pptx templates. · by Hugo He
refactor(templates): split into brand / layout / deck three independent kinds
hugohe3edee924d0c15
diff --git a/docs/technical-design.md b/docs/technical-design.mdindex 1274c354..f846d373 100644--- a/docs/technical-design.md+++ b/docs/technical-design.md@@ -128,7 +128,7 @@ Templates are **opt-in, not default**. The default Strategist flow is free desig**Why default to free design.** Templates are floors that easily become ceilings: they lock the deck into the template's visual idioms regardless of how the content actually wants to be presented. Free-design layouts derive structure from the source content rather than imposing it from a fixed grammar, so the visual rhythm tracks the content rather than fighting it. Constrained mode is genuinely better in narrow cases (brand-locked decks, strongly-typed scenarios like academic defense or government report), so it stays available — but the AI doesn't proactively reach for it; the user does.-**No proactive matching.** The AI does not suggest, hint at, or auto-map content to a template. Even when a deck looks like an obvious fit for an existing template, the AI stays silent and proceeds with free design unless the user has named the template. The reason is reliability over discoverability: matching content to templates is a judgment call that drifts as the library evolves, and a wrong "you might want X" pushes the user toward a commitment the AI cannot reliably make. Discoverability is handed to docs (`templates/layouts/README.md`) and to the explicit query path ("what templates are available?"), not the runtime prompt.+**No proactive matching.** The AI does not suggest, hint at, or auto-map content to a template. Even when a deck looks like an obvious fit for an existing template, the AI stays silent and proceeds with free design unless the user has named the template. The reason is reliability over discoverability: matching content to templates is a judgment call that drifts as the library evolves, and a wrong "you might want X" pushes the user toward a commitment the AI cannot reliably make. Discoverability is handed to docs (the three `templates/{brands,layouts,decks}/README.md` per-kind indexes) and to the explicit query path ("what templates are available?"), not the runtime prompt.**Layouts are opt-in; charts and icons are not.** The asymmetry isn't an inconsistency — *layout* is what locks visual idiom (the floor/ceiling problem above), while charts and icons are reusable primitives that don't impose deck-wide style. Same `templates/` directory, different role in the visual contract.diff --git a/docs/templates-architecture.md b/docs/templates-architecture.mdnew file mode 100644index 00000000..90a646bd--- /dev/null+++ b/docs/templates-architecture.md@@ -0,0 +1,294 @@+# Template Architecture: Brand / Layout / Deck++> This is the **architecture alignment document**. It defines the three template kinds at the data-model layer, the field sets of each `design_spec.md`, and the multi-path fusion + conflict resolution rules. Audience: contributors and AI workflows; answers "what should / shouldn't a template directory contain; how do they combine when multiple are supplied".+>+> For user-facing usage (how to trigger, how to pick), see [`templates-guide.md`](./templates-guide.md); not repeated here.++---++## 1. The three kinds++| Kind | Physical dir | What it writes | What it does NOT write | Originating workflow |+|---|---|---|---|---|+| **Brand** | `templates/brands/<id>/` | Identity segment only: color / typography / logo / voice / icon style | No canvas, page structure, SVG roster | `workflows/create-brand.md` |+| **Layout** | `templates/layouts/<id>/` | Structure segment only: canvas / page structure / page types / SVG roster | No brand identity (no logo, no locked brand color) | `workflows/create-template.md` (layout branch) |+| **Deck** | `templates/decks/<id>/` | All segments: identity + structure + middle (template overview) | — | `workflows/create-template.md` (deck branch, default) |++The three are **parallel reference bundles**. The physical directory and the frontmatter `kind` field correspond one-to-one:++```yaml+# templates/brands/anthropic/design_spec.md+---+kind: brand+...+---++# templates/layouts/academic_defense/design_spec.md+---+kind: layout+...+---++# templates/decks/招商银行/design_spec.md+---+kind: deck+...+---+```++### Segment partition++To make multi-path fusion override cleanly, every field belongs to a named segment. **Default fusion granularity is whole-segment replacement**:++| Segment | Sections it contains | Override owner |+|---|---|---|+| **Identity** | Color Scheme / Typography / Logo / Voice & Tone / Icon Style | brand |+| **Structure** | Canvas Specification / Page Structure / Page Types / SVG Roster | layout |+| **Middle** | Template Overview (use cases / design intent / page rhythm narrative) | deck only; brand / layout don't write this |++### Why Deck is its own kind++A deck is the **full replica** of an existing PPT — the SVG geometry was drawn for that color palette and those typefaces, and identity + structure have been combat-tested together in the source deck. Its value is "validated cohesion", which a free layout + brand combo can't always reach.++But a deck is **not "an immutable replica"** — it's "a replica that serves as the default base, overridable by explicitly-supplied brand / layout". This gives users maximum freedom: by default you get a complete solution; when needed, swap identity or structure explicitly.++---++## 2. `design_spec.md` schema per kind++The schema only specifies the **required** fields. "Don't write what isn't necessary" — if a field isn't listed here, don't add it.++### Brand schema++**Frontmatter**++```yaml+---+brand_id: <slug>+kind: brand+summary: <one-line use cases, including primary color>+primary_color: "<HEX>"+---+```++**Body sections** (full identity segment)++| § | Title | Required fields |+|---|---|---|+| I | Brand Overview | Brand Name / Use Cases / Tone |+| II | Color Scheme | role / HEX / provenance (`fact` official truth \| `approx` derived) / notes |+| III | Typography | role / family / weight |+| IV | Logo | file / form / usage + clearspace and lockup rules |+| V | Voice & Tone | formality / person / emoji / abbreviation policy |+| VI | Icon Style | preference (stroke / filled / duotone …) + recommended libraries |++**Forbidden**: canvas viewBox, page types, SVG roster — those are layout's responsibility.++### Layout schema++**Frontmatter**++```yaml+---+layout_id: <slug>+kind: layout+summary: <one-line use cases>+canvas_format: <ppt169 | ppt43 | a4 | ...>+page_count: <N>+page_types: [<cover, toc, chapter, content, ending, ...>]+---+```++**Body sections** (full structure segment + Template Overview)++| § | Title | Required fields |+|---|---|---|+| I | Template Overview | Use Cases / Design Intent / Page Rhythm suggestions |+| II | Canvas Specification | Format / Dimensions / viewBox / Margins / Content Area |+| III | Page Structure | General Layout Grid / Decorative DNA / Navigation rules |+| IV | Page Types | Per-page role (cover / toc / chapter / content / ending …) + variant descriptions |+| V | SVG Page Roster | File list + purpose, each file mapped to a III/IV role |++**Forbidden**: brand logo, brand voice & tone, official-truth color (`provenance: fact`) — those belong to brand. Layouts have no fallback color or typography by definition: identity segments are not written here; color and typography are decided live in Strategist's Eight Confirmations.++### Deck schema++**Frontmatter**++```yaml+---+deck_id: <slug>+kind: deck+summary: <one-line use cases>+canvas_format: <ppt169 | ...>+page_count: <N>+primary_color: "<HEX>"+---+```++**Body sections** (full identity + full structure + middle)++| § | Title | Segment |+|---|---|---|+| I | Template Overview | Middle |+| II | Canvas Specification | Structure |+| III | Color Scheme (with provenance) | Identity |+| IV | Typography | Identity |+| V | Logo | Identity |+| VI | Voice & Tone | Identity |+| VII | Icon Style | Identity |+| VIII | Page Structure | Structure |+| IX | Page Types | Structure |+| X | SVG Page Roster | Structure |++> Deck is the union of all identity + structure fields, with no optional sections. This keeps fusion's segment-level replacement granularity uniform.++---++## 3. The three index files++Each index maps one-to-one with its physical directory; fields are trimmed to what Strategist actually needs to pick (following the "meta + summary" pattern from `charts_index.json`, but preserving structured metadata that helps selection).++### `templates/brands/brands_index.json`++```json+{+ "<brand_id>": {+ "summary": "Anthropic brand identity — AI/LLM tech talks, developer conferences",+ "primary_color": "#D97757"+ }+}+```++- Keep `primary_color` — Strategist needs the dominant color at first glance when picking a brand+- Drop `keywords` — summary already carries the English equivalents; AI matches via natural language (same approach as the charts library)++### `templates/layouts/layouts_index.json`++```json+{+ "<layout_id>": {+ "summary": "Standard academic defense layout — cover/toc/chapter/content/ending",+ "canvas_format": "ppt169",+ "page_count": 5,+ "page_types": ["cover", "toc", "chapter", "content", "ending"]+ }+}+```++- Add `canvas_format` / `page_count` / `page_types` — Strategist needs to judge "can this skeleton hold my deck?" quickly+- No `primary_color` — layouts have no identity++### `templates/decks/decks_index.json`++```json+{+ "<deck_id>": {+ "summary": "China Merchants Bank transaction banking deck",+ "canvas_format": "ppt169",+ "page_count": 5,+ "primary_color": "#XXXXXX"+ }+}+```++- Includes `primary_color` (decks carry identity) + structural metadata+- Does not expand `page_types` — decks share the same page-type set as layouts; redundant to record++---++## 4. Multi-path fusion and conflict resolution++### Override priority (implicit dispatch)++When the user supplies a set of paths in their initial message, Step 3 fuses them into `<project>/templates/design_spec.md` per the table below:++| User paths | Fusion behavior |+|---|---|+| (none) | Skip Step 3, free design |+| brand only | Copy brand wholesale; structure stays free design |+| layout only | Copy layout wholesale; identity stays free design (Strategist e/f/g confirmations decide) |+| deck only | Copy deck wholesale |+| brand + layout | brand provides identity, layout provides structure (follows existing SKILL.md fusion table) |+| brand + deck | brand overrides deck's identity segment at segment level; structure + middle come from deck |+| layout + deck | layout overrides deck's structure segment at segment level; identity + middle come from deck |+| brand + layout + deck | brand overrides identity + layout overrides structure + deck provides middle; deck's original identity/structure segments are discarded wholesale |++### Whole-segment replacement (default granularity)++Fusion defaults to **whole-segment integer replacement** — e.g. on deck + brand, the entire Color Scheme / Typography / Logo / Voice / Icon Style five sections come from brand. **No implicit field-level mixing** (you will never get "primary from brand, secondary from deck").++Field-level micro-adjustment goes through the existing Strategist Eight Confirmations path — the user says in chat "use the anthropic brand but change primary to #FF0000", and Strategist adjusts in confirmations e/g. Step 3 fusion does not add field-level syntax.++### Same-kind multiple paths = git-style conflict resolution++User supplies `brands/anthropic` + `brands/google` (or any same-kind permutation):++```+AI: You supplied two brands. Detected segment-level conflicts:+ - Color Scheme (Anthropic orange-red vs Google multi-color)+ - Typography (Styrene/AnthropicSans vs GoogleSans/Roboto)+ - Logo (Anthropic mark vs Google mark)+ - Voice & Tone (restrained vs friendly)+ - Icon Style (stroke vs filled)++ (a) all from Anthropic / (b) all from Google / (c) pick per segment?+```++Rules:+- No implicit ordering — every cross-source segment difference is reported as a conflict+- Only when the user picks `(c)` does AI walk through each segment+- Field-level conflict resolution is out of scope — segment-level only+- `layout × 2`, `deck × 2`, `brand × 2` handled the same way+- Max two of any one kind (more than that — ask the user to converge in chat first)++### Provenance++When fusion happens (any multi-path case), the resulting `<project>/templates/design_spec.md` carries a provenance block immediately under its H1:++```markdown+> **Fused from:**+> - deck: `templates/decks/招商银行/` (base)+> - brand: `templates/brands/anthropic/` (identity override)+> - layout: `templates/layouts/academic_defense/` (structure override)+> - conflicts resolved: Color Scheme from anthropic (user picked a)+```++This lets both AI and humans trace which segment came from where.++---++## 5. Relationship with SKILL.md Step 3++**Trigger rule unchanged** — still "explicit directory path only" (see [[feedback-template-explicit-path-only]]). The `kind` field decides **how AI handles the path after triggering**:++| User path's `kind` | Step 3 action (per-kind branch) |+|---|---|+| `kind: brand` | Copy design_spec + logos + asset subdirs to `<project>/templates/` |+| `kind: layout` | Copy design_spec + SVG roster + assets to `<project>/templates/` |+| `kind: deck` | Copy design_spec + SVG roster + logos + all assets to `<project>/templates/` |+| Multi-path | Fuse into one `design_spec.md` per the table above; merge SVG / logo files from each source |+| Same-kind multiple | Run the "git-style conflict resolution" prompt above to determine the merge |++### Strategist Eight Confirmations narrowing per kind++When a deck path is supplied, the user already has a complete solution; the Eight Confirmations narrow to "target audience / page count / outline / tone tweaks" — deck-content fields. Other fields reuse the locked values directly. The narrowing rules live in `references/strategist.md` and `spec_lock_reference.md`.++---++## 6. Relationship with workflows++| Workflow | Produces |+|---|---|+| `workflows/create-brand.md` | brand directory (identity-only), reverse-engineered from brand assets |+| `workflows/create-template.md` | layout or deck directory, internal kind branch: default to deck (user supplies an existing PPT; extract full identity + structure); when the user explicitly says "structure only / drop the brand color", go to the layout branch |++After production, the frontmatter `kind` field determines whether the file lands under `templates/brands/` / `templates/layouts/` / `templates/decks/`.++---++## 7. Non-goals (rejection list paired with this framing)++- **No field-level override syntax in the fusion layer** — field-level adjustment uses the existing Strategist Eight Confirmations path+- **No batch conflict resolution for three or more of the same kind** — ask the user to narrow it down in chat first+- **No bilingual name mapping table** — templates are named in their brand / scenario's native language (Chinese templates use Chinese names; English templates use snake_case); no forced unificationdiff --git a/docs/templates-guide.md b/docs/templates-guide.mdindex c00e77f7..64bae278 100644--- a/docs/templates-guide.md+++ b/docs/templates-guide.md@@ -38,7 +38,13 @@ To browse what's available in the built-in library, ask "what templates are avai### Template catalog-Full index in [`templates/layouts/README.md`](../skills/ppt-master/templates/layouts/README.md), grouped by Brand / Scenario / Government / Special, with primary color and use cases per entry. The built-in template library covers Google, Anthropic, China Merchants Bank, PowerChina, CATARC, government blue/red, medical, psychology, pixel-retro and more.+Templates are organized into three kinds, each in its own directory:++- [`templates/brands/README.md`](../skills/ppt-master/templates/brands/README.md) — identity-only presets (color / typography / logo / voice / icon style), no SVG pages; Anthropic, Google+- [`templates/layouts/README.md`](../skills/ppt-master/templates/layouts/README.md) — structure-only patterns (canvas / page structure / page types / SVG roster), no identity; academic_defense, government_blue/red, ai_ops, medical_university, pixel_retro, psychology_attachment+- [`templates/decks/README.md`](../skills/ppt-master/templates/decks/README.md) — full-PPT replicas (identity + structure + middle segments); 招商银行, 中国电建_*, 中汽研_*, 重庆大学, 中国电信++Full data model + fusion / conflict-resolution rules: [`docs/zh/templates-architecture.md`](./zh/templates-architecture.md) (Chinese only for now).### Free design vs templatediff --git a/docs/zh/technical-design.md b/docs/zh/technical-design.mdindex 83b724cc..370eb3d0 100644--- a/docs/zh/technical-design.md+++ b/docs/zh/technical-design.md@@ -128,7 +128,7 @@ PPT Master 不只服务 PPT——同一套 SVG → DrawingML 流水线还能产**为什么默认自由设计。** 模板是地板,但很容易变成天花板:它会把整个 deck 锁进模板自有的视觉惯用语,无视内容本身想要怎样被呈现。自由设计的布局从源内容的结构推导而来,而不是从一套固定语法套上去——视觉节奏跟着内容走,而不是跟内容打架。约束模式在窄场景里确实更好(品牌锁定的 deck、强类型场景如学术答辩或政府报告),所以它一直在;但 AI 不主动去抓,是用户去抓。-**不主动匹配。** AI 不会基于内容向用户推荐、暗示或自动映射模板。即便某份 deck 看起来"明显适合"库里某个模板,没有用户点名,AI 也保持沉默,按自由设计走。理由是可靠性优先于发现性:把内容与模板做匹配是会随库演进而漂移的判断,一句错误的"或许你想用 X"会把用户推向 AI 本就无法可靠承诺的选择。发现性交给文档(`templates/layouts/README.md`)和显式查询路径("有哪些模板可以用?")承担,不放进运行时 prompt。+**不主动匹配。** AI 不会基于内容向用户推荐、暗示或自动映射模板。即便某份 deck 看起来"明显适合"库里某个模板,没有用户点名,AI 也保持沉默,按自由设计走。理由是可靠性优先于发现性:把内容与模板做匹配是会随库演进而漂移的判断,一句错误的"或许你想用 X"会把用户推向 AI 本就无法可靠承诺的选择。发现性交给文档(三类各自的 `templates/{brands,layouts,decks}/README.md`)和显式查询路径("有哪些模板可以用?")承担,不放进运行时 prompt。**布局是 opt-in,图表和图标不是。** 这种不对称不是矛盾——*布局*正是锁定视觉惯用语的那一层(地板/天花板问题),而图表和图标是不会施加 deck 级风格约束的复用原语。同一个 `templates/` 目录,但在视觉契约里扮演的角色不同。diff --git a/docs/zh/templates-architecture.md b/docs/zh/templates-architecture.mdnew file mode 100644index 00000000..6a00911f--- /dev/null+++ b/docs/zh/templates-architecture.md@@ -0,0 +1,292 @@+# 模板架构:Brand / Layout / Deck 三分类++> 本文是**架构对齐文档**,定义"模板"在数据模型层面的三种身份、各自的 `design_spec.md` 字段集、以及多路径合成与冲突解决规则。面向贡献者与 AI 工作流,回答"一个模板目录里应该写什么、不写什么;多个模板同时给时怎么合成"。+>+> 用户视角的用法(怎么触发、怎么选)见 [`templates-guide.md`](./templates-guide.md);本文不重复。++---++## 一、三分类++| 分类 | 物理目录 | 写什么 | 不写什么 | 出处工作流 |+|---|---|---|---|---|+| **Brand** | `templates/brands/<id>/` | 仅身份段:color / typography / logo / voice / icon style | 不写 canvas、page structure、SVG roster | `workflows/create-brand.md` |+| **Layout** | `templates/layouts/<id>/` | 仅结构段:canvas / page structure / page types / SVG roster | 不写品牌身份(无 logo、无品牌色硬约束) | `workflows/create-template.md`(layout 分支)|+| **Deck** | `templates/decks/<id>/` | 全段:身份段 + 结构段 + 中间段(template overview) | —— | `workflows/create-template.md`(deck 分支,默认)|++三者是**三种并列的 reference bundle**,物理目录与 frontmatter `kind` 字段双向对齐:++```yaml+# templates/brands/anthropic/design_spec.md+---+kind: brand+...+---++# templates/layouts/academic_defense/design_spec.md+---+kind: layout+...+---++# templates/decks/招商银行/design_spec.md+---+kind: deck+...+---+```++### 三段的字段切分++为了让多路径合成能干净覆盖,所有字段按段归属,**段级整段替换是默认粒度**:++| 段 | 包含的章节 | 归属(覆盖优先级)|+|---|---|---|+| **身份段** | Color Scheme / Typography / Logo / Voice & Tone / Icon Style | brand 覆盖 |+| **结构段** | Canvas Specification / Page Structure / Page Types / SVG Roster | layout 覆盖 |+| **中间段** | Template Overview(use cases / design intent / page rhythm 等叙事字段)| deck 独有;brand / layout 不写 |++### 为什么需要 Deck 这一类++Deck 是一份现存 PPT 的"复刻全息"——SVG 几何为该套配色和字体画的,身份与结构在原 PPT 里已经实战搭配。它的价值是「已验证的整体感」,是 layout + brand 自由拼合未必能达到的成品。++但 Deck **不是"不可篡改的复刻"**——它是"作为默认底图的复刻,可被显式 brand / layout 覆盖"。这给了用户最大自由度:默认拿到一份完整方案,需要时显式换身份或换结构。++---++## 二、各分类的 `design_spec.md` Schema++字段集只规定**必须写**的部分。「非必要不表明」——当前 schema 没列出的字段,不写。++### Brand schema++**Frontmatter**++```yaml+---+brand_id: <slug>+kind: brand+summary: <一句话描述用途,含主色>+primary_color: "<HEX>"+---+```++**正文章节**(身份段全集)++| 节 | 标题 | 必写字段 |+|---|---|---|+| I | Brand Overview | Brand Name / Use Cases / Tone |+| II | Color Scheme | role / HEX / provenance(`fact` 官方真值 \| `approx` 推导)/ notes |+| III | Typography | role / family / weight |+| IV | Logo | file / form / usage + clearspace 与组合规则 |+| V | Voice & Tone | formality / person / emoji / abbreviation 策略 |+| VI | Icon Style | preference(stroke / filled / duotone …)+ 推荐字库 |++**不允许出现**:canvas viewBox、page types、SVG roster——这些是 layout 的职责。++### Layout schema++**Frontmatter**++```yaml+---+layout_id: <slug>+kind: layout+summary: <一句话描述用途>+canvas_format: <ppt169 | ppt43 | a4 | ...>+page_count: <N>+page_types: [<cover, toc, chapter, content, ending, ...>]+---+```++**正文章节**(结构段全集 + Template Overview)++| 节 | 标题 | 必写字段 |+|---|---|---|+| I | Template Overview | Use Cases / Design Intent / Page Rhythm 建议 |+| II | Canvas Specification | Format / Dimensions / viewBox / Margins / Content Area |+| III | Page Structure | General Layout Grid / Decorative DNA / Navigation 规则 |+| IV | Page Types | 每种页面的角色(cover / toc / chapter / content / ending …)与变体说明 |+| V | SVG Page Roster | 文件清单 + 用途,每个文件对应 III/IV 哪一类 |++**不允许出现**:品牌 logo、品牌 voice & tone、官方真值色(`provenance: fact`)——这些是 brand 的职责。Layout 自身没有兜底色/字体(这是定义:layout 不写身份段;色彩与字体在 Strategist 八项确认现场决策)。++### Deck schema++**Frontmatter**++```yaml+---+deck_id: <slug>+kind: deck+summary: <一句话描述用途>+canvas_format: <ppt169 | ...>+page_count: <N>+primary_color: "<HEX>"+---+```++**正文章节**(身份段全部 + 结构段全部 + 中间段)++| 节 | 标题 | 归属段 |+|---|---|---|+| I | Template Overview | 中间段 |+| II | Canvas Specification | 结构段 |+| III | Color Scheme(含 provenance)| 身份段 |+| IV | Typography | 身份段 |+| V | Logo | 身份段 |+| VI | Voice & Tone | 身份段 |+| VII | Icon Style | 身份段 |+| VIII | Page Structure | 结构段 |+| IX | Page Types | 结构段 |+| X | SVG Page Roster | 结构段 |++> Deck 是身份段 + 结构段全字段的并集,无可选段。这样合成时段级替换粒度统一。++---++## 三、三套 index 文件++每个 index 跟物理目录一一对应,字段按需精简(参照 [[project-charts-index-full-read-intentional]] 的"meta + summary"模式,但保留对 Strategist 选型有用的结构化元数据)。++### `templates/brands/brands_index.json`++```json+{+ "<brand_id>": {+ "summary": "Anthropic brand identity — AI/LLM tech talks, developer conferences",+ "primary_color": "#D97757"+ }+}+```++- 保留 `primary_color` —— Strategist 选 brand 时第一眼就要知道主色+- 去掉 keywords —— summary 自带英文等价词,AI 用自然语言匹配(沿用 charts 经验)++### `templates/layouts/layouts_index.json`++```json+{+ "<layout_id>": {+ "summary": "Standard academic defense layout — cover/toc/chapter/content/ending",+ "canvas_format": "ppt169",+ "page_count": 5,+ "page_types": ["cover", "toc", "chapter", "content", "ending"]+ }+}+```++- 加 `canvas_format` / `page_count` / `page_types` —— Strategist 选 layout 时要快速判断"页面骨架能不能装下我的 deck"+- 无 `primary_color` —— layout 无身份++### `templates/decks/decks_index.json`++```json+{+ "<deck_id>": {+ "summary": "China Merchants Bank transaction banking deck",+ "canvas_format": "ppt169",+ "page_count": 5,+ "primary_color": "#XXXXXX"+ }+}+```++- 含 `primary_color`(deck 自带身份)+ 结构元数据+- 不展开 `page_types` —— deck 的页面类型与 layout 的相同集合,不冗余记录++---++## 四、多路径合成与冲突解决++### 合成优先级(隐式触发)++用户在第一条消息里给出一组路径,Step 3 按以下表合成 `<project>/templates/design_spec.md`:++| 用户路径 | 合成行为 |+|---|---|+| 无 | 跳过 Step 3,走自由设计 |+| 只 brand | 复制 brand 全部,结构走自由设计 |+| 只 layout | 复制 layout 全部,身份走自由设计(Strategist 八项确认 e/f/g 决策) |+| 只 deck | 复制 deck 全部 |+| brand + layout | brand 提供身份段 + layout 提供结构段,沿用 SKILL.md 现有 fusion 表 |+| brand + deck | brand 段级覆盖 deck 的身份段,结构段与中间段从 deck 拿 |+| layout + deck | layout 段级覆盖 deck 的结构段,身份段与中间段从 deck 拿 |+| brand + layout + deck | brand 覆盖身份 + layout 覆盖结构 + deck 提供中间段;身份/结构段的 deck 原值整段丢弃 |++### 段级整段替换(默认粒度)++合成默认是**段级整段替换**——例如 deck + brand 时,整个 Color Scheme / Typography / Logo / Voice / Icon Style 五段从 brand 拿,**不做字段级混搭**(即不会发生"primary 从 brand 拿、secondary 从 deck 拿"这类隐式混合)。++字段级微调走 Strategist 八项确认这条已有路径——用户在 chat 里说"用 anthropic brand,但 primary 改成 #FF0000",由 Strategist 在 e/g 现场调整,不在 Step 3 的 fusion 层加字段级语法。++### 同类多份 = git 冲突解决++用户给 `brands/anthropic` + `brands/google`(同类多份的任意排列组合):++```+AI: 你给了两个 brand,检测到段级冲突:+ - Color Scheme(Anthropic 橙红 vs Google 多色)+ - Typography(Styrene/AnthropicSans vs GoogleSans/Roboto)+ - Logo(Anthropic 标 vs Google 标)+ - Voice & Tone(restrained vs friendly)+ - Icon Style(stroke vs filled)++ 要 (a) 全部按 Anthropic / (b) 全部按 Google / (c) 逐段挑?+```++- 默认无隐式顺序,所有冲突都问+- 仅在用户选 (c) 才进入逐段问答;不做字段级冲突解决+- `layout × 2`、`deck × 2`、`brand × 2` 同处理+- 三类各最多两份(再多让用户先在 chat 里收敛)++### Provenance 记录++合成后的 `<project>/templates/design_spec.md` 顶部必须加:++```markdown+> **Fused from:**+> - deck: `templates/decks/招商银行/` (base)+> - brand: `templates/brands/anthropic/` (identity 段覆盖)+> - layout: `templates/layouts/academic_defense/` (structure 段覆盖)+> - conflicts resolved: Color Scheme from anthropic(用户选 a)+```++让 AI 和人类都能回溯每段来自哪。++---++## 五、与 SKILL.md Step 3 的关系++**触发规则不变** —— 仍然是「显式目录路径才触发」(见 [[feedback-template-explicit-path-only]])。`kind` 字段决定**触发后 AI 怎么处理**:++| 用户路径指向 | Step 3 行为(按 kind 分支)|+|---|---|+| `kind: brand` | 复制 design_spec + logos + asset 子目录到 `<project>/templates/` |+| `kind: layout` | 复制 design_spec + SVG roster + assets 到 `<project>/templates/` |+| `kind: deck` | 复制 design_spec + SVG roster + logos + 全部 assets 到 `<project>/templates/` |+| 多路径 | 按上表合成单份 `design_spec.md` + 各源的 SVG/logo 合并复制 |+| 同类多份 | 按上节"git 冲突解决"问答,得到合成结果 |++### Strategist 八项确认在不同 kind 下的收窄++Deck 路径下用户已经拿到完整方案,八项确认收窄到"目标受众 / 页数 / 大纲 / 调性微调"等 deck 内容相关字段;其他字段直接从锁定值复用。具体收窄规则落在 `references/strategist.md` 与 `spec_lock_reference.md`。++---++## 六、与 workflows 的关系++| 工作流 | 产出 |+|---|---|+| `workflows/create-brand.md` | brand 目录(identity-only),从品牌资产逆向提取 |+| `workflows/create-template.md` | layout 或 deck 目录,内部按 kind 分支:默认走 deck(用户给了一份现存 PPT,提取完整身份 + 结构);用户明说"只要结构 / 丢掉品牌色"时走 layout |++产出后 frontmatter `kind` 字段决定文件落到 `templates/brands/` / `templates/layouts/` / `templates/decks/`。++---++## 七、不做(与本文 framing 配套的拒绝列表)++- **不在 fusion 层支持字段级覆盖语法** —— 字段级微调走 Strategist 八项确认这条已有路径+- **不为同类三份及以上设计批量冲突解决** —— 用户先在 chat 里收敛到两份+- **不引入双名映射表** —— 模板命名按其品牌/场景母语(中文模板用中文名,英文模板用 snake_case),不强制统一diff --git a/docs/zh/templates-guide.md b/docs/zh/templates-guide.mdindex 7826a1fc..5fac061b 100644--- a/docs/zh/templates-guide.md+++ b/docs/zh/templates-guide.md@@ -38,7 +38,13 @@ AI 会把这个目录里的 SVG、`design_spec.md` 和素材复制到项目目### 现有模板一览-完整索引见 [`templates/layouts/README.md`](../../skills/ppt-master/templates/layouts/README.md),按"品牌 / 场景 / 政企 / 特殊"分类,每条都标注了主色和适用场景。内置模板库覆盖 Google、Anthropic、招商银行、中国电建、中汽研、政府蓝/红、医学院、心理学、像素复古等。+模板按三种身份分目录:++- [`templates/brands/README.md`](../../skills/ppt-master/templates/brands/README.md) — 仅身份预设(color / typography / logo / voice / icon style),无 SVG 页面;Anthropic、Google+- [`templates/layouts/README.md`](../../skills/ppt-master/templates/layouts/README.md) — 仅结构样板(canvas / page structure / page types / SVG roster),无身份;academic_defense、government_blue/red、ai_ops、medical_university、pixel_retro、psychology_attachment+- [`templates/decks/README.md`](../../skills/ppt-master/templates/decks/README.md) — 完整 PPT 复刻(身份 + 结构 + 中间段);招商银行、中国电建_*、中汽研_*、重庆大学、中国电信++完整数据模型与三类的合成 / 冲突解决规则见 [`templates-architecture.md`](./templates-architecture.md)。### 自由设计 vs 模板diff --git a/skills/ppt-master/SKILL.md b/skills/ppt-master/SKILL.mdindex 87bfcab5..72686449 100644--- a/skills/ppt-master/SKILL.md+++ b/skills/ppt-master/SKILL.md@@ -152,86 +152,112 @@ Import source content (choose based on the situation):🚧 **GATE**: Step 2 complete; project directory structure is ready.-**Default — free design.** Proceed directly to Step 4. Do NOT query `layouts_index.json` unless triggered. Do NOT ask the user. Do NOT proactively suggest, hint at, or fuzzy-match any template based on content, slug-like words, or vague style descriptions.+**Default — free design.** Proceed directly to Step 4. Do NOT query any `*_index.json` unless triggered. Do NOT ask the user. Do NOT proactively suggest, hint at, or fuzzy-match any template based on content, slug-like words, or vague style descriptions.-**Template flow triggers ONLY on an explicit template directory path** supplied by the user in their initial message. The trigger rule is mechanical, not interpretive:+**Template flow triggers ONLY on explicit directory paths** supplied by the user in their initial message. The trigger rule is mechanical, not interpretive:| User input contains | Step 3 action ||---|---|-| An explicit path to a template directory (e.g. `skills/ppt-master/templates/layouts/academic_defense/`, `projects/foo/template/`, or any other absolute / relative path that resolves to a directory containing `design_spec.md` and one or more page SVGs) | Copy that directory's SVGs + `design_spec.md` + assets into the project, advance |-| Anything else — including bare template names ("用 academic_defense 模板"), style descriptions ("麦肯锡风格" / "Google style"), brand mentions ("招商银行风格"), vague intent ("想用个模板"), or silence | Skip Step 3, free design |+| One or more explicit template directory paths (each resolves to a directory containing `design_spec.md` with `kind: brand` / `kind: layout` / `kind: deck` in its YAML frontmatter) | Read each spec's `kind`, dispatch per the kind matrix below, fuse if multiple |+| Anything else — bare template names ("用 academic_defense"), style descriptions ("麦肯锡风格"), brand mentions ("招商银行风格"), vague intent ("想用个模板"), or silence | Skip Step 3, free design |-There is no slug matching, no name lookup, no fuzzy resolution. A template name without a path does not trigger — the user must give a path the AI can `cd` into.+There is no slug matching, no name lookup, no fuzzy resolution. A name without a path does not trigger — the user must give a path the AI can `cd` into.-The path may live anywhere — `skills/ppt-master/templates/layouts/<name>/` (the built-in library), `projects/<other_project>/template/` (reusing a previous project's templates), or any other location. Location is irrelevant; what matters is that the user named the path.+> Style descriptions ("麦肯锡风格" / "Keynote 风" / "极简风" / etc.) never trigger Step 3. They flow into Strategist's Eight Confirmations as a style brief (color / typography / tone in confirmations e–g).-```bash-TEMPLATE_DIR=<user-supplied path>-cp ${TEMPLATE_DIR}/*.svg <project_path>/templates/-cp ${TEMPLATE_DIR}/design_spec.md <project_path>/templates/-cp ${TEMPLATE_DIR}/*.png <project_path>/images/ 2>/dev/null || true-cp ${TEMPLATE_DIR}/*.jpg <project_path>/images/ 2>/dev/null || true-```+> Bare names ("academic_defense", "招商银行", "anthropic") do NOT trigger Step 3 even if a matching directory exists in the library. The user must give a path. AI must not "helpfully" resolve a name to a path.-> Style descriptions ("麦肯锡风格" / "Keynote 风" / "极简风" / etc.) never trigger Step 3. They flow naturally into Strategist's Eight Confirmations as part of the user's input — Strategist uses them as a style brief when proposing color / typography / tone in confirmations e and g.+> "What templates exist?" is out-of-band Q&A — answer by listing entries from `brands_index.json` / `layouts_index.json` / `decks_index.json` together with their paths. Listing alone does not advance the pipeline; the user must send a path back to trigger Step 3.-> Bare template names ("academic_defense", "招商银行") do NOT trigger Step 3 even if a folder by that name exists in the library. The user must give a path. AI must not "helpfully" resolve a name to a path.+> To create a new layout or deck, read [`workflows/create-template.md`](workflows/create-template.md). To create a new brand, read [`workflows/create-brand.md`](workflows/create-brand.md).-> "What templates exist?" is out-of-band Q&A — answer by listing entries from `layouts_index.json` together with their paths. Listing alone does not advance the pipeline; the user still has to send a path to trigger the Step 3 copy.+#### Three template kinds-> To create a new template, read `workflows/create-template.md`.+The architecture has three independent reference bundles. Full schema in [`docs/zh/templates-architecture.md`](../../docs/zh/templates-architecture.md). Summary:-**Brand triggering follows the same explicit-path rule as layout templates.** A brand is structurally a layout template minus its SVG page roster — its `design_spec.md` declares `kind: brand` in YAML frontmatter and lives under `templates/brands/<id>/`. `brands_index.json` is discovery-only, same as `layouts_index.json` — listing brands never triggers Step 3.+| Kind | Physical dir | Contains | Frontmatter |+|---|---|---|---|+| **brand** | `templates/brands/<id>/` | identity-only segment: color / typography / logo / voice / icon style | `kind: brand` |+| **layout** | `templates/layouts/<id>/` | structure-only segment: canvas / page structure / page types / SVG roster | `kind: layout` |+| **deck** | `templates/decks/<id>/` | full replica: identity + structure + middle (template overview) segments | `kind: deck` |-| User input contains | Step 3 brand action |+**Segment ownership** (governs fusion override priority):++| Segment | Sections | Owner kind on fusion |+|---|---|---|+| Identity | Color Scheme / Typography / Logo / Voice & Tone / Icon Style | brand |+| Structure | Canvas / Page Structure / Page Types / SVG Roster | layout |+| Middle | Template Overview (use cases / design intent) | deck (no other kind writes this) |++#### Single-path dispatch++| User path's `kind` | Step 3 action ||---|---|-| An explicit path to a brand directory (e.g. `skills/ppt-master/templates/brands/acme/`, or any path that resolves to a directory whose `design_spec.md` declares `kind: brand`) | Copy `design_spec.md` + logo files + any present asset subdirectories into `<project_path>/templates/` |-| Bare brand names ("use acme brand", "用 acme 品牌"), brand mentions without a path, or silence | Skip — same mechanical rule as layout templates: bare names never trigger |+| `kind: brand` | Copy `design_spec.md` + logo files + asset subdirs (`images/` / `illustrations/` / `icons/`) into `<project>/templates/`. Strategist locks identity segment as truth; structure stays free. |+| `kind: layout` | Copy `design_spec.md` + SVG roster + asset files into `<project>/templates/`. Strategist locks structure; identity decided in Eight Confirmations e–g. |+| `kind: deck` | Copy everything (`design_spec.md` + SVGs + logos + assets) into `<project>/templates/`. Strategist locks all segments; Eight Confirmations narrows to deck-content fields (audience / page count / outline / tone tweaks). |```bash-BRAND_DIR=<user-supplied brand path>-cp ${BRAND_DIR}/design_spec.md <project_path>/templates/-cp ${BRAND_DIR}/*.svg <project_path>/templates/ 2>/dev/null || true # brand logo SVG files-cp ${BRAND_DIR}/*.png <project_path>/templates/ 2>/dev/null || true # brand logo raster files-[ -d ${BRAND_DIR}/images ] && cp -r ${BRAND_DIR}/images <project_path>/templates/-[ -d ${BRAND_DIR}/illustrations ] && cp -r ${BRAND_DIR}/illustrations <project_path>/templates/-[ -d ${BRAND_DIR}/icons ] && cp -r ${BRAND_DIR}/icons <project_path>/templates/+TEMPLATE_DIR=<user-supplied path>+cp -r ${TEMPLATE_DIR}/* <project_path>/templates/```-> Brand and layout outputs share `<project_path>/templates/` because they are the same kind of artifact — a reference bundle that Strategist treats as truth. Downstream code never needs to distinguish them.+The single-line copy suffices for all three kinds — the spec's `kind` field tells Strategist how to read it; downstream code doesn't distinguish.-> "What brands exist?" is out-of-band Q&A — answer by listing entries from `brands_index.json` together with their paths. Listing alone does not advance the pipeline; the user still has to send a path to trigger the Step 3 copy.+#### Multi-path fusion-> To create a new brand, read `workflows/create-brand.md`.+When the user gives two or more paths of **different kinds**, Step 3 fuses them into a single `<project>/templates/design_spec.md`. **Default granularity is segment-level integer replacement** — entire identity / structure / middle segments are taken from the highest-priority source for that segment, no implicit field-level mixing.-#### Brand + layout combined input+Override priority by segment:-A brand path and a layout template path may both be supplied in the same message. When both are present, Step 3 **fuses them into a single `design_spec.md`** inside `<project_path>/templates/` instead of leaving two specs side by side. Field-level precedence is fixed (no per-deck prompting):+| Combination | Identity from | Structure from | Middle from |+|---|---|---|---|+| brand only | brand | (free design) | (none) |+| layout only | (free design) | layout | (none) |+| deck only | deck | deck | deck |+| brand + layout | brand | layout | (none) |+| brand + deck | brand (overrides deck) | deck | deck |+| layout + deck | deck | layout (overrides deck) | deck |+| brand + layout + deck | brand | layout | deck |-| Field group | Source |-|---|---|-| Color (primary / secondary / accents / text / bg) | **brand** |-| Typography (font family) | **brand** |-| Logo | **brand** (if absent, fall back to layout's logo) |-| Voice & tone | **brand** |-| Icon style preference | **brand** |-| Canvas (size / viewBox / margins) | **layout** |-| Page roster + signature visual elements (top bar / underline / decorative motifs) | **layout** |-| Font-size hierarchy (H1 / H2 / body / data / label) | **layout** |-| Spacing, grid, layout patterns | **layout** |-| SVG technical constraints | **layout** |-| Placeholder set | **layout** |+Field-level micro-adjustment (e.g. "use anthropic brand but primary changed to #FF0000") is **not** part of Step 3 fusion — it flows into Strategist Eight Confirmations e–g as a normal user request.-Action: AI reads `${LAYOUT_DIR}/design_spec.md` and `${BRAND_DIR}/design_spec.md`, composes one fused `design_spec.md` using the table above, writes it to `<project_path>/templates/design_spec.md`. SVG page files come from `${LAYOUT_DIR}`; brand logos and asset subdirectories from `${BRAND_DIR}`. The fused spec carries a one-line `> Fused from: layout=<layout_id>, brand=<brand_id>` provenance note under its H1.+#### Same-kind multiple paths — conflict resolution-**Conflict gates** — clarify with the user only in these two cases:+When the user gives two paths of the **same kind** (e.g. `brands/anthropic` + `brands/google`), Step 3 surfaces a conflict prompt before fusing — like resolving a git merge conflict:-1. **Brand has no logo, layout has one.** Ask: "your brand has no bundled logo; use the layout's logo, or leave the deck logo-less?"-2. **Layout is itself a branded template (e.g. `招商银行`, `重庆大学`, `中汽研_*`, `中国电建_*`) and the supplied brand is different.** Ask: "this layout carries `<layout's own brand>` identity, which conflicts with the `<supplied brand>` you provided — confirm you want brand identity from `<supplied brand>` and only the page structure from `<layout>`?"+```+AI: 你给了两个 brand,检测到段级冲突:+ - Color Scheme(Anthropic 橙红 vs Google 多色)+ - Typography(Styrene/AnthropicSans vs GoogleSans/Roboto)+ - Logo(Anthropic 标 vs Google 标)+ - Voice & Tone(restrained vs friendly)+ - Icon Style(stroke vs filled)++ 要 (a) 全部按 Anthropic / (b) 全部按 Google / (c) 逐段挑?+```++Rules:+- Default: no implicit ordering — every cross-source segment difference is reported as a conflict+- Only when the user picks `(c)` does AI walk through each segment one by one+- Field-level conflicts are out of scope — segment-level only+- Three or more same-kind paths are not supported — ask the user to converge to at most two++#### Fused spec provenance++When fusion happens (any multi-path case), the resulting `<project>/templates/design_spec.md` carries a provenance block immediately under its H1:++```markdown+> **Fused from:**+> - deck: `templates/decks/招商银行/` (base)+> - brand: `templates/brands/anthropic/` (identity override)+> - layout: `templates/layouts/academic_defense/` (structure override)+> - conflicts resolved: Color Scheme from anthropic(user picked a)+```-If neither gate trips, fusion proceeds silently and Step 3 advances.+Single-path Step 3 does **not** add provenance (the source is self-evident from the copied files).-**✅ Checkpoint — Default path proceeds to Step 4 without user interaction. If the user's input contains an explicit template directory path and/or an explicit brand directory path, those directories are copied (or fused) into `<project_path>/templates/` before advancing.**+**✅ Checkpoint — Default path proceeds to Step 4 without user interaction. If the user supplied one or more explicit template paths, those have been dispatched (or fused) into `<project_path>/templates/` before advancing.**---diff --git a/skills/ppt-master/references/template-designer.md b/skills/ppt-master/references/template-designer.mdindex a5447d8f..733af4df 100644--- a/skills/ppt-master/references/template-designer.md+++ b/skills/ppt-master/references/template-designer.md@@ -11,8 +11,8 @@ Generate reusable page templates for the **global template library** based on a## Usage- **Trigger**: `/create-template` workflow-- **Output location**: `templates/layouts/<template_name>/`-- **Input**: finalized template brief (template ID, display name, category, applicable scenarios, tone, theme mode, canvas format, optional reference assets)+- **Output location**: `templates/<kind_dir>/<template_name>/` where `<kind_dir>` is `decks` (default — full-PPT replica with identity) or `layouts` (structure-only, no identity segment)+- **Input**: finalized template brief (template ID, display name, kind, applicable scenarios, tone, theme mode, canvas format, optional reference assets)When the workflow provides a PPTX reference source, the effective input package comes from the unified `pptx_template_import.py` preparation workspace and becomes:@@ -87,7 +87,7 @@ Extension page types beyond the canonical four (transition / appendix / disclaim- Cluster slides from `manifest.json` by `pageType` + visual structure (column count, hero-image vs. icon-grid vs. quote, etc.)- One SVG per cluster — do **not** emit a variant for a cluster represented by a single source slide unless that slide is structurally distinct from existing variants- One variant per visually distinct cluster — let the source's structural diversity drive the count. Collapse only **near-duplicates** (same column count, same hero element, same content density); do not collapse genuine structural differences just to keep the variant count down. If you find yourself wanting one variant per source slide, that is the signal the user should be in `mirror` mode, not `fidelity`-- Record every emitted page in `design_spec.md §V Page Roster` and in the `pages` field of the `layouts_index.json` entry (auto-collected by `register_template.py`)+- Record every emitted page in `design_spec.md §V Page Roster`; the corresponding index entry (`decks_index.json` or `layouts_index.json`) is generated automatically by `register_template.py` from the directory's actual SVG files> Variants reuse the parent type's placeholder set — see §4 (Placeholder Reference) below.@@ -96,12 +96,12 @@ Extension page types beyond the canonical four (transition / appendix / disclaimWhen the brief sets `Replication mode: mirror`, the role does **not** abstract or reconstruct. Each source slide becomes one template page **byte-for-byte**:- Source: `<import_workspace>/svg-flat/slide_NN.svg` (the self-contained "what PowerPoint shows" view). Do **not** read or use `svg/master_*.svg`, `svg/layout_*.svg`, or `svg/inheritance.json` — chrome / content separation is irrelevant because mirror does not insert placeholders.-- Output: `templates/layouts/<template_id>/<NNN>_<page_type>.svg`, where `<NNN>` is the zero-padded source slide index (3 digits) and `<page_type>` is derived from `manifest.json` `pageTypeCandidates` — `cover` / `toc` / `chapter` / `content` / `ending`. When the page-type heuristic is ambiguous, fall back to `content`. Preserve source slide order via the numeric prefix.+- Output: `templates/<kind_dir>/<template_id>/<NNN>_<page_type>.svg`, where `<NNN>` is the zero-padded source slide index (3 digits) and `<page_type>` is derived from `manifest.json` `pageTypeCandidates` — `cover` / `toc` / `chapter` / `content` / `ending`. When the page-type heuristic is ambiguous, fall back to `content`. Preserve source slide order via the numeric prefix.- Modifications allowed: **only** rewriting `<image href="...">` paths to point at the local `assets/` copy, and renaming asset files to semantic names. Everything else — geometry, decoration, sprite-sheet wrappers, original example text, chart placeholders, embedded fonts — is copied as-is.- Modifications forbidden: inserting `{{TITLE}}` / `{{CONTENT_AREA}}` / any other placeholder; "cleaning up" decorative complexity; merging similar slides; dropping master/layout chrome (it's already baked into the flat SVG, leave it).- `design_spec.md` §V Page Roster lists every emitted file with **a one-line description** of what the page contains and what content slot it suits — Strategist selects mirror pages purely from these descriptions, since the SVG itself carries no placeholder contract.-**Why mirror has no placeholders**: it is consumed as a **visual reference** rather than a templated form. Executor's mirror path (see [executor-base.md](executor-base.md) §1.1) copies the chosen mirror page into the project and edits text elements in place against the project content — no `{{}}` substitution happens. This keeps the library asset 100% verbatim and lets the user re-discover the source deck by browsing `templates/layouts/<template_id>/` directly.+**Why mirror has no placeholders**: it is consumed as a **visual reference** rather than a templated form. Executor's mirror path (see [executor-base.md](executor-base.md) §1.1) copies the chosen mirror page into the project and edits text elements in place against the project content — no `{{}}` substitution happens. This keeps the library asset 100% verbatim and lets the user re-discover the source deck by browsing `templates/<kind_dir>/<template_id>/` directly.**What mirror is not**: a pixel-perfect re-rendering pipeline test. Charts, SmartArt, OLE objects, and EMF / WMF media that fail to round-trip in `pptx_template_import.py` will fail the same way in mirror. If the import workspace has missing media or unsupported objects, mirror inherits those gaps — the user should be told before generation begins.@@ -293,7 +293,7 @@ When rebuilding from imported PPTX references, placeholder insertion takes priorStandard mode (default):```-templates/layouts/<template_name>/+templates/<kind_dir>/<template_name>/├── design_spec.md # Design specification (required)├── 01_cover.svg├── 02_chapter.svg@@ -306,7 +306,7 @@ templates/layouts/<template_name>/Fidelity mode adds variants and extension pages, e.g.:```-templates/layouts/<template_name>/+templates/<kind_dir>/<template_name>/├── design_spec.md├── 01_cover.svg├── 02a_chapter_full.svg@@ -323,7 +323,7 @@ templates/layouts/<template_name>/Mirror mode emits one SVG per source slide, named by source order:```-templates/layouts/<template_name>/+templates/<kind_dir>/<template_name>/├── design_spec.md├── 001_cover.svg├── 002_toc.svg@@ -360,13 +360,19 @@ If suitable template resources already exist, use them directly instead of generThis section describes downstream reuse. The `Template_Designer` role itself is responsible for creating or normalizing the reusable library asset first.-**Example library structure** (query `templates/layouts/layouts_index.json`):+**Example library structure** (query the appropriate kind's index — `templates/layouts/layouts_index.json` for structure-only templates, `templates/decks/decks_index.json` for full-PPT replicas, `templates/brands/brands_index.json` for identity-only presets):```-templates/layouts/-├── academic_defense/ # Academic defense style-├── pixel_retro/ # Pixel retro / cyberpunk style-└── 招商银行/ # China Merchants Bank brand style+templates/+├── brands/+│ ├── anthropic/ # Anthropic brand identity (logo + colors + typography)+│ └── google/ # Google brand identity+├── layouts/+│ ├── academic_defense/ # Academic-defense structure (no identity)+│ └── pixel_retro/ # Pixel retro / cyberpunk structure (no identity)+└── decks/+ ├── 招商银行/ # China Merchants Bank full PPT replica+ └── 中国电建_常规/ # PowerChina full PPT replica```---@@ -378,9 +384,9 @@ templates/layouts/- [x] Read `references/template-designer.md`- [x] Replication mode confirmed: `standard` | `fidelity` | `mirror`-- [x] Every page listed in `design_spec.md §V Page Roster` saved to `templates/layouts/<template_name>/`+- [x] Every page listed in `design_spec.md §V Page Roster` saved to `templates/<layouts|decks>/<template_name>/` (decks for full-PPT replicas, layouts for structure-only)- [x] Naming convention applied (standard / fidelity: letter-suffix variants; mirror: `<NNN>_<page_type>.svg`)- [x] Templates follow design spec (colors, fonts, layout)- [x] Placeholder markers are clear and standardized (standard / fidelity); mirror SVGs contain **no** `{{}}` markers-- [ ] **Next step**: Validate assets and register the template in `layouts_index.json` (include `pages` field)+- [ ] **Next step**: Validate assets and register the template via `register_template.py <id> --kind <deck|layout>````diff --git a/skills/ppt-master/scripts/register_template.py b/skills/ppt-master/scripts/register_template.pyindex d18a5160..0639e692 100644--- a/skills/ppt-master/scripts/register_template.py+++ b/skills/ppt-master/scripts/register_template.py@@ -1,31 +1,33 @@#!/usr/bin/env python3-"""Register a layout template or brand preset into the global template index.+"""Register a brand / layout / deck template into the global template index.-For layout templates (``--kind layout``, default), reads-``templates/layouts/<template_id>/design_spec.md`` and synchronizes:+Three kinds, three physical directories, three index files (see+``docs/zh/templates-architecture.md`` for the data model):-- ``templates/layouts/layouts_index.json`` — slim machine-readable map-- ``templates/layouts/README.md`` — human-facing "Quick Template Index" table+| --kind | Source dir | Index file |+|---------|-------------------------|-------------------------------|+| brand | ``templates/brands/`` | ``brands_index.json`` |+| layout | ``templates/layouts/`` | ``layouts_index.json`` |+| deck | ``templates/decks/`` | ``decks_index.json`` |-For brand presets (``--kind brand``), reads-``templates/brands/<brand_id>/design_spec.md`` and synchronizes:+Index entry schemas (the JSON file is the single source of truth — README+files describe the kind and usage in prose but do **not** enumerate templates;+discovery happens exclusively against the index file):-- ``templates/brands/brands_index.json`` — slim machine-readable map- (brand README under ``templates/brands/`` is hand-maintained)+- brand: ``{ summary, primary_color }``+- layout: ``{ summary, canvas_format, page_count, page_types[] }``+- deck: ``{ summary, canvas_format, page_count, primary_color }``-This script is the single source-of-truth bridge between a design spec and-the indexes. Run it after creating a new template / brand (or after editing-a spec) and the index updates automatically — no manual JSON surgery.+Usage::-Usage:- python3 scripts/register_template.py <template_id>- python3 scripts/register_template.py <template_id> --dry-run- python3 scripts/register_template.py --rebuild-all- python3 scripts/register_template.py <brand_id> --kind brand- python3 scripts/register_template.py --kind brand --rebuild-all+ python3 scripts/register_template.py <id> --kind deck # default kind=deck+ python3 scripts/register_template.py <id> --kind layout+ python3 scripts/register_template.py <id> --kind brand+ python3 scripts/register_template.py --rebuild-all --kind deck+ python3 scripts/register_template.py <id> --dry-run``--rebuild-all`` rebuilds every entry from scratch within the chosen kind;-recommended for repairing index drift across many templates / brands at once.+recommended for repairing index drift across many templates at once."""from __future__ import annotations@@ -36,25 +38,37 @@ import reimport sysfrom collections import OrderedDictfrom pathlib import Path-from typing import Iterabletry:import yaml # type: ignore-except ImportError: # pragma: no cover — yaml is part of stdlib-adjacent deps+except ImportError:yaml = NoneSCRIPT_DIR = Path(__file__).resolve().parentSKILL_DIR = SCRIPT_DIR.parent-LAYOUTS_DIR = SKILL_DIR / "templates" / "layouts"-INDEX_PATH = LAYOUTS_DIR / "layouts_index.json"-README_PATH = LAYOUTS_DIR / "README.md"--BRANDS_DIR = SKILL_DIR / "templates" / "brands"-BRANDS_INDEX_PATH = BRANDS_DIR / "brands_index.json"--QUICK_INDEX_BEGIN = "<!-- quick-index:begin -->"-QUICK_INDEX_END = "<!-- quick-index:end -->"+TEMPLATES_DIR = SKILL_DIR / "templates"++KIND_CONFIG = {+ "brand": {+ "dir": TEMPLATES_DIR / "brands",+ "index": TEMPLATES_DIR / "brands" / "brands_index.json",+ "id_key": "brand_id",+ "needs_svg_roster": False,+ },+ "layout": {+ "dir": TEMPLATES_DIR / "layouts",+ "index": TEMPLATES_DIR / "layouts" / "layouts_index.json",+ "id_key": "layout_id",+ "needs_svg_roster": True,+ },+ "deck": {+ "dir": TEMPLATES_DIR / "decks",+ "index": TEMPLATES_DIR / "decks" / "decks_index.json",+ "id_key": "deck_id",+ "needs_svg_roster": True,+ },+}# ---------------------------------------------------------------------------@@ -70,11 +84,9 @@ def _read_spec(spec_path: Path) -> tuple[dict | None, str]:text = spec_path.read_text(encoding="utf-8")if not text.startswith("---\n"):return None, text-end = text.find("\n---\n", 4)if end == -1:return None, text-fm_block = text[4:end]body = text[end + 5:]if yaml is None:@@ -92,15 +104,6 @@ def _read_spec(spec_path: Path) -> tuple[dict | None, str]:def _extract_section_field(body: str, section_title: str, labels: list[str]) -> str | None:- """Find a field within the named section.-- Tolerates two layouts the existing specs use:-- 1. Markdown table row: ``| **Label** | value |``- 2. Bullet list: ``- **Label**: value``-- Tries each label variant in order. Returns the first match or ``None``.- """section_re = re.compile(rf"^##\s+{re.escape(section_title)}\b.*?(?=^##\s+|\Z)",re.MULTILINE | re.DOTALL,@@ -111,20 +114,16 @@ def _extract_section_field(body: str, section_title: str, labels: list[str]) ->section = section_match.group(0)for label in labels:- # Table formrow = re.search(rf"^\|\s*\*?\*?{re.escape(label)}\*?\*?\s*\|\s*(.+?)\s*\|",- section,- re.MULTILINE | re.IGNORECASE,+ section, re.MULTILINE | re.IGNORECASE,)if row:return _clean_field_value(row.group(1))- # Bullet formbullet = re.search(rf"^[-*]\s*\*?\*?{re.escape(label)}\*?\*?\s*[::]\s*(.+?)\s*$",- section,- re.MULTILINE | re.IGNORECASE,+ section, re.MULTILINE | re.IGNORECASE,)if bullet:return _clean_field_value(bullet.group(1))@@ -132,9 +131,7 @@ def _extract_section_field(body: str, section_title: str, labels: list[str]) ->def _clean_field_value(value: str) -> str:- """Strip surrounding markdown decorations from an extracted field value."""value = value.strip()- # Drop wrapping backticks / asterisks / underscores.value = re.sub(r"^[`*_]+", "", value)value = re.sub(r"[`*_]+$", "", value)return value.strip()@@ -146,26 +143,15 @@ def _find_first_color(section: str) -> str | None:def _extract_primary_color(body: str) -> str | None:- """Pull the first hex color out of the Color Scheme section (any roman index)."""section_match = re.search(r"^##\s+[IVX]+\.\s+Color Scheme\b.*?(?=^##\s+|\Z)",- body,- re.MULTILINE | re.DOTALL,+ body, re.MULTILINE | re.DOTALL,)if section_match is None:return Nonereturn _find_first_color(section_match.group(0))-def _split_keywords(value: object) -> list[str]:- if isinstance(value, list):- return [str(item).strip() for item in value if str(item).strip()]- if isinstance(value, str):- parts = re.split(r"[,,;;/、]", value)- return [p.strip() for p in parts if p.strip()]- return []--def _summary_from_use_cases(use_cases: str | None) -> str | None:if not use_cases:return None@@ -175,15 +161,29 @@ def _summary_from_use_cases(use_cases: str | None) -> str | None:return f"{cleaned}."-# ----------------------------------------------------------------------------# Per-template extraction-# ----------------------------------------------------------------------------def _list_pages(template_dir: Path) -> list[str]:return sorted(p.stem for p in template_dir.glob("*.svg"))-def _extract_entry(template_id: str, template_dir: Path) -> dict:+def _derive_page_types(pages: list[str]) -> list[str]:+ """Derive canonical page-type list from SVG filenames (strips leading 'NN_')."""+ types: list[str] = []+ seen: set[str] = set()+ for p in pages:+ m = re.match(r"^\d+[a-z]?_(.+)$", p)+ role = m.group(1) if m else p+ if role not in seen:+ seen.add(role)+ types.append(role)+ return types+++# ---------------------------------------------------------------------------+# Per-kind extraction+# ---------------------------------------------------------------------------++def _extract_entry(kind: str, template_id: str, template_dir: Path) -> dict:+ """Build the index entry + extras for a single template."""spec_path = template_dir / "design_spec.md"if not spec_path.exists():raise SpecParseError(f"missing design_spec.md in {template_dir}")@@ -191,443 +191,193 @@ def _extract_entry(template_id: str, template_dir: Path) -> dict:frontmatter, body = _read_spec(spec_path)fm = frontmatter or {}- summary = fm.get("summary")- if not summary:- summary = _summary_from_use_cases(- _extract_section_field(- body, "I. Template Overview", ["Use Cases", "Use cases"]- )- )- summary = (summary or "").strip()-- keywords = _split_keywords(fm.get("keywords"))- if not keywords:- tone = _extract_section_field(- body, "I. Template Overview", ["Design Tone", "Tone"]- ) or ""- keywords = _split_keywords(tone)[:5]-- primary_color = fm.get("primary_color") or _extract_primary_color(body)- category = fm.get("category", "general")- use_cases = (- fm.get("use_cases")- or _extract_section_field(- body, "I. Template Overview", ["Use Cases", "Use cases"]+ declared_kind = fm.get("kind")+ if declared_kind not in (None, kind):+ raise SpecParseError(+ f"design_spec.md frontmatter declares kind={declared_kind!r}; "+ f"expected kind={kind!r} — use --kind {declared_kind} instead")- or ""- )- design_tone = (- fm.get("design_tone")- or _extract_section_field(- body, "I. Template Overview", ["Design Tone", "Tone"]++ summary = (fm.get("summary") or "").strip()+ if not summary:+ section_title = (+ "I. Brand Overview" if kind == "brand" else "I. Template Overview")- or ""- )+ summary = (_summary_from_use_cases(+ _extract_section_field(body, section_title, ["Use Cases", "Use cases"])+ ) or "").strip()pages = _list_pages(template_dir)+ primary_color = fm.get("primary_color") or _extract_primary_color(body) or ""- entry = OrderedDict(- summary=summary,- keywords=keywords,- )+ if kind == "brand":+ entry = OrderedDict(+ summary=summary,+ primary_color=str(primary_color),+ )+ elif kind == "layout":+ page_types = fm.get("page_types") or _derive_page_types(pages)+ if isinstance(page_types, str):+ page_types = [t.strip() for t in re.split(r"[,,]", page_types) if t.strip()]+ entry = OrderedDict(+ summary=summary,+ canvas_format=str(fm.get("canvas_format", "ppt169")),+ page_count=int(fm.get("page_count", len(pages))),+ page_types=list(page_types),+ )+ elif kind == "deck":+ entry = OrderedDict(+ summary=summary,+ canvas_format=str(fm.get("canvas_format", "ppt169")),+ page_count=int(fm.get("page_count", len(pages))),+ primary_color=str(primary_color),+ )+ else:+ raise SpecParseError(f"unknown kind {kind!r}")extras = OrderedDict(pages=pages,- category=str(category),- primary_color=str(primary_color or ""),- use_cases=str(use_cases),- design_tone=str(design_tone),+ primary_color=str(primary_color),)return {"entry": entry, "extras": extras}# ----------------------------------------------------------------------------# Index writers+# Index / README writers# ----------------------------------------------------------------------------def _load_index() -> "OrderedDict[str, dict]":- if not INDEX_PATH.exists():+def _load_index(path: Path) -> "OrderedDict[str, dict]":+ if not path.exists():return OrderedDict()- raw = json.loads(INDEX_PATH.read_text(encoding="utf-8"))+ raw_text = path.read_text(encoding="utf-8").strip() or "{}"+ raw = json.loads(raw_text)return OrderedDict(sorted(raw.items()))-def _write_index(data: "OrderedDict[str, dict]", *, dry_run: bool) -> None:+def _write_index(path: Path, data: "OrderedDict[str, dict]", *, dry_run: bool) -> None:payload = json.dumps(data, ensure_ascii=False, indent=2) + "\n"if dry_run:- print(f"--- {INDEX_PATH.name} (dry-run) ---")+ print(f"--- {path.name} (dry-run) ---")print(payload)return- INDEX_PATH.write_text(payload, encoding="utf-8")---def _render_quick_index_rows(- items: Iterable[tuple[str, dict, dict]],-) -> list[str]:- rows: list[str] = [- "| Template Name | Category | Use Cases | Primary Color | Design Tone |",- "|---------------|----------|-----------|---------------|-------------|",- ]- for tid, _, extras in items:- cat = extras.get("category") or "general"- use_cases = extras.get("use_cases") or "—"- primary = extras.get("primary_color") or "—"- if primary != "—":- primary = f"`{primary}`"- tone = extras.get("design_tone") or "—"- rows.append(- f"| `{tid}` | {cat.title()} | {use_cases} | {primary} | {tone} |"- )- return rows---def _patch_readme(- items: list[tuple[str, dict, dict]],- *,- dry_run: bool,-) -> None:- text = README_PATH.read_text(encoding="utf-8") if README_PATH.exists() else ""-- # Update header count- new_total = len(items)- text = re.sub(- r"^# Page Layout Template Library \(\d+ Templates\)",- f"# Page Layout Template Library ({new_total} Templates)",- text,- count=1,- flags=re.MULTILINE,- )-- rows = _render_quick_index_rows(items)- block = "\n".join([QUICK_INDEX_BEGIN, *rows, QUICK_INDEX_END])-- if QUICK_INDEX_BEGIN in text and QUICK_INDEX_END in text:- text = re.sub(- re.escape(QUICK_INDEX_BEGIN) + r".*?" + re.escape(QUICK_INDEX_END),- block,- text,- count=1,- flags=re.DOTALL,- )- else:- # Insert the auto-managed block after the "## Quick Template Index"- # heading; if the heading is missing, append at end.- anchor = "## Quick Template Index"- if anchor in text:- head, _, tail = text.partition(anchor)- # Drop the legacy hand-maintained table that follows the anchor up- # to the next "## " heading, then re-insert the managed block.- tail_lines = tail.splitlines(keepends=True)- keep_from = 0- for idx, line in enumerate(tail_lines[1:], start=1):- if line.startswith("## "):- keep_from = idx- break- preserved_tail = "".join(tail_lines[keep_from:])- text = (- f"{head}{anchor}\n\n{block}\n\n{preserved_tail}"- )- else:- text = f"{text.rstrip()}\n\n## Quick Template Index\n\n{block}\n"-- if dry_run:- print(f"--- {README_PATH.name} (dry-run) ---")- print(text)- return- README_PATH.write_text(text, encoding="utf-8")---# ----------------------------------------------------------------------------# Brand-mode helpers-# -----------------------------------------------------------------------------def _extract_brand_entry(brand_id: str, brand_dir: Path) -> dict:- """Extract a brand-index entry from ``templates/brands/<brand_id>/design_spec.md``.+ path.parent.mkdir(parents=True, exist_ok=True)+ path.write_text(payload, encoding="utf-8")- Brand specs are simpler than layout specs: no SVG roster, no §V signature- elements. Frontmatter is the primary source; section fallbacks cover the- bare minimum (summary + primary color) for hand-written specs.- """- spec_path = brand_dir / "design_spec.md"- if not spec_path.exists():- raise SpecParseError(f"missing design_spec.md in {brand_dir}")-- frontmatter, body = _read_spec(spec_path)- fm = frontmatter or {}-- declared_kind = fm.get("kind")- if declared_kind not in (None, "brand"):- raise SpecParseError(- f"design_spec.md frontmatter declares kind={declared_kind!r}; "- f"use --kind layout to register a layout template instead"- )-- summary = (fm.get("summary") or "").strip()- if not summary:- summary = _summary_from_use_cases(- _extract_section_field(- body, "I. Brand Overview", ["Use Cases", "Use cases"]- )- ) or ""- summary = summary.strip()-- keywords = _split_keywords(fm.get("keywords"))-- primary_color = fm.get("primary_color") or _extract_primary_color(body)-- entry = OrderedDict(- summary=summary,- keywords=keywords,- primary_color=str(primary_color or ""),- )- return {"entry": entry}--def _enumerate_brands() -> list[str]:- if not BRANDS_DIR.exists():+def _enumerate_ids(kind: str) -> list[str]:+ base = KIND_CONFIG[kind]["dir"]+ if not base.exists():return []return sorted(- p.name for p in BRANDS_DIR.iterdir()+ p.name for p in base.iterdir()if p.is_dir() and (p / "design_spec.md").exists())-def _load_brand_index() -> "OrderedDict[str, dict]":- if not BRANDS_INDEX_PATH.exists():- return OrderedDict()- raw_text = BRANDS_INDEX_PATH.read_text(encoding="utf-8").strip() or "{}"- raw = json.loads(raw_text)- return OrderedDict(sorted(raw.items()))---def _write_brand_index(- data: "OrderedDict[str, dict]", *, dry_run: bool-) -> None:- payload = json.dumps(data, ensure_ascii=False, indent=2) + "\n"- if dry_run:- print(f"--- {BRANDS_INDEX_PATH.name} (dry-run) ---")- print(payload)- return- BRANDS_INDEX_PATH.parent.mkdir(parents=True, exist_ok=True)- BRANDS_INDEX_PATH.write_text(payload, encoding="utf-8")---def _print_brand_completion_card(brand_id: str, entry: dict) -> None:+def _print_completion_card(kind: str, template_id: str, entry: dict, extras: dict) -> None:+ pretty_kind = {"layout": "Layout", "deck": "Deck", "brand": "Brand"}[kind]+ dir_name = {"layout": "layouts", "deck": "decks", "brand": "brands"}[kind]print()- print("## Brand Registration Complete")+ print(f"## {pretty_kind} Registration Complete")print()- print(f"**Brand ID**: {brand_id}")- print(f"**Brand Path**: `templates/brands/{brand_id}/`")- primary = entry.get("primary_color") or "—"- print(f"**Primary Color**: {primary}")+ print(f"**{pretty_kind} ID**: {template_id}")+ print(f"**Path**: `templates/{dir_name}/{template_id}/`")+ if kind in ("brand", "deck"):+ primary = entry.get("primary_color") or "—"+ print(f"**Primary Color**: {primary}")+ if kind in ("layout", "deck"):+ canvas = entry.get("canvas_format") or "—"+ pc = entry.get("page_count") or "—"+ print(f"**Canvas**: {canvas}")+ print(f"**Pages**: {pc}")print(f"**Summary**: {entry.get('summary') or '—'}")- keywords = entry.get("keywords") or []- if keywords:- print(f"**Keywords**: {', '.join(keywords)}")print("**Index Registration**: Done")print()---def _register_brand_main(args: argparse.Namespace) -> int:- if args.rebuild_all:- ids = _enumerate_brands()- if not ids:- print("[OK] No brand directories under templates/brands/; index left empty.")- _write_brand_index(OrderedDict(), dry_run=args.dry_run)- return 0- else:- ids = [args.template_id]- brand_dir = BRANDS_DIR / args.template_id- if not brand_dir.is_dir():- print(- f"Error: brand directory not found: {brand_dir}",- file=sys.stderr,- )- return 1-- extracted: dict[str, dict] = {}- for bid in ids:- try:- extracted[bid] = _extract_brand_entry(bid, BRANDS_DIR / bid)- except SpecParseError as exc:- print(f"Error: {bid}: {exc}", file=sys.stderr)- return 1-- if args.rebuild_all:- index = OrderedDict(- (bid, extracted[bid]["entry"]) for bid in sorted(extracted)- )- else:- index = _load_brand_index()- for bid, payload in extracted.items():- index[bid] = payload["entry"]- index = OrderedDict(sorted(index.items()))-- _write_brand_index(index, dry_run=args.dry_run)-- if not args.dry_run and not args.rebuild_all:- bid = args.template_id- _print_brand_completion_card(bid, extracted[bid]["entry"])- return 0-- print()- print(- f"[OK] {'Dry-run preview' if args.dry_run else 'Updated'}: "- f"{len(extracted)} brand(s) processed; "- f"index now lists {len(index)} entries."- )- return 0+ if kind != "brand":+ pages = extras.get("pages") or []+ if pages:+ print("### Files Included")+ print()+ print("| File | Status |")+ print("|------|--------|")+ for page in pages:+ print(f"| `{page}.svg` | Done |")+ print()# ---------------------------------------------------------------------------# Main# ----------------------------------------------------------------------------def _enumerate_templates() -> list[str]:- return sorted(- p.name for p in LAYOUTS_DIR.iterdir()- if p.is_dir() and p.name != "images" and (p / "design_spec.md").exists()- )---def _print_completion_card(template_id: str, entry: dict, extras: dict) -> None:- print()- print("## Template Creation Complete")- print()- print(f"**Template Name**: {template_id}")- print(f"**Template Path**: `templates/layouts/{template_id}/`")- print(f"**Category**: {extras.get('category', 'general')}")- primary = extras.get("primary_color") or "—"- print(f"**Primary Color**: {primary}")- print("**Index Registration**: Done")- print()- print("### Files Included")- print()- print("| File | Status |")- print("|------|--------|")- for page in extras.get("pages", []):- print(f"| `{page}.svg` | Done |")- print()--def main() -> int:- """CLI entry: register one template (or rebuild all) into the index."""parser = argparse.ArgumentParser(- description=(- "Register / refresh layout templates or brand presets "- "in the global index."- )- )- parser.add_argument(- "template_id",- nargs="?",- help=(- "Template directory under templates/layouts/ "- "(or templates/brands/ when --kind brand). "- "Omit with --rebuild-all."- ),+ description="Register / refresh templates (brand / layout / deck) in the index.")parser.add_argument(- "--kind",- choices=["layout", "brand"],- default="layout",- help=(- "What kind of preset to register. 'layout' (default) writes to "- "layouts_index.json + README quick index; 'brand' writes to "- "brands_index.json and skips SVG-roster checks."- ),+ "template_id", nargs="?",+ help="Template directory id (under templates/<kind_dir>/). Omit with --rebuild-all.",)parser.add_argument(- "--rebuild-all",- action="store_true",- help="Rebuild every index entry from each spec.",- )- parser.add_argument(- "--dry-run",- action="store_true",- help="Show what would be written without modifying any files.",+ "--kind", choices=list(KIND_CONFIG.keys()), default="deck",+ help="Template kind (default: deck).",)+ parser.add_argument("--rebuild-all", action="store_true",+ help="Rebuild every index entry within the chosen kind.")+ parser.add_argument("--dry-run", action="store_true",+ help="Show what would be written without modifying any files.")args = parser.parse_args()if not args.template_id and not args.rebuild_all:parser.error("provide a template_id or use --rebuild-all")- if args.kind == "brand":- return _register_brand_main(args)+ cfg = KIND_CONFIG[args.kind]+ base = cfg["dir"]if args.rebuild_all:- ids = _enumerate_templates()+ ids = _enumerate_ids(args.kind)+ if not ids:+ print(f"[OK] No {args.kind} directories found; index left empty.")+ _write_index(cfg["index"], OrderedDict(), dry_run=args.dry_run)+ return 0else:ids = [args.template_id]- spec_dir = LAYOUTS_DIR / args.template_id+ spec_dir = base / args.template_idif not spec_dir.is_dir():- print(f"Error: template directory not found: {spec_dir}",- file=sys.stderr)+ print(f"Error: {args.kind} directory not found: {spec_dir}", file=sys.stderr)return 1- # Build entries for the requested ids.extracted: dict[str, dict] = {}for tid in ids:try:- extracted[tid] = _extract_entry(tid, LAYOUTS_DIR / tid)+ extracted[tid] = _extract_entry(args.kind, tid, base / tid)except SpecParseError as exc:print(f"Error: {tid}: {exc}", file=sys.stderr)return 1- # Merge into the index (preserving sibling entries when single-template mode).if args.rebuild_all:- index = OrderedDict(- (tid, extracted[tid]["entry"]) for tid in sorted(extracted)- )+ index = OrderedDict((tid, extracted[tid]["entry"]) for tid in sorted(extracted))else:- index = _load_index()+ index = _load_index(cfg["index"])for tid, payload in extracted.items():index[tid] = payload["entry"]index = OrderedDict(sorted(index.items()))- _write_index(index, dry_run=args.dry_run)-- # README is rebuilt from the union of (current index) + (newly extracted- # entries). For rebuild-all it is just the extracted set.- if args.rebuild_all:- readme_items: list[tuple[str, dict, dict]] = [- (tid, extracted[tid]["entry"], extracted[tid]["extras"])- for tid in sorted(extracted)- ]- else:- readme_items = []- all_extras: dict[str, dict] = {}- for tid in index:- if tid in extracted:- all_extras[tid] = extracted[tid]["extras"]- else:- template_dir = LAYOUTS_DIR / tid- if (template_dir / "design_spec.md").exists():- try:- all_extras[tid] = _extract_entry(tid, template_dir)["extras"]- except SpecParseError:- all_extras[tid] = {}- else:- all_extras[tid] = {}- readme_items.append((tid, index[tid], all_extras[tid]))-- _patch_readme(readme_items, dry_run=args.dry_run)+ _write_index(cfg["index"], index, dry_run=args.dry_run)if not args.dry_run and not args.rebuild_all:tid = args.template_id_print_completion_card(- tid, extracted[tid]["entry"], extracted[tid]["extras"]+ args.kind, tid, extracted[tid]["entry"], extracted[tid]["extras"])return 0print()print(f"[OK] {'Dry-run preview' if args.dry_run else 'Updated'}: "- f"{len(extracted)} template(s) processed; "- f"index now lists {len(index)} entries."+ f"{len(extracted)} {args.kind}(s) processed; index now lists {len(index)} entries.")return 0if __name__ == "__main__":- raise SystemExit(main())+ sys.exit(main())diff --git a/skills/ppt-master/scripts/svg_quality_checker.py b/skills/ppt-master/scripts/svg_quality_checker.pyindex 570ec776..33bbc382 100644--- a/skills/ppt-master/scripts/svg_quality_checker.py+++ b/skills/ppt-master/scripts/svg_quality_checker.py@@ -937,7 +937,7 @@ class SVGQualityChecker:svg_files = [dir_path]else:if self.template_mode:- # Template directories live at templates/layouts/<id>/.+ # Template directories live at templates/{layouts,decks}/<id>/.svg_files = sorted(dir_path.glob('*.svg'))else:svg_output = dir_path / \@@ -1416,9 +1416,10 @@ def print_usage() -> None:print(" python3 scripts/svg_quality_checker.py examples/project/svg_output")print(" python3 scripts/svg_quality_checker.py examples/project")print(" python3 scripts/svg_quality_checker.py templates/layouts/academic_defense --template-mode")+ print(" python3 scripts/svg_quality_checker.py templates/decks/招商银行 --template-mode")print("\nOptions:")print(" --format <ppt169|ppt43|...> Expected canvas format")- print(" --template-mode Validate a templates/layouts/<id> directory:")+ print(" --template-mode Validate a templates/{layouts,decks}/<id> directory:")print(" glob *.svg directly, skip spec_lock checks,")print(" enforce roster ↔ design_spec.md Page Roster consistency,")print(" and emit advisory placeholder-convention warnings.")diff --git a/skills/ppt-master/templates/brands/README.md b/skills/ppt-master/templates/brands/README.mdindex d75c5629..fc2acc4d 100644--- a/skills/ppt-master/templates/brands/README.md+++ b/skills/ppt-master/templates/brands/README.md@@ -1,16 +1,21 @@# Brand Identity Presets-This directory holds **brand-only templates**: identity bundles (colors / typography / logo / voice / icon style) without an SVG page roster. Structurally a brand is a layout template minus its page roster — Strategist locks the brand's identity tokens as truth; Executor designs pages freely under those constraints.+This directory holds **brand-only templates**: identity bundles (color / typography / logo / voice / icon style) without an SVG page roster. Strategist locks the brand's identity segment as truth; Executor designs pages freely under those constraints.++Brand is one of three template kinds in the library — alongside [`layouts/`](../layouts/) (structure-only) and [`decks/`](../decks/) (full-PPT replica). Full data model: [`docs/zh/templates-architecture.md`](../../../../docs/zh/templates-architecture.md).## How brands are consumed-Brand application follows the **same explicit-path rule as layout templates** at SKILL.md Step 3, and lands in the **same project directory** (`<project_path>/templates/`) — brands and layouts are the same kind of artifact from the downstream's point of view:+Brand application follows the **same explicit-path rule as all template kinds** at SKILL.md Step 3, and lands in the **same project directory** (`<project_path>/templates/`):| User input at SKILL.md Step 3 | Behavior ||---|---|-| An explicit brand directory path (e.g. `templates/brands/acme/`) | Copy `design_spec.md` + logo files + any present asset subdirectories into `<project_path>/templates/`; Strategist reads it as a normal `design_spec.md` |-| Bare brand name only ("use acme brand"), brand mention without path, or silence | Skip — same mechanical rule as layout templates: bare names never trigger |-| Both a brand path and a layout template path supplied | Step 3 fuses the two into one `design_spec.md` (brand wins on color / typography / logo / voice; layout wins on canvas / page roster / spacing / font-size hierarchy) and writes it to `<project_path>/templates/`. See `SKILL.md` Step 3 for the field-precedence table and the two conflict gates that may surface a clarifying question |+| An explicit brand directory path (e.g. `templates/brands/anthropic/`) | Copy `design_spec.md` + logo files + asset subdirectories into `<project_path>/templates/`; Strategist locks identity segment |+| Bare brand name only ("use anthropic brand"), brand mention without path, or silence | Skip — same mechanical rule as all template kinds: bare names never trigger |+| Brand path + layout path | Fuse into one `design_spec.md` — brand owns identity segment (color / typography / logo / voice / icon style); layout owns structure segment (canvas / page roster). See `SKILL.md` Step 3. |+| Brand path + deck path | Fuse — brand identity overrides deck identity; structure + middle segments come from deck |+| Brand path + layout path + deck path | Three-way fuse — brand=identity, layout=structure, deck=middle |+| Two brand paths | Conflict resolution prompt before fusion — user picks per-segment source |`brands_index.json` is discovery-only; listing brands never advances the pipeline.@@ -42,10 +47,10 @@ templates/brands/<brand_id>/Logo filenames are descriptive, not contractual — `design_spec.md` §IV lists the exact files and the contexts in which each is used. Single-lockup brands typically ship one `logo.<ext>`; dual-lockup brands (e.g. Google's wordmark + G mark) ship separately named files.-`design_spec.md` carries a YAML frontmatter block with `kind: brand` and is the single source of truth for the brand identity. The seven sections are: I Brand Overview / II Color Scheme / III Typography / IV Logo / V Voice & Tone / VI Icon Style / VII Visual Assets (optional).+`design_spec.md` carries a YAML frontmatter block with `kind: brand` and is the single source of truth for the brand identity. The six required sections are: I Brand Overview / II Color Scheme / III Typography / IV Logo / V Voice & Tone / VI Icon Style.## Discovery index-[brands_index.json](./brands_index.json) is a slim machine-readable map (`brand_id → { summary, keywords, primary_color }`). It is refreshed by `register_template.py --kind brand <brand_id>` after a brand is created or edited.+[brands_index.json](./brands_index.json) is a slim machine-readable map (`brand_id → { summary, primary_color }`). It is refreshed by `register_template.py --kind brand <brand_id>` after a brand is created or edited.Listing the index does not trigger any pipeline action — Step 3 triggers only on an explicit directory path supplied by the user, regardless of whether the brand appears in the index.diff --git a/skills/ppt-master/templates/brands/anthropic/design_spec.md b/skills/ppt-master/templates/brands/anthropic/design_spec.mdindex ffe123cf..f844b44f 100644--- a/skills/ppt-master/templates/brands/anthropic/design_spec.md+++ b/skills/ppt-master/templates/brands/anthropic/design_spec.md@@ -2,7 +2,6 @@brand_id: anthropickind: brandsummary: Anthropic brand identity — AI/LLM tech talks, developer conferences, technical training, product launches-keywords: [tech, modern, dark, conclusion-first, ai]primary_color: "#D97757"---diff --git a/skills/ppt-master/templates/brands/brands_index.json b/skills/ppt-master/templates/brands/brands_index.jsonindex 378b2281..37995c0a 100644--- a/skills/ppt-master/templates/brands/brands_index.json+++ b/skills/ppt-master/templates/brands/brands_index.json@@ -1,24 +1,10 @@{"anthropic": {"summary": "Anthropic brand identity — AI/LLM tech talks, developer conferences, technical training, product launches",- "keywords": [- "tech",- "modern",- "dark",- "conclusion-first",- "ai"- ],"primary_color": "#D97757"},"google": {"summary": "Google brand identity — multi-product corporate decks, developer events (Google I/O style), education and training in the Google ecosystem",- "keywords": [- "tech",- "modern",- "friendly",- "multi-color",- "optimistic"- ],"primary_color": "#4285F4"}}diff --git a/skills/ppt-master/templates/brands/google/design_spec.md b/skills/ppt-master/templates/brands/google/design_spec.mdindex 2ac7eaba..6159c149 100644--- a/skills/ppt-master/templates/brands/google/design_spec.md+++ b/skills/ppt-master/templates/brands/google/design_spec.md@@ -2,7 +2,6 @@brand_id: googlekind: brandsummary: Google brand identity — multi-product corporate decks, developer events (Google I/O style), education and training in the Google ecosystem-keywords: [tech, modern, friendly, multi-color, optimistic]primary_color: "#4285F4"---diff --git a/skills/ppt-master/templates/decks/README.md b/skills/ppt-master/templates/decks/README.mdnew file mode 100644index 00000000..1af14886--- /dev/null+++ b/skills/ppt-master/templates/decks/README.md@@ -0,0 +1,72 @@+# Deck Templates++**Deck = full-PPT replica.** Each deck reverse-engineers a specific organization's branded presentation and bundles its **identity + structure + middle** segments into one atomic asset. Use a deck when you want the complete look of a particular institution (color, typography, logo, page structure, voice) preserved as a whole.++Single source of truth for what decks exist: [`decks_index.json`](./decks_index.json) (`deck_id → { summary, canvas_format, page_count, primary_color }`). This README explains the kind; it does **not** enumerate decks.++Full data model: [`docs/zh/templates-architecture.md`](../../../../docs/zh/templates-architecture.md).++---++## Trigger rule++Deck selection is **opt-in by explicit path**. The main workflow defaults to free design. A deck is only used when the user gives an explicit directory path in their initial message (e.g. `skills/ppt-master/templates/decks/招商银行/`). Bare names do not trigger. See [`SKILL.md`](../../SKILL.md) Step 3.++`decks_index.json` is a **discovery aid**, not a trigger — it lets the AI answer "what decks exist?" by listing ids and paths. Listing alone never advances the pipeline.++---++## design_spec.md schema++Decks carry the full set of segments (identity + structure + middle). Minimum schema:++```markdown+---+deck_id: <slug>+kind: deck+summary: <one-line use cases>+canvas_format: ppt169+page_count: 5+primary_color: "#XXXXXX"+---++# [Brand / Organization Name] - Design Specification++## I. Template Overview # Middle — Use cases / Design intent+## II. Canvas Specification # Structure+## III. Color Scheme # Identity — role / HEX / provenance / notes+## IV. Typography # Identity — role / family / weight+## V. Logo # Identity — file / form / usage rules (if logo bundled)+## VI. Page Structure # Structure — layout grid / decorative DNA+## VII. Page Types # Structure — per-page roles+## VIII. SVG Page Roster # Structure — file list + per-file purpose+```++Decks may include additional supporting sections (Voice & Tone, Icon Style, Layout Modes, Spacing Specification, SVG Technical Constraints, Placeholder Specification, Asset Specification, Usage Notes). Use them when meaningful for the replica.++---++## Fusion behavior at Step 3++When the user gives a deck path **alone**, Strategist locks all segments; Eight Confirmations narrows to deck-content fields (target audience / page count / outline / tone tweaks).++When the user gives a deck path **with** a brand path or layout path, identity / structure segments are overridden by the higher-priority source (brand wins on identity, layout wins on structure). See [`SKILL.md`](../../SKILL.md) Step 3 fusion table.++---++## Creating a new deck++1. Run [`workflows/create-template.md`](../../workflows/create-template.md) (default kind is `deck`)+2. Resulting directory lands under `templates/decks/<id>/`+3. Validate: `python3 skills/ppt-master/scripts/svg_quality_checker.py templates/decks/<id> --template-mode --format ppt169`+4. Register: `python3 skills/ppt-master/scripts/register_template.py <id> --kind deck`++The register step updates [`decks_index.json`](./decks_index.json) — the single source of truth for deck discovery.++---++## See also++- [`templates/layouts/`](../layouts/) — structure-only templates without identity+- [`templates/brands/`](../brands/) — identity-only presets without page rosters+- [`docs/zh/templates-architecture.md`](../../../../docs/zh/templates-architecture.md) — three-class data model + fusion rulesdiff --git a/skills/ppt-master/templates/decks/decks_index.json b/skills/ppt-master/templates/decks/decks_index.jsonnew file mode 100644index 00000000..dbdeaf20--- /dev/null+++ b/skills/ppt-master/templates/decks/decks_index.json@@ -0,0 +1,50 @@+{+ "中国电信": {+ "summary": "China Telecom related briefings, 政企数字化方案, 转型规划, 内部汇报.",+ "canvas_format": "ppt169",+ "page_count": 5,+ "primary_color": "#C00000"+ },+ "中国电建_常规": {+ "summary": "Engineering project reports, technical proposal presentations, business negotiations, corporate promotion, annual summaries.",+ "canvas_format": "ppt169",+ "page_count": 5,+ "primary_color": "#00418D"+ },+ "中国电建_现代": {+ "summary": "Major engineering reports, international market promotion, technology achievement showcases, high-end business negotiations.",+ "canvas_format": "ppt169",+ "page_count": 5,+ "primary_color": "#00418D"+ },+ "中汽研_商务": {+ "summary": "Product certification display, evaluation presentations, technology promotion, high-end business reporting.",+ "canvas_format": "ppt169",+ "page_count": 5,+ "primary_color": "#003366"+ },+ "中汽研_常规": {+ "summary": "Product certification display, evaluation presentations, technology promotion, business visits.",+ "canvas_format": "ppt169",+ "page_count": 5,+ "primary_color": "#004098"+ },+ "中汽研_现代": {+ "summary": "Forward-looking technology showcases, strategic releases, high-end business reporting.",+ "canvas_format": "ppt169",+ "page_count": 5,+ "primary_color": "#001529"+ },+ "招商银行": {+ "summary": "交易银行产品介绍、销售收款方案汇报、客户案例拆解、分行培训材料.",+ "canvas_format": "ppt169",+ "page_count": 5,+ "primary_color": "#C8152D"+ },+ "重庆大学": {+ "summary": "Academic defense, research reports, teaching presentations, scholarly exchange.",+ "canvas_format": "ppt169",+ "page_count": 5,+ "primary_color": "#006BB7"+ }+}diff --git a/skills/ppt-master/templates/layouts/china_telecom_template/01_cover.svg "b/skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\344\277\241/01_cover.svg"similarity index 100%rename from skills/ppt-master/templates/layouts/china_telecom_template/01_cover.svgrename to "skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\344\277\241/01_cover.svg"diff --git a/skills/ppt-master/templates/layouts/china_telecom_template/02_chapter.svg "b/skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\344\277\241/02_chapter.svg"similarity index 100%rename from skills/ppt-master/templates/layouts/china_telecom_template/02_chapter.svgrename to "skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\344\277\241/02_chapter.svg"diff --git a/skills/ppt-master/templates/layouts/china_telecom_template/02_toc.svg "b/skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\344\277\241/02_toc.svg"similarity index 100%rename from skills/ppt-master/templates/layouts/china_telecom_template/02_toc.svgrename to "skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\344\277\241/02_toc.svg"diff --git a/skills/ppt-master/templates/layouts/china_telecom_template/03_content.svg "b/skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\344\277\241/03_content.svg"similarity index 100%rename from skills/ppt-master/templates/layouts/china_telecom_template/03_content.svgrename to "skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\344\277\241/03_content.svg"diff --git a/skills/ppt-master/templates/layouts/china_telecom_template/04_ending.svg "b/skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\344\277\241/04_ending.svg"similarity index 100%rename from skills/ppt-master/templates/layouts/china_telecom_template/04_ending.svgrename to "skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\344\277\241/04_ending.svg"diff --git a/skills/ppt-master/templates/layouts/china_telecom_template/design_spec.md "b/skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\344\277\241/design_spec.md"similarity index 89%rename from skills/ppt-master/templates/layouts/china_telecom_template/design_spec.mdrename to "skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\344\277\241/design_spec.md"index a7c57665..6e85a4ac 100644--- a/skills/ppt-master/templates/layouts/china_telecom_template/design_spec.md+++ "b/skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\344\277\241/design_spec.md"@@ -1,3 +1,12 @@+---+deck_id: 中国电信+kind: deck+summary: China Telecom related briefings, 政企数字化方案, 转型规划, 内部汇报.+canvas_format: ppt169+page_count: 5+primary_color: "#C00000"+---+# China Telecom Template - Design Specification> Suitable for telecom solution proposals, digital transformation briefings, government-enterprise reports, and executive review materials.@@ -8,7 +17,7 @@| Property | Description || --- | --- |-| **Template Name** | `china_telecom_template` (`中国电信模板`) |+| **Template Name** | `中国电信` || **Use Cases** | China Telecom related briefings, 政企数字化方案, 转型规划, 内部汇报 || **Design Tone** | Authoritative, structured, restrained, enterprise-government hybrid || **Theme Mode** | Light theme (white background + telecom red title bar + silver-gray structural lane + restrained brand imagery) |@@ -134,7 +143,17 @@----## VII. Layout Modes+## VII. SVG Page Roster++| File | Role | Description |+|------|------|-------------|+| `01_cover.svg` | cover | Title slide; brand/project name + presenter + date |+| `02_chapter.svg` | chapter | Chapter divider page (large number + chapter title) |+| `02_toc.svg` | toc | Table of contents listing major sections |+| `03_content.svg` | content | Main content page; body of the deck |+| `04_ending.svg` | ending | Closing/thank-you page |++## VIII. Layout Modes| Mode | Use Cases || --- | --- |@@ -146,7 +165,7 @@----## VIII. Spacing Specification+## IX. Spacing Specification| Element | Value || --- | --- |@@ -160,7 +179,7 @@----## IX. SVG Technical Constraints+## X. SVG Technical Constraints1. `viewBox` must remain `0 0 1280 720`2. Do not use `mask`, `<style>`, `class`, `foreignObject`, or `rgba()`. `clipPath` is allowed only on `<image>` under `shared-standards.md` §1.2@@ -171,7 +190,7 @@----## X. Placeholder Specification+## XI. Placeholder Specification| Placeholder | Purpose | Applicable Page || --- | --- | --- |@@ -194,7 +213,7 @@----## XI. Usage Guide+## XII. Usage Guide1. Reuse `logo.png` and `footer_ribbon.png` as fixed brand assets; `slogan_red.png` and `skyline_bg.png` should be used selectively and only on the cover / ending pages.2. Keep generated text inside the documented safe areas; only chapter pages use a strong left/right split.diff --git a/skills/ppt-master/templates/layouts/china_telecom_template/footer_ribbon.png "b/skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\344\277\241/footer_ribbon.png"similarity index 100%rename from skills/ppt-master/templates/layouts/china_telecom_template/footer_ribbon.pngrename to "skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\344\277\241/footer_ribbon.png"diff --git a/skills/ppt-master/templates/layouts/china_telecom_template/header_brand.png "b/skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\344\277\241/header_brand.png"similarity index 100%rename from skills/ppt-master/templates/layouts/china_telecom_template/header_brand.pngrename to "skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\344\277\241/header_brand.png"diff --git a/skills/ppt-master/templates/layouts/china_telecom_template/logo.png "b/skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\344\277\241/logo.png"similarity index 100%rename from skills/ppt-master/templates/layouts/china_telecom_template/logo.pngrename to "skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\344\277\241/logo.png"diff --git a/skills/ppt-master/templates/layouts/china_telecom_template/skyline_bg.png "b/skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\344\277\241/skyline_bg.png"similarity index 100%rename from skills/ppt-master/templates/layouts/china_telecom_template/skyline_bg.pngrename to "skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\344\277\241/skyline_bg.png"diff --git a/skills/ppt-master/templates/layouts/china_telecom_template/slogan_red.png "b/skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\344\277\241/slogan_red.png"similarity index 100%rename from skills/ppt-master/templates/layouts/china_telecom_template/slogan_red.pngrename to "skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\344\277\241/slogan_red.png"diff --git a/skills/ppt-master/templates/layouts/china_telecom_template/top_emblem.png "b/skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\344\277\241/top_emblem.png"similarity index 100%rename from skills/ppt-master/templates/layouts/china_telecom_template/top_emblem.pngrename to "skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\344\277\241/top_emblem.png"diff --git "a/skills/ppt-master/templates/layouts/\344\270\255\345\233\275\347\224\265\345\273\272_\345\270\270\350\247\204/01_cover.svg" "b/skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\345\273\272_\345\270\270\350\247\204/01_cover.svg"similarity index 100%rename from "skills/ppt-master/templates/layouts/\344\270\255\345\233\275\347\224\265\345\273\272_\345\270\270\350\247\204/01_cover.svg"rename to "skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\345\273\272_\345\270\270\350\247\204/01_cover.svg"diff --git "a/skills/ppt-master/templates/layouts/\344\270\255\345\233\275\347\224\265\345\273\272_\345\270\270\350\247\204/02_chapter.svg" "b/skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\345\273\272_\345\270\270\350\247\204/02_chapter.svg"similarity index 100%rename from "skills/ppt-master/templates/layouts/\344\270\255\345\233\275\347\224\265\345\273\272_\345\270\270\350\247\204/02_chapter.svg"rename to "skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\345\273\272_\345\270\270\350\247\204/02_chapter.svg"diff --git "a/skills/ppt-master/templates/layouts/\344\270\255\345\233\275\347\224\265\345\273\272_\345\270\270\350\247\204/02_toc.svg" "b/skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\345\273\272_\345\270\270\350\247\204/02_toc.svg"similarity index 100%rename from "skills/ppt-master/templates/layouts/\344\270\255\345\233\275\347\224\265\345\273\272_\345\270\270\350\247\204/02_toc.svg"rename to "skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\345\273\272_\345\270\270\350\247\204/02_toc.svg"diff --git "a/skills/ppt-master/templates/layouts/\344\270\255\345\233\275\347\224\265\345\273\272_\345\270\270\350\247\204/03_content.svg" "b/skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\345\273\272_\345\270\270\350\247\204/03_content.svg"similarity index 100%rename from "skills/ppt-master/templates/layouts/\344\270\255\345\233\275\347\224\265\345\273\272_\345\270\270\350\247\204/03_content.svg"rename to "skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\345\273\272_\345\270\270\350\247\204/03_content.svg"diff --git "a/skills/ppt-master/templates/layouts/\344\270\255\345\233\275\347\224\265\345\273\272_\345\270\270\350\247\204/04_ending.svg" "b/skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\345\273\272_\345\270\270\350\247\204/04_ending.svg"similarity index 100%rename from "skills/ppt-master/templates/layouts/\344\270\255\345\233\275\347\224\265\345\273\272_\345\270\270\350\247\204/04_ending.svg"rename to "skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\345\273\272_\345\270\270\350\247\204/04_ending.svg"diff --git "a/skills/ppt-master/templates/layouts/\344\270\255\345\233\275\347\224\265\345\273\272_\345\270\270\350\247\204/design_spec.md" "b/skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\345\273\272_\345\270\270\350\247\204/design_spec.md"similarity index 89%rename from "skills/ppt-master/templates/layouts/\344\270\255\345\233\275\347\224\265\345\273\272_\345\270\270\350\247\204/design_spec.md"rename to "skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\345\273\272_\345\270\270\350\247\204/design_spec.md"index efb17234..ecfaf1b5 100644--- "a/skills/ppt-master/templates/layouts/\344\270\255\345\233\275\347\224\265\345\273\272_\345\270\270\350\247\204/design_spec.md"+++ "b/skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\345\273\272_\345\270\270\350\247\204/design_spec.md"@@ -1,3 +1,12 @@+---+deck_id: 中国电建_常规+kind: deck+summary: Engineering project reports, technical proposal presentations, business negotiations, corporate promotion, annual summaries.+canvas_format: ppt169+page_count: 5+primary_color: "#00418D"+---+# POWERCHINA (中国电建) Standard Template - Design Specification> Suitable for PowerChina (China Power Construction Corporation) project reports, engineering showcases, business negotiations, corporate promotion, and similar scenarios.@@ -130,7 +139,17 @@----## VII. Layout Patterns (Recommended)+## VII. SVG Page Roster++| File | Role | Description |+|------|------|-------------|+| `01_cover.svg` | cover | Title slide; brand/project name + presenter + date |+| `02_chapter.svg` | chapter | Chapter divider page (large number + chapter title) |+| `02_toc.svg` | toc | Table of contents listing major sections |+| `03_content.svg` | content | Main content page; body of the deck |+| `04_ending.svg` | ending | Closing/thank-you page |++## VIII. Layout Patterns (Recommended)### 1. Split Column- Classic image-text mixed layout: left text / right image, or left image / right text.@@ -146,7 +165,7 @@----## VIII. Spacing Guidelines+## IX. Spacing Guidelines| Property | Value | Description || -------------- | ----- | ------------------------ |@@ -158,7 +177,7 @@----## IX. SVG Technical Constraints+## X. SVG Technical Constraints### Mandatory Rules@@ -181,7 +200,7 @@----## X. Placeholder Specification+## XI. Placeholder Specification| Placeholder | Description || -------------------- | ------------------ |@@ -202,7 +221,7 @@----## XI. Usage Notes (Recommended)+## XII. Usage Notes (Recommended)1. **Logo Adaptation**: Cover and ending pages use inverted (white) Logo; content page upper-right uses color or inverted Logo.2. **Image Assets**: Ensure the `images/` folder under the template directory contains necessary Logo files.diff --git "a/skills/ppt-master/templates/layouts/\344\270\255\345\233\275\347\224\265\345\273\272_\345\270\270\350\247\204/\344\270\255\345\233\275\346\260\264\345\212\241logo.png" "b/skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\345\273\272_\345\270\270\350\247\204/\344\270\255\345\233\275\346\260\264\345\212\241logo.png"similarity index 100%rename from "skills/ppt-master/templates/layouts/\344\270\255\345\233\275\347\224\265\345\273\272_\345\270\270\350\247\204/\344\270\255\345\233\275\346\260\264\345\212\241logo.png"rename to "skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\345\273\272_\345\270\270\350\247\204/\344\270\255\345\233\275\346\260\264\345\212\241logo.png"diff --git "a/skills/ppt-master/templates/layouts/\344\270\255\345\233\275\347\224\265\345\273\272_\345\270\270\350\247\204/\345\215\216\344\270\234\351\231\242logo.png" "b/skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\345\273\272_\345\270\270\350\247\204/\345\215\216\344\270\234\351\231\242logo.png"similarity index 100%rename from "skills/ppt-master/templates/layouts/\344\270\255\345\233\275\347\224\265\345\273\272_\345\270\270\350\247\204/\345\215\216\344\270\234\351\231\242logo.png"rename to "skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\345\273\272_\345\270\270\350\247\204/\345\215\216\344\270\234\351\231\242logo.png"diff --git "a/skills/ppt-master/templates/layouts/\344\270\255\345\233\275\347\224\265\345\273\272_\345\270\270\350\247\204/\346\260\264\347\224\265\344\270\211\345\261\200logo.png" "b/skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\345\273\272_\345\270\270\350\247\204/\346\260\264\347\224\265\344\270\211\345\261\200logo.png"similarity index 100%rename from "skills/ppt-master/templates/layouts/\344\270\255\345\233\275\347\224\265\345\273\272_\345\270\270\350\247\204/\346\260\264\347\224\265\344\270\211\345\261\200logo.png"rename to "skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\345\273\272_\345\270\270\350\247\204/\346\260\264\347\224\265\344\270\211\345\261\200logo.png"diff --git "a/skills/ppt-master/templates/layouts/\344\270\255\345\233\275\347\224\265\345\273\272_\345\270\270\350\247\204/\347\224\265\345\273\272logo.png" "b/skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\345\273\272_\345\270\270\350\247\204/\347\224\265\345\273\272logo.png"similarity index 100%rename from "skills/ppt-master/templates/layouts/\344\270\255\345\233\275\347\224\265\345\273\272_\345\270\270\350\247\204/\347\224\265\345\273\272logo.png"rename to "skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\345\273\272_\345\270\270\350\247\204/\347\224\265\345\273\272logo.png"diff --git "a/skills/ppt-master/templates/layouts/\344\270\255\345\233\275\347\224\265\345\273\272_\347\216\260\344\273\243/01_cover.svg" "b/skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\345\273\272_\347\216\260\344\273\243/01_cover.svg"similarity index 100%rename from "skills/ppt-master/templates/layouts/\344\270\255\345\233\275\347\224\265\345\273\272_\347\216\260\344\273\243/01_cover.svg"rename to "skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\345\273\272_\347\216\260\344\273\243/01_cover.svg"diff --git "a/skills/ppt-master/templates/layouts/\344\270\255\345\233\275\347\224\265\345\273\272_\347\216\260\344\273\243/02_chapter.svg" "b/skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\345\273\272_\347\216\260\344\273\243/02_chapter.svg"similarity index 100%rename from "skills/ppt-master/templates/layouts/\344\270\255\345\233\275\347\224\265\345\273\272_\347\216\260\344\273\243/02_chapter.svg"rename to "skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\345\273\272_\347\216\260\344\273\243/02_chapter.svg"diff --git "a/skills/ppt-master/templates/layouts/\344\270\255\345\233\275\347\224\265\345\273\272_\347\216\260\344\273\243/02_toc.svg" "b/skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\345\273\272_\347\216\260\344\273\243/02_toc.svg"similarity index 100%rename from "skills/ppt-master/templates/layouts/\344\270\255\345\233\275\347\224\265\345\273\272_\347\216\260\344\273\243/02_toc.svg"rename to "skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\345\273\272_\347\216\260\344\273\243/02_toc.svg"diff --git "a/skills/ppt-master/templates/layouts/\344\270\255\345\233\275\347\224\265\345\273\272_\347\216\260\344\273\243/03_content.svg" "b/skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\345\273\272_\347\216\260\344\273\243/03_content.svg"similarity index 100%rename from "skills/ppt-master/templates/layouts/\344\270\255\345\233\275\347\224\265\345\273\272_\347\216\260\344\273\243/03_content.svg"rename to "skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\345\273\272_\347\216\260\344\273\243/03_content.svg"diff --git "a/skills/ppt-master/templates/layouts/\344\270\255\345\233\275\347\224\265\345\273\272_\347\216\260\344\273\243/04_ending.svg" "b/skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\345\273\272_\347\216\260\344\273\243/04_ending.svg"similarity index 100%rename from "skills/ppt-master/templates/layouts/\344\270\255\345\233\275\347\224\265\345\273\272_\347\216\260\344\273\243/04_ending.svg"rename to "skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\345\273\272_\347\216\260\344\273\243/04_ending.svg"diff --git "a/skills/ppt-master/templates/layouts/\344\270\255\345\233\275\347\224\265\345\273\272_\347\216\260\344\273\243/design_spec.md" "b/skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\345\273\272_\347\216\260\344\273\243/design_spec.md"similarity index 89%rename from "skills/ppt-master/templates/layouts/\344\270\255\345\233\275\347\224\265\345\273\272_\347\216\260\344\273\243/design_spec.md"rename to "skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\345\273\272_\347\216\260\344\273\243/design_spec.md"index 00a9bc85..5811d995 100644--- "a/skills/ppt-master/templates/layouts/\344\270\255\345\233\275\347\224\265\345\273\272_\347\216\260\344\273\243/design_spec.md"+++ "b/skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\345\273\272_\347\216\260\344\273\243/design_spec.md"@@ -1,3 +1,12 @@+---+deck_id: 中国电建_现代+kind: deck+summary: Major engineering reports, international market promotion, technology achievement showcases, high-end business negotiations.+canvas_format: ppt169+page_count: 5+primary_color: "#00418D"+---+# POWERCHINA (中国电建) Modern Template v2 - Design Specification> Suitable for POWERCHINA major project reports, international business showcases, high-end summit roadshows, technology innovation releases, and similar scenarios.@@ -102,7 +111,17 @@----## VII. Layout Patterns (Recommended)+## VII. SVG Page Roster++| File | Role | Description |+|------|------|-------------|+| `01_cover.svg` | cover | Title slide; brand/project name + presenter + date |+| `02_chapter.svg` | chapter | Chapter divider page (large number + chapter title) |+| `02_toc.svg` | toc | Table of contents listing major sections |+| `03_content.svg` | content | Main content page; body of the deck |+| `04_ending.svg` | ending | Closing/thank-you page |++## VIII. Layout Patterns (Recommended)### 1. Tech Cards- Cards with subtle borders and a glowing effect.@@ -117,7 +136,7 @@----## VIII. Spacing Guidelines+## IX. Spacing Guidelines| Property | Value | Description || -------------- | ----- | ------------------------ |@@ -128,7 +147,7 @@----## IX. SVG Technical Constraints+## X. SVG Technical Constraints### Mandatory Rules@@ -150,7 +169,7 @@----## X. Placeholder Specification+## XI. Placeholder Specification| Placeholder | Description || ------------------ | --------------------- |@@ -170,7 +189,7 @@----## XI. Usage Notes (Recommended)+## XII. Usage Notes (Recommended)1. **Logo**: Recommend using white PNG Logo to suit dark backgrounds.2. **Background Images**: Cover background grid is embedded in SVG; no external images needed.diff --git "a/skills/ppt-master/templates/layouts/\344\270\255\345\233\275\347\224\265\345\273\272_\347\216\260\344\273\243/\344\270\255\345\233\275\346\260\264\345\212\241logo.png" "b/skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\345\273\272_\347\216\260\344\273\243/\344\270\255\345\233\275\346\260\264\345\212\241logo.png"similarity index 100%rename from "skills/ppt-master/templates/layouts/\344\270\255\345\233\275\347\224\265\345\273\272_\347\216\260\344\273\243/\344\270\255\345\233\275\346\260\264\345\212\241logo.png"rename to "skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\345\273\272_\347\216\260\344\273\243/\344\270\255\345\233\275\346\260\264\345\212\241logo.png"diff --git "a/skills/ppt-master/templates/layouts/\344\270\255\345\233\275\347\224\265\345\273\272_\347\216\260\344\273\243/\345\215\216\344\270\234\351\231\242logo.png" "b/skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\345\273\272_\347\216\260\344\273\243/\345\215\216\344\270\234\351\231\242logo.png"similarity index 100%rename from "skills/ppt-master/templates/layouts/\344\270\255\345\233\275\347\224\265\345\273\272_\347\216\260\344\273\243/\345\215\216\344\270\234\351\231\242logo.png"rename to "skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\345\273\272_\347\216\260\344\273\243/\345\215\216\344\270\234\351\231\242logo.png"diff --git "a/skills/ppt-master/templates/layouts/\344\270\255\345\233\275\347\224\265\345\273\272_\347\216\260\344\273\243/\346\260\264\347\224\265\344\270\211\345\261\200logo.png" "b/skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\345\273\272_\347\216\260\344\273\243/\346\260\264\347\224\265\344\270\211\345\261\200logo.png"similarity index 100%rename from "skills/ppt-master/templates/layouts/\344\270\255\345\233\275\347\224\265\345\273\272_\347\216\260\344\273\243/\346\260\264\347\224\265\344\270\211\345\261\200logo.png"rename to "skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\345\273\272_\347\216\260\344\273\243/\346\260\264\347\224\265\344\270\211\345\261\200logo.png"diff --git "a/skills/ppt-master/templates/layouts/\344\270\255\345\233\275\347\224\265\345\273\272_\347\216\260\344\273\243/\347\224\265\345\273\272logo.png" "b/skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\345\273\272_\347\216\260\344\273\243/\347\224\265\345\273\272logo.png"similarity index 100%rename from "skills/ppt-master/templates/layouts/\344\270\255\345\233\275\347\224\265\345\273\272_\347\216\260\344\273\243/\347\224\265\345\273\272logo.png"rename to "skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\345\273\272_\347\216\260\344\273\243/\347\224\265\345\273\272logo.png"diff --git "a/skills/ppt-master/templates/layouts/\344\270\255\346\261\275\347\240\224_\345\225\206\345\212\241/01_cover.svg" "b/skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224_\345\225\206\345\212\241/01_cover.svg"similarity index 100%rename from "skills/ppt-master/templates/layouts/\344\270\255\346\261\275\347\240\224_\345\225\206\345\212\241/01_cover.svg"rename to "skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224_\345\225\206\345\212\241/01_cover.svg"diff --git "a/skills/ppt-master/templates/layouts/\344\270\255\346\261\275\347\240\224_\345\225\206\345\212\241/02_chapter.svg" "b/skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224_\345\225\206\345\212\241/02_chapter.svg"similarity index 100%rename from "skills/ppt-master/templates/layouts/\344\270\255\346\261\275\347\240\224_\345\225\206\345\212\241/02_chapter.svg"rename to "skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224_\345\225\206\345\212\241/02_chapter.svg"diff --git "a/skills/ppt-master/templates/layouts/\344\270\255\346\261\275\347\240\224_\345\225\206\345\212\241/02_toc.svg" "b/skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224_\345\225\206\345\212\241/02_toc.svg"similarity index 100%rename from "skills/ppt-master/templates/layouts/\344\270\255\346\261\275\347\240\224_\345\225\206\345\212\241/02_toc.svg"rename to "skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224_\345\225\206\345\212\241/02_toc.svg"diff --git "a/skills/ppt-master/templates/layouts/\344\270\255\346\261\275\347\240\224_\345\225\206\345\212\241/03_content.svg" "b/skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224_\345\225\206\345\212\241/03_content.svg"similarity index 100%rename from "skills/ppt-master/templates/layouts/\344\270\255\346\261\275\347\240\224_\345\225\206\345\212\241/03_content.svg"rename to "skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224_\345\225\206\345\212\241/03_content.svg"diff --git "a/skills/ppt-master/templates/layouts/\344\270\255\346\261\275\347\240\224_\345\225\206\345\212\241/04_ending.svg" "b/skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224_\345\225\206\345\212\241/04_ending.svg"similarity index 100%rename from "skills/ppt-master/templates/layouts/\344\270\255\346\261\275\347\240\224_\345\225\206\345\212\241/04_ending.svg"rename to "skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224_\345\225\206\345\212\241/04_ending.svg"diff --git "a/skills/ppt-master/templates/layouts/\344\270\255\346\261\275\347\240\224_\345\225\206\345\212\241/design_spec.md" "b/skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224_\345\225\206\345\212\241/design_spec.md"similarity index 89%rename from "skills/ppt-master/templates/layouts/\344\270\255\346\261\275\347\240\224_\345\225\206\345\212\241/design_spec.md"rename to "skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224_\345\225\206\345\212\241/design_spec.md"index dc02efb6..047ac9f6 100644--- "a/skills/ppt-master/templates/layouts/\344\270\255\346\261\275\347\240\224_\345\225\206\345\212\241/design_spec.md"+++ "b/skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224_\345\225\206\345\212\241/design_spec.md"@@ -1,3 +1,12 @@+---+deck_id: 中汽研_商务+kind: deck+summary: Product certification display, evaluation presentations, technology promotion, high-end business reporting.+canvas_format: ppt169+page_count: 5+primary_color: "#003366"+---+# CATARC (中汽研) Business Template - Design Specification (v2.0 Enhanced)> Suitable for CATARC product certification, evaluation & certification, technology showcases, business visits, and similar scenarios.@@ -105,7 +114,17 @@----## VII. Layout Patterns (Recommended)+## VII. SVG Page Roster++| File | Role | Description |+|------|------|-------------|+| `01_cover.svg` | cover | Title slide; brand/project name + presenter + date |+| `02_chapter.svg` | chapter | Chapter divider page (large number + chapter title) |+| `02_toc.svg` | toc | Table of contents listing major sections |+| `03_content.svg` | content | Main content page; body of the deck |+| `04_ending.svg` | ending | Closing/thank-you page |++## VIII. Layout Patterns (Recommended)### 1. Card List- Wide cards arranged vertically, suitable for table of contents or key points.@@ -119,7 +138,7 @@----## VIII. Spacing Guidelines+## IX. Spacing Guidelines| Property | Value | Description || -------------- | ----- | ------------------------ |@@ -129,7 +148,7 @@----## IX. SVG Technical Constraints+## X. SVG Technical Constraints### Mandatory Rules@@ -140,7 +159,7 @@----## X. Placeholder Specification+## XI. Placeholder Specification| Placeholder | Description || ------------------ | --------------------- |@@ -159,7 +178,7 @@----## XI. Usage Notes (Recommended)+## XII. Usage Notes (Recommended)1. **Shadow Handling**: Keep shadows subtle and sparse. Use shared-standards §6 as the authority; vector-rectangle shadows are the compatibility fallback.2. **Gradients**: To modify gradient colors, adjust `stop-color` values in the `<defs>` section.diff --git "a/skills/ppt-master/templates/layouts/\344\270\255\346\261\275\347\240\224_\345\225\206\345\212\241/\345\217\263\344\270\212\350\247\222 logo.png" "b/skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224_\345\225\206\345\212\241/\345\217\263\344\270\212\350\247\222 logo.png"similarity index 100%rename from "skills/ppt-master/templates/layouts/\344\270\255\346\261\275\347\240\224_\345\225\206\345\212\241/\345\217\263\344\270\212\350\247\222 logo.png"rename to "skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224_\345\225\206\345\212\241/\345\217\263\344\270\212\350\247\222 logo.png"diff --git "a/skills/ppt-master/templates/layouts/\344\270\255\346\261\275\347\240\224_\345\225\206\345\212\241/\345\244\247\345\236\213 logo.png" "b/skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224_\345\225\206\345\212\241/\345\244\247\345\236\213 logo.png"similarity index 100%rename from "skills/ppt-master/templates/layouts/\344\270\255\346\261\275\347\240\224_\345\225\206\345\212\241/\345\244\247\345\236\213 logo.png"rename to "skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224_\345\225\206\345\212\241/\345\244\247\345\236\213 logo.png"diff --git "a/skills/ppt-master/templates/layouts/\344\270\255\346\261\275\347\240\224_\345\270\270\350\247\204/01_cover.svg" "b/skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224_\345\270\270\350\247\204/01_cover.svg"similarity index 100%rename from "skills/ppt-master/templates/layouts/\344\270\255\346\261\275\347\240\224_\345\270\270\350\247\204/01_cover.svg"rename to "skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224_\345\270\270\350\247\204/01_cover.svg"diff --git "a/skills/ppt-master/templates/layouts/\344\270\255\346\261\275\347\240\224_\345\270\270\350\247\204/02_chapter.svg" "b/skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224_\345\270\270\350\247\204/02_chapter.svg"similarity index 100%rename from "skills/ppt-master/templates/layouts/\344\270\255\346\261\275\347\240\224_\345\270\270\350\247\204/02_chapter.svg"rename to "skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224_\345\270\270\350\247\204/02_chapter.svg"diff --git "a/skills/ppt-master/templates/layouts/\344\270\255\346\261\275\347\240\224_\345\270\270\350\247\204/02_toc.svg" "b/skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224_\345\270\270\350\247\204/02_toc.svg"similarity index 100%rename from "skills/ppt-master/templates/layouts/\344\270\255\346\261\275\347\240\224_\345\270\270\350\247\204/02_toc.svg"rename to "skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224_\345\270\270\350\247\204/02_toc.svg"diff --git "a/skills/ppt-master/templates/layouts/\344\270\255\346\261\275\347\240\224_\345\270\270\350\247\204/03_content.svg" "b/skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224_\345\270\270\350\247\204/03_content.svg"similarity index 100%rename from "skills/ppt-master/templates/layouts/\344\270\255\346\261\275\347\240\224_\345\270\270\350\247\204/03_content.svg"rename to "skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224_\345\270\270\350\247\204/03_content.svg"diff --git "a/skills/ppt-master/templates/layouts/\344\270\255\346\261\275\347\240\224_\345\270\270\350\247\204/04_ending.svg" "b/skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224_\345\270\270\350\247\204/04_ending.svg"similarity index 100%rename from "skills/ppt-master/templates/layouts/\344\270\255\346\261\275\347\240\224_\345\270\270\350\247\204/04_ending.svg"rename to "skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224_\345\270\270\350\247\204/04_ending.svg"diff --git "a/skills/ppt-master/templates/layouts/\344\270\255\346\261\275\347\240\224_\345\270\270\350\247\204/design_spec.md" "b/skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224_\345\270\270\350\247\204/design_spec.md"similarity index 90%rename from "skills/ppt-master/templates/layouts/\344\270\255\346\261\275\347\240\224_\345\270\270\350\247\204/design_spec.md"rename to "skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224_\345\270\270\350\247\204/design_spec.md"index a380392c..eb2a03ca 100644--- "a/skills/ppt-master/templates/layouts/\344\270\255\346\261\275\347\240\224_\345\270\270\350\247\204/design_spec.md"+++ "b/skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224_\345\270\270\350\247\204/design_spec.md"@@ -1,3 +1,12 @@+---+deck_id: 中汽研_常规+kind: deck+summary: Product certification display, evaluation presentations, technology promotion, business visits.+canvas_format: ppt169+page_count: 5+primary_color: "#004098"+---+# CATARC (中汽研) Standard Template - Design Specification> Suitable for CATARC product certification, evaluation & certification, technology showcases, business visits, and similar scenarios.@@ -137,7 +146,17 @@----## VII. Layout Patterns (Recommended)+## VII. SVG Page Roster++| File | Role | Description |+|------|------|-------------|+| `01_cover.svg` | cover | Title slide; brand/project name + presenter + date |+| `02_chapter.svg` | chapter | Chapter divider page (large number + chapter title) |+| `02_toc.svg` | toc | Table of contents listing major sections |+| `03_content.svg` | content | Main content page; body of the deck |+| `04_ending.svg` | ending | Closing/thank-you page |++## VIII. Layout Patterns (Recommended)| Pattern | Use Cases || -------------------- | ------------------------------ |@@ -151,7 +170,7 @@----## VIII. Spacing Guidelines+## IX. Spacing Guidelines| Element | Value || -------------- | ------ |@@ -163,7 +182,7 @@----## IX. SVG Technical Constraints+## X. SVG Technical Constraints### Mandatory Rules@@ -183,7 +202,7 @@----## X. Placeholder Specification+## XI. Placeholder SpecificationTemplates use `{{PLACEHOLDER}}` format. Common placeholders:@@ -206,7 +225,7 @@ Templates use `{{PLACEHOLDER}}` format. Common placeholders:----## XI. Usage Notes (Recommended)+## XII. Usage Notes (Recommended)1. **Template Deployment**: Copy the template to your project directory.2. **Asset Replacement**: Replace `大型 logo.png` (592×238) and `右上角 logo.png` (113×50) in the `images` directory.diff --git "a/skills/ppt-master/templates/layouts/\344\270\255\346\261\275\347\240\224_\345\270\270\350\247\204/\345\217\263\344\270\212\350\247\222 logo.png" "b/skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224_\345\270\270\350\247\204/\345\217\263\344\270\212\350\247\222 logo.png"similarity index 100%rename from "skills/ppt-master/templates/layouts/\344\270\255\346\261\275\347\240\224_\345\270\270\350\247\204/\345\217\263\344\270\212\350\247\222 logo.png"rename to "skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224_\345\270\270\350\247\204/\345\217\263\344\270\212\350\247\222 logo.png"diff --git "a/skills/ppt-master/templates/layouts/\344\270\255\346\261\275\347\240\224_\345\270\270\350\247\204/\345\244\247\345\236\213 logo.png" "b/skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224_\345\270\270\350\247\204/\345\244\247\345\236\213 logo.png"similarity index 100%rename from "skills/ppt-master/templates/layouts/\344\270\255\346\261\275\347\240\224_\345\270\270\350\247\204/\345\244\247\345\236\213 logo.png"rename to "skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224_\345\270\270\350\247\204/\345\244\247\345\236\213 logo.png"diff --git "a/skills/ppt-master/templates/layouts/\344\270\255\346\261\275\347\240\224_\347\216\260\344\273\243/01_cover.svg" "b/skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224_\347\216\260\344\273\243/01_cover.svg"similarity index 100%rename from "skills/ppt-master/templates/layouts/\344\270\255\346\261\275\347\240\224_\347\216\260\344\273\243/01_cover.svg"rename to "skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224_\347\216\260\344\273\243/01_cover.svg"diff --git "a/skills/ppt-master/templates/layouts/\344\270\255\346\261\275\347\240\224_\347\216\260\344\273\243/02_chapter.svg" "b/skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224_\347\216\260\344\273\243/02_chapter.svg"similarity index 100%rename from "skills/ppt-master/templates/layouts/\344\270\255\346\261\275\347\240\224_\347\216\260\344\273\243/02_chapter.svg"rename to "skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224_\347\216\260\344\273\243/02_chapter.svg"diff --git "a/skills/ppt-master/templates/layouts/\344\270\255\346\261\275\347\240\224_\347\216\260\344\273\243/02_toc.svg" "b/skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224_\347\216\260\344\273\243/02_toc.svg"similarity index 100%rename from "skills/ppt-master/templates/layouts/\344\270\255\346\261\275\347\240\224_\347\216\260\344\273\243/02_toc.svg"rename to "skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224_\347\216\260\344\273\243/02_toc.svg"diff --git "a/skills/ppt-master/templates/layouts/\344\270\255\346\261\275\347\240\224_\347\216\260\344\273\243/03_content.svg" "b/skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224_\347\216\260\344\273\243/03_content.svg"similarity index 100%rename from "skills/ppt-master/templates/layouts/\344\270\255\346\261\275\347\240\224_\347\216\260\344\273\243/03_content.svg"rename to "skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224_\347\216\260\344\273\243/03_content.svg"diff --git "a/skills/ppt-master/templates/layouts/\344\270\255\346\261\275\347\240\224_\347\216\260\344\273\243/04_ending.svg" "b/skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224_\347\216\260\344\273\243/04_ending.svg"similarity index 100%rename from "skills/ppt-master/templates/layouts/\344\270\255\346\261\275\347\240\224_\347\216\260\344\273\243/04_ending.svg"rename to "skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224_\347\216\260\344\273\243/04_ending.svg"diff --git "a/skills/ppt-master/templates/layouts/\344\270\255\346\261\275\347\240\224_\347\216\260\344\273\243/design_spec.md" "b/skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224_\347\216\260\344\273\243/design_spec.md"similarity index 89%rename from "skills/ppt-master/templates/layouts/\344\270\255\346\261\275\347\240\224_\347\216\260\344\273\243/design_spec.md"rename to "skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224_\347\216\260\344\273\243/design_spec.md"index 46b1e43d..375d9e33 100644--- "a/skills/ppt-master/templates/layouts/\344\270\255\346\261\275\347\240\224_\347\216\260\344\273\243/design_spec.md"+++ "b/skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224_\347\216\260\344\273\243/design_spec.md"@@ -1,3 +1,12 @@+---+deck_id: 中汽研_现代+kind: deck+summary: Forward-looking technology showcases, strategic releases, high-end business reporting.+canvas_format: ppt169+page_count: 5+primary_color: "#001529"+---+# CATARC (中汽研) Modern Template - Design Specification (v3.0 Future Tech)> Suitable for CATARC high-end launches, forward-looking technology presentations, international exchanges, and similar scenarios.@@ -110,7 +119,17 @@----## VII. Layout Patterns (Recommended)+## VII. SVG Page Roster++| File | Role | Description |+|------|------|-------------|+| `01_cover.svg` | cover | Title slide; brand/project name + presenter + date |+| `02_chapter.svg` | chapter | Chapter divider page (large number + chapter title) |+| `02_toc.svg` | toc | Table of contents listing major sections |+| `03_content.svg` | content | Main content page; body of the deck |+| `04_ending.svg` | ending | Closing/thank-you page |++## VIII. Layout Patterns (Recommended)### 1. Floating Timeline- Uses right-side space for time or process display.@@ -124,7 +143,7 @@----## VIII. Spacing Guidelines+## IX. Spacing Guidelines| Property | Value | Description || -------------- | ----- | ------------------------ |@@ -134,7 +153,7 @@----## IX. SVG Technical Constraints+## X. SVG Technical Constraints### Mandatory Rules@@ -144,7 +163,7 @@----## X. Placeholder Specification+## XI. Placeholder Specification| Placeholder | Description || ------------------ | --------------------- |@@ -163,7 +182,7 @@----## XI. Usage Notes (Recommended)+## XII. Usage Notes (Recommended)1. **Light & Shadow Effects**: All light and shadow effects are achieved via SVG gradients, with no dependency on external images.2. **Fonts**: Use Arial for numbers by default. Roboto or DIN may be used only with an explicit font-install or font-embedding requirement.diff --git "a/skills/ppt-master/templates/layouts/\344\270\255\346\261\275\347\240\224_\347\216\260\344\273\243/\345\217\263\344\270\212\350\247\222 logo.png" "b/skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224_\347\216\260\344\273\243/\345\217\263\344\270\212\350\247\222 logo.png"similarity index 100%rename from "skills/ppt-master/templates/layouts/\344\270\255\346\261\275\347\240\224_\347\216\260\344\273\243/\345\217\263\344\270\212\350\247\222 logo.png"rename to "skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224_\347\216\260\344\273\243/\345\217\263\344\270\212\350\247\222 logo.png"diff --git "a/skills/ppt-master/templates/layouts/\344\270\255\346\261\275\347\240\224_\347\216\260\344\273\243/\345\244\247\345\236\213 logo.png" "b/skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224_\347\216\260\344\273\243/\345\244\247\345\236\213 logo.png"similarity index 100%rename from "skills/ppt-master/templates/layouts/\344\270\255\346\261\275\347\240\224_\347\216\260\344\273\243/\345\244\247\345\236\213 logo.png"rename to "skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224_\347\216\260\344\273\243/\345\244\247\345\236\213 logo.png"diff --git "a/skills/ppt-master/templates/layouts/\346\213\233\345\225\206\351\223\266\350\241\214/01_cover.svg" "b/skills/ppt-master/templates/decks/\346\213\233\345\225\206\351\223\266\350\241\214/01_cover.svg"similarity index 100%rename from "skills/ppt-master/templates/layouts/\346\213\233\345\225\206\351\223\266\350\241\214/01_cover.svg"rename to "skills/ppt-master/templates/decks/\346\213\233\345\225\206\351\223\266\350\241\214/01_cover.svg"diff --git "a/skills/ppt-master/templates/layouts/\346\213\233\345\225\206\351\223\266\350\241\214/02_chapter.svg" "b/skills/ppt-master/templates/decks/\346\213\233\345\225\206\351\223\266\350\241\214/02_chapter.svg"similarity index 100%rename from "skills/ppt-master/templates/layouts/\346\213\233\345\225\206\351\223\266\350\241\214/02_chapter.svg"rename to "skills/ppt-master/templates/decks/\346\213\233\345\225\206\351\223\266\350\241\214/02_chapter.svg"diff --git "a/skills/ppt-master/templates/layouts/\346\213\233\345\225\206\351\223\266\350\241\214/02_toc.svg" "b/skills/ppt-master/templates/decks/\346\213\233\345\225\206\351\223\266\350\241\214/02_toc.svg"similarity index 100%rename from "skills/ppt-master/templates/layouts/\346\213\233\345\225\206\351\223\266\350\241\214/02_toc.svg"rename to "skills/ppt-master/templates/decks/\346\213\233\345\225\206\351\223\266\350\241\214/02_toc.svg"diff --git "a/skills/ppt-master/templates/layouts/\346\213\233\345\225\206\351\223\266\350\241\214/03_content.svg" "b/skills/ppt-master/templates/decks/\346\213\233\345\225\206\351\223\266\350\241\214/03_content.svg"similarity index 100%rename from "skills/ppt-master/templates/layouts/\346\213\233\345\225\206\351\223\266\350\241\214/03_content.svg"rename to "skills/ppt-master/templates/decks/\346\213\233\345\225\206\351\223\266\350\241\214/03_content.svg"diff --git "a/skills/ppt-master/templates/layouts/\346\213\233\345\225\206\351\223\266\350\241\214/04_ending.svg" "b/skills/ppt-master/templates/decks/\346\213\233\345\225\206\351\223\266\350\241\214/04_ending.svg"similarity index 100%rename from "skills/ppt-master/templates/layouts/\346\213\233\345\225\206\351\223\266\350\241\214/04_ending.svg"rename to "skills/ppt-master/templates/decks/\346\213\233\345\225\206\351\223\266\350\241\214/04_ending.svg"diff --git "a/skills/ppt-master/templates/layouts/\346\213\233\345\225\206\351\223\266\350\241\214/cover_bg.png" "b/skills/ppt-master/templates/decks/\346\213\233\345\225\206\351\223\266\350\241\214/cover_bg.png"similarity index 100%rename from "skills/ppt-master/templates/layouts/\346\213\233\345\225\206\351\223\266\350\241\214/cover_bg.png"rename to "skills/ppt-master/templates/decks/\346\213\233\345\225\206\351\223\266\350\241\214/cover_bg.png"diff --git "a/skills/ppt-master/templates/layouts/\346\213\233\345\225\206\351\223\266\350\241\214/design_spec.md" "b/skills/ppt-master/templates/decks/\346\213\233\345\225\206\351\223\266\350\241\214/design_spec.md"similarity index 90%rename from "skills/ppt-master/templates/layouts/\346\213\233\345\225\206\351\223\266\350\241\214/design_spec.md"rename to "skills/ppt-master/templates/decks/\346\213\233\345\225\206\351\223\266\350\241\214/design_spec.md"index 6f2e313b..3c082212 100644--- "a/skills/ppt-master/templates/layouts/\346\213\233\345\225\206\351\223\266\350\241\214/design_spec.md"+++ "b/skills/ppt-master/templates/decks/\346\213\233\345\225\206\351\223\266\350\241\214/design_spec.md"@@ -1,3 +1,12 @@+---+deck_id: 招商银行+kind: deck+summary: 交易银行产品介绍、销售收款方案汇报、客户案例拆解、分行培训材料.+canvas_format: ppt169+page_count: 5+primary_color: "#C8152D"+---+# China Merchants Bank Transaction Banking - Design Specification## I. Template Overview@@ -101,7 +110,17 @@ Reference slides read before generation: `1, 2, 3, 4, 6, 9, 11, 13, 16, 18`.- Centered closing message and compact contact card- Suitable for formal client-facing endings-## VII. Layout Modes+## VII. SVG Page Roster++| File | Role | Description |+|------|------|-------------|+| `01_cover.svg` | cover | Title slide; brand/project name + presenter + date |+| `02_chapter.svg` | chapter | Chapter divider page (large number + chapter title) |+| `02_toc.svg` | toc | Table of contents listing major sections |+| `03_content.svg` | content | Main content page; body of the deck |+| `04_ending.svg` | ending | Closing/thank-you page |++## VIII. Layout Modes| Mode | Recommendation || --- | --- |@@ -110,7 +129,7 @@ Reference slides read before generation: `1, 2, 3, 4, 6, 9, 11, 13, 16, 18`.| **Product Feature** | Use a short key message on top and modular cards below || **Agenda / Sectioning** | Use TOC or chapter page instead of improvising layout headers |-## VIII. Spacing Specification+## IX. Spacing Specification| Property | Value || --- | --- |@@ -120,7 +139,7 @@ Reference slides read before generation: `1, 2, 3, 4, 6, 9, 11, 13, 16, 18`.| **Title to Body** | 44px || **Footer Offset** | 32px from bottom |-## IX. SVG Technical Constraints+## X. SVG Technical Constraints1. `viewBox` must stay `0 0 1280 720`2. No `mask`, `<style>`, `class`, `foreignObject`, `textPath`, or animation tags. `clipPath` is allowed only on `<image>` under `shared-standards.md` §1.2@@ -128,7 +147,7 @@ Reference slides read before generation: `1, 2, 3, 4, 6, 9, 11, 13, 16, 18`.4. Keep image assets semantic and minimal5. Prefer vector reconstruction over embedding PPT-export fragments-## X. Placeholder Specification+## XI. Placeholder Specification| Placeholder | Description || --- | --- |@@ -164,7 +183,7 @@ Reference slides read before generation: `1, 2, 3, 4, 6, 9, 11, 13, 16, 18`.| `{{CONTACT_EMAIL}}` | Ending email address || `{{CONTACT_PHONE}}` | Ending phone number |-## XI. Asset Specification+## XII. Asset Specification### Core Assets@@ -186,7 +205,7 @@ Reference slides read before generation: `1, 2, 3, 4, 6, 9, 11, 13, 16, 18`.Core assets are wired into SVG templates. `logo_dark.png` is used on light pages (TOC, content); `logo_white.png` and `cover_bg.png` on dark pages (cover, chapter, ending). Optional assets are available for project-specific customization.-## XII. Chart Specifications+## XIII. Chart Specifications### Recommended Chart Dimensions@@ -208,7 +227,7 @@ Core assets are wired into SVG templates. `logo_dark.png` is used on light pages| Negative indicator | `#E74C3C` || Neutral | `#666666` |-## XIII. Usage Instructions+## XIV. Usage Instructions1. Copy the template directory to the project `templates/` folder2. Read this design specification to understand the visual systemdiff --git "a/skills/ppt-master/templates/layouts/\346\213\233\345\225\206\351\223\266\350\241\214/logo_crm_banner.png" "b/skills/ppt-master/templates/decks/\346\213\233\345\225\206\351\223\266\350\241\214/logo_crm_banner.png"similarity index 100%rename from "skills/ppt-master/templates/layouts/\346\213\233\345\225\206\351\223\266\350\241\214/logo_crm_banner.png"rename to "skills/ppt-master/templates/decks/\346\213\233\345\225\206\351\223\266\350\241\214/logo_crm_banner.png"diff --git "a/skills/ppt-master/templates/layouts/\346\213\233\345\225\206\351\223\266\350\241\214/logo_dark.png" "b/skills/ppt-master/templates/decks/\346\213\233\345\225\206\351\223\266\350\241\214/logo_dark.png"similarity index 100%rename from "skills/ppt-master/templates/layouts/\346\213\233\345\225\206\351\223\266\350\241\214/logo_dark.png"rename to "skills/ppt-master/templates/decks/\346\213\233\345\225\206\351\223\266\350\241\214/logo_dark.png"diff --git "a/skills/ppt-master/templates/layouts/\346\213\233\345\225\206\351\223\266\350\241\214/logo_white.png" "b/skills/ppt-master/templates/decks/\346\213\233\345\225\206\351\223\266\350\241\214/logo_white.png"similarity index 100%rename from "skills/ppt-master/templates/layouts/\346\213\233\345\225\206\351\223\266\350\241\214/logo_white.png"rename to "skills/ppt-master/templates/decks/\346\213\233\345\225\206\351\223\266\350\241\214/logo_white.png"diff --git "a/skills/ppt-master/templates/layouts/\346\213\233\345\225\206\351\223\266\350\241\214/page_header_bg.png" "b/skills/ppt-master/templates/decks/\346\213\233\345\225\206\351\223\266\350\241\214/page_header_bg.png"similarity index 100%rename from "skills/ppt-master/templates/layouts/\346\213\233\345\225\206\351\223\266\350\241\214/page_header_bg.png"rename to "skills/ppt-master/templates/decks/\346\213\233\345\225\206\351\223\266\350\241\214/page_header_bg.png"diff --git "a/skills/ppt-master/templates/layouts/\346\213\233\345\225\206\351\223\266\350\241\214/ref_content_bg.png" "b/skills/ppt-master/templates/decks/\346\213\233\345\225\206\351\223\266\350\241\214/ref_content_bg.png"similarity index 100%rename from "skills/ppt-master/templates/layouts/\346\213\233\345\225\206\351\223\266\350\241\214/ref_content_bg.png"rename to "skills/ppt-master/templates/decks/\346\213\233\345\225\206\351\223\266\350\241\214/ref_content_bg.png"diff --git "a/skills/ppt-master/templates/layouts/\351\207\215\345\272\206\345\244\247\345\255\246/01_cover.svg" "b/skills/ppt-master/templates/decks/\351\207\215\345\272\206\345\244\247\345\255\246/01_cover.svg"similarity index 100%rename from "skills/ppt-master/templates/layouts/\351\207\215\345\272\206\345\244\247\345\255\246/01_cover.svg"rename to "skills/ppt-master/templates/decks/\351\207\215\345\272\206\345\244\247\345\255\246/01_cover.svg"diff --git "a/skills/ppt-master/templates/layouts/\351\207\215\345\272\206\345\244\247\345\255\246/02_chapter.svg" "b/skills/ppt-master/templates/decks/\351\207\215\345\272\206\345\244\247\345\255\246/02_chapter.svg"similarity index 100%rename from "skills/ppt-master/templates/layouts/\351\207\215\345\272\206\345\244\247\345\255\246/02_chapter.svg"rename to "skills/ppt-master/templates/decks/\351\207\215\345\272\206\345\244\247\345\255\246/02_chapter.svg"diff --git "a/skills/ppt-master/templates/layouts/\351\207\215\345\272\206\345\244\247\345\255\246/02_toc.svg" "b/skills/ppt-master/templates/decks/\351\207\215\345\272\206\345\244\247\345\255\246/02_toc.svg"similarity index 100%rename from "skills/ppt-master/templates/layouts/\351\207\215\345\272\206\345\244\247\345\255\246/02_toc.svg"rename to "skills/ppt-master/templates/decks/\351\207\215\345\272\206\345\244\247\345\255\246/02_toc.svg"diff --git "a/skills/ppt-master/templates/layouts/\351\207\215\345\272\206\345\244\247\345\255\246/03_content.svg" "b/skills/ppt-master/templates/decks/\351\207\215\345\272\206\345\244\247\345\255\246/03_content.svg"similarity index 100%rename from "skills/ppt-master/templates/layouts/\351\207\215\345\272\206\345\244\247\345\255\246/03_content.svg"rename to "skills/ppt-master/templates/decks/\351\207\215\345\272\206\345\244\247\345\255\246/03_content.svg"diff --git "a/skills/ppt-master/templates/layouts/\351\207\215\345\272\206\345\244\247\345\255\246/04_ending.svg" "b/skills/ppt-master/templates/decks/\351\207\215\345\272\206\345\244\247\345\255\246/04_ending.svg"similarity index 100%rename from "skills/ppt-master/templates/layouts/\351\207\215\345\272\206\345\244\247\345\255\246/04_ending.svg"rename to "skills/ppt-master/templates/decks/\351\207\215\345\272\206\345\244\247\345\255\246/04_ending.svg"diff --git "a/skills/ppt-master/templates/layouts/\351\207\215\345\272\206\345\244\247\345\255\246/design_spec.md" "b/skills/ppt-master/templates/decks/\351\207\215\345\272\206\345\244\247\345\255\246/design_spec.md"similarity index 91%rename from "skills/ppt-master/templates/layouts/\351\207\215\345\272\206\345\244\247\345\255\246/design_spec.md"rename to "skills/ppt-master/templates/decks/\351\207\215\345\272\206\345\244\247\345\255\246/design_spec.md"index 5593e1be..13e7cec5 100644--- "a/skills/ppt-master/templates/layouts/\351\207\215\345\272\206\345\244\247\345\255\246/design_spec.md"+++ "b/skills/ppt-master/templates/decks/\351\207\215\345\272\206\345\244\247\345\255\246/design_spec.md"@@ -1,3 +1,12 @@+---+deck_id: 重庆大学+kind: deck+summary: Academic defense, research reports, teaching presentations, scholarly exchange.+canvas_format: ppt169+page_count: 5+primary_color: "#006BB7"+---+# Chongqing University (重庆大学) Template - Design Specification> A distinctive design blending the layered imagery of the Mountain City with modern academic elegance.@@ -164,7 +173,17 @@ Small circle elements representing the nighttime lights of the Mountain City:----## VII. Logo Usage Guidelines+## VII. SVG Page Roster++| File | Role | Description |+|------|------|-------------|+| `01_cover.svg` | cover | Title slide; brand/project name + presenter + date |+| `02_chapter.svg` | chapter | Chapter divider page (large number + chapter title) |+| `02_toc.svg` | toc | Table of contents listing major sections |+| `03_content.svg` | content | Main content page; body of the deck |+| `04_ending.svg` | ending | Closing/thank-you page |++## VIII. Logo Usage Guidelines| File | Applicable Context | Notes ||------|-------------------|-------|@@ -178,7 +197,7 @@ Small circle elements representing the nighttime lights of the Mountain City:----## VIII. Spacing Specification+## IX. Spacing Specification| Element | Value || -------------------- | ---------- |@@ -190,7 +209,7 @@ Small circle elements representing the nighttime lights of the Mountain City:----## IX. SVG Technical Constraints+## X. SVG Technical Constraints### Mandatory Rules@@ -209,7 +228,7 @@ Small circle elements representing the nighttime lights of the Mountain City:----## X. Placeholder Specification+## XI. Placeholder Specification| Placeholder | Description || -------------------- | ---------------------- |diff --git "a/skills/ppt-master/templates/layouts/\351\207\215\345\272\206\345\244\247\345\255\246/\351\207\215\345\272\206\345\244\247\345\255\246logo.png" "b/skills/ppt-master/templates/decks/\351\207\215\345\272\206\345\244\247\345\255\246/\351\207\215\345\272\206\345\244\247\345\255\246logo.png"similarity index 100%rename from "skills/ppt-master/templates/layouts/\351\207\215\345\272\206\345\244\247\345\255\246/\351\207\215\345\272\206\345\244\247\345\255\246logo.png"rename to "skills/ppt-master/templates/decks/\351\207\215\345\272\206\345\244\247\345\255\246/\351\207\215\345\272\206\345\244\247\345\255\246logo.png"diff --git "a/skills/ppt-master/templates/layouts/\351\207\215\345\272\206\345\244\247\345\255\246/\351\207\215\345\272\206\345\244\247\345\255\246logo2.png" "b/skills/ppt-master/templates/decks/\351\207\215\345\272\206\345\244\247\345\255\246/\351\207\215\345\272\206\345\244\247\345\255\246logo2.png"similarity index 100%rename from "skills/ppt-master/templates/layouts/\351\207\215\345\272\206\345\244\247\345\255\246/\351\207\215\345\272\206\345\244\247\345\255\246logo2.png"rename to "skills/ppt-master/templates/decks/\351\207\215\345\272\206\345\244\247\345\255\246/\351\207\215\345\272\206\345\244\247\345\255\246logo2.png"diff --git a/skills/ppt-master/templates/layouts/README.md b/skills/ppt-master/templates/layouts/README.mdindex 22eef4d0..008c972c 100644--- a/skills/ppt-master/templates/layouts/README.md+++ b/skills/ppt-master/templates/layouts/README.md@@ -1,235 +1,80 @@-# Page Layout Template Library (15 Templates)+# Layout Templates-Pre-built PPT page layout templates supporting multiple styles and use cases.+**Layout = structure-only template.** Captures canvas, page structure, page types, and SVG roster — but **no identity segment** (color / typography / logo / voice / icon style). Layered identity comes from `templates/brands/` or is decided per-deck in Strategist's Eight Confirmations. For full-identity replicas of specific PPTs, see [`templates/decks/`](../decks/) instead.-- **Full Index**: [README.md](./README.md) (human browsing — includes categories, primary colors, detailed tone)-- **Slim Index**: [layouts_index.json](./layouts_index.json) (lightweight lookup — `summary` / `keywords` per template id)+Single source of truth for what layouts exist: [`layouts_index.json`](./layouts_index.json) (`layout_id → { summary, canvas_format, page_count, page_types }`). This README explains the kind; it does **not** enumerate layouts.-> **Template selection is opt-in by explicit path.** The main workflow defaults to free design. A template is only used when the user gives an explicit directory path (e.g. `skills/ppt-master/templates/layouts/academic_defense/` or any other path) in their initial message. Bare names like "academic_defense" do not trigger — `layouts_index.json` and this README are discovery aids for finding the path, not triggers in themselves. See `SKILL.md` Step 3.+Full data model: [`docs/zh/templates-architecture.md`](../../../../docs/zh/templates-architecture.md).----## Quick Template Index--<!-- quick-index:begin -->-| Template Name | Category | Use Cases | Primary Color | Design Tone |-|---------------|----------|-----------|---------------|-------------|-| `academic_defense` | General | Thesis defense, academic presentations, research progress reports, grant applications | `#003366` | Professional, rigorous, research-oriented, clear hierarchy |-| `ai_ops` | General | Telecom AI operations architecture, IT system overviews, digital transformation proposals, smart infrastructure reports | `#C00000` | Information-dense, structured, modular zoning, telecom/enterprise style |-| `china_telecom_template` | General | China Telecom related briefings, 政企数字化方案, 转型规划, 内部汇报 | `#C00000` | Authoritative, structured, restrained, enterprise-government hybrid |-| `government_blue` | General | Key project briefings, Five-Year Plan presentations, work summaries, investment promotion, policy interpretation | `#0050B3` | Grand, tech-forward, modern, professional government style |-| `government_red` | General | Government briefings, policy interpretation, work summaries, project introductions, investment promotion | `#8B0000` | Authoritative, dignified, professional, modern government style |-| `medical_university` | General | Medical academic reports, case discussions, research presentations, hospital work reports, medical education and training | `#0066B3` | Professional, rigorous, life-affirming, tech-forward, trustworthy |-| `pixel_retro` | General | Tech talks, programming tutorials, game introductions, geek-style showcases | `#0D1117` | Retro gaming, neon cyberpunk, geek tech, 8-bit style |-| `psychology_attachment` | General | Psychotherapy training, academic lectures, counseling case analysis, professional sharing | `#2E5C8E` | Professional, warm, healing, trustworthy |-| `中国电建_常规` | General | Engineering project reports, technical proposal presentations, business negotiations, corporate promotion, annual summaries | `#00418D` | Professional, composed, international, state-owned enterprise style |-| `中国电建_现代` | General | Major engineering reports, international market promotion, technology achievement showcases, high-end business negotiations | `#00418D` | Grand narrative, modern precision, digital tech, international vision |-| `中汽研_商务` | General | Product certification display, evaluation presentations, technology promotion, high-end business reporting | `#003366` | Modern tech, authoritative & professional, composed & grand |-| `中汽研_常规` | General | Product certification display, evaluation presentations, technology promotion, business visits | `#004098` | Professional, authoritative, trustworthy, consulting style |-| `中汽研_现代` | General | Forward-looking technology showcases, strategic releases, high-end business reporting | `#001529` | Futuristic, tech-forward, deep & refined |-| `招商银行` | General | 交易银行产品介绍、销售收款方案汇报、客户案例拆解、分行培训材料 | `#C8152D` | Brand-consistent, structured, product-focused, refined finance |-| `重庆大学` | General | Academic defense, research reports, teaching presentations, scholarly exchange | `#006BB7` | Academically grounded · Mountain City charm · Modern minimalism |-<!-- quick-index:end -->--## Template Categories--### 1. Brand Style Templates--Templates mimicking **specific well-known brands/institutions** with their exclusive design style.-> **Characteristics**: Distinctive brand identity (specific logos, color schemes, VI standards), suitable for internal or external presentations of that organization. Examples: China Merchants Bank, PowerChina, CATARC.->-> **Brand-only presets** (color + typography + logo + voice, no fixed page roster) live in [`templates/brands/`](../brands/) — they let AI design pages freely under brand constraints. Use a brand preset when you want the identity without locked layouts; use a layout template here when you want both identity and a pre-designed page roster.--| Template | Description |-|----------|-------------|-| `china_telecom_template` | China Telecom brand style, red-gray structural header + ribbon footer |-| `中汽研_常规` | CATARC standard style (v1), suitable for certification and evaluation |-| `中汽研_商务` | CATARC business style (v2), modern tech business, composed and sophisticated |-| `中汽研_现代` | CATARC modern style (v3 Future), Future Tech style, deep blue + neon cyan |-| `中国电建_常规` | PowerChina standard style (v1), suitable for power, energy, and engineering SOEs |-| `中国电建_现代` | PowerChina modern style (v2), emphasis on grand narrative and digital tech |-| `招商银行` | China Merchants Bank v2.0, minimalist luxury, borderless open layout |--### 2. Scenario-Specific Templates--Designed for **specific use cases**, with content structures tailored to scenario requirements.--| Template | Description |-|----------|-------------|-| `academic_defense` | Academic defense, clear research content hierarchy |-| `psychology_attachment` | Psychotherapy theme, warm and professional color palette |-| `medical_university` | Hospital / medical university template, suitable for medical reports |-| `重庆大学` | Chongqing University template, blending mountain-city layered imagery with modern academic style |--### 3. Government & Enterprise Templates--Industry-standard designs for **government agencies and general state-owned enterprises**.-> **Distinction**: Unlike brand styles, these are not targeted at specific organizations but provide templates matching the common aesthetic preferences of government/SOE contexts (e.g., official document red, smart governance blue).--| Template | Description |-|----------|-------------|-| `government_red` | Red government style, suitable for government work reports, party-building events |-| `government_blue` | Blue government style, suitable for smart cities, digital governance reports |-| `ai_ops` | Enterprise digital intelligence style, telecom AI ops architecture, high-density reports (includes `reference_style.svg` style reference) |--### 4. Special Style Templates--Unconventional visual styles for specific creative scenarios.--| Template | Description |-|----------|-------------|-| `pixel_retro` | Pixel retro style, cyberpunk / gaming themes |--> **Design philosophy**: Style and scenario are **orthogonal** concepts. Scenario templates define content structure; style templates define visual presentation. In theory, scenario templates can be combined with different styles.+## Trigger rule------## Template File Structure--Each template should contain the following standard files (TOC page is optional):--| Filename | Required | Purpose | Description |-|----------|----------|---------|-------------|-| `design_spec.md` | Yes | Design specification | Complete color, typography, and layout specs |-| `01_cover.svg` | Yes | Cover page | Title, subtitle, date, organization |-| `02_toc.svg` | Optional | Table of contents | Chapter list, navigation |-| `02_chapter.svg` | Yes | Chapter page | Chapter number, chapter title |-| `03_content.svg` | Yes | Content page | Fixed header/footer, flexible content area |-| `04_ending.svg` | Yes | Ending page | Thank-you message, contact info |+Layout selection is **opt-in by explicit path**. The main workflow defaults to free design. A layout is only used when the user gives an explicit directory path in their initial message (e.g. `skills/ppt-master/templates/layouts/academic_defense/`). Bare names do not trigger. See [`SKILL.md`](../../SKILL.md) Step 3.-> **Design philosophy**: Templates define visual consistency and structural pages; content pages maintain maximum flexibility, letting AI determine layout based on actual content.+`layouts_index.json` is a **discovery aid**, not a trigger — it lets the AI answer "what layouts exist?" by listing ids and paths. Listing alone never advances the pipeline.----## design_spec.md Standard Structure+## design_spec.md schema-All template design specification documents should follow this chapter structure:+Layouts write **structure-only segments**. Identity sections (Color Scheme / Typography / Logo / Voice / Icon Style) are forbidden — those belong to brands and decks. Minimum schema:```markdown-# [Template Name] - Design Specification--> One-line description of applicable scenarios--## I. Template Overview-## II. Canvas Specification-## III. Color Scheme-## IV. Typography System-## V. Page Structure-## VI. Page Types-## VII. Layout Modes (Recommended)-## VIII. Spacing Specification-## IX. SVG Technical Constraints-## X. Placeholder Specification-## XI. Usage Guide (Recommended)-```-+---+layout_id: <slug>+kind: layout+summary: <one-line use cases>+canvas_format: ppt169+page_count: 5+page_types: [cover, toc, chapter, content, ending]----## Placeholder Specification--Templates use `{{PLACEHOLDER}}` format to mark replaceable content:--> For **newly created library templates**, use the canonical placeholder contract below. Some existing templates still contain legacy placeholder variants; those should be treated as historical exceptions rather than the standard for new assets.--### General Placeholders--| Placeholder | Purpose | Applicable Pages |-|-------------|---------|-----------------|-| `{{TITLE}}` | Main title | Cover |-| `{{SUBTITLE}}` | Subtitle | Cover |-| `{{DATE}}` | Date | Cover, Ending |-| `{{AUTHOR}}` | Author / Organization (Chinese) | Cover |-| `{{AUTHOR_EN}}` | Author / Organization (English) | Cover |--### Chapter-Related--| Placeholder | Purpose | Applicable Pages |-|-------------|---------|-----------------|-| `{{CHAPTER_NUM}}` | Chapter number | Chapter, Content |-| `{{CHAPTER_TITLE}}` | Chapter title | Chapter |-| `{{CHAPTER_TITLE_EN}}` | Chapter English subtitle | Chapter |--### Content Page--| Placeholder | Purpose | Applicable Pages |-|-------------|---------|-----------------|-| `{{PAGE_TITLE}}` | Page title | Content |-| `{{CONTENT_AREA}}` | Content area placeholder | Content |-| `{{PAGE_NUM}}` | Page number | Content, Ending |-| `{{SOURCE}}` | Data source | Content footer |--### Table of Contents--| Placeholder | Purpose |-|-------------|---------|-| `{{TOC_ITEM_1_TITLE}}` ~ `{{TOC_ITEM_N_TITLE}}` | TOC item titles |-| `{{TOC_ITEM_1_DESC}}` ~ `{{TOC_ITEM_N_DESC}}` | Optional TOC item descriptions |-| `{{TOC_ITEM_1}}` ~ `{{TOC_ITEM_N}}` | Legacy simple TOC items; do not use for new templates unless no description field is needed |+# [Template Name] - Design Specification-### Ending Page+## I. Template Overview # Use cases / Design intent+## II. Canvas Specification # Format / Dimensions / viewBox / Margins+## III. Page Structure # Layout grid / Decorative DNA / Navigation+## IV. Page Types # Per-page role descriptions+## V. SVG Page Roster # File list + per-file purpose+```-| Placeholder | Purpose |-|-------------|---------|-| `{{THANK_YOU}}` | Thank-you message |-| `{{ENDING_SUBTITLE}}` | Ending page subtitle |-| `{{CLOSING_MESSAGE}}` | Closing message |-| `{{CONTACT_INFO}}` | Contact information |+Layouts may include additional supporting sections (Layout Patterns, Spacing Guidelines, SVG Technical Constraints, Placeholder Specification, Usage Notes). Do **not** include Color Scheme or Typography sections — those are identity-segment fields owned by `templates/brands/` and `templates/decks/`.----## Usage+## Standard file set per layout directory-To use a template, give the AI an explicit directory path in your initial message — e.g. "用 `skills/ppt-master/templates/layouts/academic_defense/` 这个模板做……". The Step 3 logic copies that directory's SVGs + `design_spec.md` + assets into your project before Strategist starts.+| Filename | Required | Purpose |+|----------|----------|---------|+| `design_spec.md` | Yes | Layout schema spec (frontmatter + structure sections) |+| `01_cover.svg` | Yes | Cover page |+| `02_toc.svg` | Optional | Table of contents |+| `02_chapter.svg` | Yes | Chapter page |+| `03_content.svg` | Yes | Content page |+| `04_ending.svg` | Yes | Ending page |-The directory does not have to live under `templates/layouts/`. A template kept in `projects/<other_project>/template/` or any other location works the same way as long as you give the path.--After the copy:--1. Read `design_spec.md` to understand the design specification-2. Adjust colors based on project requirements (if needed)-3. Place logo files in the `images/` directory-4. Use the Executor role to generate SVG pages based on templates+All SVGs use `viewBox="0 0 1280 720"` for ppt169.----## Template Development Guide--### Creating New Templates+## Placeholder convention-1. Create a new directory under `templates/layouts/`-2. Create required files following the existing template structure-3. Ensure `design_spec.md` follows the standard chapter structure-4. All SVGs use `viewBox="0 0 1280 720"`-5. Follow SVG technical constraints (see below)-6. Validate the template directory with `python3 scripts/svg_quality_checker.py templates/layouts/<template_name> --format ppt169`-7. Register the new template by running `python3 scripts/register_template.py <template_id>` — it derives the `summary` and `keywords` index entry from `design_spec.md` and refreshes the Quick Index above+Templates use `{{PLACEHOLDER}}` to mark replaceable content. New layouts should use the canonical placeholder set documented in [`references/template-designer.md`](../../references/template-designer.md#4-placeholder-reference-canonical-convention-overridable-per-template). Templates with intentionally different vocabulary declare a `placeholders:` block in `design_spec.md` frontmatter to silence advisory warnings.-`layouts_index.json` is the lightweight lookup used to **discover** library templates (e.g. answering "what templates exist?"). It is not consulted when triggering Step 3 — Step 3 triggers on an explicit directory path the user supplied, regardless of whether that path is in the index. A template folder without an index entry still works fine if the user names its path; it just won't show up in discovery listings.+----### SVG Technical Constraints (All Templates Must Comply)+## Creating a new layout-#### Required+1. Run [`workflows/create-template.md`](../../workflows/create-template.md) (default produces a deck; explicit "structure only / no identity" option produces a layout)+2. Resulting directory lands under `templates/layouts/<id>/`+3. Validate: `python3 skills/ppt-master/scripts/svg_quality_checker.py templates/layouts/<id> --template-mode --format ppt169`+4. Register: `python3 skills/ppt-master/scripts/register_template.py <id> --kind layout`-- viewBox: `0 0 1280 720`-- Backgrounds use `<rect>` elements-- Text wrapping uses `<tspan>`-- Transparency uses `fill-opacity` / `stroke-opacity`-- Gradients use `<defs>` with `<linearGradient>`+The register step updates [`layouts_index.json`](./layouts_index.json) — the single source of truth for layout discovery.-#### Forbidden (PPT Incompatible)+----| Banned Element | Alternative |-|----------------|-------------|-| HTML named entities in text (` ` `—` `©` `–` `®` …) | Write the raw Unicode character directly (`—` `–` `©` `®` `→` NBSP …); see shared-standards.md §1.0 |-| Bare `&` `<` `>` `"` `'` in text or attribute values | Escape as XML entities `&` `<` `>` `"` `'` (e.g. `R&D`, `error < 5%`) |-| `<foreignObject>` | Use `<text>` + `<tspan>` |-| `clipPath` on shapes / groups / text | Draw the target geometry directly with the matching native element (`<circle>` / `<ellipse>` / `<rect rx>` / `<polygon>` / `<path>`). `clipPath` on `<image>` elements is conditionally allowed — see shared-standards.md §1.2 |-| `mask` | Use `fill-opacity` |-| `<style>` / `class` | Use inline styles |-| `textPath` | Use plain `<text>` |-| `animate*` | Static design |-| `script` | No interactivity supported |-| `rgba()` | Use HEX + `fill-opacity` |-| `<g opacity="...">` | Set opacity on each child element individually |+## SVG technical constraints----+See [`shared-standards.md`](../../references/shared-standards.md) for the authoritative ban list (PPT incompatibilities, raw-character rules, clipPath conditional allowance, etc.). Layouts must comply.diff --git a/skills/ppt-master/templates/layouts/academic_defense/design_spec.md b/skills/ppt-master/templates/layouts/academic_defense/design_spec.mdindex b2952c06..fdc6b455 100644--- a/skills/ppt-master/templates/layouts/academic_defense/design_spec.md+++ b/skills/ppt-master/templates/layouts/academic_defense/design_spec.md@@ -1,3 +1,12 @@+---+layout_id: academic_defense+kind: layout+summary: Thesis defense, academic presentations, research progress reports, grant applications.+canvas_format: ppt169+page_count: 5+page_types: [cover, toc, chapter, content, ending]+---+# Academic Defense Template - Design Specification> Suitable for academic thesis defense, research presentations, graduation project showcases, and similar scenarios.@@ -27,66 +36,7 @@----## III. Color Scheme--### Primary Colors--| Role | Value | Notes |-| -------------- | ----------- | -------------------------------- |-| **Primary Dark Blue** | `#003366` | Header background, section titles, main headings |-| **Accent Blue** | `#0066CC` | Card borders, icons, secondary decorations |-| **Accent Red** | `#CC0000` | Key highlights, keyword emphasis, left decorative bar |-| **Light Blue-Gray** | `#E8F4FC` | Key message bar background, card inner sections |-| **Background White** | `#FFFFFF` | Page main background |--### Text Colors--| Role | Value | Usage |-| -------------- | ----------- | ---------------------- |-| **White Text** | `#FFFFFF` | Text on dark backgrounds |-| **Primary Text** | `#333333` | Body content |-| **Secondary Text** | `#666666` | Descriptions, annotations |-| **Muted Gray** | `#999999` | Footer, auxiliary info |--### Neutral Colors--| Role | Value | Usage |-| -------------- | ----------- | ---------------------- |-| **Card Gray** | `#F5F7FA` | Card inner background, info blocks |-| **Border Gray** | `#D0D7E0` | Card borders, dividers |--### Functional Colors--| Usage | Value | Description |-| ---------- | ----------- | -------------- |-| **Success** | `#28A745` | Positive indicators |-| **Warning** | `#FFA500` | Alerts |-| **Info** | `#17A2B8` | Information tips |-------## IV. Typography System--### Font Stack--**Font Stack**: `"Microsoft YaHei", "微软雅黑", Arial, sans-serif`--### Font Size Hierarchy--| Level | Usage | Size | Weight |-| ----- | ---------------- | ---- | ------- |-| H1 | Cover main title | 56px | Bold |-| H2 | Page title | 28px | Bold |-| H3 | Section title | 56px | Bold |-| H4 | Card title | 24px | Bold |-| P | Body content | 18px | Regular |-| High | Highlighted data | 36px | Bold |-| Sub | Notes/sources | 14px | Regular |-| XS | Page number/copyright | 12px | Regular |-------## V. Page Structure+## III. Page Structure### General Layout@@ -105,7 +55,7 @@----## VI. Page Types+## IV. Page Types### 1. Cover Page (01_cover.svg)@@ -155,7 +105,17 @@----## VII. Layout Patterns+## V. SVG Page Roster++| File | Role | Description |+|------|------|-------------|+| `01_cover.svg` | cover | Title slide; project name, presenter, date |+| `02_chapter.svg` | chapter | Chapter divider page (large number + chapter title) |+| `02_toc.svg` | toc | Table of contents listing major sections |+| `03_content.svg` | content | Main content page; body of the deck |+| `04_ending.svg` | ending | Closing/thank-you page |++## VI. Layout Patterns| Pattern | Use Cases || ------------------ | ------------------------------ |@@ -169,7 +129,7 @@----## VIII. Spacing Guidelines+## VII. Spacing Guidelines| Element | Value || ------------------ | ------ |@@ -181,7 +141,7 @@----## IX. SVG Technical Constraints+## VIII. SVG Technical Constraints### Mandatory Rules@@ -201,7 +161,7 @@----## X. Placeholder Specification+## IX. Placeholder SpecificationTemplates use `{{PLACEHOLDER}}` format placeholders. Common placeholders:@@ -233,7 +193,7 @@ Templates use `{{PLACEHOLDER}}` format placeholders. Common placeholders:----## XI. Component Specifications+## X. Component Specifications### 1. Tag@@ -266,7 +226,7 @@ Templates use `{{PLACEHOLDER}}` format placeholders. Common placeholders:----## XII. Usage Instructions+## XI. Usage Instructions1. Copy the template to the project directory2. Select the appropriate page template based on defense content needsdiff --git a/skills/ppt-master/templates/layouts/ai_ops/design_spec.md b/skills/ppt-master/templates/layouts/ai_ops/design_spec.mdindex ef7f7c01..b3d3d7f0 100644--- a/skills/ppt-master/templates/layouts/ai_ops/design_spec.md+++ b/skills/ppt-master/templates/layouts/ai_ops/design_spec.md@@ -1,3 +1,12 @@+---+layout_id: ai_ops+kind: layout+summary: Telecom AI operations architecture, IT system overviews, digital transformation proposals, smart infrastructure reports.+canvas_format: ppt169+page_count: 6+page_types: [cover, toc, chapter, content, ending, reference_style]+---+# ai_ops - Enterprise Digital Intelligence Design Specification> Suitable for telecom operator AI operations architecture, digital transformation proposals, smart infrastructure reports, IT system overview diagrams, and other high-information-density scenarios.@@ -34,60 +43,7 @@----## III. Color Scheme--### Primary Colors--| Role | Value | Notes |-| ------------------ | ----------- | -------------------------------------------- |-| **Primary Red** | `#C00000` | Brand identity, title vertical bar, number badges, target bars |-| **Accent Blue** | `#2E75B6` | Scenario labels, category headers, bottom accent bars |-| **Light Blue** | `#5B9BD5` | Feature module cards, sub-item labels |--### Functional Colors--| Role | Value | Usage |-| ------------------ | ----------- | ---------------------------------- |-| **Warm Gray BG** | `#FDF3EB` | Overview panel, open platform panel background |-| **Warm Orange Border** | `#F8CBAD` | Panel borders, decorative dividers |-| **Light Gray BG** | `#F2F2F2` | Subtitle bar, metric card background |-| **Card Gray BG** | `#E7E6E6` | Sub-module cards, capability base cards |-| **Card Border** | `#D9D9D9` | Card strokes |--### Text Colors--| Role | Value | Usage |-| ------------------ | ----------- | ------------------------------ |-| **Body Black** | `#000000` | Titles, standard body text |-| **White Text** | `#FFFFFF` | Text on dark color blocks |-| **Secondary Text** | `#666666` | Subtitles, annotations |-| **Light Secondary**| `#999999` | Page numbers, source citations |-| **Data Emphasis** | `#C00000` | KPI values, key metrics |-------## IV. Typography System--### Font Stack--**Font Stack**: `"Microsoft YaHei", "微软雅黑", "SimHei", Arial, sans-serif`--### Font Size Hierarchy--| Level | Usage | Size | Weight |-| -------- | ---------------------- | ------- | ------- |-| H1 | Cover main title | 36-48px | Bold |-| H2 | Page title | 32-36px | Bold |-| H3 | Module title/subtitle | 18-20px | Bold |-| P | Body content | 14-16px | Regular |-| Caption | Supplementary/footnotes | 12-14px | Regular |-| Data | KPI values/metric emphasis | 24-36px | Bold |--> **Note**: Body font size is smaller than usual (14-16px vs standard 18-20px) to accommodate high information density per page.-------## V. Core Design Principles+## III. Core Design Principles### Telecom High-Density Information Style@@ -111,7 +67,7 @@ This template emulates the visual language of telecom technical reports. The cor----## VI. Page Structure+## IV. Page Structure### General Layout@@ -138,7 +94,7 @@ This template emulates the visual language of telecom technical reports. The cor----## VII. Page Types+## V. Page Types### 1. Cover Page (01_cover.svg)@@ -177,7 +133,18 @@ This template emulates the visual language of telecom technical reports. The cor----## VIII. Layout Patterns+## VI. SVG Page Roster++| File | Role | Description |+|------|------|-------------|+| `01_cover.svg` | cover | Title slide; project name, presenter, date |+| `02_chapter.svg` | chapter | Chapter divider page (large number + chapter title) |+| `02_toc.svg` | toc | Table of contents listing major sections |+| `03_content.svg` | content | Main content page; body of the deck |+| `04_ending.svg` | ending | Closing/thank-you page |+| `reference_style.svg` | reference_style | Style reference card (developer aid; not used in normal decks) |++## VII. Layout Patterns| Pattern | Applicable Scenarios || ------------------------------ | ------------------------------------------------- |@@ -194,7 +161,7 @@ This template emulates the visual language of telecom technical reports. The cor----## IX. Common Components+## VIII. Common Components### Title Vertical Bar Decoration@@ -268,7 +235,7 @@ This template emulates the visual language of telecom technical reports. The cor----## X. Spacing Specification+## IX. Spacing Specification| Element | Value || ------------------------------ | --------- |@@ -288,7 +255,7 @@ This template emulates the visual language of telecom technical reports. The cor----## XI. SVG Technical Constraints+## X. SVG Technical Constraints### Mandatory Rules@@ -311,7 +278,7 @@ This template emulates the visual language of telecom technical reports. The cor----## XII. Placeholder Specification+## XI. Placeholder SpecificationThe template uses `{{PLACEHOLDER}}` format placeholders:@@ -336,7 +303,7 @@ The template uses `{{PLACEHOLDER}}` format placeholders:----## XIII. Usage Notes+## XII. Usage Notes1. Copy this template directory to the project `templates/` directory2. Review `reference_style.svg` to understand the core visual style@@ -347,7 +314,7 @@ The template uses `{{PLACEHOLDER}}` format placeholders:----## XIV. Design Highlights+## XIII. Design Highlights- **Telecom DNA**: Derived from real telecom AI operations architecture reports, naturally suited for telecom/enterprise presentation styles- **High Information Density**: A single page can accommodate a complete architecture view (objectives → results → scenarios → orchestration → foundational capabilities)diff --git a/skills/ppt-master/templates/layouts/government_blue/design_spec.md b/skills/ppt-master/templates/layouts/government_blue/design_spec.mdindex 7a71f309..3440a715 100644--- a/skills/ppt-master/templates/layouts/government_blue/design_spec.md+++ b/skills/ppt-master/templates/layouts/government_blue/design_spec.md@@ -1,3 +1,12 @@+---+layout_id: government_blue+kind: layout+summary: Key project briefings, Five-Year Plan presentations, work summaries, investment promotion, policy interpretation.+canvas_format: ppt169+page_count: 5+page_types: [cover, toc, chapter, content, ending]+---+# Government Blue Style Template - Design Specification> Suitable for government agency briefings, key project presentations, planning proposals, investment promotion, and similar scenarios across all levels of government.@@ -27,57 +36,7 @@----## III. Color Scheme--### Primary Colors--| Role | Value | Notes |-| -------------- | ----------- | ---------------------------------- |-| **Primary Deep Blue** | `#0050B3` | Titles, key borders, section number blocks |-| **Tech Bright Blue** | `#00B4D8` | Decorative elements, accent color, gradient highlights |-| **Ocean Blue** | `#003366` | Chapter page backgrounds, gradient dark end |-| **Auxiliary Light Blue** | `#E6F4FF` | Background base, subdued blocks |-| **Sky Blue** | `#90E0EF` | Decorative accents, secondary emphasis |--### Text Colors--| Role | Value | Usage |-| -------------- | ----------- | ---------------------- |-| **Primary Text** | `#1A1A1A` | Body text, titles |-| **White Text** | `#FFFFFF` | Text on dark backgrounds |-| **Secondary Text** | `#4A5568` | Dimmed sections, supplementary notes |-| **Light Auxiliary** | `#718096` | Annotations, page numbers, hints |--### Functional Colors--| Usage | Value | Description |-| -------- | ----------- | -------------- |-| **Success** | `#38A169` | Completed/On target |-| **Warning** | `#E53E3E` | Attention/Alert |-| **Info** | `#3182CE` | General information |-------## IV. Typography System--### Font Stack--**Font Stack**: `"Microsoft YaHei", "微软雅黑", "SimHei", "Source Han Sans SC", Arial, sans-serif`--### Font Size Hierarchy--| Level | Usage | Size | Weight |-| ----- | ------------------ | ---- | ------- |-| H1 | Cover main title | 52px | Bold |-| H2 | Page heading | 28px | Bold |-| H3 | Section title/Subtitle | 24px | Bold |-| P | Body content | 18px | Regular |-| High | Highlighted data | 36px | Bold |-| Sub | Supplementary text | 14px | Regular |-------## V. Page Structure+## III. Page Structure### General Layout@@ -99,7 +58,7 @@----## VI. Page Types+## IV. Page Types### 1. Cover Page (01_cover.svg)@@ -144,7 +103,17 @@----## VII. Layout Modes+## V. SVG Page Roster++| File | Role | Description |+|------|------|-------------|+| `01_cover.svg` | cover | Title slide; project name, presenter, date |+| `02_chapter.svg` | chapter | Chapter divider page (large number + chapter title) |+| `02_toc.svg` | toc | Table of contents listing major sections |+| `03_content.svg` | content | Main content page; body of the deck |+| `04_ending.svg` | ending | Closing/thank-you page |++## VI. Layout Modes| Mode | Use Cases || ------------------ | ------------------------------ |@@ -158,7 +127,7 @@----## VIII. Spacing Guidelines+## VII. Spacing Guidelines| Element | Value || ---------------- | ------ |@@ -170,7 +139,7 @@----## IX. SVG Technical Constraints+## VIII. SVG Technical Constraints### Mandatory Rules@@ -190,7 +159,7 @@----## X. Placeholder Specification+## IX. Placeholder SpecificationTemplates use `{{PLACEHOLDER}}` format placeholders. Common placeholders:@@ -214,7 +183,7 @@ Templates use `{{PLACEHOLDER}}` format placeholders. Common placeholders:----## XI. Usage Instructions+## X. Usage Instructions1. Copy the template to the project directory2. Replace logo files in the images directory (if applicable)@@ -224,7 +193,7 @@ Templates use `{{PLACEHOLDER}}` format placeholders. Common placeholders:----## XII. Design Highlights+## XI. Design Highlights- **Tech Gradient**: Bright-to-deep blue gradient reflects a modern tech aesthetic- **Geometric Decorative Elements**: Circles and grids add a tech atmospherediff --git a/skills/ppt-master/templates/layouts/government_red/design_spec.md b/skills/ppt-master/templates/layouts/government_red/design_spec.mdindex 75d0967c..614d8e1b 100644--- a/skills/ppt-master/templates/layouts/government_red/design_spec.md+++ b/skills/ppt-master/templates/layouts/government_red/design_spec.md@@ -1,3 +1,12 @@+---+layout_id: government_red+kind: layout+summary: Government briefings, policy interpretation, work summaries, project introductions, investment promotion.+canvas_format: ppt169+page_count: 5+page_types: [cover, toc, chapter, content, ending]+---+# Government Red Style Template - Design Specification> Suitable for government agency briefings, policy presentations, work summaries, project introductions, and similar scenarios across all levels of government.@@ -27,58 +36,7 @@----## III. Color Scheme--### Primary Colors--| Role | Value | Notes |-| -------------- | ----------- | ---------------------------------- |-| **Government Red** | `#8B0000` | Primary color, title bar, accent blocks, decoration bars |-| **Government Blue** | `#003366` | Secondary accent, chapter page backgrounds |-| **Background White** | `#FFFFFF` | Main page background |-| **Auxiliary Light Gray** | `#F5F7FA` | Non-critical content background blocks |-| **Border Gray** | `#E4E7EB` | Dividers, borders |-| **Gold Accent** | `#DAA520` | Decorative accents, important data highlights |--### Text Colors--| Role | Value | Usage |-| -------------- | ----------- | ---------------------- |-| **Primary Text** | `#1A1A1A` | Body text, titles |-| **White Text** | `#FFFFFF` | Text on dark backgrounds |-| **Secondary Text** | `#4A5568` | Dimmed sections, supplementary notes |-| **Light Auxiliary** | `#718096` | Annotations, page numbers, hints |--### Functional Colors--| Usage | Value | Description |-| -------- | ----------- | -------------- |-| **Success** | `#38A169` | Completed/On target |-| **Warning** | `#E53E3E` | Attention/Alert |-| **Info** | `#3182CE` | General information |-------## IV. Typography System--### Font Stack--**Font Stack**: `"Microsoft YaHei", "微软雅黑", "SimHei", "Source Han Sans SC", Arial, sans-serif`--### Font Size Hierarchy--| Level | Usage | Size | Weight |-| ----- | ------------------ | ---- | ------- |-| H1 | Cover main title | 48px | Bold |-| H2 | Page heading | 28px | Bold |-| H3 | Section title/Subtitle | 24px | Bold |-| P | Body content | 18px | Regular |-| High | Highlighted data | 36px | Bold |-| Sub | Supplementary text | 14px | Regular |-------## V. Page Structure+## III. Page Structure### General Layout@@ -100,7 +58,7 @@----## VI. Page Types+## IV. Page Types### 1. Cover Page (01_cover.svg)@@ -140,7 +98,17 @@----## VII. Layout Modes+## V. SVG Page Roster++| File | Role | Description |+|------|------|-------------|+| `01_cover.svg` | cover | Title slide; project name, presenter, date |+| `02_chapter.svg` | chapter | Chapter divider page (large number + chapter title) |+| `02_toc.svg` | toc | Table of contents listing major sections |+| `03_content.svg` | content | Main content page; body of the deck |+| `04_ending.svg` | ending | Closing/thank-you page |++## VI. Layout Modes| Mode | Use Cases || ------------------ | ------------------------------ |@@ -154,7 +122,7 @@----## VIII. Spacing Guidelines+## VII. Spacing Guidelines| Element | Value || ---------------- | ------ |@@ -166,7 +134,7 @@----## IX. SVG Technical Constraints+## VIII. SVG Technical Constraints### Mandatory Rules@@ -186,7 +154,7 @@----## X. Placeholder Specification+## IX. Placeholder SpecificationTemplates use `{{PLACEHOLDER}}` format placeholders. Common placeholders:@@ -209,7 +177,7 @@ Templates use `{{PLACEHOLDER}}` format placeholders. Common placeholders:----## XI. Usage Instructions+## X. Usage Instructions1. Copy the template to the project directory2. Replace logo files in the images directory (if applicable)@@ -219,7 +187,7 @@ Templates use `{{PLACEHOLDER}}` format placeholders. Common placeholders:----## XII. Design Highlights+## XI. Design Highlights- **Dual-Color Gradient Top Decoration**: Red-blue gradient reflects a government style- **Gold Accent Elements**: Adds a sense of dignitydiff --git a/skills/ppt-master/templates/layouts/layouts_index.json b/skills/ppt-master/templates/layouts/layouts_index.jsonindex b143db53..4c56ab59 100644--- a/skills/ppt-master/templates/layouts/layouts_index.json+++ b/skills/ppt-master/templates/layouts/layouts_index.json@@ -1,134 +1,87 @@{"academic_defense": {"summary": "Thesis defense, academic presentations, research progress reports, grant applications.",- "keywords": [- "Professional",- "rigorous",- "research-oriented",- "clear hierarchy"+ "canvas_format": "ppt169",+ "page_count": 5,+ "page_types": [+ "cover",+ "toc",+ "chapter",+ "content",+ "ending"]},"ai_ops": {"summary": "Telecom AI operations architecture, IT system overviews, digital transformation proposals, smart infrastructure reports.",- "keywords": [- "Information-dense",- "structured",- "modular zoning",- "telecom",- "enterprise style"- ]- },- "china_telecom_template": {- "summary": "China Telecom related briefings, 政企数字化方案, 转型规划, 内部汇报.",- "keywords": [- "Authoritative",- "structured",- "restrained",- "enterprise-government hybrid"+ "canvas_format": "ppt169",+ "page_count": 6,+ "page_types": [+ "cover",+ "toc",+ "chapter",+ "content",+ "ending",+ "reference_style"]},"government_blue": {"summary": "Key project briefings, Five-Year Plan presentations, work summaries, investment promotion, policy interpretation.",- "keywords": [- "Grand",- "tech-forward",- "modern",- "professional government style"+ "canvas_format": "ppt169",+ "page_count": 5,+ "page_types": [+ "cover",+ "toc",+ "chapter",+ "content",+ "ending"]},"government_red": {"summary": "Government briefings, policy interpretation, work summaries, project introductions, investment promotion.",- "keywords": [- "Authoritative",- "dignified",- "professional",- "modern government style"+ "canvas_format": "ppt169",+ "page_count": 5,+ "page_types": [+ "cover",+ "toc",+ "chapter",+ "content",+ "ending"]},"medical_university": {"summary": "Medical academic reports, case discussions, research presentations, hospital work reports, medical education and training.",- "keywords": [- "Professional",- "rigorous",- "life-affirming",- "tech-forward",- "trustworthy"+ "canvas_format": "ppt169",+ "page_count": 5,+ "page_types": [+ "cover",+ "toc",+ "chapter",+ "content",+ "ending"]},"pixel_retro": {"summary": "Tech talks, programming tutorials, game introductions, geek-style showcases.",- "keywords": [- "Retro gaming",- "neon cyberpunk",- "geek tech",- "8-bit style"+ "canvas_format": "ppt169",+ "page_count": 5,+ "page_types": [+ "cover",+ "toc",+ "chapter",+ "content",+ "ending"]},"psychology_attachment": {"summary": "Psychotherapy training, academic lectures, counseling case analysis, professional sharing.",- "keywords": [- "Professional",- "warm",- "healing",- "trustworthy"- ]- },- "中国电建_常规": {- "summary": "Engineering project reports, technical proposal presentations, business negotiations, corporate promotion, annual summaries.",- "keywords": [- "Professional",- "composed",- "international",- "state-owned enterprise style"- ]- },- "中国电建_现代": {- "summary": "Major engineering reports, international market promotion, technology achievement showcases, high-end business negotiations.",- "keywords": [- "Grand narrative",- "modern precision",- "digital tech",- "international vision"- ]- },- "中汽研_商务": {- "summary": "Product certification display, evaluation presentations, technology promotion, high-end business reporting.",- "keywords": [- "Modern tech",- "authoritative & professional",- "composed & grand"- ]- },- "中汽研_常规": {- "summary": "Product certification display, evaluation presentations, technology promotion, business visits.",- "keywords": [- "Professional",- "authoritative",- "trustworthy",- "consulting style"- ]- },- "中汽研_现代": {- "summary": "Forward-looking technology showcases, strategic releases, high-end business reporting.",- "keywords": [- "Futuristic",- "tech-forward",- "deep & refined"- ]- },- "招商银行": {- "summary": "交易银行产品介绍、销售收款方案汇报、客户案例拆解、分行培训材料.",- "keywords": [- "Brand-consistent",- "structured",- "product-focused",- "refined finance"- ]- },- "重庆大学": {- "summary": "Academic defense, research reports, teaching presentations, scholarly exchange.",- "keywords": [- "Academically grounded · Mountain City charm · Modern minimalism"+ "canvas_format": "ppt169",+ "page_count": 5,+ "page_types": [+ "cover",+ "toc",+ "chapter",+ "content",+ "ending"]}}diff --git a/skills/ppt-master/templates/layouts/medical_university/design_spec.md b/skills/ppt-master/templates/layouts/medical_university/design_spec.mdindex 60e553a1..d9cb8d31 100644--- a/skills/ppt-master/templates/layouts/medical_university/design_spec.md+++ b/skills/ppt-master/templates/layouts/medical_university/design_spec.md@@ -1,3 +1,12 @@+---+layout_id: medical_university+kind: layout+summary: Medical academic reports, case discussions, research presentations, hospital work reports, medical education and training.+canvas_format: ppt169+page_count: 5+page_types: [cover, toc, chapter, content, ending]+---+# Hospital / Medical University Template (Medical University Style) - Design Specification> Suitable for hospitals, medical universities, affiliated hospitals, and medical research institutions for academic reports, case presentations, research results, and related scenarios.@@ -28,82 +37,7 @@----## III. Color Scheme--### Primary Colors--| Role | Value | Notes |-| ------------------ | --------- | ---------------------------------------- |-| **Primary Medical Blue** | `#0066B3` | Header background, chapter titles, main titles |-| **Deep Medical Blue** | `#004080` | Chapter page background, key emphasis |-| **Accent Green** | `#00A86B` | Card borders, life/health-related content, icons |-| **Emphasis Orange** | `#FF6B35` | Key highlights, critical data, left accent bars |-| **Light Blue BG** | `#E6F3FA` | Key message background bar, card inner blocks |-| **Light Green BG** | `#E8F5EE` | Medical-related cards, health data blocks |-| **Background White** | `#FFFFFF` | Main page background |--### Text Colors--| Role | Value | Usage |-| ---------------- | --------- | -------------------------- |-| **White Text** | `#FFFFFF` | Text on dark backgrounds |-| **Primary Text** | `#333333` | Body content |-| **Secondary Text** | `#666666` | Captions, annotations |-| **Muted Gray** | `#999999` | Footer, supplementary info |--### Neutral Colors--| Role | Value | Usage |-| -------------- | --------- | ---------------------------- |-| **Card Gray** | `#F5F7FA` | Card inner background, info blocks |-| **Border Gray**| `#D0D7E0` | Card borders, divider lines |--### Functional Colors--| Usage | Value | Description |-| ------------ | --------- | ------------------------------ |-| **Success** | `#28A745` | Positive indicators, recovery data |-| **Warning** | `#FFC107` | Precautions, reminders |-| **Danger** | `#DC3545` | Critical values, risk alerts |-| **Info** | `#17A2B8` | Info tips, reference data |--### Color Variant Schemes--To adapt to other medical institution branding, replace the corresponding values in the primary color system:--| Institution Type | Primary | Accent | Emphasis | Applicable Scenarios |-| ------------------- | --------- | --------- | --------- | ----------------------------- |-| Default Medical Blue | `#0066B3` | `#00A86B` | `#FF6B35` | General hospitals, medical universities |-| Children's Hospital | `#0099CC` | `#66CC99` | `#FF9933` | Children's hospitals, pediatric specialties |-| TCM Hospital | `#8B4513` | `#228B22` | `#DAA520` | TCM hospitals, TCM research institutes |-| Maternal & Child Health | `#E91E8C` | `#9C27B0` | `#FF5722` | Maternal & child health centers, OB/GYN |--> **Usage**: Perform a global find-and-replace of the primary color values across all SVG template files to quickly switch color schemes.-------## IV. Typography System--### Font Stack--**Font Stack**: `"Microsoft YaHei", "微软雅黑", Arial, sans-serif`--### Font Size Hierarchy--| Level | Usage | Size | Weight |-| ----- | ---------------- | ---- | ------- |-| H1 | Cover main title | 52px | Bold |-| H2 | Page title | 28px | Bold |-| H3 | Chapter title | 52px | Bold |-| H4 | Card title | 24px | Bold |-| P | Body content | 18px | Regular |-| High | Emphasized data | 36px | Bold |-| Sub | Notes/sources | 14px | Regular |-| XS | Page number/copyright | 12px | Regular |-------## V. Page Structure+## III. Page Structure### General Layout@@ -123,7 +57,7 @@ To adapt to other medical institution branding, replace the corresponding values----## VI. Page Types+## IV. Page Types### 1. Cover Page (01_cover.svg)@@ -170,7 +104,17 @@ To adapt to other medical institution branding, replace the corresponding values----## VII. Layout Patterns (Recommended)+## V. SVG Page Roster++| File | Role | Description |+|------|------|-------------|+| `01_cover.svg` | cover | Title slide; project name, presenter, date |+| `02_chapter.svg` | chapter | Chapter divider page (large number + chapter title) |+| `02_toc.svg` | toc | Table of contents listing major sections |+| `03_content.svg` | content | Main content page; body of the deck |+| `04_ending.svg` | ending | Closing/thank-you page |++## VI. Layout Patterns (Recommended)### Common Layouts for Medical Reports@@ -185,7 +129,7 @@ To adapt to other medical institution branding, replace the corresponding values----## VIII. Spacing Specification+## VII. Spacing Specification| Spacing Type | Value | Usage || ------------------ | ----- | -------------------------------- |@@ -197,7 +141,7 @@ To adapt to other medical institution branding, replace the corresponding values----## IX. SVG Technical Constraints+## VIII. SVG Technical Constraints### Mandatory Rules@@ -224,7 +168,7 @@ To adapt to other medical institution branding, replace the corresponding values----## X. Placeholder Specification+## IX. Placeholder Specification| Placeholder | Usage || ------------------- | ---------------------------- |@@ -252,7 +196,7 @@ To adapt to other medical institution branding, replace the corresponding values----## XI. Usage Notes+## X. Usage Notes### 1. Copy Template to Project@@ -268,7 +212,7 @@ cp templates/layouts/medical_university/* projects/<project>/templates/----## XII. Medical Content-Specific Components+## XI. Medical Content-Specific Components### Data Card (Vital Signs)diff --git a/skills/ppt-master/templates/layouts/pixel_retro/design_spec.md b/skills/ppt-master/templates/layouts/pixel_retro/design_spec.mdindex ba1673a0..ab7d84cd 100644--- a/skills/ppt-master/templates/layouts/pixel_retro/design_spec.md+++ b/skills/ppt-master/templates/layouts/pixel_retro/design_spec.md@@ -1,3 +1,12 @@+---+layout_id: pixel_retro+kind: layout+summary: Tech talks, programming tutorials, game introductions, geek-style showcases.+canvas_format: ppt169+page_count: 5+page_types: [cover, toc, chapter, content, ending]+---+# Pixel Retro Style Template - Design Specification> Suitable for tech talks, programming tutorials, game-related presentations, geek-style content showcases, and similar scenarios.@@ -27,68 +36,7 @@----## III. Color Scheme--### Background Colors--| Role | Value | Notes |-| -------------- | ----------- | -------------------------------- |-| **Deep Space Black** | `#0D1117` | Main background color |-| **Starry Night Blue** | `#161B22` | Card/block background |-| **Dark Border** | `#30363D` | Borders/dividers |--### Accent Colors (Neon Series)--| Role | Value | Usage |-| -------------- | ----------- | -------------------------------- |-| **Neon Green** | `#39FF14` | Primary accent, success, save points, Git |-| **Cyber Pink** | `#FF2E97` | Secondary accent, warnings, contrast, GitHub |-| **Electric Blue** | `#00D4FF` | Tertiary accent, links, info, flows |-| **Gold Yellow** | `#FFD700` | Quaternary accent, history, timelines, highlights |--### Auxiliary Colors--| Role | Value | Usage |-| -------------- | ----------- | -------------------------------- |-| **Dark Green** | `#238636` | Muted version of success state |-| **Dark Pink** | `#8B2252` | Muted pink |-| **Dark Blue** | `#1F6FEB` | Muted blue |--### Text Colors--| Role | Value | Usage |-| -------------- | ----------- | ---------------------- |-| **Moonlight White** | `#E6EDF3` | Primary text |-| **Mist Gray** | `#8B949E` | Secondary descriptive text |-| **Pure White** | `#FFFFFF` | Emphasized titles |-------## IV. Typography System--### Font Stack--**Title Font**: `"Consolas", "Monaco", "Courier New", monospace` - Pixel/code aesthetic--**Body Font**: `-apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif`--**Code Font**: `"Cascadia Code", "Fira Code", "Consolas", monospace`--### Font Size Hierarchy--| Level | Usage | Size | Weight |-| ----- | ------------------ | ---- | ------- |-| H1 | Cover main title | 52px | Bold |-| H2 | Page heading | 36px | Bold |-| H3 | Section title/Subtitle | 22px | 600 |-| P | Body content | 18px | Regular |-| High | Highlighted data | 48px | Bold |-| Sub | Supplementary text | 14px | Regular |-| Code | Code text | 16px | Regular |-------## V. Page Structure+## III. Page Structure### General Layout@@ -108,7 +56,7 @@----## VI. Page Types+## IV. Page Types### 1. Cover Page (01_cover.svg)@@ -159,7 +107,17 @@----## VII. Layout Modes+## V. SVG Page Roster++| File | Role | Description |+|------|------|-------------|+| `01_cover.svg` | cover | Title slide; project name, presenter, date |+| `02_chapter.svg` | chapter | Chapter divider page (large number + chapter title) |+| `02_toc.svg` | toc | Table of contents listing major sections |+| `03_content.svg` | content | Main content page; body of the deck |+| `04_ending.svg` | ending | Closing/thank-you page |++## VI. Layout Modes| Mode | Use Cases || ------------------ | ------------------------------ |@@ -172,7 +130,7 @@----## VIII. Spacing Guidelines+## VII. Spacing Guidelines| Element | Value || ---------------- | ------ |@@ -185,7 +143,7 @@----## IX. Visual Effects+## VIII. Visual Effects### Pixel Style Characteristics@@ -233,7 +191,7 @@ Apply glow filters to key text/elements:----## X. SVG Technical Constraints+## IX. SVG Technical Constraints### Mandatory Rules@@ -254,7 +212,7 @@ Apply glow filters to key text/elements:----## XI. Placeholder Specification+## X. Placeholder SpecificationTemplates use `{{PLACEHOLDER}}` format placeholders. Common placeholders:@@ -276,7 +234,7 @@ Templates use `{{PLACEHOLDER}}` format placeholders. Common placeholders:----## XII. Usage Instructions+## XI. Usage Instructions1. Copy the template to the project `templates/` directory2. Select the appropriate page template based on content requirements@@ -287,7 +245,7 @@ Templates use `{{PLACEHOLDER}}` format placeholders. Common placeholders:----## XIII. Color Quick Reference+## XII. Color Quick Reference```Background Layer:diff --git a/skills/ppt-master/templates/layouts/psychology_attachment/design_spec.md b/skills/ppt-master/templates/layouts/psychology_attachment/design_spec.mdindex 9a67a7a7..18ef99e8 100644--- a/skills/ppt-master/templates/layouts/psychology_attachment/design_spec.md+++ b/skills/ppt-master/templates/layouts/psychology_attachment/design_spec.md@@ -1,3 +1,12 @@+---+layout_id: psychology_attachment+kind: layout+summary: Psychotherapy training, academic lectures, counseling case analysis, professional sharing.+canvas_format: ppt169+page_count: 5+page_types: [cover, toc, chapter, content, ending]+---+# Psychology Healing Template (Psychology Attachment Style) - Design Specification> Suitable for psychology, psychotherapy, counseling training, and academic sharing in professional settings.@@ -43,82 +52,7 @@ The design adopts "**Secure Base**" as the core visual metaphor:----## III. Color Scheme--### Primary Colors--| Semantic Role | Color Name | HEX | RGB | Usage |-| ----------------- | ------------- | --------- | ----------- | ---------------------------------- |-| **Dominant** | Secure Blue | `#2E5C8E` | 46,92,142 | Titles, key frameworks, secure attachment |-| **Background** | Cloud White | `#F8FAFC` | 248,250,252 | Page background |-| **Accent A** | Warm Orange | `#E07843` | 224,120,67 | Activation, emotion, anxious type |-| **Accent B** | Healing Green | `#3D8B7A` | 61,139,122 | Growth, integration, secure type |-| **Accent C** | Cool Gray-Blue| `#64748B` | 100,116,139 | Avoidant type, dismissive type |-| **Warning** | Trauma Red | `#B54545` | 181,69,69 | Disorganized type, unresolved trauma |--### Attachment Type Color Assignments--| Attachment Type | Primary | Secondary | Symbolism |-| ---------------------------- | --------- | --------- | ---------------------- |-| Secure / Autonomous | `#3D8B7A` | `#D4EDDA` | Growth, coherence |-| Avoidant / Dismissive | `#64748B` | `#E2E8F0` | Detachment, suppression |-| Anxious-Ambivalent / Preoccupied | `#E07843` | `#FED7AA` | Anxiety, amplification |-| Disorganized / Unresolved | `#B54545` | `#FECACA` | Trauma, fragmentation |--### Text Colors--| Role | Value | Usage |-| ----------------- | --------- | ---------------------------------- |-| **Main Title** | `#1E293B` | Dark ink blue, cover/page titles |-| **Subtitle** | `#2E5C8E` | Secure blue, emphasized subtitles |-| **Body Text** | `#374151` | Dark gray, body content |-| **Helper Text** | `#6B7280` | Medium gray, annotations |-| **Secondary Text**| `#64748B` | Gray-blue, page numbers etc. |-| **White Text** | `#FFFFFF` | Text on dark backgrounds |-| **Light Text** | `#E5E7EB` | Secondary text on dark backgrounds |-| **English Gray** | `#94A3B8` | English subtitles |--### Gradients--| Name | Start | Middle | End | Usage |-| ---------------- | --------- | --------- | --------- | ---------------------- |-| Cover Gradient | `#1E3A5F` | `#2E5C8E` | `#3D8B7A` | Cover/chapter page BG |-| Ending Gradient | `#1E3A5F` | `#2E5C8E` | `#3D8B7A` | Ending page background |-------## IV. Typography System--### Font Stack--**Chinese Font Stack**: `"Microsoft YaHei", "PingFang SC", sans-serif`--**English Font Stack**: `Arial, sans-serif`--### Font Size Hierarchy--| Level | Usage | Size | Weight | Line Height |-| ----- | ---------------- | ---- | -------- | ----------- |-| H1 | Cover main title | 52px | Bold | 1.2 |-| H2 | Page main title | 32px | Bold | 1.3 |-| H3 | Section subtitle | 24px | SemiBold | 1.3 |-| H4 | Card title | 20px | SemiBold | 1.4 |-| Body | Body content | 18px | Regular | 1.5 |-| Small | Annotations | 14px | Regular | 1.4 |--### Spacing System--| Usage | Value |-| ------------------ | ------------------------- |-| Base unit | 8px |-| Element spacing | 16px / 24px / 32px / 48px |-| Paragraph spacing | 24px |-| List item spacing | 12px |-| Card inner padding | 24px |-------## V. Page Structure+## III. Page Structure### General Layout@@ -138,7 +72,7 @@ The design adopts "**Secure Base**" as the core visual metaphor:----## VI. Page Types+## IV. Page Types### 1. Cover Page (01_cover.svg)@@ -204,7 +138,17 @@ The design adopts "**Secure Base**" as the core visual metaphor:----## VII. Layout Patterns+## V. SVG Page Roster++| File | Role | Description |+|------|------|-------------|+| `01_cover.svg` | cover | Title slide; project name, presenter, date |+| `02_chapter.svg` | chapter | Chapter divider page (large number + chapter title) |+| `02_toc.svg` | toc | Table of contents listing major sections |+| `03_content.svg` | content | Main content page; body of the deck |+| `04_ending.svg` | ending | Closing/thank-you page |++## VI. Layout Patterns### 7.1 Three-Column Side-by-Side (Comparison/Findings)@@ -250,7 +194,7 @@ The design adopts "**Secure Base**" as the core visual metaphor:----## VIII. Visual Element Specifications+## VII. Visual Element Specifications### 8.1 Card Styles@@ -299,7 +243,7 @@ The design adopts "**Secure Base**" as the core visual metaphor:----## IX. Icon Usage+## VIII. Icon UsageUse `tabler-outline` as the stylistic icon library for this template. It matches the professional, warm, low-noise psychology tone and avoids heavy filled symbols.@@ -324,7 +268,7 @@ Use `tabler-outline` as the stylistic icon library for this template. It matches----## X. SVG Technical Constraints+## IX. SVG Technical Constraints### viewBox Specification@@ -354,7 +298,7 @@ Use `tabler-outline` as the stylistic icon library for this template. It matches----## XI. Placeholder Specification+## X. Placeholder Specification| Placeholder | Usage || -------------------- | -------------------- |@@ -377,7 +321,7 @@ Use `tabler-outline` as the stylistic icon library for this template. It matches----## XII. Usage Notes+## XI. Usage Notes### Template Usage Stepsdiff --git a/skills/ppt-master/workflows/create-brand.md b/skills/ppt-master/workflows/create-brand.mdindex 99a673fb..8d86b90c 100644--- a/skills/ppt-master/workflows/create-brand.md+++ b/skills/ppt-master/workflows/create-brand.md@@ -151,7 +151,7 @@ primary_color: "#XXXXXX"```**Section scope rules**:-- Layout / canvas / spacing / radius / shadow / page roster / signature design elements are OUT of brand scope. Those live in layout templates (`templates/layouts/<id>/design_spec.md`) or `shared-standards.md`. Do NOT add those sections here.+- Layout / canvas / spacing / radius / shadow / page roster / signature design elements are OUT of brand scope. Those live in layout / deck templates (`templates/layouts/<id>/design_spec.md` or `templates/decks/<id>/design_spec.md`) or `shared-standards.md`. Do NOT add those sections here.- HEX must be `#RRGGBB`- Font names are free strings; not validated against locally installed fonts- §VII is fully optional — list only directories that actually existdiff --git a/skills/ppt-master/workflows/create-template.md b/skills/ppt-master/workflows/create-template.mdindex eb16235b..4f88b1c7 100644--- a/skills/ppt-master/workflows/create-template.md+++ b/skills/ppt-master/workflows/create-template.md@@ -1,16 +1,27 @@----description: Generate a new PPT layout template based on existing project files or reference templates+description: Generate a new layout or deck template based on existing project files or reference templates---# Create New Template Workflow> **Role invoked**: [Template_Designer](../references/template-designer.md)-Generate a complete set of reusable PPT layout templates for the **global template library**.+Generate a complete set of reusable PPT templates for the **global template library**.-> This workflow is for **library asset creation**, not project-level one-off customization. The output must be reusable by future PPT projects and discoverable from `templates/layouts/layouts_index.json`.+> This workflow is for **library asset creation**, not project-level one-off customization. The output must be reusable by future PPT projects and discoverable from the appropriate index file.-> **Companion workflow**: identity-only locking (colors / typography / logo / voice without SVG pages) is handled by [`create-brand.md`](./create-brand.md). Use that when the user wants brand identity but free page layout; use this when fixed page structures are also required.+> **Companion workflow**: identity-only locking (colors / typography / logo / voice without SVG pages) is handled by [`create-brand.md`](./create-brand.md). Use that when the user wants brand identity but free page layout; use this when fixed page structures are required.++## Kind decision — deck (default) vs layout++This workflow produces one of two kinds of templates depending on whether the source PPT carries a specific brand identity:++| Kind | When | Output dir | What `design_spec.md` writes |+|---|---|---|---|+| **deck** (default) | Source is a specific organization's branded PPT (e.g. company report, university defense template); the visual identity is part of the replica | `templates/decks/<id>/` | Full segments: identity + structure + middle |+| **layout** | Source is a generic stylistic template (no specific brand); only the structural skeleton should be reusable; color / typography decided per-deck downstream | `templates/layouts/<id>/` | Structure segments only (canvas / page structure / page types / SVG roster); identity segment omitted |++Default to **deck** unless the user explicitly says "structure only" / "layout only" / "no brand identity". When in doubt, lean deck — losing identity later is easy; reconstructing it from a layout-mode strip is not. See [`docs/zh/templates-architecture.md`](../../../docs/zh/templates-architecture.md) for the full kind / schema / fusion model.## Process Overview@@ -255,13 +266,14 @@ Mirror mode does **not** invoke the "reconstruct into clean SVG" pathway. The sp## Step 5: Validate Template Assets```bash-ls -la "skills/ppt-master/templates/layouts/<template_id>"+# Replace <kind_dir> with "decks" or "layouts" depending on the kind decided above+ls -la "skills/ppt-master/templates/<kind_dir>/<template_id>"```Run SVG validation on the template directory:```bash-python3 skills/ppt-master/scripts/svg_quality_checker.py "skills/ppt-master/templates/layouts/<template_id>" --template-mode --format <canvas_format>+python3 skills/ppt-master/scripts/svg_quality_checker.py "skills/ppt-master/templates/<kind_dir>/<template_id>" --template-mode --format <canvas_format>````--template-mode` makes the checker:@@ -289,53 +301,60 @@ This step is a **hard gate**. Do not register the template into the library inde## Step 6: Register Template in Library Index-Run the unified registrar; it derives the `layouts_index.json` entry and refreshes the `README.md` Quick Index from `design_spec.md` (frontmatter when present, prose fallback otherwise) plus the actual SVG file list:+Run the unified registrar with the kind flag; it derives the corresponding index entry from `design_spec.md` (frontmatter when present, prose fallback otherwise) plus the actual SVG file list:```bash-python3 skills/ppt-master/scripts/register_template.py <template_id>+# For deck (default)+python3 skills/ppt-master/scripts/register_template.py <template_id> --kind deck++# For layout+python3 skills/ppt-master/scripts/register_template.py <template_id> --kind layout```-Outputs:+Outputs by kind (the JSON index is the single source of truth — READMEs describe the kind in prose but do not enumerate templates):-- updates `skills/ppt-master/templates/layouts/layouts_index.json` — the flat `template_id → { summary, keywords }` map-- refreshes the auto-managed Quick Index inside `skills/ppt-master/templates/layouts/README.md` (the surrounding category sections stay hand-edited)-- prints a "Template Creation Complete" card you can use directly for Step 7+| `--kind` | Index updated |+|---|---|+| `deck` | `templates/decks/decks_index.json` |+| `layout` | `templates/layouts/layouts_index.json` |+| `brand` | `templates/brands/brands_index.json` |-The completion card's file roster is collected by globbing `*.svg` in the template directory, so `fidelity`-mode templates that include variant pages such as `03a_content_two_col` are listed automatically.+The completion card's file roster is collected by globbing `*.svg` in the template directory.-`layouts_index.json` is a **discovery index** — it lets the AI answer "what templates are available?" by listing names and paths. It is **not** consulted to trigger Step 4. Step 4 triggers on an explicit directory path supplied by the user, regardless of whether that path is registered. A template directory that has not been run through `register_template.py` still works fine when the user gives its path; it just won't appear in discovery listings.+The index file is a **discovery index** — it lets the AI answer "what templates are available?" by listing names and paths. It is **not** consulted to trigger Step 3 (SKILL.md). Step 3 triggers on an explicit directory path supplied by the user, regardless of whether that path is registered. A template directory that has not been run through `register_template.py` still works fine when the user gives its path; it just won't appear in discovery listings.-> **Recommended for new templates**: declare a YAML frontmatter block at the top of `design_spec.md`. The registrar prefers it over the §I table and lets you set `category`, `keywords`, `summary`, etc. without relying on prose extraction:+> **Recommended for new templates**: declare a YAML frontmatter block at the top of `design_spec.md`. The registrar prefers it over prose extraction:>> ```yaml+> # deck example> ----> template_id: my_template-> category: brand # brand | general | scenario | government | special-> summary: Strategic consulting, executive briefings, ...-> keywords: [tag1, tag2, tag3]+> deck_id: my_deck+> kind: deck+> summary: ...+> canvas_format: ppt169+> page_count: 5> primary_color: "#005587"+> ---+>+> # layout example+> ---+> layout_id: my_layout+> kind: layout+> summary: ...> canvas_format: ppt169-> replication_mode: standard # standard | fidelity | mirror-> # Optional: per-page placeholder overrides. Templates that legitimately-> # use a different vocabulary (e.g. consulting decks with {{KEY_MESSAGE}}-> # in place of {{PAGE_TITLE}}, or content variants with bespoke slots)-> # should declare them here so svg_quality_checker --template-mode does-> # not flag them as conventional-placeholder gaps.-> # Mirror-mode templates do not need this field — they have no placeholders.-> placeholders:-> 01_cover: ["{{TITLE}}", "{{SUBTITLE}}", "{{BRAND_LOGO}}"]-> 03_content: ["{{KEY_MESSAGE}}", "{{CONTENT_AREA}}"]-> 03a_content_dual_col: [] # silences hints for this variant entirely+> page_count: 5+> page_types: [cover, toc, chapter, content, ending]> ---> ```> To rebuild every entry at once (e.g. after editing many specs), run:>> ```bash-> python3 skills/ppt-master/scripts/register_template.py --rebuild-all+> python3 skills/ppt-master/scripts/register_template.py --kind deck --rebuild-all+> python3 skills/ppt-master/scripts/register_template.py --kind layout --rebuild-all> ```-If you need to update the categorized sections lower in `README.md` (Brand Style Templates / General Style Templates / etc.), edit those by hand — the registrar deliberately leaves them alone so curated descriptions are preserved.+README files describe each kind in prose only — they do not list templates. Discovery happens against the JSON index file; the registrar does not touch READMEs.---@@ -349,9 +368,9 @@ For a standard-mode template the card looks like:## Template Creation Complete**Template Name**: <template_id> (<display_name>)-**Template Path**: `templates/layouts/<template_id>/`-**Category**: <category>-**Primary Color**: <hex>+**Kind**: deck | layout+**Template Path**: `templates/<kind_dir>/<template_id>/`+**Primary Color**: <hex> ← deck only; omit for layout**Index Registration**: Done### Files Included