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): align deck and layout contracts
hugohe3e1b1d6fc24db
diff --git a/docs/templates-architecture.md b/docs/templates-architecture.mdindex 2f0bd64f..7f715034 100644--- a/docs/templates-architecture.md+++ b/docs/templates-architecture.md@@ -59,11 +59,11 @@ Both roots have the same core shape:├── images/ # optional; SVG href uses ../images/<name>├── icons/│ └── imported/ # optional; canonical imported vector assets-└── exports/ # optional; created only for on-demand review+└── exports/ # optional; requested review or required multi-Master evidence└── <id>_template_preview.pptx```-Empty optional directories are omitted; do not add placeholder files. An on-demand preview PPTX is derived review evidence, not a source template asset. Step 3 reads the workspace root and consumes `templates/` plus any existing `images/` and `icons/`; it ignores `exports/`. Library `exports/` directories are Git-ignored.+Empty optional directories are omitted; do not add placeholder files. A preview PPTX is derived review evidence, not a source template asset. It is generated on request and is mandatory for a multi-Master package gate. Step 3 reads the workspace root and consumes `templates/` plus any existing `images/` and `icons/`; it ignores `exports/`. Library `exports/` directories are Git-ignored.Imported vectors use `data-icon="imported/<name>"` and have one canonical fileat `icons/imported/<name>.svg`. Workspace-aware validation and export resolve@@ -73,7 +73,7 @@ PPTX import uses a two-level metadata model. The temporary lossless SVG keeps naBoth scopes retain `kind: layout` or `kind: deck` in portable frontmatter. `output_scope` and `target_project` stay in the workflow brief and are not persisted into `design_spec.md`.-Before any final write, resolve the selected workspace root, require an empty `templates/` root, and check all planned image and icon destination filenames for conflicts. Check a preview-PPTX destination only when review export was requested. Project scope additionally requires an initialized target project. Fail before writing anything; never merge or overwrite.+Before any final write, resolve the selected workspace root, require an empty `templates/` root, and check all planned image and icon destination filenames for conflicts. Check a preview-PPTX destination when review was requested or the confirmed roster contains multiple Masters. Project scope additionally requires an initialized target project. Fail before writing anything; never merge or overwrite.### Segment partition@@ -82,7 +82,7 @@ To make multi-path fusion override cleanly, every field belongs to a named segme| 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 |+| **Structure** | Portable canvas/page-type metadata, structure-owned Signature rules, SVG Page Roster, and the SVG Master/Layout/slot contract | 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@@ -131,25 +131,35 @@ primary_color: "<HEX>"---layout_id: <slug>kind: layout+category: general | scenario | government | specialnative_structure_mode: structuredsummary: <one-line use cases>+keywords: [tag1, tag2, tag3]canvas_format: <ppt169 | ppt43 | a4 | ...>+canvas_width: <pixels>+canvas_height: <pixels>+canvas_viewbox: "0 0 <width> <height>"+source_canvas_width: <pixels> # when a PPTX/SVG source canvas is known+source_canvas_height: <pixels>+source_viewbox: "0 0 <width> <height>"+replication_mode: standard | fidelity | mirrorpage_count: <N>page_types: [<cover, toc, chapter, content, ending, ...>]---```-**Body sections** (full structure segment + Template Overview)+**Body sections** (personality-only structure segment)| § | 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 |+| IV | Signature Design Elements | Layout-specific grid, zones, image behavior, density rhythm, neutral framing, and slot conventions |+| V | Page Roster | Every SVG file, Layout key, picker name, intended content, and slot behavior |-**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 confirmation stage.+`Placeholder Overrides` is conditional and appears only when the layout changes+the canonical authoring vocabulary. The frontmatter `summary` carries concise+selection context. Layouts omit the deck-only Template Overview.++**Forbidden**: Color Scheme, Typography, brand logo, brand voice & tone, Icon Style, or official-truth color (`provenance: fact`). Neutral SVG paint is allowed only as review scaffolding; it is not an identity segment. Color and typography are decided in the Strategist confirmation stage or supplied by another template kind.### Deck schema@@ -159,30 +169,41 @@ page_types: [<cover, toc, chapter, content, ending, ...>]---deck_id: <slug>kind: deck+category: brand | general | scenario | government | specialnative_structure_mode: structuredsummary: <one-line use cases>+keywords: [tag1, tag2, tag3]canvas_format: <ppt169 | ...>+canvas_width: <pixels>+canvas_height: <pixels>+canvas_viewbox: "0 0 <width> <height>"+source_canvas_width: <pixels> # when a PPTX/SVG source canvas is known+source_canvas_height: <pixels>+source_viewbox: "0 0 <width> <height>"+replication_mode: standard | fidelity | mirrorpage_count: <N>primary_color: "<HEX>"---```-**Body sections** (full identity + full structure + middle)+**Body sections** (personality-only complete reference)| § | 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.+| II | Color Scheme | Identity |+| III | Typography | Identity; omit only when the shared default stack is used |+| IV | Signature Design Elements | Template-specific identity motifs and reusable structural grammar |+| V | Page Roster | Structure |+| VI | Assets | Identity/supporting assets; omit when none |+| VII | Placeholder Overrides | Structure vocabulary; omit when none |++Portable canvas fields, `page_count`, and the explicit SVG roster carry the+rest of the structure contract. General spacing, font-ratio, SVG, and+placeholder rules remain centralized and are not copied into each deck spec.+Deck still owns the complete identity + structure reference; omitted+conditional sections mean “shared default or no asset”, not “another kind owns+this segment”.---@@ -326,7 +347,7 @@ When a deck path is supplied, the user already has a complete solution; the Stra| Workflow | Produces ||---|---|| `workflows/create-brand.md` | identity-only brand workspace using the common routes; empty optional directories are omitted |-| `workflows/create-template.md` | complete layout or deck workspace. `standard` / `fidelity` author new semantic SVGs; mirror restores the source contract. Output scope is `library` by default (`templates/<kind>/<id>/` + registration) or `project` when confirmed (`projects/<name>/`, no registration). Both use the same optional-directory routing; preview PPTX is on demand. The internal kind branch still defaults to deck; explicit "structure only / drop the brand color" selects layout |+| `workflows/create-template.md` | complete layout or deck workspace. `standard` / `fidelity` author new semantic SVGs; mirror restores the source contract. Output scope is `library` by default (`templates/<kind>/<id>/` + registration) or `project` when confirmed (`projects/<name>/`, no registration). Both use the same optional-directory routing; preview PPTX is on demand for one Master and mandatory for multiple Masters. The internal kind branch still defaults to deck; explicit "structure only / drop the brand color" selects layout |In library scope, the frontmatter `kind` field determines which workspace parent is used under `templates/brands/` / `templates/layouts/` / `templates/decks/`. Project scope keeps the same kind semantics at the project workspace root. A complete workspace may migrate between scopes without reshaping; add or remove only the library index registration.diff --git a/docs/zh/templates-architecture.md b/docs/zh/templates-architecture.mdindex 12101959..9ab3d27e 100644--- a/docs/zh/templates-architecture.md+++ b/docs/zh/templates-architecture.md@@ -61,11 +61,11 @@ native_structure_mode: structured├── images/ # 可选;SVG 统一引用 ../images/<name>├── icons/│ └── imported/ # 可选;导入向量素材的唯一规范副本-└── exports/ # 可选;仅在按需生成审阅文件时创建+└── exports/ # 可选;用户要求审阅或多 Master 包需要证据时创建└── <id>_template_preview.pptx```-空的可选目录直接省略,不添加占位文件。按需生成的预览 PPTX 是派生审阅证据,不是模板源资产。Step 3 读取工作区根目录,只消费 `templates/` 及实际存在的 `images/`、`icons/`,不会复制或使用 `exports/`;全局库下的 `exports/` 统一由 Git 忽略。+空的可选目录直接省略,不添加占位文件。预览 PPTX 是派生审阅证据,不是模板源资产;单 Master 按需生成,多 Master 必须通过该 package gate。Step 3 读取工作区根目录,只消费 `templates/` 及实际存在的 `images/`、`icons/`,不会复制或使用 `exports/`;全局库下的 `exports/` 统一由 Git 忽略。导入向量统一使用 `data-icon="imported/<name>"`,唯一规范文件位于 `icons/imported/<name>.svg`。具备工作区感知的校验与导出会直接解析这个根目录路径;`templates/icons/` 不属于模板包结构。@@ -73,7 +73,7 @@ native_structure_mode: structured两种范围都在可移植 frontmatter 中保留 `kind: layout` 或 `kind: deck`。`output_scope` 与 `target_project` 只属于工作流简报,不写入 `design_spec.md`。-任何范围第一次写最终文件前,都必须解析工作区根目录、确认 `templates/` 为空,并检查全部计划写入的图片与图标文件名无冲突;只有明确要求预览导出时才检查预览 PPTX 目标。项目范围还必须确认目标项目已初始化。任一失败都在写入前停止,不合并、不覆盖。+任何范围第一次写最终文件前,都必须解析工作区根目录、确认 `templates/` 为空,并检查全部计划写入的图片与图标文件名无冲突;用户要求预览或已确认 roster 含多个 Master 时检查预览 PPTX 目标。项目范围还必须确认目标项目已初始化。任一失败都在写入前停止,不合并、不覆盖。### 三段的字段切分@@ -82,7 +82,7 @@ native_structure_mode: structured| 段 | 包含的章节 | 归属(覆盖优先级)||---|---|---|| **身份段** | Color Scheme / Typography / Logo / Voice & Tone / Icon Style | brand 覆盖 |-| **结构段** | Canvas Specification / Page Structure / Page Types / SVG Roster | layout 覆盖 |+| **结构段** | 可移植 canvas/page-type 元数据、结构归属的 Signature 规则、SVG Page Roster,以及 SVG Master/Layout/slot 合同 | layout 覆盖 || **中间段** | Template Overview(use cases / design intent / page rhythm 等叙事字段)| deck 独有;brand / layout 不写 |### 为什么需要 Deck 这一类@@ -131,25 +131,34 @@ primary_color: "<HEX>"---layout_id: <slug>kind: layout+category: general | scenario | government | specialnative_structure_mode: structuredsummary: <一句话描述用途>+keywords: [tag1, tag2, tag3]canvas_format: <ppt169 | ppt43 | a4 | ...>+canvas_width: <像素>+canvas_height: <像素>+canvas_viewbox: "0 0 <width> <height>"+source_canvas_width: <像素> # 已知 PPTX/SVG 来源画布时填写+source_canvas_height: <像素>+source_viewbox: "0 0 <width> <height>"+replication_mode: standard | fidelity | mirrorpage_count: <N>page_types: [<cover, toc, chapter, content, ending, ...>]---```-**正文章节**(结构段全集 + Template Overview)+**正文章节**(personality-only 的结构段)| 节 | 标题 | 必写字段 ||---|---|---|-| 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 哪一类 |+| IV | Signature Design Elements | 该 Layout 特有的网格、区域、图片行为、密度节奏、中性框架和 slot 约定 |+| V | Page Roster | 每个 SVG 文件、Layout key、picker name、适用内容与 slot 行为 |-**不允许出现**:品牌 logo、品牌 voice & tone、官方真值色(`provenance: fact`)——这些是 brand 的职责。Layout 自身没有兜底色/字体(这是定义:layout 不写身份段;色彩与字体在 策略师确认阶段现场决策)。+只有 Layout 改写规范占位词汇时才增加 `Placeholder Overrides`。frontmatter+`summary` 承担简短的选型语境;Layout 不写 deck 独有的 Template Overview。++**不允许出现**:Color Scheme、Typography、品牌 logo、品牌 voice & tone、Icon Style 或官方真值色(`provenance: fact`)。SVG 可以使用便于审阅的中性预览 paint,但它不属于身份段;色彩与字体由 策略师确认阶段或其他模板 kind 决定。### Deck schema@@ -159,30 +168,36 @@ page_types: [<cover, toc, chapter, content, ending, ...>]---deck_id: <slug>kind: deck+category: brand | general | scenario | government | specialnative_structure_mode: structuredsummary: <一句话描述用途>+keywords: [tag1, tag2, tag3]canvas_format: <ppt169 | ...>+canvas_width: <像素>+canvas_height: <像素>+canvas_viewbox: "0 0 <width> <height>"+source_canvas_width: <像素> # 已知 PPTX/SVG 来源画布时填写+source_canvas_height: <像素>+source_viewbox: "0 0 <width> <height>"+replication_mode: standard | fidelity | mirrorpage_count: <N>primary_color: "<HEX>"---```-**正文章节**(身份段全部 + 结构段全部 + 中间段)+**正文章节**(personality-only 的完整参考)| 节 | 标题 | 归属段 ||---|---|---|| 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 是身份段 + 结构段全字段的并集,无可选段。这样合成时段级替换粒度统一。+| II | Color Scheme | 身份段 |+| III | Typography | 身份段;只有使用共享默认字体栈时才省略 |+| IV | Signature Design Elements | 模板特有的身份图形与可复用结构语法 |+| V | Page Roster | 结构段 |+| VI | Assets | 身份/支撑资产;无资产时省略 |+| VII | Placeholder Overrides | 结构词汇;无覆盖时省略 |++可移植 canvas 字段、`page_count` 和显式 SVG roster 承载其余结构合同。通用间距、字号比例、SVG 和 placeholder 规则保持集中管理,不复制进每个 deck spec。Deck 仍拥有完整身份 + 结构;省略条件章节只表示“采用共享默认值或没有资产”,不表示该段改由其他 kind 所有。---@@ -324,7 +339,7 @@ Deck 路径下用户已经拿到完整方案,策略师确认阶段收窄到"| 工作流 | 产出 ||---|---|| `workflows/create-brand.md` | 使用统一路由的 identity-only brand 工作区;空的可选目录省略 |-| `workflows/create-template.md` | 完整 layout 或 deck 工作区。`standard` / `fidelity` 创作新语义 SVG,mirror 恢复来源合同。输出范围默认 `library`(`templates/<kind>/<id>/` + 注册),确认 `project` 时写 `projects/<name>/`(不注册)。两者使用相同的可选目录路由,预览 PPTX 按需生成;内部 kind 分支仍默认 deck,用户明说"只要结构 / 丢掉品牌色"时走 layout |+| `workflows/create-template.md` | 完整 layout 或 deck 工作区。`standard` / `fidelity` 创作新语义 SVG,mirror 恢复来源合同。输出范围默认 `library`(`templates/<kind>/<id>/` + 注册),确认 `project` 时写 `projects/<name>/`(不注册)。两者使用相同的可选目录路由;单 Master 预览 PPTX 按需生成,多 Master 必须生成并通过 package gate。内部 kind 分支仍默认 deck,用户明说"只要结构 / 丢掉品牌色"时走 layout |在全局库范围,frontmatter `kind` 字段决定工作区父目录位于 `templates/brands/` / `templates/layouts/` / `templates/decks/`。项目范围在项目工作区根目录保留同一 kind 语义。完整工作区可在两种范围之间迁移而不改形,只需增加或移除全局索引注册。diff --git a/skills/ppt-master/references/template-designer.md b/skills/ppt-master/references/template-designer.mdindex 74de146c..a07228eb 100644--- a/skills/ppt-master/references/template-designer.md+++ b/skills/ppt-master/references/template-designer.md@@ -17,7 +17,7 @@ Generate reusable page templates inside the complete workspace selected by `crea**Hard rule — scope is execution metadata**: Use `output_scope` and `target_project` to route files, but do not write either field into portable `design_spec.md` frontmatter. Do not create a new PPTX structure mode; deck/layout output declares `native_structure_mode: structured`.-**Workspace precondition**: The workflow has already resolved the selected root, confirmed an empty `<template_workspace>/templates/`, and checked collision-free destination filenames in `images/` and `icons/imported/`. Check `exports/` only when an on-demand review PPTX was requested. Optional directories may be absent until their first real file is written. Project scope additionally requires an initialized target project. Do not begin final writes before that all-at-once preflight passes.+**Workspace precondition**: The workflow has already resolved the selected root, confirmed an empty `<template_workspace>/templates/`, and checked collision-free destination filenames in `images/` and `icons/imported/`. Check `exports/` when review was requested or the confirmed roster contains multiple Masters. Optional directories may be absent until their first real file is written. Project scope additionally requires an initialized target project. Do not begin final writes before that all-at-once preflight passes.When the workflow provides a PPTX reference source, the effective input package comes from the unified `pptx_template_import.py` preparation workspace and becomes:@@ -161,7 +161,7 @@ When the brief sets `Replication mode: mirror`, restore the imported template ra### 1. Must Generate design_spec.md-**Scope rule — personality only.** A template `design_spec.md` describes **what makes this template recognizable**: brand colors, signature decorative motifs, page-by-page visual character, bundled assets. It does **not** restate generic constraints — those live in the canonical references and are already loaded by every downstream role:+**Scope rule — personality only.** A deck `design_spec.md` describes the identity and structure that make the complete template recognizable. A layout spec describes only its distinctive reusable structure. Neither restates generic constraints — those live in the canonical references and are already loaded by every downstream role:- General SVG required / forbidden / conditional interfaces → [`shared-standards.md`](shared-standards.md)- Generic layout pattern library, spacing bands, font-size ratio bands → [`templates/design_spec_reference.md`](../templates/design_spec_reference.md) (read by Strategist when authoring the **project** design_spec)@@ -170,15 +170,19 @@ When the brief sets `Replication mode: mirror`, restore the imported template raRe-declaring any of these in a template `design_spec.md` is noise — Strategist already has them in context, and duplication forces every relaxation to sweep N templates instead of one source. **If a rule is generic, omit it. If this template breaks a generic rule, write only the deviation.**-**Required skeleton:**+**Required skeleton by kind:**The frontmatter is portable across library and project scope. Do not add`output_scope` or `target_project`; those belong only to the workflow execution-brief.+brief. Use `deck_id` or `layout_id`; do not invent a generic `template_id`+field that the registrar cannot bind to its library kind.++**Deck**:```markdown----template_id: <id>+deck_id: <id>+kind: deckcategory: brand | general | scenario | government | specialsummary: <one-line tone & use case>keywords: [tag1, tag2, tag3]@@ -194,8 +198,9 @@ source_viewbox: "0 0 1280 720"replication_mode: standard | fidelity | mirror# Required for every deck/layout template. Source packages remain analysis-only.native_structure_mode: structured+page_count: <N># Optional — only when this template overrides canonical placeholder vocabulary.-# Omit only when the page truly exposes no replaceable content slots.+# Omit the map when canonical vocabulary is sufficient; use [] for an intentional zero-marker page.# placeholders:# 01_cover: ["{{TITLE}}", "{{SUBTITLE}}", "{{BRAND_LOGO}}"]# 03_content: ["{{KEY_MESSAGE}}", "{{CONTENT_AREA}}"]@@ -233,6 +238,52 @@ Logos, cover backgrounds, brand textures bundled with the template package — fReference the `placeholders:` frontmatter declaration and explain the rationale (e.g. "consulting decks lead with `{{KEY_MESSAGE}}` instead of `{{PAGE_TITLE}}`").```+**Layout**:++```markdown+---+layout_id: <id>+kind: layout+category: general | scenario | government | special+summary: <one-line structural use case>+keywords: [tag1, tag2, tag3]+canvas_format: ppt169+canvas_width: 1280+canvas_height: 720+canvas_viewbox: "0 0 1280 720"+# Required when a PPTX/SVG source canvas is known.+source_canvas_width: 1280+source_canvas_height: 720+source_viewbox: "0 0 1280 720"+replication_mode: standard | fidelity | mirror+native_structure_mode: structured+page_count: <N>+page_types: [cover, toc, chapter, content, ending]+# Optional vocabulary override.+# placeholders:+# 01_cover: ["{{TITLE}}", "{{SUBTITLE}}"]+---++# [Layout Name] — Design Specification++## IV. Signature Design Elements+- Structure-specific grid, zones, page chrome, image behavior, density rhythm, and slot conventions+- Neutral preview paint may expose hierarchy, but it is not a color or typography identity++## V. Page Roster+One row per emitted SVG with Layout key, picker name, intended content, and slot behavior. Roster entries must match the actual files on disk.++For `mirror`, append the same `### Source Restoration Map` required above.++## VII. Placeholder Overrides (omit when none)+Reference the `placeholders:` frontmatter declaration and explain the structural vocabulary deviation.+```++**Layout boundary**: Omit Template Overview, Color Scheme, Typography, Logo,+Voice & Tone, and Icon Style. The frontmatter `summary` carries concise+selection context; the deck-only Template Overview remains the middle segment+used during fusion.+Sections to **omit** from template `design_spec.md` (sourced elsewhere — listing them here is noise):| Don't write | Source |@@ -444,8 +495,8 @@ Standard mode (default):├── icons/ # Optional; omit when unused│ └── imported/│ └── *.svg # Canonical imported vectors, when used-└── exports/ # Optional; created only for on-demand review- └── <template_id>_template_preview.pptx+└── exports/ # Optional; requested review or required multi-Master evidence+ └── <deck_id|layout_id>_template_preview.pptx```Fidelity mode changes only the roster under `templates/`, e.g.:@@ -482,13 +533,13 @@ Mirror mode emits one SVG per source slide, named by source order:Filenames preserve the source slide order via the 3-digit prefix; `<page_type>` is derived from `manifest.json` `pageTypeCandidates`. Literal source text and the source native structure are restored by materializing the authoring IR; IR-only refs and its manifest are not copied into the template output.-**Hard rule — common routing**: Keep `design_spec.md`, template SVGs, and non-bitmap template-source assets in `templates/`; place every bitmap in `images/`; place each imported vector exactly once in `icons/imported/` and reference it as `data-icon="imported/<name>"`. Never create `templates/icons/`. Write a review deck to `exports/` only when explicitly requested. Create optional directories only when they contain real files; never add placeholders for empty directories. Do not branch asset placement by output scope.+**Hard rule — common routing**: Keep `design_spec.md`, template SVGs, and non-bitmap template-source assets in `templates/`; place every bitmap in `images/`; place each imported vector exactly once in `icons/imported/` and reference it as `data-icon="imported/<name>"`. Never create `templates/icons/`. Write a review deck to `exports/` when explicitly requested and always for a multi-Master package gate. Create optional directories only when they contain real files; never add placeholders for empty directories. Do not branch asset placement by output scope.### Template Preview-When the user requests a PowerPoint review file, run `template_preview_pptx.py <template_workspace>` after SVG validation. The command creates `exports/` on demand and verifies one slide per SVG prototype plus the expected Master/Layout counts. The first export refuses a collision; an intentional post-fix replacement uses `--force`. The review PPTX is derived evidence and never a template-application input.+When the user requests a PowerPoint review file or the validated roster declares multiple Masters, run `template_preview_pptx.py <template_workspace>` after SVG validation. The command creates `exports/` on demand and verifies one slide per SVG prototype plus the expected Master/Layout counts. The first export refuses a collision; an intentional post-fix replacement uses `--force`. The review PPTX is derived evidence and never a template-application input.-When a review deck was generated, include its path in the completion summary. Otherwise omit `exports/` from the workspace inventory.+When a review deck was generated, include its path in the completion summary. Omit `exports/` only for an unrequested one-Master package.If the template is based on PPTX import output, briefly note:- which extracted assets were reused directly@@ -541,5 +592,5 @@ templates/- [x] Authored `standard` / `fidelity` Layout keys are non-duplicative; mirror keeps distinct source Layout identities even when their current visible contracts are equivalent- [x] Template creation used the authoring IR; lossless expanded imports remained immutable payload backing for mirror materialization, while `standard` / `fidelity` used helper-generated compact canonical preset groups and `design_spec.md` paint- [x] Both scopes route bitmaps to `images/` and keep one canonical copy of every imported vector under `icons/imported/`-- [ ] **Next step**: Validate assets, optionally export a review PPTX, then register only library scope+- [ ] **Next step**: Validate assets, export review evidence when requested or required for multiple Masters, then register only library scope```diff --git a/skills/ppt-master/templates/README.md b/skills/ppt-master/templates/README.mdindex 40fd315a..1cea0406 100644--- a/skills/ppt-master/templates/README.md+++ b/skills/ppt-master/templates/README.md@@ -1,37 +1,64 @@# Template Resources-## Design Specification & Outline Reference--`design_spec_reference.md` is an all-in-one reference template for defining:-1. **Visual Specifications**: Canvas dimensions, color scheme, typography, layout principles-2. **Content Outline**: Slide-by-slide page structure planning-3. **Technical Constraints**: Hard requirements for SVG generation and PPT compatibility--[View Design Spec Reference](./design_spec_reference.md)--## Page Layout Templates--The `layouts/` directory contains pre-built page layout templates organized by design style:--- **General**: Versatile modern style, clean and flexible-- **Consultant**: Consulting style, professional and structured-- **Consultant Top**: Top-tier consulting style (MBB-level)-- **Academic Defense**: Academic defense style, research-oriented--- **Human browsing**: [layouts/README.md](./layouts/README.md)-- **Slim lookup (discovery only)**: [layouts/layouts_index.json](./layouts/layouts_index.json) — used to answer "what templates exist?". Step 3 triggers on an explicit directory path supplied by the user, not on names from this index.--Every brand/layout/deck package uses one workspace routing contract. Whether created under this library or under `projects/`, source files live in `templates/`, bitmaps in `images/`, imported vectors live once in `icons/imported/`, and on-demand review files live in `exports/`. Other icon-library namespaces remain under `icons/` only when explicitly adopted. Empty optional directories are omitted, so a normal checked-in workspace has no `exports/`. Library `exports/` directories are Git-ignored, and Step 3 never copies them. Existing flat packages remain readable; flat placement alone does not imply legacy Master/Layout metadata.--## Brand Identity Presets--The `brands/` directory holds brand-only templates: identity bundles (color / typography / logo / voice / icon style) without an SVG page roster. Brands follow the **same explicit-path trigger and workspace routing as layout templates** — at SKILL.md Step 3 the user supplies the workspace root; bare brand names never trigger. `templates/`, `images/`, and `icons/` map to their matching project peers. When supplied together, Step 3 fuses them into one `design_spec.md` (brand wins on identity tokens, layout wins on page structure) — see `SKILL.md` Step 3 for the precedence table.--A brand is structurally a layout template minus its page roster. Use a brand when the user wants identity locking with free page layout; use a layout template when fixed page structures are also required.--- **Human browsing**: [brands/README.md](./brands/README.md)-- **Discovery index (no trigger)**: [brands/brands_index.json](./brands/brands_index.json) — answers "what brands exist?"; Step 3 still requires an explicit directory path from the user-- **Creation workflow**: [`../workflows/create-brand.md`](../workflows/create-brand.md)+## Reusable template kinds++Brand, Layout, and Deck are independent template kinds, not stages of one+inheritance hierarchy.++| Kind | Owns | Does not own | Discovery index |+|---|---|---|---|+| [`brands/`](./brands/) | Identity: color, typography, logo, voice, icon style | Page structure or SVG roster | [`brands_index.json`](./brands/brands_index.json) |+| [`layouts/`](./layouts/) | Structure: canvas, Master/Layout graph, page types, slots, SVG roster | Brand identity | [`layouts_index.json`](./layouts/layouts_index.json) |+| [`decks/`](./decks/) | Complete identity + structure reference | — | [`decks_index.json`](./decks/decks_index.json) |++A brand is not “a layout minus its pages”: it owns a different segment. Use a+brand for identity with free page composition, a layout for fixed reusable+structure with downstream identity, and a deck for a coherent complete system.++The indexes are discovery aids only. Step 3 activates a template only from an+explicit workspace-root path supplied by the user.++## Orthogonal contracts++| Axis | Values | Meaning |+|---|---|---|+| Template kind | `brand` / `layout` / `deck` | Which design segments the package owns |+| Creation mode | `standard` / `fidelity` / `mirror` | Newly author a compact or broad roster, or restore a source graph |+| Downstream adherence | `strict` / `adaptive` | Preserve the selected Layout contract, or allow explicit new Layout identities |+| PPTX structure | `flat` / `structured` | Free-design/brand-only content stays Slide-local; layout/deck routes compile declared Masters and Layouts |++These axes must not be used as synonyms. In particular, a mirror-created deck+is still an ordinary reusable `deck` package after creation; it does not force+future presentations to keep the source page count or order.++## Workspace contract++Every package uses the same portable root under either this library or an+initialized project:++```text+<template_workspace>/+├── templates/ # design_spec.md and any SVG prototypes+├── images/ # optional bitmaps+├── icons/+│ └── imported/ # optional imported vectors, one canonical copy+└── exports/ # optional review evidence; never a template input+```++Empty optional directories are omitted. Template SVGs reference bitmaps through+`../images/<name>` and imported vectors through `data-icon="imported/<name>"`.+Step 3 consumes `templates/`, `images/`, and `icons/` and ignores `exports/`.+Compatible legacy-flat packages remain readable; directory shape alone does not+indicate legacy Master/Layout semantics.++## Design specification references++[`design_spec_reference.md`](./design_spec_reference.md) is the project-level+Strategist reference for the generated presentation's full specification and+content outline. Reusable template `design_spec.md` files are deliberately+smaller: they contain portable metadata and only the personality or structure+that distinguishes that package. General SVG/PPT rules remain centralized in+[`shared-standards.md`](../references/shared-standards.md).## Visualization Templates@@ -66,4 +93,4 @@ The `icons/` directory contains 11,600+ vector icons across five libraries:| `simple-icons` | brand logos (company / product marks) | 3400+ |- **Usage & style rules**: [icons/README.md](./icons/README.md)-- **Search icons**: `ls skills/ppt-master/templates/icons/<library>/ | grep <keyword>`+- **Search icons**: `rg --files skills/ppt-master/templates/icons/<library>/ | rg <keyword>`diff --git a/skills/ppt-master/templates/decks/README.md b/skills/ppt-master/templates/decks/README.mdindex f44fb20c..8cea4505 100644--- a/skills/ppt-master/templates/decks/README.md+++ b/skills/ppt-master/templates/decks/README.md@@ -1,106 +1,116 @@# Deck Templates-**Deck = full identity + structure reference.** 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 coherent authored system.--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).+**Deck = a complete reusable template bundle.** It owns both presentation+identity and reusable page structure. A deck template is not a finished content+deck, and `kind: deck` does not mean “mirror the source PPT”. Its construction+mode decides whether the system is newly authored or restored.++| Axis | Deck behavior |+|---|---|+| Template kind | `deck`: identity + structure + deck-specific overview |+| Creation mode | `standard` / `fidelity` author a new system; `mirror` restores the source graph |+| Downstream adherence | Strategist selects `strict` or `adaptive` when the package is used |+| PPTX structure | Always `structured`; `flat` is reserved for free design and brand-only routes |++The discovery source of truth is [`decks_index.json`](./decks_index.json)+(`deck_id → { summary, canvas_format, page_count, primary_color }`). This README+defines the kind and intentionally does not enumerate installed decks. See+[`docs/zh/templates-architecture.md`](../../../../docs/zh/templates-architecture.md)+for the complete data model.----## Trigger rule+## Trigger and fusion-Deck selection is **opt-in by explicit path**. The main workflow defaults to free design. For a current package, the user supplies the explicit workspace root (for example, `skills/ppt-master/templates/decks/<deck_id>/`), not its inner `templates/` directory. A legacy-flat deck root containing `design_spec.md` remains a compatible input. Bare names do not trigger. See [`SKILL.md`](../../SKILL.md) Step 3.+Selection is opt-in through an explicit workspace-root path such as+`skills/ppt-master/templates/decks/<deck_id>/`. Supplying a bare ID or reading+the discovery index does not trigger template use. Current packages resolve+`templates/design_spec.md`; a compatible legacy-flat root may resolve+`design_spec.md` directly. 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.+A deck path alone supplies the complete reference. When combined with a brand+or layout path, brand replaces the identity segment and layout replaces the+structure segment; the deck remains the source of deck-specific overview+context. Fusion never changes the package's stored SVGs in place.----## design_spec.md schema+## `design_spec.md` contract-Decks carry the full set of segments (identity + structure + middle). Minimum schema:+The spec stores portable metadata plus template-specific personality. It does+not repeat generic SVG rules, spacing libraries, font-ratio bands, or the+canonical placeholder table.```markdown---deck_id: <slug>kind: deck-summary: <one-line use cases>-canvas_format: ppt169-page_count: 5+category: brand | general | scenario | government | special+summary: <one-line use case and tone>primary_color: "#XXXXXX"+canvas_format: ppt169+canvas_width: 1280+canvas_height: 720+canvas_viewbox: "0 0 1280 720"+replication_mode: standard | fidelity | mirror+native_structure_mode: structured+page_count: <N>----# [Brand / Organization Name] - Design Specification+# [Template 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+## I. Template Overview+## II. Color Scheme+## III. Typography # omit only when the shared default is used+## IV. Signature Design Elements+## V. Page Roster+## VI. Assets # omit when none+## VII. Placeholder Overrides # omit when none```-Decks may include additional supporting sections (Voice & Tone, Icon Style, Layout Modes, Spacing Specification, Placeholder Specification, Asset Specification, Usage Notes). Put a template-specific required / forbidden / conditional boundary inside the personality section it qualifies. General SVG/PPT authoring rules belong only in [`shared-standards.md`](../../references/shared-standards.md); do not add a generic technical-rules section or pointer to a deck spec.+`Page Roster` must list every SVG and its declared Master/Layout identity.+Every additional authored Master represents a distinct reusable design family,+not one Layout or an organizational duplicate.----## Fusion behavior at Step 3+## Structured SVG contract-When the user gives a deck path **alone**, Strategist locks all segments; Strategist confirmation stage narrows to deck-content fields (target audience / page count / outline / tone tweaks).+Every SVG is a complete preview and declares one root Master and Layout.+Master/Layout fixed visuals are direct atoms. Reusable content regions are+top-level slot groups with positive bounds and exactly one compatible carrier;+zero-slot Layouts are valid. `{{...}}` is the authoring vocabulary, while+`data-pptx-placeholder*` is the native reconstruction contract.-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.+`standard` and `fidelity` author new SVGs and a new Master/Layout/slot system.+`mirror` preserves source identities, parentage, assignments, placeholder+facts, and supported visuals without semantic synthesis. Legacy semantic+contracts must run+[`restore-pptx-structure`](../../workflows/restore-pptx-structure.md); a flat+directory shape alone is not a legacy signal.----## Standard workspace contract--New deck creation uses the same portable workspace routing in both output scopes:+## Workspace and creation```text<template_workspace>/-├── templates/-│ ├── design_spec.md-│ ├── 01_cover.svg-│ ├── 02_toc.svg # optional; without it: 02_chapter, 03_content, 04_ending-│ ├── 03_chapter.svg-│ ├── 04_content.svg-│ └── 05_ending.svg-├── images/ # Optional; omit when unused-├── icons/ # Optional; omit when unused-│ └── imported/ # Canonical imported vectors-└── exports/ # Optional, on-demand review output; Git-ignored+├── templates/ # design_spec.md + SVG prototypes+├── images/ # optional bitmaps; SVG href is ../images/<name>+├── icons/+│ └── imported/ # optional canonical imported vectors+└── exports/ # review evidence; ignored during template use└── <deck_id>_template_preview.pptx```-| Scope | `<template_workspace>` | Difference |-|---|---|---|-| Library | `skills/ppt-master/templates/decks/<deck_id>/` | Register in `decks_index.json` |-| Project | `projects/<project_name>/` | Do not register globally |--Bitmaps belong in `images/`; imported vectors have one canonical copy in `icons/imported/` and use `data-icon="imported/<name>"`; template sources belong in `templates/`, which never contains an icon duplicate. Omit empty optional directories instead of adding placeholder files. Generate a preview PPTX only when local PowerPoint review is requested; it is derived output, library `exports/` is Git-ignored, and template application never copies it.--`standard` and `fidelity` author new SVG documents and a new Master/Layout/slot contract. `mirror` restores the source roster, Master/Layout identities and parentage, placeholder facts, and supported visuals without semantic synthesis. Fixed Master/Layout group wrappers are mechanically expanded into direct atoms because structural layers cannot be `<g>`; this normalization must preserve ownership, paint order, and appearance.--**Legacy compatibility**: Existing flat packages with `design_spec.md` and SVGs at their root remain readable. Flat placement alone does not trigger [`restore-pptx-structure`](../../workflows/restore-pptx-structure.md); restoration is required only when SVG Master/Layout/slot metadata is absent or legacy. New `create-template` outputs always use the workspace contract above.-------## Creating a new deck--1. Run [`workflows/create-template.md`](../../workflows/create-template.md) (default kind is `deck`)-2. Choose the workspace root: library `skills/ppt-master/templates/decks/<id>/` or project `projects/<name>/`-3. Validate: `python3 skills/ppt-master/scripts/svg_quality_checker.py "<template_workspace>/templates" --template-mode --format ppt169`-4. Optional — when PowerPoint review is requested, export the review deck: `python3 skills/ppt-master/scripts/template_preview_pptx.py "<template_workspace>"`-5. For library scope only, 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.-----+Library scope writes `skills/ppt-master/templates/decks/<deck_id>/` and updates+the index. Project scope uses an initialized `projects/<name>/` workspace and+does not register globally. Empty optional directories are omitted.-## See also+1. Run [`workflows/create-template.md`](../../workflows/create-template.md).+2. Validate with `svg_quality_checker.py --template-mode`.+3. Run `template_preview_pptx.py` when review is requested and always when the roster declares multiple Masters.+4. In library scope, register with `register_template.py <id> --kind deck`.-- [`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 rules+See also [`layouts/`](../layouts/) for structure-only packages and+[`brands/`](../brands/) for identity-only packages.diff --git "a/skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\344\277\241/templates/01_cover.svg" "b/skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\344\277\241/templates/01_cover.svg"index b14fdaa1..72b3f821 100644--- "a/skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\344\277\241/templates/01_cover.svg"+++ "b/skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\344\277\241/templates/01_cover.svg"@@ -1,5 +1,5 @@<?xml version="1.0" encoding="UTF-8"?>-<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"+<svg xmlns="http://www.w3.org/2000/svg"width="1280" height="720" viewBox="0 0 1280 720"data-pptx-master="china_telecom_brand_master" data-pptx-master-name="China Telecom Brand"data-pptx-layout="cover" data-pptx-layout-name="Cover">@@ -8,7 +8,7 @@<rect id="brand-master-top-rule" x="0" y="0" width="1280" height="8" fill="#C00000"data-pptx-layer="master" data-pptx-editable="false"/><image id="brand-master-footer-ribbon" x="0" y="554" width="1280" height="166"- xlink:href="../images/footer_ribbon.png" preserveAspectRatio="xMidYMid slice"+ href="../images/footer_ribbon.png" preserveAspectRatio="xMidYMid slice"data-pptx-layer="master" data-pptx-editable="false"/><text id="brand-master-footer-label" x="72" y="650" fill="#FFFFFF"font-family="Arial, Microsoft YaHei, sans-serif" font-size="14"@@ -16,7 +16,7 @@<rect id="cover-title-accent" x="72" y="118" width="6" height="316" rx="3" fill="#C00000"data-pptx-layer="layout" data-pptx-editable="false"/>- <image id="cover-logo" x="72" y="34" width="214" height="58" xlink:href="../images/logo.png"+ <image id="cover-logo" x="72" y="34" width="214" height="58" href="../images/logo.png"preserveAspectRatio="xMinYMid meet" data-pptx-layer="layout" data-pptx-editable="false"/><rect id="cover-brand-card" x="820" y="136" width="388" height="318" rx="28"fill="#F8FAFC" stroke="#E5E7EB" stroke-width="2"@@ -24,10 +24,10 @@<rect id="cover-brand-card-accent" x="858" y="188" width="110" height="4" rx="2" fill="#C00000"data-pptx-layer="layout" data-pptx-editable="false"/><image id="cover-slogan" x="862" y="236" width="292" height="102"- xlink:href="../images/slogan_red.png" preserveAspectRatio="xMidYMid meet"+ href="../images/slogan_red.png" preserveAspectRatio="xMidYMid meet"data-pptx-layer="layout" data-pptx-editable="false"/><image id="cover-skyline" x="848" y="350" width="324" height="92"- xlink:href="../images/skyline_bg.png" preserveAspectRatio="xMidYMid meet"+ href="../images/skyline_bg.png" preserveAspectRatio="xMidYMid meet"data-pptx-layer="layout" data-pptx-editable="false"/><rect id="cover-title-rule" x="108" y="288" width="144" height="6" rx="3" fill="#C00000"data-pptx-layer="layout" data-pptx-editable="false"/>diff --git "a/skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\344\277\241/templates/02_toc.svg" "b/skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\344\277\241/templates/02_toc.svg"index 4f2decfb..a237ff77 100644--- "a/skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\344\277\241/templates/02_toc.svg"+++ "b/skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\344\277\241/templates/02_toc.svg"@@ -1,5 +1,5 @@<?xml version="1.0" encoding="UTF-8"?>-<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"+<svg xmlns="http://www.w3.org/2000/svg"width="1280" height="720" viewBox="0 0 1280 720"data-pptx-master="china_telecom_content_master" data-pptx-master-name="China Telecom Content"data-pptx-layout="agenda" data-pptx-layout-name="Agenda">@@ -12,7 +12,7 @@<rect id="content-master-gray-lane" x="206" y="39" width="1074" height="50" rx="22" fill="#D9D9D9"data-pptx-layer="master" data-pptx-editable="false"/><image id="content-master-header-brand" x="1000" y="38" width="208" height="48"- xlink:href="../images/header_brand.png" preserveAspectRatio="xMaxYMid meet"+ href="../images/header_brand.png" preserveAspectRatio="xMaxYMid meet"data-pptx-layer="master" data-pptx-editable="false"/><line id="content-master-footer-rule" x1="72" y1="650" x2="1208" y2="650" stroke="#D1D5DB"stroke-width="1" data-pptx-layer="master" data-pptx-editable="false"/>@@ -30,7 +30,7 @@<rect id="agenda-side-rule" x="102" y="242" width="176" height="4" rx="2" fill="#C00000"data-pptx-layer="layout" data-pptx-editable="false"/><image id="agenda-side-skyline" x="94" y="286" width="220" height="92"- xlink:href="../images/skyline_bg.png" preserveAspectRatio="xMidYMid meet"+ href="../images/skyline_bg.png" preserveAspectRatio="xMidYMid meet"data-pptx-layer="layout" data-pptx-editable="false"/><text id="agenda-side-use" x="102" y="430" fill="#6B7280"font-family="Microsoft YaHei, PingFang SC, Arial, sans-serif" font-size="13"diff --git "a/skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\344\277\241/templates/03_chapter.svg" "b/skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\344\277\241/templates/03_chapter.svg"index 33e8f100..3937e9cd 100644--- "a/skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\344\277\241/templates/03_chapter.svg"+++ "b/skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\344\277\241/templates/03_chapter.svg"@@ -1,5 +1,5 @@<?xml version="1.0" encoding="UTF-8"?>-<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"+<svg xmlns="http://www.w3.org/2000/svg"width="1280" height="720" viewBox="0 0 1280 720"data-pptx-master="china_telecom_brand_master" data-pptx-master-name="China Telecom Brand"data-pptx-layout="section" data-pptx-layout-name="Section Header">@@ -8,7 +8,7 @@<rect id="brand-master-top-rule" x="0" y="0" width="1280" height="8" fill="#C00000"data-pptx-layer="master" data-pptx-editable="false"/><image id="brand-master-footer-ribbon" x="0" y="554" width="1280" height="166"- xlink:href="../images/footer_ribbon.png" preserveAspectRatio="xMidYMid slice"+ href="../images/footer_ribbon.png" preserveAspectRatio="xMidYMid slice"data-pptx-layer="master" data-pptx-editable="false"/><text id="brand-master-footer-label" x="72" y="650" fill="#FFFFFF"font-family="Arial, Microsoft YaHei, sans-serif" font-size="14"@@ -16,7 +16,7 @@<rect id="section-top-accent" x="72" y="84" width="112" height="8" rx="4" fill="#C00000"data-pptx-layer="layout" data-pptx-editable="false"/>- <image id="section-logo" x="1016" y="44" width="192" height="52" xlink:href="../images/logo.png"+ <image id="section-logo" x="1016" y="44" width="192" height="52" href="../images/logo.png"preserveAspectRatio="xMaxYMid meet" data-pptx-layer="layout" data-pptx-editable="false"/><rect id="section-title-rule" x="96" y="398" width="164" height="6" rx="3" fill="#C00000"data-pptx-layer="layout" data-pptx-editable="false"/>@@ -34,10 +34,10 @@<rect id="section-visual-accent" x="888" y="186" width="132" height="4" rx="2" fill="#C00000"data-pptx-layer="layout" data-pptx-editable="false"/><image id="section-slogan" x="884" y="236" width="284" height="96"- xlink:href="../images/slogan_red.png" preserveAspectRatio="xMidYMid meet"+ href="../images/slogan_red.png" preserveAspectRatio="xMidYMid meet"data-pptx-layer="layout" data-pptx-editable="false"/><image id="section-skyline" x="876" y="348" width="300" height="92"- xlink:href="../images/skyline_bg.png" preserveAspectRatio="xMidYMid meet"+ href="../images/skyline_bg.png" preserveAspectRatio="xMidYMid meet"data-pptx-layer="layout" data-pptx-editable="false"/><g id="section-number-slot" data-pptx-placeholder="body" data-pptx-placeholder-idx="1"data-pptx-placeholder-bounds="96 148 300 116">diff --git "a/skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\344\277\241/templates/04_content.svg" "b/skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\344\277\241/templates/04_content.svg"index 3452b942..6e68c1c1 100644--- "a/skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\344\277\241/templates/04_content.svg"+++ "b/skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\344\277\241/templates/04_content.svg"@@ -1,5 +1,5 @@<?xml version="1.0" encoding="UTF-8"?>-<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"+<svg xmlns="http://www.w3.org/2000/svg"width="1280" height="720" viewBox="0 0 1280 720"data-pptx-master="china_telecom_content_master" data-pptx-master-name="China Telecom Content"data-pptx-layout="content" data-pptx-layout-name="Title and Content">@@ -12,7 +12,7 @@<rect id="content-master-gray-lane" x="206" y="39" width="1074" height="50" rx="22" fill="#D9D9D9"data-pptx-layer="master" data-pptx-editable="false"/><image id="content-master-header-brand" x="1000" y="38" width="208" height="48"- xlink:href="../images/header_brand.png" preserveAspectRatio="xMaxYMid meet"+ href="../images/header_brand.png" preserveAspectRatio="xMaxYMid meet"data-pptx-layer="master" data-pptx-editable="false"/><line id="content-master-footer-rule" x1="72" y1="650" x2="1208" y2="650" stroke="#D1D5DB"stroke-width="1" data-pptx-layer="master" data-pptx-editable="false"/>diff --git "a/skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\344\277\241/templates/05_ending.svg" "b/skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\344\277\241/templates/05_ending.svg"index 424645fd..6bdc5cf9 100644--- "a/skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\344\277\241/templates/05_ending.svg"+++ "b/skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\344\277\241/templates/05_ending.svg"@@ -1,5 +1,5 @@<?xml version="1.0" encoding="UTF-8"?>-<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"+<svg xmlns="http://www.w3.org/2000/svg"width="1280" height="720" viewBox="0 0 1280 720"data-pptx-master="china_telecom_brand_master" data-pptx-master-name="China Telecom Brand"data-pptx-layout="closing" data-pptx-layout-name="Closing">@@ -8,13 +8,13 @@<rect id="brand-master-top-rule" x="0" y="0" width="1280" height="8" fill="#C00000"data-pptx-layer="master" data-pptx-editable="false"/><image id="brand-master-footer-ribbon" x="0" y="554" width="1280" height="166"- xlink:href="../images/footer_ribbon.png" preserveAspectRatio="xMidYMid slice"+ href="../images/footer_ribbon.png" preserveAspectRatio="xMidYMid slice"data-pptx-layer="master" data-pptx-editable="false"/><text id="brand-master-footer-label" x="72" y="650" fill="#FFFFFF"font-family="Arial, Microsoft YaHei, sans-serif" font-size="14"data-pptx-layer="master" data-pptx-editable="false">CHINA TELECOM</text>- <image id="closing-logo" x="72" y="34" width="214" height="58" xlink:href="../images/logo.png"+ <image id="closing-logo" x="72" y="34" width="214" height="58" href="../images/logo.png"preserveAspectRatio="xMinYMid meet" data-pptx-layer="layout" data-pptx-editable="false"/><rect id="closing-title-rule" x="96" y="352" width="192" height="6" rx="3" fill="#C00000"data-pptx-layer="layout" data-pptx-editable="false"/>@@ -24,10 +24,10 @@<rect id="closing-brand-accent" x="874" y="204" width="88" height="4" rx="2" fill="#C00000"data-pptx-layer="layout" data-pptx-editable="false"/><image id="closing-slogan" x="888" y="242" width="268" height="92"- xlink:href="../images/slogan_red.png" preserveAspectRatio="xMidYMid meet"+ href="../images/slogan_red.png" preserveAspectRatio="xMidYMid meet"data-pptx-layer="layout" data-pptx-editable="false"/><image id="closing-skyline" x="872" y="344" width="304" height="84"- xlink:href="../images/skyline_bg.png" preserveAspectRatio="xMidYMid meet"+ href="../images/skyline_bg.png" preserveAspectRatio="xMidYMid meet"data-pptx-layer="layout" data-pptx-editable="false"/><g id="closing-title-slot" data-pptx-placeholder="title"data-pptx-placeholder-bounds="96 226 620 72">diff --git "a/skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\344\277\241/templates/design_spec.md" "b/skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\344\277\241/templates/design_spec.md"index 161ce613..10d8a960 100644--- "a/skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\344\277\241/templates/design_spec.md"+++ "b/skills/ppt-master/templates/decks/\344\270\255\345\233\275\347\224\265\344\277\241/templates/design_spec.md"@@ -23,7 +23,7 @@ page_count: 5- 适用于政企数字化方案、转型规划、内部评审和客户汇报。- 视觉基调为白底、通信红结构条、银灰内容承载区与少量城市线稿,强调权威、清晰和克制。-- 整套模板使用 China Telecom Brand 与 China Telecom Content 两个 Master,并提供五个可直接从 PowerPoint 布局库调用的 Layout。+- 结构上分为两个可复用 Master 家族:China Telecom Brand 服务封面、章节与收尾,China Telecom Content 服务目录与正文;它们按视觉体系分工,不是按单个 Layout 拆分出的重复 Master。## II. Color Scheme@@ -36,23 +36,32 @@ page_count: 5| Muted gray | #6B7280 | 辅助说明与页脚 || White | #FFFFFF | Master 背景与反白文字 |+## III. Typography++| Role | Font stack | Application |+| --- | --- | --- |+| Chinese title and body | `"Microsoft YaHei", "PingFang SC", Arial, sans-serif` | 标题、正文、目录项与中文品牌说明 |+| Latin label and folio | `Arial, "Microsoft YaHei", sans-serif` | 英文标识、日期与页码 |++字体栈仅使用常见系统字体;Windows 优先微软雅黑,macOS 可回退苹方,不依赖额外字体安装。+## IV. Signature Design Elements- 内容页和目录页使用“红色胶囊 + 银灰长带”的页眉结构,右侧保留横向品牌图形。- 封面、章节页和结束页复用红色口号、城市线稿与底部红色飘带,但控制在独立品牌卡片中。- China Telecom Brand Master 统一承载白底、顶部红线、底部品牌飘带与英文标识;China Telecom Content Master 统一承载红灰页眉、横向品牌标识和页脚分隔线。-- 内容承载区采用浅灰圆角面板;实际内容由完整 object 占位框承载,不显示提示性虚线。+- 内容承载区采用浅灰圆角面板;实际内容由边界完整的 `object` slot(PowerPoint 内容占位区域)承载,不显示提示性虚线。- 标题与通用内容保持左对齐;只在品牌图形内部使用居中构图。## V. Page Roster| File | Master | Layout key | PowerPoint picker name | Visual character | Reusable slots || --- | --- | --- | --- | --- | --- |-| (01_cover.svg) | China Telecom Brand | cover | Cover | 左侧标题簇、右侧品牌卡片、底部飘带 | 标题、副标题、单位、日期 |-| (02_toc.svg) | China Telecom Content | agenda | Agenda | 左侧品牌说明卡、右侧四行编号目录 | 页面标题、四个目录项、页码 |-| (03_chapter.svg) | China Telecom Brand | section | Section Header | 左侧章节信息、右侧品牌卡片、底部飘带 | 章节号、章节标题、章节副标题 |-| (04_content.svg) | China Telecom Content | content | Title and Content | 红灰页眉与大面积浅灰开放内容区 | 栏目标、页面标题、内容对象、来源、页码 |-| (05_ending.svg) | China Telecom Brand | closing | Closing | 左侧结束语、右侧品牌卡片、底部飘带 | 结束标题、副标题、联系信息、页码 |+| `01_cover.svg` | China Telecom Brand | cover | Cover | 左侧标题簇、右侧品牌卡片、底部飘带 | 标题、副标题、单位、日期 |+| `02_toc.svg` | China Telecom Content | agenda | Agenda | 左侧品牌说明卡、右侧四行编号目录 | 页面标题、四个目录项、页码 |+| `03_chapter.svg` | China Telecom Brand | section | Section Header | 左侧章节信息、右侧品牌卡片、底部飘带 | 章节号、章节标题、章节副标题 |+| `04_content.svg` | China Telecom Content | content | Title and Content | 红灰页眉与大面积浅灰开放内容区 | 栏目标、页面标题、内容对象、来源、页码 |+| `05_ending.svg` | China Telecom Brand | closing | Closing | 左侧结束语、右侧品牌卡片、底部飘带 | 结束标题、副标题、联系信息、页码 |## VI. Assetsdiff --git "a/skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224/templates/01_cover.svg" "b/skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224/templates/01_cover.svg"index ed46cb16..01672e8b 100644--- "a/skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224/templates/01_cover.svg"+++ "b/skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224/templates/01_cover.svg"@@ -1,5 +1,5 @@<?xml version="1.0" encoding="UTF-8"?>-<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"+<svg xmlns="http://www.w3.org/2000/svg"width="1280" height="720" viewBox="0 0 1280 720"data-pptx-master="catarc_dark_master" data-pptx-master-name="CATARC Dark"data-pptx-layout="cover" data-pptx-layout-name="Cover">@@ -11,7 +11,7 @@data-pptx-layer="master" data-pptx-editable="false"/><image id="cover-logo" x="344" y="92" width="592" height="238"- xlink:href="../images/大型 logo.png" preserveAspectRatio="xMidYMid meet"+ href="../images/大型 logo.png" preserveAspectRatio="xMidYMid meet"data-pptx-layer="layout" data-pptx-editable="false"/><line id="cover-separator" x1="440" y1="542" x2="840" y2="542" stroke="#FFFFFF"stroke-width="1" stroke-opacity="0.4" data-pptx-layer="layout" data-pptx-editable="false"/>diff --git "a/skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224/templates/02_toc.svg" "b/skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224/templates/02_toc.svg"index 67d9f5a7..0723d4c7 100644--- "a/skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224/templates/02_toc.svg"+++ "b/skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224/templates/02_toc.svg"@@ -1,5 +1,5 @@<?xml version="1.0" encoding="UTF-8"?>-<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"+<svg xmlns="http://www.w3.org/2000/svg"width="1280" height="720" viewBox="0 0 1280 720"data-pptx-master="catarc_light_master" data-pptx-master-name="CATARC Light"data-pptx-layout="agenda" data-pptx-layout-name="Agenda">@@ -10,7 +10,7 @@<rect id="light-master-number-block" x="60" y="30" width="50" height="50" fill="#004098"data-pptx-layer="master" data-pptx-editable="false"/><image id="light-master-logo" x="1107" y="30" width="113" height="50"- xlink:href="../images/右上角 logo.png" preserveAspectRatio="xMidYMid meet"+ href="../images/右上角 logo.png" preserveAspectRatio="xMidYMid meet"data-pptx-layer="master" data-pptx-editable="false"/><line id="light-master-header-rule" x1="60" y1="95" x2="1220" y2="95" stroke="#E0E0E0"stroke-width="1" data-pptx-layer="master" data-pptx-editable="false"/>diff --git "a/skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224/templates/04_content.svg" "b/skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224/templates/04_content.svg"index 51e8c45a..d14eaacd 100644--- "a/skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224/templates/04_content.svg"+++ "b/skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224/templates/04_content.svg"@@ -1,5 +1,5 @@<?xml version="1.0" encoding="UTF-8"?>-<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"+<svg xmlns="http://www.w3.org/2000/svg"width="1280" height="720" viewBox="0 0 1280 720"data-pptx-master="catarc_light_master" data-pptx-master-name="CATARC Light"data-pptx-layout="content" data-pptx-layout-name="Title and Content">@@ -10,7 +10,7 @@<rect id="light-master-number-block" x="60" y="30" width="50" height="50" fill="#004098"data-pptx-layer="master" data-pptx-editable="false"/><image id="light-master-logo" x="1107" y="30" width="113" height="50"- xlink:href="../images/右上角 logo.png" preserveAspectRatio="xMidYMid meet"+ href="../images/右上角 logo.png" preserveAspectRatio="xMidYMid meet"data-pptx-layer="master" data-pptx-editable="false"/><line id="light-master-header-rule" x1="60" y1="95" x2="1220" y2="95" stroke="#E0E0E0"stroke-width="1" data-pptx-layer="master" data-pptx-editable="false"/>diff --git "a/skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224/templates/05_ending.svg" "b/skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224/templates/05_ending.svg"index a70dd7fa..f84b09b2 100644--- "a/skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224/templates/05_ending.svg"+++ "b/skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224/templates/05_ending.svg"@@ -1,5 +1,5 @@<?xml version="1.0" encoding="UTF-8"?>-<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"+<svg xmlns="http://www.w3.org/2000/svg"width="1280" height="720" viewBox="0 0 1280 720"data-pptx-master="catarc_dark_master" data-pptx-master-name="CATARC Dark"data-pptx-layout="closing" data-pptx-layout-name="Closing">@@ -35,7 +35,7 @@stroke="#FFFFFF" stroke-width="1" stroke-opacity="0.05"data-pptx-layer="layout" data-pptx-editable="false"/><image id="closing-logo" x="344" y="108" width="592" height="238"- xlink:href="../images/大型 logo.png" preserveAspectRatio="xMidYMid meet"+ href="../images/大型 logo.png" preserveAspectRatio="xMidYMid meet"data-pptx-layer="layout" data-pptx-editable="false"/><line id="closing-separator" x1="540" y1="548" x2="740" y2="548" stroke="#FFFFFF"stroke-width="1" stroke-opacity="0.35" data-pptx-layer="layout" data-pptx-editable="false"/>diff --git "a/skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224/templates/design_spec.md" "b/skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224/templates/design_spec.md"index a1c5c851..09081da3 100644--- "a/skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224/templates/design_spec.md"+++ "b/skills/ppt-master/templates/decks/\344\270\255\346\261\275\347\240\224/templates/design_spec.md"@@ -23,7 +23,7 @@ page_count: 5- 适用于产品认证展示、评测汇报、技术推广和业务来访。- 视觉以中汽研深蓝、白底内容页、方形章节编号和简洁网格为识别核心,强调专业、可信和工程秩序。-- 整套模板使用 CATARC Dark 与 CATARC Light 两个 Master,并提供五个可直接从 PowerPoint 布局库调用的 Layout。+- 结构上分为两个可复用 Master 家族:CATARC Dark 服务封面、章节与收尾,CATARC Light 服务目录与正文;它们按深浅视觉体系分工,不是按单个 Layout 拆分出的重复 Master。## II. Color Scheme@@ -36,23 +36,32 @@ page_count: 5| Primary text | #333333 | 内容页标题和正文 || White | #FFFFFF | 深色页面文字与 Master 背景 |+## III. Typography++| Role | Font stack | Application |+| --- | --- | --- |+| Chinese title and body | `"Microsoft YaHei", "PingFang SC", Arial, sans-serif` | 标题、正文、目录项与联系信息 |+| Latin label and folio | `Arial, "Microsoft YaHei", sans-serif` | 英文机构名、编号、页码与短标签 |++字体栈仅使用常见系统字体;Windows 优先微软雅黑,macOS 可回退苹方,不依赖额外字体安装。+## IV. Signature Design Elements- 白底内容页使用“蓝色方形章节号 + 左对齐标题 + 右上角 Logo”的稳定页眉。- 封面、章节页和结束页保留深蓝底、低透明度圆形与细网格,但删除无内容价值的复杂渐变和动态图片依赖。- CATARC Dark Master 统一承载深蓝背景和上下结构线;章节页与结束页各自保留原稿中的圆形几何,封面不继承圆形。CATARC Light Master 统一承载白底、章节号方块、页眉 Logo、分隔线和底部蓝线。-- 目录页延续数字与双竖线的行式导航,并保留右侧独立数据对象区。-- 通用内容对象从框体左上角开始;封面、章节页、结束页以及小型章节号属于短焦点内容,允许在完整占位框中居中。+- 目录页延续数字与双竖线的行式导航,并保留右侧独立 `object` slot。+- 通用内容 carrier 从 slot bounds 左上角开始;封面、章节页、结束页以及小型章节号属于短焦点内容,允许在完整 bounds 内居中。## V. Page Roster| File | Master | Layout key | PowerPoint picker name | Visual character | Reusable slots || --- | --- | --- | --- | --- | --- |-| (01_cover.svg) | CATARC Dark | cover | Cover | 深蓝背景、居中大型 Logo 与标题簇 | 标题、副标题、单位、英文单位 |-| (02_toc.svg) | CATARC Light | agenda | Agenda | 数字双竖线目录、右侧数据面板 | 页面标题、五个目录项、数据对象、页码 |-| (03_chapter.svg) | CATARC Dark | section | Section Header | 深蓝章节页、居中章节号和标题 | 章节号、章节标题、章节副标题 |-| (04_content.svg) | CATARC Light | content | Title and Content | 方形章节号页眉与开放内容面板 | 章节号、页面标题、内容对象、页码 |-| (05_ending.svg) | CATARC Dark | closing | Closing | 深蓝网格背景、居中 Logo 与结束语 | 结束标题、英文副标题、联系信息、页脚 |+| `01_cover.svg` | CATARC Dark | cover | Cover | 深蓝背景、居中大型 Logo 与标题簇 | 标题、副标题、单位、英文单位 |+| `02_toc.svg` | CATARC Light | agenda | Agenda | 数字双竖线目录、右侧数据面板 | 页面标题、五个目录项、数据对象、页码 |+| `03_chapter.svg` | CATARC Dark | section | Section Header | 深蓝章节页、居中章节号和标题 | 章节号、章节标题、章节副标题 |+| `04_content.svg` | CATARC Light | content | Title and Content | 方形章节号页眉与开放内容面板 | 章节号、页面标题、内容对象、页码 |+| `05_ending.svg` | CATARC Dark | closing | Closing | 深蓝网格背景、居中 Logo 与结束语 | 结束标题、英文副标题、联系信息、页脚 |## VI. Assetsdiff --git a/skills/ppt-master/templates/layouts/README.md b/skills/ppt-master/templates/layouts/README.mdindex e86335ae..3d1dfc89 100644--- a/skills/ppt-master/templates/layouts/README.md+++ b/skills/ppt-master/templates/layouts/README.md@@ -1,100 +1,124 @@# Layout Templates-**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 confirmation stage. For full-identity replicas of specific PPTs, see [`templates/decks/`](../decks/) instead.--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.--Full data model: [`docs/zh/templates-architecture.md`](../../../../docs/zh/templates-architecture.md).+**Layout = a structure-only reusable template bundle.** It owns canvas,+Master/Layout structure, page types, slot geometry, and the SVG roster. It does+not own color, typography, logo, voice, or icon style. Those identity decisions+come from an explicit brand/deck source or from the Strategist confirmation+stage.++Neutral colors and safe fonts may appear in SVG prototypes so the structure is+reviewable. They are preview paint, not a locked identity segment. Non-mirror+projects repaint and retype the selected structure from the project lock.++| Axis | Layout behavior |+|---|---|+| Template kind | `layout`: structure only |+| Creation mode | `standard` / `fidelity` author a new system; `mirror` restores the source graph |+| Downstream adherence | Strategist selects `strict` or `adaptive` when the package is used |+| PPTX structure | Always `structured`; `flat` is reserved for free design and brand-only routes |++The discovery source of truth is [`layouts_index.json`](./layouts_index.json)+(`layout_id → { summary, canvas_format, page_count, page_types }`). This README+defines the kind and intentionally does not enumerate installed layouts. See+[`docs/zh/templates-architecture.md`](../../../../docs/zh/templates-architecture.md)+for the complete data model.----## Trigger rule+## Trigger and identity boundary-Layout selection is **opt-in by explicit path**. The main workflow defaults to free design. For a current package, the user supplies the explicit workspace root (for example, `skills/ppt-master/templates/layouts/<layout_id>/`), not its inner `templates/` directory. A legacy-flat layout root containing `design_spec.md` remains a compatible input. Bare names do not trigger. See [`SKILL.md`](../../SKILL.md) Step 3.+Selection is opt-in through an explicit workspace-root path such as+`skills/ppt-master/templates/layouts/<layout_id>/`. Supplying a bare ID or+reading the discovery index does not trigger template use. A layout path alone+locks structure while identity remains a downstream decision. Combined with a+brand or deck, the layout replaces the complete structure segment.-`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.+Current packages resolve `templates/design_spec.md`; compatible legacy-flat+roots may resolve `design_spec.md` directly. See [`SKILL.md`](../../SKILL.md)+Step 3.----## design_spec.md schema+## `design_spec.md` contract-Layouts write **structure-only segments**. Identity sections (Color Scheme / Typography / Logo / Voice / Icon Style) are forbidden — those belong to brands and decks. Minimum schema:+The spec stores portable structural metadata plus rules unique to this layout.+It omits the deck-only Template Overview and every identity section. The+frontmatter `summary` carries the concise selection context.```markdown---layout_id: <slug>kind: layout-summary: <one-line use cases>+category: general | scenario | government | special+summary: <one-line structural use case>canvas_format: ppt169-page_count: 5+canvas_width: 1280+canvas_height: 720+canvas_viewbox: "0 0 1280 720"+replication_mode: standard | fidelity | mirror+native_structure_mode: structured+page_count: <N>page_types: [cover, toc, chapter, content, ending]----# [Template Name] - Design Specification+# [Layout Name] — Design Specification-## 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+## IV. Signature Design Elements+## V. Page Roster+## VII. Placeholder Overrides # omit when none```-Layouts may include additional supporting sections (Layout Patterns, Spacing Guidelines, Placeholder Specification, Usage Notes). Put a layout-specific required / forbidden / conditional boundary inside the personality section it qualifies. Do **not** include Color Scheme or Typography sections — those are identity-segment fields owned by `templates/brands/` and `templates/decks/`. General SVG/PPT authoring rules belong only in [`shared-standards.md`](../../references/shared-standards.md); do not add a generic technical-rules section or pointer to a layout spec.+`Signature Design Elements` describes only reusable structure: grids, zones,+image behavior, density rhythm, and slot conventions. It must not introduce a+brand palette or typography system. `Page Roster` lists every SVG with its+Layout key, PowerPoint picker name, intended content, and slot behavior.----## Standard workspace contract--New layout creation uses the same portable workspace routing in both output scopes:--```text-<template_workspace>/-├── templates/-│ ├── design_spec.md-│ ├── 01_cover.svg-│ ├── 02_chapter.svg-│ ├── 03_content.svg-│ └── 04_ending.svg-├── images/ # Optional; omit when unused-├── icons/ # Optional; omit when unused-│ └── imported/ # Canonical imported vectors-└── exports/ # Optional, on-demand review output; Git-ignored- └── <layout_id>_template_preview.pptx-```--| Scope | `<template_workspace>` | Difference |-|---|---|---|-| Library | `skills/ppt-master/templates/layouts/<layout_id>/` | Register in `layouts_index.json` |-| Project | `projects/<project_name>/` | Do not register globally |--`02_toc.svg` and other roster variants remain optional; including the TOC shifts the later types to `03_chapter.svg` / `04_content.svg` / `05_ending.svg`, keeping numbering equal to the template's own presentation order. All SVGs use `viewBox="0 0 1280 720"` for ppt169. Bitmaps belong in `images/`; imported vectors have one canonical copy in `icons/imported/` and use `data-icon="imported/<name>"`; template sources belong in `templates/`, which never contains an icon duplicate.+## Structured SVG and slot contract-Omit empty optional directories instead of adding placeholder files. Generate a preview PPTX only when local PowerPoint review is requested; it is derived output, library `exports/` is Git-ignored, and template application never copies it.+Every SVG is a complete preview and declares one root Master and Layout.+Master/Layout fixed visuals are direct atoms. A reusable slot is a top-level+`<g id>` with positive design-zone bounds and exactly one compatible carrier;+zero-slot Layouts are valid. A typed `picture`, `chart`, or `table` slot does+not by itself promise an inserted picture or native data object: the generated+Slide supplies its content, and Chart/Table native replacement remains an+explicit export choice.-`standard` and `fidelity` author new SVG documents and a new Master/Layout/slot contract. `mirror` restores the source roster, Master/Layout identities and parentage, placeholder facts, and supported visuals without semantic synthesis. Fixed Master/Layout group wrappers are mechanically expanded into direct atoms because structural layers cannot be `<g>`; this normalization must preserve ownership, paint order, and appearance.+Use canonical `{{PLACEHOLDER}}` names where they fit. A layout with intentional+vocabulary overrides declares a `placeholders:` map in frontmatter. Full rules:+[`template-designer.md`](../../references/template-designer.md#4-placeholder-reference-canonical-convention-overridable-per-template).-**Legacy compatibility**: Existing flat packages with `design_spec.md` and SVGs at their root remain readable. Flat placement alone does not trigger [`restore-pptx-structure`](../../workflows/restore-pptx-structure.md); restoration is required only when SVG Master/Layout/slot metadata is absent or legacy. New `create-template` outputs always use the workspace contract above.+`standard` and `fidelity` author new SVGs and a new Master/Layout/slot system.+`mirror` preserves source identities, parentage, assignments, placeholder+facts, and supported visuals without semantic synthesis. Legacy semantic+contracts must run+[`restore-pptx-structure`](../../workflows/restore-pptx-structure.md); a flat+directory shape alone is not a legacy signal.----## Placeholder convention+## Workspace and creation-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.-------## Creating a new layout--1. Run [`workflows/create-template.md`](../../workflows/create-template.md) (default produces a deck; explicit "structure only / no identity" option produces a layout)-2. Choose the workspace root: library `skills/ppt-master/templates/layouts/<id>/` or project `projects/<name>/`-3. Validate: `python3 skills/ppt-master/scripts/svg_quality_checker.py "<template_workspace>/templates" --template-mode --format ppt169`-4. Optional — when PowerPoint review is requested, export the review deck: `python3 skills/ppt-master/scripts/template_preview_pptx.py "<template_workspace>"`-5. For library scope only, register: `python3 skills/ppt-master/scripts/register_template.py <id> --kind layout`--The register step updates [`layouts_index.json`](./layouts_index.json) — the single source of truth for layout discovery.+```text+<template_workspace>/+├── templates/ # design_spec.md + SVG prototypes+├── images/ # optional bitmaps; SVG href is ../images/<name>+├── icons/+│ └── imported/ # optional canonical imported vectors+└── exports/ # review evidence; ignored during template use+ └── <layout_id>_template_preview.pptx+```----+Library scope writes `skills/ppt-master/templates/layouts/<layout_id>/` and+updates the index. Project scope uses an initialized `projects/<name>/`+workspace and does not register globally. Empty optional directories are+omitted.-## SVG technical authority+1. Run [`workflows/create-template.md`](../../workflows/create-template.md) and explicitly choose structure-only output.+2. Validate with `svg_quality_checker.py --template-mode`.+3. Run `template_preview_pptx.py` when review is requested and always when the roster declares multiple Masters.+4. In library scope, register with `register_template.py <id> --kind layout`.-[`shared-standards.md`](../../references/shared-standards.md) is authoritative for general SVG/PPT required, forbidden, and conditional rules. Layout specs add only constraints unique to that layout.+General SVG/PPT rules remain authoritative in+[`shared-standards.md`](../../references/shared-standards.md).diff --git a/skills/ppt-master/templates/layouts/layouts_index.json b/skills/ppt-master/templates/layouts/layouts_index.jsonindex 8ac7827d..e9b9b479 100644--- a/skills/ppt-master/templates/layouts/layouts_index.json+++ b/skills/ppt-master/templates/layouts/layouts_index.json@@ -1,6 +1,6 @@{"presentation_core": {- "summary": "A structure-first presentation layout system combining familiar PowerPoint defaults with advanced editorial, image, and data compositions.",+ "summary": "A structure-only 16:9 system with 20 authored PowerPoint Layouts for general, editorial, image, process, and data presentations.","canvas_format": "ppt169","page_count": 20,"page_types": [diff --git a/skills/ppt-master/templates/layouts/presentation_core/templates/design_spec.md b/skills/ppt-master/templates/layouts/presentation_core/templates/design_spec.mdindex 1ee64c31..be2a1626 100644--- a/skills/ppt-master/templates/layouts/presentation_core/templates/design_spec.md+++ b/skills/ppt-master/templates/layouts/presentation_core/templates/design_spec.md@@ -2,7 +2,7 @@layout_id: presentation_corekind: layoutcategory: general-summary: A structure-first presentation layout system combining familiar PowerPoint defaults with advanced editorial, image, and data compositions.+summary: A structure-only 16:9 system with 20 authored PowerPoint Layouts for general, editorial, image, process, and data presentations.keywords: [general, powerpoint, business, editorial, image, data-story]canvas_format: ppt169canvas_width: 1280@@ -60,27 +60,20 @@ placeholders:# Presentation Core — Design Specification-## I. Template Overview--Presentation Core is a structure-only library for general business, teaching,-project, and reporting decks. Its regular set mirrors the familiar PowerPoint-layout vocabulary; its advanced set adds asymmetric, editorial, image-led,-process, and data-story compositions without introducing industry-specific-content.--The light neutral preview treatment exists only to expose hierarchy and slot-geometry. Color, typography, logo, voice, and icon treatment remain downstream-identity decisions and are not owned by this layout.-## IV. Signature Design Elements+Presentation Core provides a broad structural vocabulary for general business,+teaching, project, and reporting decks. The neutral prototype paint exists only+to expose hierarchy and slot geometry; it is not an identity segment. Color,+typography, logo, voice, and icon treatment remain downstream decisions.+| Element | Template-specific behavior ||---|---|| Shared frame | One restrained Master background and a 64 px horizontal safe frame keep the roster visually coherent without imposing brand chrome. |-| Regular vocabulary | Nine familiar PowerPoint layouts preserve the expected title, content, comparison, caption, picture, and blank starting points. |+| Regular vocabulary | Nine authored Layouts provide familiar title, content, comparison, caption, picture, and blank starting points without claiming source-template preservation. || Editorial rhythm | Hero, split, card, process, and data layouts alternate breathing and dense structures instead of repeating one card grid. |-| Image system | Picture layouts use explicit native picture regions for one-image, paired-image, captioned-image, and screenshot scenarios. |-| Native data system | Dedicated chart and table layouts use real native object slots plus a concise interpretation rail, while retaining complete SVG fallbacks. |+| Image system | Picture layouts use typed `picture` slots for one-image, paired-image, captioned-image, and screenshot scenarios. |+| Data system | Chart and table layouts declare typed `chart` / `table` slots. Their authored groups remain complete SVG fallbacks; optional replacement metadata can materialize PowerPoint-native data objects only when that export path is requested. || Text entry | General body and object slots begin at the upper-left; centered alignment is reserved for KPI values, short process nodes, and focused statements. || Neutral framing | Pale panels and hairlines reveal intended zones in the prototype; downstream deck or brand skin controls final paint. |@@ -96,15 +89,15 @@ identity decisions and are not owned by this layout.| `06_title_only.svg` | `title_only` | Title Only | Title slot with an otherwise open canvas || `07_blank.svg` | `blank` | Blank | Zero-slot composition surface || `08_content_caption.svg` | `content_caption` | Content with Caption | Main content with a dedicated caption rail |-| `09_picture_caption.svg` | `picture_caption` | Picture with Caption | Native picture region with a caption column |+| `09_picture_caption.svg` | `picture_caption` | Picture with Caption | Typed picture slot with a caption column || `10_hero_statement.svg` | `hero_statement` | Hero Statement | One dominant claim with a short qualifier || `11_editorial_split.svg` | `editorial_split` | Editorial Split | Asymmetric body and picture composition || `12_three_card.svg` | `three_card` | Three-Card Synthesis | Three parallel synthesis regions || `13_kpi_dashboard.svg` | `kpi_dashboard` | KPI Dashboard | Four compact KPI slots over one evidence region || `14_process_timeline.svg` | `process_timeline` | Process Timeline | Four ordered steps plus a takeaway rail || `15_data_story.svg` | `data_story` | Data Story | Evidence canvas, interpretation rail, and source line |-| `16_title_picture.svg` | `title_picture` | Title and Picture | Page title over one large native picture region |-| `17_two_picture_caption.svg` | `two_picture_caption` | Two Pictures with Captions | Two equal native pictures with independent captions |+| `16_title_picture.svg` | `title_picture` | Title and Picture | Page title over one large typed picture slot |+| `17_two_picture_caption.svg` | `two_picture_caption` | Two Pictures with Captions | Two equal picture slots with independent captions || `18_screenshot_focus.svg` | `screenshot_focus` | Screenshot Focus | Screenshot frame with annotation and source rail |-| `19_chart_insight.svg` | `chart_insight` | Chart and Insight | Native chart region with interpretation and source rails |-| `20_table_summary.svg` | `table_summary` | Table and Summary | Native table region with summary and source rails |+| `19_chart_insight.svg` | `chart_insight` | Chart and Insight | Chart slot with SVG fallback, interpretation, and source rails |+| `20_table_summary.svg` | `table_summary` | Table and Summary | Table slot with SVG fallback, summary, and source rails |diff --git a/skills/ppt-master/workflows/create-template.md b/skills/ppt-master/workflows/create-template.mdindex 805c0653..7f7afcff 100644--- a/skills/ppt-master/workflows/create-template.md+++ b/skills/ppt-master/workflows/create-template.md@@ -367,7 +367,7 @@ For type A, also include in this message:The user replies with corrections, additions, or "all good".-> **Persist the portable brief into `design_spec.md`**. When the Template_Designer writes `design_spec.md` in Step 4, declare a YAML frontmatter block at the top with the confirmed portable fields (`template_id`, `category`, `summary`, `keywords`, `primary_color`, `canvas_format`, `canvas_width`, `canvas_height`, `canvas_viewbox`, `source_viewbox`, `replication_mode`, `native_structure_mode`, etc.). Do not persist the execution-only `output_scope` or `target_project` fields. In library scope, `register_template.py` reads this frontmatter in Step 7 so the brief flows directly into the index without the AI re-deriving it from prose.+> **Persist the portable brief into `design_spec.md`**. When the Template_Designer writes `design_spec.md` in Step 4, declare a YAML frontmatter block at the top with the kind-specific ID key (`deck_id` or `layout_id`) plus the confirmed portable fields (`kind`, `category`, `summary`, `keywords`, `primary_color` for deck, `page_types` for layout, `canvas_format`, `canvas_width`, `canvas_height`, `canvas_viewbox`, `source_viewbox`, `replication_mode`, `native_structure_mode`, etc.). Do not persist a generic `template_id` field: it is the workflow's cross-kind name, not a registrar schema key. Do not persist the execution-only `output_scope` or `target_project` fields. In library scope, `register_template.py` reads this frontmatter in Step 7 so the brief flows directly into the index without the AI re-deriving it from prose.---@@ -533,7 +533,7 @@ Mirror mode does not simplify the visual target or synthesize layer ownership. T**Expected outputs from this step** (full spec → [template-designer.md](../references/template-designer.md)):-1. `design_spec.md` — **personality only**. Required sections: Template Overview, Color Scheme, Signature Design Elements, Page Roster (matching the actual SVG files on disk). Skip Typography / Assets / Placeholder Overrides when they would just restate defaults. Declare portable brief frontmatter; `register_template.py` consumes it only in library scope. **Do not** restate generic SVG constraints, layout pattern libraries, font-size ratio bands, the canonical placeholder table, or content methodology — those are sourced from `shared-standards.md` / `design_spec_reference.md` / `strategist.md` and are already in the downstream reader's context. Full scope rule and skeleton: [template-designer.md §1](../references/template-designer.md#1-must-generate-design_specmd).+1. `design_spec.md` — **personality only**. A deck writes Template Overview, Color Scheme, Signature Design Elements, and Page Roster; Typography / Assets / Placeholder Overrides are conditional. A layout writes only structure-owned Signature Design Elements and Page Roster; its frontmatter `summary` carries concise selection context, and it omits the deck-only Template Overview plus every identity section. The Page Roster must match the actual SVG files on disk. Declare portable brief frontmatter; `register_template.py` consumes it only in library scope. **Do not** restate generic SVG constraints, layout pattern libraries, font-size ratio bands, the canonical placeholder table, or content methodology — those are sourced from `shared-standards.md` / `design_spec_reference.md` / `strategist.md` and are already in the downstream reader's context. Full scope rule and skeleton: [template-designer.md §1](../references/template-designer.md#1-must-generate-design_specmd).2. Page roster — see [Page Roster](../references/template-designer.md#page-roster) for `standard` / `fidelity` / `mirror` mode rosters, variant naming, and TOC handling3. Placeholder vocabulary — pages should adopt the conventional names (`{{TITLE}}`, `{{CONTENT_AREA}}`, ...) when they fit. Full reference: [Placeholder Reference](../references/template-designer.md#4-placeholder-reference-canonical-convention-overridable-per-template). When a template style legitimately needs different vocabulary (consulting → `{{KEY_MESSAGE}}`, branded cover → `{{BRAND_LOGO}}`), declare a `placeholders:` block in `design_spec.md` frontmatter so the registrar and quality checker treat it as the template's authoritative contract. **Avoid** one-off indexed families such as `{{CHAPTER_01_TITLE}}` — use the indexed TOC pattern instead.- `{{...}}` placeholders are the authoring vocabulary used to generate final slide content. Each emitted SVG also carries the native reconstruction contract: root Master/Layout key/name, direct atomic Master/Layout elements, and direct slot `<g>` elements with explicit design-zone bounds plus exactly one compatible carrier. A validated compact canonical authored-preset `<g>` counts as one semantic atom or one `object` carrier; ordinary groups do not. Composite regions use only the explicit `object` + `proxy` downgrade. Minimal structural `data-pptx-role` hints are added only when specialized metadata cannot express required behavior. Both strict and adaptive downstream set `mode: structured` and require complete `page_layouts`, `page_pptx_layouts`, `pptx_masters`, and `pptx_layouts` from planning onward.@@ -584,7 +584,7 @@ This checker validates the authoring contract, not the compiled OOXML package. T**Checklist**:-- [ ] `design_spec.md` follows the personality-only skeleton (Overview / Color / Signature / Page Roster); generic constraints (SVG rules, pattern libraries, ratio bands, canonical placeholder table) are NOT restated. The source-derived basic norms are present as template-specific layout / image / density / asset rules, not generic advice. §V Page Roster lists every emitted page+- [ ] `design_spec.md` follows the kind-specific personality-only skeleton: deck = Overview / Color / Signature / Page Roster plus conditional sections; layout = structure-owned Signature / Page Roster with no Overview or identity sections. Generic constraints (SVG rules, pattern libraries, ratio bands, canonical placeholder table) are NOT restated. The source-derived basic norms are present as template-specific layout / image / density / asset rules, not generic advice. §V Page Roster lists every emitted page- [ ] Every page declared in `design_spec.md §V Page Roster` exists as an SVG file in the template directory (and vice versa — no orphan files)- [ ] Variant filenames follow the letter-suffix convention (e.g. `03a_content_two_col.svg`); variants typically reuse the parent type's placeholder set unless the spec frontmatter declares otherwise- [ ] If TOC exists, placeholder pattern uses the canonical indexed form@@ -684,7 +684,9 @@ The index file is a **discovery index** — it lets the AI answer "what template> ---> deck_id: my_deck> kind: deck+> category: brand> summary: ...+> keywords: [brand, reporting, structured]> canvas_format: ppt169> canvas_width: 1280> canvas_height: 720@@ -692,6 +694,7 @@ The index file is a **discovery index** — it lets the AI answer "what template> source_canvas_width: 1280> source_canvas_height: 720> source_viewbox: "0 0 1280 720"+> replication_mode: standard> # All current deck/layout templates rebuild the current structured SVG contract.> # Downstream strict/adaptive use is confirmed by Strategist and is not stored here.> native_structure_mode: structured@@ -703,7 +706,9 @@ The index file is a **discovery index** — it lets the AI answer "what template> ---> layout_id: my_layout> kind: layout+> category: general> summary: ...+> keywords: [general, layout, structured]> canvas_format: ppt169> canvas_width: 1280> canvas_height: 720@@ -711,6 +716,8 @@ The index file is a **discovery index** — it lets the AI answer "what template> source_canvas_width: 1280> source_canvas_height: 720> source_viewbox: "0 0 1280 720"+> replication_mode: standard+> native_structure_mode: structured> page_count: 5> page_types: [cover, toc, chapter, content, ending]> ---