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
feat(image-layout): teach repeatable pattern combinations
hugohe37feaa45af8cd
diff --git a/docs/technical-design.md b/docs/technical-design.mdindex 3146e183..3fbee6cf 100644--- a/docs/technical-design.md+++ b/docs/technical-design.md@@ -523,6 +523,8 @@ Whenever the image/formula branch is active, its compact placement vocabulary in- **Primary Structures** (container layouts / image-as-canvas + native overlay / multi-image compositions) — the page's bones. One or more per page; cross-Primary combinations like *side-by-side comparison + image-as-canvas annotation* are legitimate.- **Modifier Layers** (non-rectangular clips / overlays & cutouts / texture / special techniques) — finish. Any number per page, stacked on top of the Primary.+**Why the catalog includes a combination playbook.** Capability discovery alone does not teach repeatable composition. The playbook turns a page job into a compact sequence: select the Primary skeleton, diagnose a concrete integration problem, add the smallest useful Modifier or native overlay, integrate the layers through shared geometry and style, then stop when another layer no longer earns its place. Its high-yield combinations are recall aids, not recipes that every deck must cover.+**Why always reading the library does not impose a catalog or layer quota.** It expands compositional choice rather than defining legal output. A page may use one or several Primary structures and any useful Modifiers, cite no id at all, or use a free-form composition when that better serves the narrative and hierarchy.**Why the layers are physically separated, not just tagged.** Patterns are organized with Primary structures first and Modifiers second so the active role can navigate by construction role. Numbers remain stable identifiers (`#38` is still image-as-canvas + annotation cards regardless of where it sits in the file), so existing references across `spec_lock.md`, `design_spec.md §VIII`, executor logs, and historical examples keep resolving.diff --git a/docs/zh/technical-design.md b/docs/zh/technical-design.mdindex c393de22..1cad19a5 100644--- a/docs/zh/technical-design.md+++ b/docs/zh/technical-design.md@@ -493,6 +493,8 @@ Generate 执行以 [`workflows/generate-pptx.md`](../../skills/ppt-master/workfl- **Primary 主结构**(容器布局 / 图作画布 + 原生覆盖 / 多图组合)—— 页面的骨架。一页可一个也可多个;跨 Primary 的组合,如「侧边对比 + 图作画布的注解卡」,是合规的。- **Modifier 修饰层**(非矩形裁剪 / 叠加与挖孔 / 纹理 / 特殊技法)—— 装饰层。一页可叠任意多个,附着在 Primary 之上。+**为什么词汇库还需要组合手册。** 只有能力发现,并不足以教会模型稳定构图。组合手册把页面任务压缩成一条决策链:选择 Primary 骨架、识别具体的图文整合问题、加入能解决问题的最小 Modifier 或原生覆盖层、用共享几何与样式整合各层,并在下一层已经不再产生收益时停止。高收益组合只是帮助回忆的范例,不是每份 deck 都必须覆盖的配方。+**为什么常驻读取灵感库仍不设置目录或层数配额。** 它用于扩展构图选择,不定义合法输出。一页可以由一个或多个 Primary 构成,按需叠加 Modifier,也可以完全不引用编号,直接使用更适合叙事和层级的自由构图。**为什么物理拆分两层,而不是只打标签。** 灵感库按 Primary 在前、Modifier 在后组织,便于按构造角色查找。编号仍是稳定 id(`#38` 永远是「图作画布 + 注解卡」,不论它在文件里的物理位置),因此 `spec_lock.md`、`design_spec.md §VIII`、历史 executor 输出和过往示例里的既有 `#<id>` 引用照样解析。diff --git a/skills/ppt-master/references/executor-image.md b/skills/ppt-master/references/executor-image.mdindex 21657eae..cdd8aaf3 100644--- a/skills/ppt-master/references/executor-image.md+++ b/skills/ppt-master/references/executor-image.md@@ -30,8 +30,10 @@ Handle images by status; enum and lifecycle: [`svg-image-embedding.md`](svg-imag**Default — active image integration (may override when plain placement isstronger)**: Treat loaded [`image-layout-patterns.md`](./image-layout-patterns.md)as vocabulary and [`image-layout-spec.md`](./image-layout-spec.md) as math, not-a quota or lock. On every image-bearing page, derive its image/content or-image/shape relationship from the communication job, hierarchy, copy, asset+a quota or lock. Run the catalog's §5 playbook before drawing; its combinations+are recall aids, not coverage targets. For every image-bearing page, derive the+image/content or image/shape relationship from the communication job, hierarchy,+copy, assetratio/focus, and deck rhythm. Before drawing, evaluate useful modifiers acrossreveal/crop/registration, tone/contrast, framing/depth, and native overlay.Adopt a legal modifier, effect, or Boolean construction when it materiallydiff --git a/skills/ppt-master/references/image-layout-patterns.md b/skills/ppt-master/references/image-layout-patterns.mdindex 0460d057..6fbbb15a 100644--- a/skills/ppt-master/references/image-layout-patterns.md+++ b/skills/ppt-master/references/image-layout-patterns.md@@ -246,9 +246,33 @@ The following three patterns are topologically different and are not interchange----## 5. Composition+## 5. Composition Playbook-**Reference — not a constraint**: choose a Primary Structure, add only useful Modifier Layers, and combine compatible Primaries when both remain legible.+**Reference — not a constraint**: build from the page's communication job, not catalog coverage. Choose one or more compatible Primary Structures, then add only Modifier Layers or native overlays that solve an observed page problem.++### 5.1 Combination Procedure++| Pass | Decision |+|---|---|+| Skeleton | Select the Primary relationship: one visual field, comparison, sequence, evidence view, or multi-image system. Compatible Primaries may share one page. |+| Diagnose | Name the concrete integration problem: weak text contrast, aspect mismatch, unclear focus, missing reveal/opening, unrelated peers, or exact information needing a native layer. |+| Repair | Add the smallest legal Modifier or native overlay that solves each chosen problem; add no technique without a job. |+| Integrate | Reuse contours, baselines, gap rhythm, palette, and required registration so the layers read as one composition. |+| Stop | Omit or simplify the next layer when it repeats a job, competes with the message, requires an unavailable asset, or weakens legibility/editability. |++### 5.2 High-Yield Combinations++| Page job | Composition candidates |+|---|---|+| Atmospheric cover or divider | `#1` / `#73` + `#29`; use `#90` + optional `#86` when an opening should supply the page character |+| One source does not fit the canvas | `#89` + `#24` or `#82`, with every copy kept in exact registration |+| Comparison with evidence on both sides | `#48` + `#38`; keep labels, leaders, and exact claims native |+| Scene-backed evidence or metrics | `#38` / `#40` + `#29` or `#30`; let the image carry context and native SVG carry information |+| Several sources should read as one object | `#92` + restrained `#70`, or `#88` + a native text/color cell |+| One continuous scene should span detached shapes | `#82` + optional `#86`; keep one-picture topology |+| Same-source windows must remain independent | `#100`; add `#87` only when consecutive pages benefit from continuity or motion |+| A busy visual needs one focal region | `#33`, or prepared-pair `#96` / `#99` when native contrast treatment is insufficient |+| Formula or technical figure needs explanation | `#19` + `#41` / `#46`; keep explanatory labels native |**Registration boundary**: registration-dependent effects succeed only when their declared coordinate relationship remains exact. Preserve registration for `#62`, `#82`, `#85`, `#89`, `#95`, `#96`, `#97`, `#99`, and `#100`; `#84` is the intentional exception.diff --git a/skills/ppt-master/scripts/prompt_audit_manifest.json b/skills/ppt-master/scripts/prompt_audit_manifest.jsonindex 7a1b6ad0..3c32927e 100644--- a/skills/ppt-master/scripts/prompt_audit_manifest.json+++ b/skills/ppt-master/scripts/prompt_audit_manifest.json@@ -12,7 +12,7 @@"skills/ppt-master/templates/schemas/*.json"],"exclude": [],- "max_tokens": 392879+ "max_tokens": 393375},"file_budgets": {"AGENTS.md": 2400,@@ -217,7 +217,7 @@"stage.generate.executor.image"],"files": [],- "max_tokens": 62419+ "max_tokens": 62925},"route.generate.quick-generate.formula": {"description": "Quick Generate with manifest-driven formula rendering and formula-image realization.",@@ -229,7 +229,7 @@"files": ["skills/ppt-master/scripts/docs/image.md"],- "max_tokens": 65619+ "max_tokens": 66100},"route.generate.quick-generate.ai-two-types": {"description": "Quick Generate with AI resource preparation, representative rendering inputs, and two local image types.",@@ -240,7 +240,7 @@"stage.generate.executor.image"],"files": [],- "max_tokens": 85490+ "max_tokens": 86025},"route.generate.quick-generate.web-image": {"description": "Quick Generate with web resource preparation, provenance, attribution, and image execution.",@@ -251,7 +251,7 @@"stage.generate.executor.web-image"],"files": [],- "max_tokens": 70169+ "max_tokens": 70675},"route.generate.planning-image": {"description": "Generate-PPTX planning context after a non-none image source is proposed or confirmed, including the compact layout math and vocabulary.",@@ -261,7 +261,7 @@"stage.generate.strategist.image"],"files": [],- "max_tokens": 70275+ "max_tokens": 70575},"route.generate.planning-formula": {"description": "Formula-only planning context, including the shared image/formula layout math and vocabulary.",@@ -271,7 +271,7 @@"stage.generate.strategist.image"],"files": [],- "max_tokens": 70275+ "max_tokens": 70575},"route.generate.planning-ai": {"description": "Generate-PPTX planning when AI image direction is available, including representative multi-source custom rendering synthesis.",@@ -291,7 +291,7 @@"registry": "image-renderings"}],- "max_tokens": 74500+ "max_tokens": 74825},"stage.generate.apply-template-workspace": {"description": "Conditional Step 3 workspace validation, installation, and fusion framework.",@@ -796,7 +796,7 @@"skills/ppt-master/references/image-layout-spec.md","skills/ppt-master/references/image-layout-patterns.md"],- "max_tokens": 7825+ "max_tokens": 8300},"stage.generate.strategist.template": {"description": "Conditional Strategist module for an explicitly installed template workspace.",@@ -823,7 +823,7 @@"skills/ppt-master/references/image-layout-patterns.md","skills/ppt-master/references/svg-image-embedding.md"],- "max_tokens": 9535+ "max_tokens": 10075},"stage.generate.executor.web-image": {"description": "Conditional sourced-image attribution layered on image execution.",