Skip to content

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-to-pptx): add Codex-supported Quick reconstruction profile

hugohe38e1d3d4cfd52
diff --git a/AGENTS.md b/AGENTS.md
index dedacf85..c71f49c8 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -6,7 +6,7 @@ This file is the project entry point for general AI agents.
## Project Overview
-PPT Master turns source material into natively editable DrawingML PPTX. Generate contains two mutually exclusive runtime paths: the default Strategist → Image_Generator → Executor pipeline and the self-contained Quick profile without a separate strategy/confirmation phase. Beautify selects between them from explicit Quick intent.
+PPT Master turns source material into natively editable DrawingML PPTX. Generate has two mutually exclusive runtimes: Default Strategist → Image_Generator → Executor, and self-contained Quick without separate strategy/confirmation. Beautify selects from explicit Quick intent; Image to PPTX always uses Quick.
**Route selection authority**: [`skills/ppt-master/workflows/routing.md`](skills/ppt-master/workflows/routing.md) owns the four top-level artifact routes: Generate PPTX, Create Template, Fill Native PPTX, and Enhance Native PPTX. Child workflows, profiles, stages, and governance documents refine one selected route; they are not competing top-level routes.
@@ -17,6 +17,7 @@ PPT Master turns source material into natively editable DrawingML PPTX. Generate
- Explicit quick/fast or skip-strategy generation may use [`quick-generate`](skills/ppt-master/workflows/profiles/quick-generate.md): prepare sources/resources as needed, decide without interaction, omit Strategist/confirmation/spec/lock, hand-author `svg_output/`, pass its lockless final checker, and export.
- Recorded, self-running, or video-directed Generate work conditionally loads [`video-design`](skills/ppt-master/references/video-design.md) inside the selected Default or explicit Quick runtime before page planning. It changes scene, script, and motion design—not the runtime/profile or artifact route.
- PPTX beautify is a strict 1:1 Generate [`profile`](skills/ppt-master/workflows/profiles/beautify-pptx.md), not a separate route. Explicit Quick intent uses the Quick runtime; otherwise it uses Default. Any split/merge/drop/reorder disables Beautify and returns to ordinary Generate in the selected runtime.
+- Page-image reconstruction uses the Codex-supported, Quick-only [`image-to-pptx`](skills/ppt-master/workflows/profiles/image-to-pptx.md) profile. Normalize input page frames; one frame becomes one slide. Restore text natively, reconstruct low-resolution graphics without changing identity, and derive registered clean-base/scene layers. Padded-bbox-disjoint objects may share a generated plate and become independent crops. Never use a full-slide screenshot skin. Other hosts are unsupported.
- Finished PPTX native enhancement uses [`native-enhance-pptx`](skills/ppt-master/workflows/native-enhance-pptx.md) and must not enter SVG regeneration.
- [`visual-review`](skills/ppt-master/workflows/stages/visual-review.md), [`customize-animations`](skills/ppt-master/workflows/stages/customize-animations.md), and [`generate-audio`](skills/ppt-master/workflows/stages/generate-audio.md) are supporting stages; their trigger rules remain explicit/conditional.
@@ -41,7 +42,7 @@ PPT Master turns source material into natively editable DrawingML PPTX. Generate
## Command Quick Reference
-Convenience summary only — route selection starts in [`SKILL.md`](skills/ppt-master/SKILL.md); Beautify uses [`quick-generate.md`](skills/ppt-master/workflows/profiles/quick-generate.md) only when Quick is explicit, otherwise [`generate-pptx.md`](skills/ppt-master/workflows/generate-pptx.md).
+Convenience summary only — route selection starts in [`SKILL.md`](skills/ppt-master/SKILL.md). Image to PPTX always uses [`quick-generate.md`](skills/ppt-master/workflows/profiles/quick-generate.md); Beautify uses it only when Quick is explicit, otherwise [`generate-pptx.md`](skills/ppt-master/workflows/generate-pptx.md).
```bash
# Source content conversion
diff --git a/docs/faq.md b/docs/faq.md
index 209e030f..bb9fff75 100644
--- a/docs/faq.md
+++ b/docs/faq.md
@@ -75,6 +75,12 @@ For better contemporary stock photography, set `PEXELS_API_KEY` and/or `PIXABAY_
Be clear on what this buys you: **web search only finds *a* relevant, downloadable, license-clean image — it does not guarantee the image is good or right for that page**, because ranking sees text metadata, not the picture. During generation a multimodal model reads a thumbnail to sanity-check and re-queries a poor fit, but **the most reliable route to high quality is to search yourself**: find a better image anywhere, hand the AI its URL, and it downloads and swaps it in via `image_search.py --from-url <url>` (recorded as a manual source; rights are yours to verify). Replacement can happen any time — mid-generation or from live preview — without stopping the run. In short: treat web search as a placeholder fallback and manual picking as the polish step.
+## Q: Can I turn AI-generated slide mockups or screenshots into editable PowerPoint slides?
+
+Yes. Provide one or more images and ask to reconstruct the represented pages as an editable PPTX; PPT Master routes that request to the **Image to PPTX** ([`image-to-pptx`](../skills/ppt-master/workflows/profiles/image-to-pptx.md)) profile. It currently requires Codex. Other agent hosts have not been adapted for this profile, so their behavior is not supported or promised. Image to PPTX always activates Quick; you do not need to ask for Quick separately. It first normalizes every input into one ordered page-frame roster, so slide count follows represented pages rather than file count.
+
+Ordinary visible text is rebuilt as native editable text. Logos, icons, badges, and decorative graphics use the source directly when it is adequate; when it is too low-resolution, Codex may reconstruct them from the reference, but identity, silhouette, proportions, colors, and wordmarks must remain fixed, and a merely similar substitute is forbidden. Charts, tables, and data graphics are never reconstructed generatively: they must be native objects with verifiable values, exact source assets, or marked `manual_required`. Photo and illustration scenes are rebuilt into at least a clean base plus subject or foreground layers. Multiple non-overlapping objects with padded bounding boxes may share one generated plate and then become independent PowerPoint picture objects through grid slicing or SVG bounding-box crops. AI may reconstruct pixels hidden by the separated layers, but it must not redesign the visible composition. A whole-slide screenshot skin with token editable overlays does not count as reconstruction.
+
## Q: Can I edit the generated presentations?
Yes. The only PPTX converter in the SVG pipeline is PPT Master's own `svg_output/` → DrawingML conversion. It saves a timestamped native PowerPoint deck to `exports/`, with text, graphics, and colors directly editable as PowerPoint objects. With the default output path, both Default Generate and Quick Generate copy the authored `svg_output/` to `backup/<timestamp>/svg_output/`, so the same authored deck can be re-exported without re-running the LLM. For Quick this is package reconstruction, not a recoverable record of the AI's design decisions.
@@ -303,7 +309,7 @@ The recommended input is the original `.pptx`. PPT Master extracts theme identit
Large imported SVGs may contain native-shape metadata, hidden carriers, and preview fingerprints. That lossless representation stays immutable in the temporary analysis workspace as payload backing. Template creation uses a lightweight editable IR with document-local source refs and a compact path/hash manifest. `standard` / `fidelity` author project-canonical SVG and use compact authored-preset groups only for exact registered preset matches. Mirror materializes final templates from the IR, reuses converter-supported payload only for unchanged Slide-local/slot refs, and keeps an SVG fallback for unsupported or edited objects.
-If no source PPTX exists, screenshots of the key page types still work — cover, TOC, chapter, content, and closing — but geometry, fonts, and inheritance must then be inferred visually.
+If no source PPTX exists, screenshots of the key page types still work — cover, TOC, chapter, content, and closing — but geometry, fonts, and inheritance must then be inferred visually. This path extracts a reusable template system; when the desired output is one layered editable slide per represented page frame, use Image to PPTX (`image-to-pptx`) instead.
**Step 2 — Let AI Create the Template**
diff --git a/docs/technical-design.md b/docs/technical-design.md
index b48a6f16..fbbba7dc 100644
--- a/docs/technical-design.md
+++ b/docs/technical-design.md
@@ -6,7 +6,7 @@
## Design Philosophy — AI-Directed Workflow, Human-Controlled Draft
-PPT Master produces a **high-quality editable PowerPoint draft**, not a sealed final deck. The workflow reasons about the message, designs the pages, and authors or preserves native PowerPoint objects under an explicit route contract. The user reviews the direction and owns the final-mile judgment in PowerPoint. Remaining work should be refinement of a real deck, not reconstruction from slide images or a thin editable skin.
+PPT Master produces a **high-quality editable PowerPoint draft**, not a sealed final deck. The workflow reasons about the message, designs the pages, and authors or preserves native PowerPoint objects under an explicit route contract. The user reviews the direction and owns the final-mile judgment in PowerPoint. Ordinary Generate should leave refinement of a real deck rather than reconstruction from slide images or a thin editable skin. The **Image to PPTX** [`image-to-pptx`](../skills/ppt-master/workflows/profiles/image-to-pptx.md) profile is the narrow exception: it currently requires Codex, always activates Quick, normalizes one or more input images into an ordered page-frame roster, restores ordinary text natively, reconstructs low-resolution identity or decorative graphics under strict visual locks when needed, and rebuilds scene imagery as registered layers. It still rejects a whole-slide screenshot skin as editable reconstruction.
The workflow supplies presentation-specific reasoning, state, contracts, and quality gates; deterministic tools handle conversion, validation, packaging, and repeatable file operations. **The selected model still sets the quality ceiling**, while the user's taste and judgment guide review and finishing.
@@ -45,12 +45,26 @@ path; it is placed on the same Python command and creates no wrapper process.
## Generate PPTX Architecture
The diagram below covers the default Generate PPTX lifecycle. The
-`beautify-pptx` profile uses that lifecycle unless the same request explicitly
-asks for Quick, in which case it uses `quick-generate` while keeping the same
-1:1 source constraints. Quick bypasses separate planning/confirmation, the
-first-page gate, and preview finalization; source understanding and resource
-preparation still run as needed, and one lockless final quality gate remains.
-Exactly one runtime procedure is loaded.
+`beautify-pptx` fidelity profile uses that lifecycle unless the same request
+explicitly asks for Quick. Image to PPTX is a separate fidelity profile inside
+Generate: it currently requires Codex and always activates `quick-generate`, so
+it never loads the Default runtime and needs no separate Quick request. Other
+agent hosts have not been adapted for the profile, and their behavior is not
+supported or promised. Image to PPTX maps each normalized page frame to one
+slide and treats visible pixels as surface truth. It restores ordinary text
+natively. A low-resolution logo, icon, badge, or decorative graphic may be
+reconstructed by Codex from the reference, but identity, silhouette,
+proportions, colors, and wordmark must remain locked where applicable; a merely
+similar substitute is forbidden. Charts, tables, and data graphics must never
+be reconstructed generatively: use native objects with verifiable values, an
+exact source asset, or mark the item `manual_required`. Photo and illustration scenes use at least a clean
+base plus subject or foreground layers. Multiple non-overlapping objects with
+padded bounding boxes may share one generated plate, then be separated into
+independent objects through grid slicing or SVG bounding-box crops. A
+whole-slide screenshot skin remains forbidden. Quick bypasses separate
+planning/confirmation, the first-page gate, and preview finalization; source
+understanding and resource preparation still run as needed, and one lockless
+final quality gate remains. Exactly one runtime procedure is loaded.
Create Template has its own workspace lifecycle, while Fill Native PPTX and
Enhance Native PPTX operate directly on OOXML; the route table later in this
document covers all four.
@@ -176,6 +190,7 @@ Use this table before reasoning about implementation details. Most failed runs s
|---|---|---|
| Topic only, or supplied material lacks facts required by the requested outcome | Generate PPTX + `topic-research` inside Step 1 | topic-only research starts immediately; source-backed research follows conversion/read and fills only identified factual gaps |
| Source files or conversation text, deck structure may be rethought | Generate PPTX | Strategist may split, merge, drop, reorder, and redesign |
+| One or more images contain page frames that must become layered editable slides | Generate PPTX + Image to PPTX (`image-to-pptx`) profile | Codex is currently required and the profile always activates Quick; normalize all represented frames first and map each frame to one slide; restore ordinary text natively; reference-reconstruct low-resolution logos/icons/decorative graphics only with identity, silhouette, proportions, colors, and wordmarks locked where applicable; charts/tables/data graphics require native objects with verifiable values, exact source assets, or `manual_required`; build scenes as at least a clean base plus subject/foreground layers; non-overlapping padded-bbox objects may share one generation plate before grid slicing or SVG bounding-box cropping; no similar substitute or whole-slide screenshot skin |
| Explicit quick generation | Generate PPTX + `quick-generate` profile | convert/read sources, research factual gaps, and prepare required resources as needed; explicit user requirements are followed and the current agent decides every remaining content, page, visual, and resource question in active context, skips Strategist/confirmation/spec/lock/finalize, hand-authors SVG, passes one lockless final gate, and exports the final PPTX |
| PPTX as source material, user allows a new story/page structure | Generate PPTX via `ppt_to_md` + `pptx_intake` | PPTX identity/geometry are facts and candidates, not replica constraints |
| Raw PPTX template plus new material/topic | Fill Native PPTX (`template-fill-pptx`) | clone/fill native slides; no SVG generation |
@@ -363,7 +378,7 @@ These invariants are stronger than ordinary implementation preferences. If a cha
| Invariant | Practical consequence |
|---|---|
| `sources/` content-type files are the Generate content contract | text, tables, and chart values come from content-type files in `sources/` (Markdown is primary, but `.txt` / `.csv` / `.json` / `.yaml` / … count too); known sidecars (`*.conversion_profile.json`, `*_files/image_manifest.json`) are excluded |
-| `analysis/` stores machine facts, not design contracts | `source_profile.json` and intake artifacts inform Strategist in the default pipeline and the current agent in `quick-generate`; they do not lock page count/order except in workflows that say so |
+| `analysis/` stores machine facts and bounded profile ledgers, not design contracts | `source_profile.json` and intake artifacts inform Strategist in the default pipeline and the current agent in `quick-generate`; Image to PPTX additionally owns source-evidence-only `reconstruction_inventory.json` for source-container/frame mapping, hashes, visible regions, and uncertainty. Its final layer choices stay in Quick active context. These artifacts do not lock page count/order except in workflows that say so |
| `design_spec.md` explains the design; `spec_lock.md` executes it in the default pipeline | both remain owning artifacts there; `quick-generate` persists neither or any substitute plan, and the current agent follows explicit user requirements while keeping every remaining content, page, visual, and resource decision only in active context; context loss restarts Quick |
| Planning context is retained until invalidated | continuous execution reuses the complete Design Spec, lock, and triggered references; fresh/resumed/restarted or compacted execution reloads them once |
| `page-context` is on demand | the read-only projector supports diagnostics, deterministic routing checks, and optional usage telemetry; it is not a pre-page gate |
@@ -485,7 +500,7 @@ evidence. In particular, enabling narration may enable the effective Speaker
Notes outcome in the Design Spec, but it never rewrites the raw speaker-notes
choice.
-**Image analysis is metadata-first, with a narrow visual fallback.** When images exist, `analyze_images.py` supplies the regenerated measured facts in `analysis/image_analysis.csv`; the CSV is a view over the live `images/` folder, not a durable cache. In the default pipeline, Strategist first resolves supplied images from source placement and nearby prose, captions / alt text / titles, filenames, user notes, existing resource records, and that metadata. It may inspect one specific image only when a material ambiguity remains about selection, factual identity, page role, crop safety, or focal placement—never as a bulk inventory scan. The answer is written into Design Spec §VIII, after which Executor uses the plan and measured geometry without reopening source pixels for semantic discovery. In `quick-generate`, the current agent applies the same bounded analysis while preparing the selected resources from active-context decisions; no Design Spec projection or general resource roster is written. User images, extracted images, web images, AI outputs, formulas, and sliced elements still converge into the same measured fact table.
+**Image analysis is metadata-first, with a narrow visual fallback.** When images exist, `analyze_images.py` supplies the regenerated measured facts in `analysis/image_analysis.csv`; the CSV is a view over the live `images/` folder, not a durable cache. In the default pipeline, Strategist first resolves supplied images from source placement and nearby prose, captions / alt text / titles, filenames, user notes, existing resource records, and that metadata. It may inspect one specific image only when a material ambiguity remains about selection, factual identity, page role, crop safety, or focal placement—never as a bulk inventory scan. The answer is written into Design Spec §VIII, after which Executor uses the plan and measured geometry without reopening source pixels for semantic discovery. In `quick-generate`, the current agent applies the same bounded analysis while preparing the selected resources from active-context decisions; no Design Spec projection or general resource roster is written. Image to PPTX's normalized page frames are the narrow exception: every frame is inspected once to build source evidence and identify ordinary text, identity or decorative graphics, charts/tables/data graphics, scene regions, and overlap. Later reads stay page/region-local while the current Codex agent prepares registered clean-base and subject/foreground assets through the existing reference-image path. Low-resolution logos, icons, and decorative graphics may be reconstructed only with identity, silhouette, proportions, colors, and wordmarks locked where applicable. Charts, tables, and data graphics cannot use generative reconstruction; they require native objects with verifiable values, exact source assets, or `manual_required`. Multiple non-overlapping objects with padded bounding boxes may share one generation plate before grid slicing or SVG bounding-box cropping creates independent objects. User images, extracted images, web images, AI outputs, formulas, and sliced elements still converge into the same measured fact table.
**Retained planning context** carries continuity; the on-demand page projector is only a diagnostic described below.
@@ -493,7 +508,7 @@ choice.
## Execution Discipline
-Generate routing selects one runtime authority before loading its procedure: [`workflows/generate-pptx.md`](../skills/ppt-master/workflows/generate-pptx.md) owns Default Step 1–7, while [`quick-generate.md`](../skills/ppt-master/workflows/profiles/quick-generate.md) owns the self-contained Quick lifecycle. [`beautify-pptx.md`](../skills/ppt-master/workflows/profiles/beautify-pptx.md) selects between them from explicit Quick intent and keeps its 1:1 constraints in either branch. [`SKILL.md`](../skills/ppt-master/SKILL.md) owns only global execution discipline and the mandatory handoff to `routing.md`. Together, these rules may look bureaucratic but exist because LLMs default to "let me solve the whole problem in this turn", which is exactly the wrong shape for a serial pipeline where each step's output is bounded, checkpointed, and consumed by the next. They close failure modes that surfaced repeatedly in practice: out-of-order execution, AI proxying user design decisions, cross-phase bundling, missing prerequisites, speculative pre-work, sub-agent context loss, page-batching drift, long-deck color/font drift, batch/script-generated SVG drift, and routing ambiguity.
+Generate routing selects one runtime authority before loading its procedure: [`workflows/generate-pptx.md`](../skills/ppt-master/workflows/generate-pptx.md) owns Default Step 1–7, while [`quick-generate.md`](../skills/ppt-master/workflows/profiles/quick-generate.md) owns the self-contained Quick lifecycle. [`image-to-pptx.md`](../skills/ppt-master/workflows/profiles/image-to-pptx.md) and [`beautify-pptx.md`](../skills/ppt-master/workflows/profiles/beautify-pptx.md) are mutually exclusive fidelity profiles. Image to PPTX currently requires Codex and activates Quick directly without a separate Quick signal; other agent hosts are not adapted or supported. Beautify continues to select between Default and Quick from explicit Quick intent. [`SKILL.md`](../skills/ppt-master/SKILL.md) owns only global execution discipline and the mandatory handoff to `routing.md`. Together, these rules may look bureaucratic but exist because LLMs default to "let me solve the whole problem in this turn", which is exactly the wrong shape for a serial pipeline where each step's output is bounded, checkpointed, and consumed by the next. They close failure modes that surfaced repeatedly in practice: out-of-order execution, AI proxying user design decisions, cross-phase bundling, missing prerequisites, speculative pre-work, sub-agent context loss, page-batching drift, long-deck color/font drift, batch/script-generated SVG drift, and routing ambiguity.
Global stop/continue policy is authoritative in [`failure-recovery.md`](../skills/ppt-master/workflows/governance/failure-recovery.md); its concrete recovery matrix and resume pointers currently cover Generate PPTX. This section does not duplicate those rules.
@@ -857,7 +872,7 @@ Supporting files stay separate only to keep route contracts focused and load opt
| Class | Runbooks | Owning route |
|---|---|---|
-| Generation profiles | `beautify-pptx`, `quick-generate` | Beautify preserves wording/pages and selects Default unless Quick is explicit; Quick owns the direct SVG-to-PPTX lifecycle |
+| Generation profiles | `image-to-pptx`, `beautify-pptx`, `quick-generate` | Image to PPTX currently requires Codex, always activates Quick, normalizes page frames, restores ordinary text natively, reconstructs low-resolution identity/decorative graphics under strict visual locks when needed, keeps charts/tables/data graphics native and verifiable, exact-source, or `manual_required`, and rebuilds scenes as at least clean-base plus subject/foreground layers; Beautify preserves wording/pages while redesigning layout and selects Quick only from explicit intent; Quick owns the direct SVG-to-PPTX lifecycle |
| Template child workflows | `create-brand`, `create-style`, `create-layout`, `create-deck` | Create Template dispatches exactly one for identity-only, roster-free direction/method, brand-neutral/application-neutral structure, or a recurring application with integrated identity/structure |
| Template-input stage | `apply-template-workspace` | Runs after Default Stage 1 confirms at least one workspace and before Stage 2; free design skips installation, while Quick may provide direct exact-root input |
| Generation stages | `topic-research`, `resume-execute`, `refine-spec`, `verify-charts`, `visual-review`, `live-preview`, `customize-animations` | Generate PPTX at their defined intake, planning, editing, quality, or post-processing points |
diff --git a/docs/zh/faq.md b/docs/zh/faq.md
index 7e77d124..a995d041 100644
--- a/docs/zh/faq.md
+++ b/docs/zh/faq.md
@@ -77,6 +77,12 @@ python3 skills/ppt-master/scripts/update_repo.py
要清楚一点:**网络搜索只负责「找到一张相关、可下载、授权合规的图」,并不保证它在这一页里好看或贴切**——排序只看文字元数据,看不到画面。生成时多模态模型会读一份缩略图自查、不合适会重搜;但**要真正高质量,最可靠的还是你自己去搜**:在任何来源找到更合适的图,把链接给 AI,它会用 `image_search.py --from-url <链接>` 直接下载替换(记为手动来源、版权由你把关)。换图随时能做——生成途中或在实时预览里都行,不会打断流程。简而言之:把网络搜索当「兜底占位」,把人工挑图当「精修」。
+## Q: 能把 AI 生成的 PPT 效果图或截图还原成可编辑 PowerPoint 吗?
+
+可以。提供一张或多张图片,并要求把其中的页面还原为可编辑 PPTX,PPT Master 就会把请求路由到**图片还原为 PPTX**([`image-to-pptx`](../../skills/ppt-master/workflows/profiles/image-to-pptx.md))profile。该 profile 当前要求在 Codex 中使用;其他 Agent host 尚未适配,不对其行为作支持或承诺。图片还原为 PPTX 始终直接启用 Quick,不需要另行说明“快速模式”。它会先把所有输入规范化为一份有序页面画面清单,所以最终页数由实际页面画面决定,而不是由文件数决定。
+
+普通可见文字会还原为原生可编辑文本。Logo、图标、徽标和装饰图形在原图足够清晰时直接使用;像素过低时可由 Codex 根据参考图重建,但必须锁定身份、轮廓、比例、颜色和字标,禁止换成仅仅相似的替代物。Chart、table 和 data graphic 禁止生成式重建:必须使用可核对数值的原生对象、精确源资产,或标记 `manual_required`。照片和插画场景至少拆成干净背景层与人物 / 前景层。多个带 padding 包围盒且互不重叠的对象可共用一次生成 plate,再通过 grid slice 或 SVG bbox crop 拆成 PowerPoint 中的独立图片对象。AI 可以补全拆层后露出的隐藏场景像素,但不能改掉可见构图。把整页截图铺底、只叠少量可编辑元素,不算还原成功。
+
## Q: 生成的 PPT 可以编辑吗?
可以。SVG 管线统一由项目转换器读取 `svg_output/` 并生成原生 DrawingML `.pptx`;文字、图形和颜色无需额外转换即可编辑,文件以时间戳命名保存至 `exports/`。使用默认输出路径时,Default Generate 与 Quick Generate 都会把作者源 `svg_output/` 镜像到 `backup/<timestamp>/svg_output/`,便于归档或基于该版重新导出 PPTX,无需再走 LLM。对 Quick 而言,这只是包重建,不是可恢复的 AI 设计决策记录。
@@ -273,7 +279,7 @@ beautify 和主管线的一句话判别:**原来的分页是要保留的信息
完整导入 SVG 可以保留高级 PowerPoint 形状所需的 metadata、隐藏 carrier 和预览指纹,并作为载荷后备留在临时分析工作区且保持不可变。模板创建使用带文档内 source ref 和紧凑路径/hash manifest 的轻量可编辑 IR。`standard` / `fidelity` 创作项目规范化 SVG,只有精确匹配已登记 preset 时才使用 compact authored-preset 组。Mirror 从 IR 物化最终模板,只为未改且 hash 匹配的 Slide-local/slot ref 重新接入转换器已经支持的载荷;不支持或已修改的对象保留当前 SVG fallback。
-没有源 PPTX 时,截图集也能跑(`cover.png` / `toc.png` / `chapter.png` / `content.png` / `closing.png`),但保真度会明显下降。建议优先找原始 PPTX。
+没有源 PPTX 时,截图集也能跑(`cover.png` / `toc.png` / `chapter.png` / `content.png` / `closing.png`),但保真度会明显下降。建议优先找原始 PPTX。这里提取的是可复用模板系统;如果目标是把每个页面画面还原成分层可编辑输出页,应改用图片还原为 PPTX(`image-to-pptx`)。
**第二步 — 让 AI 创建模板**
diff --git a/docs/zh/technical-design.md b/docs/zh/technical-design.md
index 026470fc..b4d5628f 100644
--- a/docs/zh/technical-design.md
+++ b/docs/zh/technical-design.md
@@ -6,7 +6,7 @@
## 设计哲学 —— AI 驱动工作流,人掌握最终判断
-PPT Master 交付的是一份**高质量、可继续编辑的 PowerPoint 草稿**,而不是封闭的最终成品。工作流先推理信息与论证,再设计页面,并按照明确的路线合同创作或保留 PowerPoint 原生对象。用户负责确认方向,并在 PowerPoint 中掌握最后一公里的判断。后续工作应当是对真实 deck 的精修,而不是从整页图片或浅层可编辑外壳重新搭建。
+PPT Master 交付的是一份**高质量、可继续编辑的 PowerPoint 草稿**,而不是封闭的最终成品。工作流先推理信息与论证,再设计页面,并按照明确的路线合同创作或保留 PowerPoint 原生对象。用户负责确认方向,并在 PowerPoint 中掌握最后一公里的判断。普通 Generate 的后续工作应当是对真实 deck 的精修,而不是从整页图片或浅层可编辑外壳重新搭建。**图片还原为 PPTX** [`image-to-pptx`](../../skills/ppt-master/workflows/profiles/image-to-pptx.md) profile 是一条窄例外:它当前要求 Codex,始终直接启用 Quick,先把一张或多张输入图片规范化为有序页面画面清单,原生还原普通文字,必要时在严格视觉锁下重建低清身份图形,再把场景图片重建成注册图层。它仍不允许把整页截图皮肤冒充为可编辑还原。
工作流提供演示文稿专用的推理、状态、合同与质量门;确定性工具负责转换、校验、打包和可重复文件操作。**最终质量上限仍由所选模型决定**,用户的审美与判断则负责评审和收尾。
@@ -40,7 +40,7 @@ PPT Master 不以“任意 SVG 都能转成 PPTX”为目标。`svg_output/` 使
## Generate PPTX 路线架构
-下图描述 Generate PPTX 的默认生命周期。`beautify-pptx` profile 默认使用该生命周期;同一请求明确要求快速模式时,则改用 `quick-generate`,但 1:1 来源约束保持不变。Quick 会绕过独立规划 / 确认、首屏 gate 与预览终稿化;来源理解和资源准备仍按需运行,一次无锁最终质量门始终保留。每次只加载一份运行时流程。Create Template 有独立的工作区生命周期;Fill Native PPTX 与 Enhance Native PPTX 直接操作 OOXML。本文后续路线表会覆盖全部四条顶层路线。
+下图描述 Generate PPTX 的默认生命周期。`beautify-pptx` fidelity profile 默认使用该生命周期;同一请求明确要求快速模式时,则改用 `quick-generate`。图片还原为 PPTX 是 Generate 内另一个 fidelity profile:它当前要求 Codex 并始终直接启用 `quick-generate`,因此不进入 Default 运行时,也不需要用户另行说明“快速模式”。其他 Agent host 尚未适配该 profile,不对其行为作支持或承诺。图片还原为 PPTX 把每个规范化页面画面映射为一张幻灯片,以可见像素为表面真值,并原生还原普通文字。低清 Logo、图标、徽标或其他身份图形可由 Codex 根据参考图重建,但必须锁定身份、轮廓、比例、颜色和字标,禁止换成仅仅相似的替代物。照片和插画场景至少拆成干净背景层与人物 / 前景层。多个带 padding 包围盒且互不重叠的对象可共用一次生成 plate,再通过 grid slice 或 SVG bbox crop 拆成独立对象。整页截图 skin 始终禁止。Quick 会绕过独立规划 / 确认、首屏 gate 与预览终稿化;来源理解和资源准备仍按需运行,一次无锁最终质量门始终保留。每次只加载一份运行时流程。Create Template 有独立的工作区生命周期;Fill Native PPTX 与 Enhance Native PPTX 直接操作 OOXML。本文后续路线表会覆盖全部四条顶层路线。
```
用户输入 (PDF/DOCX/XLSX/PPTX/URL/Markdown/主题文本)
@@ -160,6 +160,7 @@ narration 标记。
|---|---|---|
| 只有主题,或现有材料缺少实现用户目标所需的事实 | Generate PPTX Step 1 内运行 `topic-research` | 只有主题时立即研究;有材料时先转换 / 阅读,只补已识别的事实缺口 |
| 有源文件或对话文本,deck 结构可以重想 | Generate PPTX | Strategist 可以拆分、合并、删除、重排和重设计 |
+| 一张或多张图片中包含的页面画面需要变成分层可编辑幻灯片 | Generate PPTX + 图片还原为 PPTX(`image-to-pptx`)profile | 当前要求 Codex 且始终直接启用 Quick;先规范化全部页面画面,每个画面映射一张幻灯片;普通文字原生还原;低清 Logo / 图标 / 装饰只能在锁定身份、轮廓、比例、颜色和字标的前提下参考重建;chart / table / data graphic 禁止生成式重建,必须使用可核对数值的原生对象、精确源资产,或标记 `manual_required`;场景至少拆成干净背景层与人物 / 前景层;多个带 padding 包围盒且互不重叠的对象可共用一次生成 plate,再用 grid slice 或 SVG bbox crop 拆分;禁止相似替代和整页截图 skin |
| 显式要求快速生成 | Generate PPTX + `quick-generate` profile | 按需转换 / 阅读来源、研究事实缺口并准备所需资源;用户明确提出的要求照做,其余内容、页结构、视觉与资源由当前 Agent 在上下文中决定,跳过 Strategist / 确认 / spec / lock / finalize,手写 SVG、通过一次无锁 final gate 后导出最终 PPTX |
| PPTX 作为源材料,用户允许重构故事和页结构 | Generate PPTX,经 `ppt_to_md` + `pptx_intake` | PPTX 身份和几何是事实与候选,不是复刻约束 |
| 原生 PPTX 模板 + 新材料 / 新主题 | Fill Native PPTX(`template-fill-pptx`) | 克隆并填充原生页面;不生成 SVG |
@@ -334,7 +335,7 @@ CLI 支持 `--move`、`--copy` 和自动默认,但共享同一条固定的所
| 不变量 | 实际后果 |
|---|---|
| `sources/` 内容型文件是 Generate 内容契约 | 文本、表格和图表数值来自 `sources/` 内容型文件(Markdown 为主,`.txt` / `.csv` / `.json` / `.yaml` 等同样计入);已知 sidecar(`*.conversion_profile.json`、`*_files/image_manifest.json`)排除在外 |
-| `analysis/` 存机器事实,不存设计契约 | `source_profile.json` 和 intake artifact 在默认流程中辅助 Strategist,在 `quick-generate` 中辅助当前 Agent;除非工作流明确规定,否则不锁定页数 / 页序 |
+| `analysis/` 存机器事实和有界 profile 账本,不存设计契约 | `source_profile.json` 和 intake artifact 在默认流程中辅助 Strategist,在 `quick-generate` 中辅助当前 Agent;图片还原为 PPTX 还拥有只记录源证据的 `reconstruction_inventory.json`,用于记录源容器 / 页面画面映射、hash、可见区域与不确定项。它的最终图层选择只保留在 Quick 当前上下文中。除非工作流明确规定,否则这些 artifact 不锁定页数 / 页序 |
| 默认流程由 `design_spec.md` 解释设计、`spec_lock.md` 执行设计 | 两者在默认流程中始终是权威产物;`quick-generate` 不落盘二者或任何替代计划,用户明确提出的要求照做,其余内容、页结构、视觉和资源决策只由当前 Agent 保留在上下文中;上下文丢失后重新运行 Quick |
| 规划上下文有效时持续复用 | 连续执行直接使用完整 Design Spec、lock 与已触发引用;fresh/resumed/restarted 或压缩后才重新读取一次 |
| `page-context` 按需调用 | 只读投影器用于诊断、确定性路由检查和可选的用量统计,不是逐页门禁 |
@@ -423,7 +424,7 @@ Stage-1 沟通推荐的编写不得读取这些候选或任何模板内容。UI
尤其是,启用旁白可以在 Design Spec 中启用 Speaker Notes 的最终有效结果,
但绝不会改写原始的备注选择。
-**图片分析以重算元数据为先,只保留小范围视觉兜底。** 当项目里存在图片时,`analyze_images.py` 把可度量事实重算到 `analysis/image_analysis.csv`;该 CSV 是实时 `images/` 目录的派生视图,不是持久缓存。默认流程中,Strategist 先根据图片在源文中的位置与前后文、图注 / alt / 标题、文件名、用户说明、已有资源记录和这些元数据判断。只有当某一张具体图片在选用、事实身份、页面角色、裁剪安全或焦点放置上仍有实质歧义时,才可单独查看它,绝不得扫描整个图片目录。结论写入 Design Spec §VIII 后,Executor 只消费该计划与几何数据,不会重新打开源图进行语义探索。`quick-generate` 则由当前 Agent 根据当前上下文决策准备实际选中的资源,并采用同样的有界分析;不写 Design Spec 投影或通用资源清单。用户图、抽取图、网络图、AI 图、公式图和切片图仍统一汇入同一张可度量事实表。
+**图片分析以重算元数据为先,只保留小范围视觉兜底。** 当项目里存在图片时,`analyze_images.py` 把可度量事实重算到 `analysis/image_analysis.csv`;该 CSV 是实时 `images/` 目录的派生视图,不是持久缓存。默认流程中,Strategist 先根据图片在源文中的位置与前后文、图注 / alt / 标题、文件名、用户说明、已有资源记录和这些元数据判断。只有当某一张具体图片在选用、事实身份、页面角色、裁剪安全或焦点放置上仍有实质歧义时,才可单独查看它,绝不得扫描整个图片目录。结论写入 Design Spec §VIII 后,Executor 只消费该计划与几何数据,不会重新打开源图进行语义探索。`quick-generate` 则由当前 Agent 根据当前上下文决策准备实际选中的资源,并采用同样的有界分析;不写 Design Spec 投影或通用资源清单。图片还原为 PPTX 的规范页面画面是窄例外:每个画面会完整检查一次,以建立源证据并区分普通文字、身份 / 装饰图形、chart / table / data graphic、场景图片与遮挡关系。之后只重开当前页 / 当前区域,并由当前 Codex Agent 通过现有参考图路径准备注册的干净背景层与人物 / 前景层。低清 Logo、图标和装饰只能在锁定身份、轮廓、比例、颜色和字标的前提下参考重建。Chart、table 和 data graphic 禁止生成式重建,必须使用可核对数值的原生对象、精确源资产,或标记 `manual_required`。多个带 padding 包围盒且互不重叠的对象可共用一次生成 plate,再通过 grid slice 或 SVG bbox crop 拆成独立对象。用户图、抽取图、网络图、AI 图、公式图和切片图仍统一汇入同一张可度量事实表。
**保留的规划上下文**负责跨页连续性;按需逐页投影只承担下文所述的诊断用途。
@@ -431,7 +432,7 @@ Stage-1 沟通推荐的编写不得读取这些候选或任何模板内容。UI
## 执行纪律
-Generate 路由会在加载流程前选定一份运行时权威:[`workflows/generate-pptx.md`](../../skills/ppt-master/workflows/generate-pptx.md) 拥有默认 Step 1–7,[`quick-generate.md`](../../skills/ppt-master/workflows/profiles/quick-generate.md) 拥有自足的 Quick 生命周期;[`beautify-pptx.md`](../../skills/ppt-master/workflows/profiles/beautify-pptx.md) 根据是否明确要求 Quick 在两者中只选一个,并在两条分支中保持同一套 1:1 约束。`SKILL.md` 只拥有全局执行纪律,以及交接到 `routing.md` 的强制入口。这些规则整体看起来很官僚,但存在的理由是:LLM 默认行为是“让我在这一 turn 里把整个问题搞定”,而这恰好是串行流水线最不该有的形状——串行流水线要求每一步的输出都是有界、过 checkpoint、被下一步消费的。它们共同关闭了实际反复出现的失败模式:乱序执行、AI 代为做用户设计决策、跨阶段打包、前置条件未满足、投机预先准备、子代理上下文丢失、分批漂移、长 deck 色彩字体漂移、脚本批量生成 SVG 漂移,以及路由歧义。
+Generate 路由会在加载流程前选定一份运行时权威:[`workflows/generate-pptx.md`](../../skills/ppt-master/workflows/generate-pptx.md) 拥有默认 Step 1–7,[`quick-generate.md`](../../skills/ppt-master/workflows/profiles/quick-generate.md) 拥有自足的 Quick 生命周期;[`image-to-pptx.md`](../../skills/ppt-master/workflows/profiles/image-to-pptx.md) 与 [`beautify-pptx.md`](../../skills/ppt-master/workflows/profiles/beautify-pptx.md) 是互斥的 fidelity profile。图片还原为 PPTX 当前要求 Codex,无需独立 Quick 信号就会直接启用 Quick;其他 Agent host 尚未适配,暂不支持。Beautify 则继续根据显式 Quick 意图在 Default 与 Quick 中选择。`SKILL.md` 只拥有全局执行纪律,以及交接到 `routing.md` 的强制入口。这些规则整体看起来很官僚,但存在的理由是:LLM 默认行为是“让我在这一 turn 里把整个问题搞定”,而这恰好是串行流水线最不该有的形状——串行流水线要求每一步的输出都是有界、过 checkpoint、被下一步消费的。它们共同关闭了实际反复出现的失败模式:乱序执行、AI 代为做用户设计决策、跨阶段打包、前置条件未满足、投机预先准备、子代理上下文丢失、分批漂移、长 deck 色彩字体漂移、脚本批量生成 SVG 漂移,以及路由歧义。
全路由通用的停止 / 继续规则以 [`failure-recovery.md`](../../skills/ppt-master/workflows/governance/failure-recovery.md) 为准;其中具体故障矩阵与续跑入口目前覆盖 Generate PPTX。本节不复制这些规则。
@@ -752,7 +753,7 @@ ChartEx 导入被有意限制为 7 个已验证数据模型:`treemap`、`sunbu
| 分类 | 文档 | 归属路线 |
|---|---|---|
-| 生成 profile | `beautify-pptx`、`quick-generate` | Beautify 保留逐字措辞 / 页数 / 页序,未明确快速时选择 Default;Quick 负责直接 SVG→PPTX 生命周期 |
+| 生成 profile | `image-to-pptx`、`beautify-pptx`、`quick-generate` | 图片还原为 PPTX 当前要求 Codex、始终直接启用 Quick,规范化页面画面、原生还原普通文字,必要时在严格视觉锁下重建低清身份 / 装饰图形,但 chart / table / data graphic 只能使用可核对数值的原生对象、精确源资产或 `manual_required`,并把场景至少拆成干净背景层与人物 / 前景层;Beautify 保留逐字措辞 / 页数 / 页序并重做布局,只在明确快速时选择 Quick;Quick 负责直接 SVG→PPTX 生命周期 |
| 模板子工作流 | `create-brand`、`create-style`、`create-layout`、`create-deck` | Create Template 在“仅身份 / 无 roster 的方向与方法 / 品牌中立且应用中立的结构 / 应用语境与身份结构一体化”中只分派一个 |
| 模板输入阶段 | `apply-template-workspace` | Default Stage 1 确认至少一个工作区后、Stage 2 前运行;自由设计跳过安装,Quick 可直接提供精确 root |
| 生成阶段 | `topic-research`、`resume-execute`、`refine-spec`、`verify-charts`、`visual-review`、`live-preview`、`customize-animations` | Generate PPTX 中各自定义的 intake、planning、editing、quality 或 post-processing 节点 |
diff --git a/skills/ppt-master/SKILL.md b/skills/ppt-master/SKILL.md
index 9af6d1d5..350372ae 100644
--- a/skills/ppt-master/SKILL.md
+++ b/skills/ppt-master/SKILL.md
@@ -1,11 +1,12 @@
---
name: ppt-master
description: >
- AI-driven presentation workflow for generating editable PPTX decks, creating
- reusable Brand/Style/Layout/Deck workspaces, filling native PPTX templates, and
- enhancing finished PPTX files. Use when the user asks to create, regenerate,
- template, fill, or enhance a presentation, requests a presentation-authored
- narrated/self-running video, or mentions ppt-master.
+ AI-driven presentation workflow for generating editable PPTX decks,
+ reconstructing page visuals, creating reusable Brand/Style/Layout/Deck
+ workspaces, filling native PPTX templates, and enhancing finished PPTX files.
+ Use when the user asks to create, reconstruct, regenerate, template, fill, or
+ enhance a presentation, requests a presentation-authored narrated/self-running
+ video, or mentions ppt-master.
metadata:
version: "4.5.0"
copyright: "Copyright (c) 2025-2026 Hugo He"
@@ -34,6 +35,7 @@ PPT Master is a routed presentation workflow. This entry owns global execution d
| Selected route / profile | Runtime authority |
|---|---|
+| Generate PPTX — Image to PPTX | [`workflows/profiles/image-to-pptx.md`](workflows/profiles/image-to-pptx.md); Codex-supported, always Quick |
| Generate PPTX — Beautify | [`workflows/profiles/beautify-pptx.md`](workflows/profiles/beautify-pptx.md); explicit Quick intent selects Quick, otherwise Default |
| Generate PPTX — ordinary Default | [`workflows/generate-pptx.md`](workflows/generate-pptx.md) |
| Generate PPTX — ordinary explicit Quick | [`workflows/profiles/quick-generate.md`](workflows/profiles/quick-generate.md) |
@@ -42,10 +44,10 @@ PPT Master is a routed presentation workflow. This entry owns global execution d
| Enhance Native PPTX | [`workflows/native-enhance-pptx.md`](workflows/native-enhance-pptx.md) |
**Hard rule — selected authority only**: Do not load another top-level route's
-procedure after routing. Beautify selects exactly one Generate runtime from the
-explicit Quick signal; never load both Default and Quick. Profiles, stages,
-governance files, and child workflows refine one selected route; they never
-compete with it.
+procedure after routing. Image to PPTX and Beautify are mutually exclusive;
+Image to PPTX activates Quick, while Beautify selects from explicit Quick
+intent. Never load both runtimes. Supporting documents refine one route; they
+never compete with it.
---
diff --git a/skills/ppt-master/references/artifact-ownership.md b/skills/ppt-master/references/artifact-ownership.md
index 1ada2620..f5c568ae 100644
--- a/skills/ppt-master/references/artifact-ownership.md
+++ b/skills/ppt-master/references/artifact-ownership.md
@@ -27,10 +27,12 @@ history, or resumable planning state. Context loss restarts the Quick run.
| `sources/*.facts.json` | Fact provenance contract | Stable external `fact_id` → claim/source mapping created by topic research | Default Strategist cites IDs in §IX and Executor resolves them for attribution; Quick's current agent carries the same IDs into visible attribution. Scenario data never enters this file. |
| `sources/` converted-source originals | Source archive | Imported source files that have a converted content contract (`.pdf` / `.pptx` / `.docx` / `.xlsx` / `.html` / `.epub` / `.tex` / `.rst` / `.ipynb` / `.typ`, etc.) and source-adjacent extracted assets | Read via the converted `<stem>.md` in the main pipeline; direct-PPTX workflows read the `.pptx` by route |
| `sources/*.conversion_profile.json`, `sources/*_files/image_manifest.json` | Pipeline sidecar | Conversion audit record / asset index | NOT read as slide content; open only to audit a conversion or resolve assets |
+| `sources/` Image to PPTX source containers | Visible-surface source contract | One or more immutable raster inputs that may each contain one page or several visibly bounded page frames | The Codex-supported Quick profile normalizes them into the ordered canonical frame roster without overwriting originals; frame count, not input-file count, owns slide count. |
| `analysis/source_profile.json` | Machine fact index | Compact PPTX intake digest | Default Strategist or Quick's current agent reads it as factual context and recommendation candidates |
| `analysis/<stem>.identity.json` | Native deck identity facts | Canvas, theme palette/fonts, observed usage | Read selectively when detailed identity facts are needed |
| `analysis/<stem>.slide_library.json` | Native PPTX structure facts | Text slots, geometry, native tables, native chart caches, SmartArt nodes/connections | Direct PPTX workflows use as native fill/structure contract |
| `analysis/image_analysis.csv` | Regenerated image fact view | Measured facts about the current `images/` folder | Re-run `analyze_images.py` before reading image facts after changes |
+| `analysis/reconstruction_inventory.json` | Image to PPTX source-evidence ledger | Source-container/frame mapping, hashes, page order/canvas, visible-region bboxes, observed text/graphic/image family, transcription confidence, overlap/z-order observations, and unresolved evidence | The active Codex Quick agent writes it before layer decisions. It contains no final realization, prompts, output filenames, or SVG bindings; those belong to Quick active context plus required operational image evidence. |
| `design_spec.md` | Strategist design authority | Human-readable design intent, page brief, rationale, resources, and production mechanics | Consume final confirmation once, write/audit here, and apply enabled refinement to this same artifact. §I records effective Speaker Notes, Custom Animations, and Narration Audio outcomes plus provenance; a newer explicit user instruction updates only its owning outcome without reopening Confirm UI. After Gate 1 plus conditional approval, later roles read this file instead of `result.json`; §IX owns Executor page content. |
| `spec_lock.md` | Execution anchor and routing contract | Machine-readable stable color/type roles, icons, images, page rhythm, charts, `template_reuse_scope`, and the route's PowerPoint structure mode; mirror/layout template routes additionally own input prototypes, the Master roster, and the complete page-to-Master/Layout mapping | Strategist authors the route-specific anchors from the audited Design Spec plus current project/page/template context. Executor retains the complete lock once per valid execution context; local uncertainty consults that retained copy before the owning Design Spec fragment. Sparse page-local color/font garnish needs no lock row; a recurring semantic role or new adaptive Layout identity requires Strategist repair before reuse. |
| `project_manager.py page-context` stdout | Derived on-demand page context | Read-only model-facing anchor set + current-page delta + fingerprints for large references | Use only for explicit diagnostics/telemetry or an unresolved page/template/chart path-SHA projection. Never edit or persist it as a replacement source of truth, and never run it as a routine pre-page gate. `global` is a bounded anchor set, not a whitelist. `reference_set` carries path/SHA/load policy but never appends reference payloads. |
@@ -78,6 +80,7 @@ history, or resumable planning state. Context loss restarts the Quick run.
| Imported-template authoring | Editable SVGs under `authoring-svg/` own create-template edits, `authoring_summary.json` owns model-facing orientation, and `authoring_manifest.json` owns tool-only source-object identity. Lossless `svg/` owns immutable native payload and fallback evidence; optional `svg-flat/` owns only complete-page verification. Materialized `templates/*.svg` own the validated deliverable contract and contain no IR-only source refs. |
| Legacy template input | Old unmapped/distilled/preserve structured projects and incomplete template packages are not migrated in place. [`create-template`](../workflows/create-template.md) authors a new current workspace: original PPTX Type A may preserve existing native topology in mirror; legacy SVG-only Type B is visual reference for `standard` / `fidelity`. Intentional free-design, Brand-only, and Style-only `flat` projects are already current. The exporter does not migrate or visually cluster legacy structure. |
| Image facts | `images/` is live state; `analysis/image_analysis.csv` is a regenerated view, not a durable cache. |
+| Image to PPTX | Normalized page frames own visible-surface truth, not literal reuse of their pixel bytes; `analysis/reconstruction_inventory.json` owns only source evidence. Native text restores visible wording. Identity graphics use an exact vector, deterministic redraw, sufficient source asset, or Codex reference-based high-resolution reconstruction; data graphics stay native-and-verified or exact and are never generatively recreated. Scene imagery uses registered clean-base/midground/subject/foreground layers; padded-bbox-disjoint objects may share one generated plate before independent crop/slice realization. Never infer hidden semantics, substitute a merely similar graphic, or use a full-page screenshot skin as the editable result. |
| SVG source | `svg_output/` is the only author source for generated pages. |
| Page-design closure | On SVG-authoring routes, every visible exported-slide object exists in the corresponding page SVG or an explicitly referenced visual asset. |
| Package-behavior separation | Speaker notes, animations, transitions, narration, and direct native-PPTX workflows keep their owning artifacts; do not force them into SVG metadata. |
diff --git a/skills/ppt-master/references/image-generator.md b/skills/ppt-master/references/image-generator.md
index 42a50f16..6f495bfe 100644
--- a/skills/ppt-master/references/image-generator.md
+++ b/skills/ppt-master/references/image-generator.md
@@ -306,43 +306,94 @@ python3 scripts/slice_images.py <project>/images/illus_sheet.png --grid 2x3 \
---
-### 4.4 Registered subject/base pairs
+### 4.4 Registered reconstruction groups and shared plates
-Use this preparation when a person, product, creature, or other foreground
-subject must cross native titles, panels, frames, cards, or shapes while the
-original scene remains behind them. The final pair is one compositional asset:
+Use this preparation when a person, product, creature, effect, or other scene
+element must cross native titles, panels, frames, cards, or shapes while the
+original scene remains behind it. A clean base plus one subject/foreground
+output is the minimum group; add layers only when overlap or independent
+editing requires them:
| Output | Required content |
|---|---|
-| Clean base | Full original canvas with the foreground subject removed and the hidden background reconstructed |
-| Subject cutout | The same full canvas and subject position, with only the foreground subject visible on RGBA transparency |
-
-**Mandatory — preserve registration**: Start both derivatives from the same
-source. Preserve canvas dimensions, subject pose, scale, and position; do not
-trim or independently crop either final output. Record the shared source and
-pair relationship in the owning §VIII rows or Quick active-context resources.
+| Clean base | Full original canvas with every planned removable scene element removed and the hidden background reconstructed |
+| Optional midground | Full canvas with only the scene content that must sit between the base and primary subjects |
+| Subject / foreground | Full canvas with one subject or one z-order-compatible set visible on RGBA transparency |
+| Shared layer plate | Several mutually non-overlapping objects isolated together in one full-canvas or regular-cell output |
+
+**Mandatory — preserve registration**: derive every full-canvas member
+independently from the same canonical source. Preserve canvas dimensions,
+subject pose, scale, position, lighting, and visible style; do not trim or
+independently crop registered final outputs. Record the shared source and group
+relationship in the owning §VIII rows or Quick active-context resources.
+
+**Image to PPTX override — Codex required**: when
+[`image-to-pptx.md`](../workflows/profiles/image-to-pptx.md) is active, use
+Codex's native reference-image generation/editing capability and inspect every
+derived member plus the final recomposition. Do not adapt `image_gen.py`, its
+generic manifest, or provider backends for this profile. Other hosts are not a
+supported execution target. The ordinary Path A / Path B procedure below
+continues to apply outside this profile.
**Preparation procedure**:
-1. Use the active image-editing path to remove the subject and inpaint the clean base.
-2. Use the same source to isolate the subject. Prefer a direct RGBA result.
-3. When the active path cannot return transparency, place the isolated subject on one exact flat key color, then run `slice_images.py` as a `1x1` sheet with `--alpha` and without `--trim` so the full-canvas coordinates remain unchanged.
-4. Save both final files under `<project>/images/` and mark them `no-crop` in the active resource authority.
-
-Path A may use the existing single-image edit mode for each derivative; Path B
-may perform the same edits with the host-native image tool:
+1. From the canonical reference, remove every planned separate subject,
+ foreground object, source/data graphic, and editable text, then inpaint one
+ clean base without redesigning visible background content.
+2. From that same reference, isolate the subject/foreground content. Never
+ derive a layer from the generated base or another generated layer.
+3. Prefer one shared plate when several objects do not overlap and use the same
+ isolation treatment. Their padded bboxes, including visible shadows and
+ effects, must be pairwise disjoint. One object does not imply one generation
+ call.
+4. For a registered plate, retain the original full-canvas positions and use
+ one nested-SVG picture crop per recorded bbox under
+ [`svg-effects.md`](./svg-effects.md) §6.5. For a rearranged regular-cell
+ plate, follow §4.3 and run
+ `slice_images.py --grid ... --names ... --trim --alpha`; place each
+ resulting asset at its recorded source bbox.
+5. Prefer direct RGBA. When transparency is unavailable, use one exact flat
+ key color for the whole layer/plate, then run `slice_images.py` once as a
+ `1x1` sheet with `--alpha` and without `--trim` so full-canvas coordinates
+ remain unchanged. Do not generate one keyed image per object.
+6. Save final files under `<project>/images/`. Mark registered full-canvas
+ members `no-crop`; ordinary trimmed cell slices retain their own measured
+ dimensions.
+
+Objects that overlap one another or require different z-order use separate
+plates/layers. A shared output is valid only when every required final object
+still becomes an independent SVG/PPT picture object.
+
+**Shared registered-plate prompt core**:
+
+> Using the supplied canonical page as the only visual reference, isolate the
+> following foreground objects together on one full-canvas extraction plate:
+> {stable object ids/descriptions}. Preserve each object's visible identity,
+> silhouette, pose, scale, rotation, lighting, shadow, and exact original canvas
+> position. Keep the original aspect ratio and canvas registration. Retain only
+> those listed objects; remove the background and every unlisted element. Do not
+> rearrange, resize, merge, duplicate, or let the listed objects touch one
+> another. Retain an explicitly listed source graphic or wordmark exactly when
+> it is one of the requested objects; remove editable slide text and every
+> unlisted logo/source graphic. Return RGBA transparency if supported;
+> otherwise use one uniform exact {key HEX} matte with no gradient, texture,
+> spill, or extra marks.
+
+Outside Image to PPTX, Path A may use the existing single-image edit mode for
+each registered derivative; Path B may perform the same edits with the
+host-native image tool:
```bash
-python3 scripts/image_gen.py "Remove the foreground subject and reconstruct the hidden background; preserve the exact canvas" \
- --reference-image <project>/images/<source>.png -o <project>/images -f <pair>_base
-python3 scripts/image_gen.py "Isolate the same foreground subject at the exact original pose, scale, and position on a flat #00FF00 background" \
- --reference-image <project>/images/<source>.png -o <project>/images -f <pair>_subject_key
-python3 scripts/slice_images.py <project>/images/<pair>_subject_key.png --grid 1x1 \
- --names <pair>_subject --alpha --bg "#00FF00"
+python3 scripts/image_gen.py "Remove the planned foreground subjects and reconstruct the hidden background; preserve the exact canvas" \
+ --reference-image <project>/images/<source>.png -o <project>/images -f <group>_base
+python3 scripts/image_gen.py "Isolate the planned non-overlapping foreground objects at their exact original positions on one flat #00FF00 plate" \
+ --reference-image <project>/images/<source>.png -o <project>/images -f <group>_plate_key
+python3 scripts/slice_images.py <project>/images/<group>_plate_key.png --grid 1x1 \
+ --names <group>_plate --alpha --bg "#00FF00"
```
-The positional edit commands are allowed here as the declared derivation step
-for already-planned pair rows; keep the final pair in the ordinary resource
+These positional edit commands remain the declared derivation exception for
+already-planned group rows. Keep every final member in the ordinary resource
authority and operational sidecar. SVG realization follows
[`image-layout-patterns.md`](./image-layout-patterns.md) `#A2-03`.
diff --git a/skills/ppt-master/references/image-layout-patterns.md b/skills/ppt-master/references/image-layout-patterns.md
index dd0f5a64..0ba94dfc 100644
--- a/skills/ppt-master/references/image-layout-patterns.md
+++ b/skills/ppt-master/references/image-layout-patterns.md
@@ -46,7 +46,7 @@ Compact composition vocabulary for prepared images, illustrations, and rendered
| Several visuals should read as one system | `#P3-05` grid, `#P3-14` mosaic with text cell, `#P3-20` tessellation, `#P3-21` split tiling, `#P3-22` curve array, `#P3-23` depth row |
| A foreground needs an opening or reveal | `#M1-06` true hole, `#M1-07` cut scrim, `#M1-08` background-registered fill, `#M1-05` text subtraction |
| Text needs contrast without discarding the visual | `#M2-01` directional scrim, `#M2-05` spotlight, `#A3-02` prepared frosted panel, `#M2-09` grid scrim |
-| A subject should cross or re-layer around native content | `#A2-02` frame breakout or `#A2-03` registered subject/base pair |
+| A subject should cross or re-layer around native content | `#A2-02` frame breakout or `#A2-03` registered reconstruction group |
| A cover, divider, or promotional page needs image-led structure | `#P1-01`, `#P1-04`, `#P1-13`, or `#P3-15`–`#P3-19` |
| Consecutive pages should share one visual world | `#C1-01` persistent state, `#C2-01` pan, `#C2-02` push/pull, or `#C3-01` matched framing |
@@ -178,7 +178,7 @@ The following three patterns are topologically different and are not interchange
- **#A2-01 · Transparent sticker or cutout** — use a prepared RGBA asset and preserve its open silhouette.
- **#A2-02 · Subject breaking out of a container** — register a prepared foreground subject across its frame boundary.
-- **#A2-03 · Registered subject/base pair** — align a clean base with its prepared transparent subject cutout in one coordinate system. Draw the base first, the native title/panel/shape second, and the cutout last. Give both images the same `x`, `y`, `width`, `height`, and aspect mapping; never trim or independently crop either layer.
+- **#A2-03 · Registered reconstruction group** — align a clean base with one or more prepared transparent midground/subject/foreground layers in one coordinate system. Draw each member at its required z-order. Give every full-canvas member the same `x`, `y`, `width`, `height`, and aspect mapping; never trim or independently crop it. Several padded-bbox-disjoint objects may share one prepared plate while remaining separate nested-SVG picture crops.
### 5.3 A3 · Registered Derivatives
diff --git a/skills/ppt-master/references/strategist-image.md b/skills/ppt-master/references/strategist-image.md
index 2a98400b..59cb0e07 100644
--- a/skills/ppt-master/references/strategist-image.md
+++ b/skills/ppt-master/references/strategist-image.md
@@ -18,7 +18,7 @@ For illustration, apply this precedence: confirmed `none` → explicit user inte
**Default — one coherent sheet for compatible same-family spots (may override when aspect, detail, quality, or semantic needs differ)**: prefer one Illustration Sheet when several AI-generated spots can share a useful cell shape and production treatment; generate them independently when forcing one sheet would weaken a planned element. When a sheet is chosen, plan one unplaced `ai` Illustration Sheet row plus one placed `slice` row per used element; only slice rows enter `spec_lock.md images`. State the intended placement shape family in the sheet reference and use separate sheets for incompatible shapes. [`image-generator.md`](./image-generator.md) §4.3 owns grid, ratio, slicing, and execution details. Final Stage 2 chooses the AI execution path under `image-generator.md` §7; do not pre-empt or re-pick it here.
-**Mandatory — subject-layer capability scan**: When a supplied reference or the intended composition shows a subject crossing a native title, panel, frame, or shape, plan a registered subject/base pair before writing §VIII. Add one clean full-canvas base row and one same-canvas RGBA subject row, give both `Crop Policy: no-crop`, name their shared source and registration relationship in `Reference`, and suggest `#A2-03` for the subject row. Use `Acquire Via: user` only when both final assets are already supplied; otherwise use `ai` for the prepared derivatives. [`image-generator.md`](./image-generator.md) §4.4 owns preparation. A simple floating cutout that does not re-layer over its source may use `#A2-01` instead.
+**Mandatory — subject-layer capability scan**: When a supplied reference or the intended composition shows a subject crossing a native title, panel, frame, or shape, plan a registered reconstruction group before writing §VIII. Add one clean full-canvas base row and the minimum same-canvas RGBA midground/subject/foreground rows, give full-canvas members `Crop Policy: no-crop`, name their shared source and registration relationship in `Reference`, and suggest `#A2-03`. Padded-bbox-disjoint objects may share one generated plate if the final SVG gives each one an independent picture crop. Use `Acquire Via: user` only when every final asset is already supplied; otherwise use `ai` for the prepared derivatives. [`image-generator.md`](./image-generator.md) §4.4 owns preparation. A simple floating cutout that does not re-layer over its source may use `#A2-01` instead.
## 2. AI Image Strategy — always propose three; lock only for confirmed `ai`
diff --git a/skills/ppt-master/scripts/prompt_audit_manifest.json b/skills/ppt-master/scripts/prompt_audit_manifest.json
index f0825bd5..5c9ae1a0 100644
--- a/skills/ppt-master/scripts/prompt_audit_manifest.json
+++ b/skills/ppt-master/scripts/prompt_audit_manifest.json
@@ -140,7 +140,7 @@
"files": [
"skills/ppt-master/workflows/native-enhance-pptx.md"
],
- "max_tokens": 11000
+ "max_tokens": 13000
},
"route.fill-native-pptx": {
"description": "Raw-PPTX native fill route.",
@@ -258,6 +258,19 @@
"files": [],
"max_tokens": 100000
},
+ "route.generate.quick-generate.image-to-pptx": {
+ "description": "Codex-supported Quick-only Image to PPTX with registered reference-image layers and shared plates.",
+ "scope": "cumulative",
+ "include": [
+ "route.generate.quick-generate.in-hand-image",
+ "profile.generate.image-to-pptx"
+ ],
+ "files": [
+ "skills/ppt-master/references/image-base.md",
+ "skills/ppt-master/references/image-generator.md"
+ ],
+ "max_tokens": 130000
+ },
"route.generate.quick-generate.video-design": {
"description": "Quick Generate with conditional video-delivery design, frozen-script notes, custom animation, and narration/audio delivery.",
"scope": "cumulative",
@@ -571,7 +584,7 @@
"stage.shared.generate-audio"
],
"files": [],
- "max_tokens": 17000
+ "max_tokens": 19000
},
"route.generate.beautify-flat-no-image": {
"description": "Generate-PPTX 1:1 beautify profile on the flat no-image path.",
@@ -798,6 +811,14 @@
],
"max_tokens": 7750
},
+ "profile.generate.image-to-pptx": {
+ "description": "Codex-supported, Quick-only profile for reconstructing raster page frames as layered editable PPTX.",
+ "scope": "incremental",
+ "files": [
+ "skills/ppt-master/workflows/profiles/image-to-pptx.md"
+ ],
+ "max_tokens": 4000
+ },
"stage.generate.video-design": {
"description": "Conditional recorded/self-running delivery design and prepared final-script handling shared by Default and Quick.",
"scope": "incremental",
diff --git a/skills/ppt-master/workflows/create-template.md b/skills/ppt-master/workflows/create-template.md
index a5376337..161bbcfc 100644
--- a/skills/ppt-master/workflows/create-template.md
+++ b/skills/ppt-master/workflows/create-template.md
@@ -18,6 +18,12 @@ Create one reusable template workspace under either the **global template librar
> **Boundary against template-fill and in-place structure edits**: Create Template does not fill content into a PPTX, add Master/Layout structure to an existing PPTX/SVG, or directly output the user's final generated deck. It authors a separate reusable workspace; an optional PPTX is review evidence only. To generate a deck, return the workspace root as an exact candidate to [`generate-pptx`](./generate-pptx.md) Step 3, confirm it with Stage 1, then author new SVG pages from the installed state. A project-scoped workspace selected for its own project is consumed in place after that confirmation.
+> **Boundary against page-image reconstruction**: screenshots and page visuals
+> in this route are evidence for reusable rules and prototypes. When the user
+> instead wants each supplied page image reconstructed into one final editable
+> slide, use the Codex-supported [`image-to-pptx.md`](./profiles/image-to-pptx.md);
+> do not turn a final-deck request into a template workspace.
+
## Child Workflow Dispatch
Create Template is the fixed user-facing entry and common contract. It selects one child workflow, then that child owns the kind-specific lifecycle. Do not execute two children for one workspace or blend their schemas.
diff --git a/skills/ppt-master/workflows/generate-pptx.md b/skills/ppt-master/workflows/generate-pptx.md
index e2779e1f..0490994a 100644
--- a/skills/ppt-master/workflows/generate-pptx.md
+++ b/skills/ppt-master/workflows/generate-pptx.md
@@ -497,7 +497,7 @@ Then **lazy-load the path-specific reference** for each row that actually needs
A deck with only `ai` rows never loads `image-searcher.md`; a deck with only `web` rows never loads `image-generator.md`. A mixed deck loads both, processes each row through its own path, and writes both `image_prompts.json` and `image_sources.json`.
-> ⚠️ **In-pipeline ai rows MUST use the manifest contract** — even when only 1 ai row exists. Always write `images/image_prompts.json` first and render `image_prompts.md` with `image_gen.py --render-md`. Then execute the confirmed path from `image-generator.md §7`: `image_gen.py --manifest` is **Path A only**; `host-native` is **Path B** and MUST skip `--manifest`; `manual` writes the prompts and stops for external generation. The positional form (`image_gen.py "prompt" ...`) is reserved for **out-of-pipeline one-off testing / single-image fixups**, except for the already-planned registered subject/base derivation in `image-generator.md` §4.4. That narrow exception keeps both final rows in the resource authority and operational sidecar; it does not authorize unrelated in-pipeline generation outside the manifest contract.
+> ⚠️ **In-pipeline ai rows MUST use the manifest contract** — even when only 1 ai row exists. Always write `images/image_prompts.json` first and render `image_prompts.md` with `image_gen.py --render-md`. Then execute the confirmed path from `image-generator.md §7`: `image_gen.py --manifest` is **Path A only**; `host-native` is **Path B** and MUST skip `--manifest`; `manual` writes the prompts and stops for external generation. The positional form (`image_gen.py "prompt" ...`) is reserved for **out-of-pipeline one-off testing / single-image fixups**, except for the already-planned registered reconstruction-group derivation in `image-generator.md` §4.4. That narrow exception keeps every final member in the resource authority and operational sidecar; it does not authorize unrelated in-pipeline generation outside the manifest contract.
> ⚠️ **web path — batch multiple rows**: when ≥2 rows are `Acquire Via: web`, write all queries into `images/image_queries.json` and run `image_search.py --batch` once (concurrent acquisition, status written back), instead of one CLI call per row. A single web row may use the positional single-query form. See [image-searcher.md](../references/image-searcher.md) §5.
diff --git a/skills/ppt-master/workflows/index.md b/skills/ppt-master/workflows/index.md
index a4d91b7a..c59ec0ab 100644
--- a/skills/ppt-master/workflows/index.md
+++ b/skills/ppt-master/workflows/index.md
@@ -19,6 +19,7 @@ Maintainer-only inventory for adding, moving, or removing workflow documents. Ru
| ID | Class | Path | Parent / lifecycle slot |
|---|---|---|---|
+| `image-to-pptx` | Generation profile | [`profiles/image-to-pptx.md`](./profiles/image-to-pptx.md) | Codex-supported, Quick-only page-frame normalization plus layered reconstruction |
| `beautify-pptx` | Generation profile | [`profiles/beautify-pptx.md`](./profiles/beautify-pptx.md) | Generate PPTX |
| `quick-generate` | Generation profile | [`profiles/quick-generate.md`](./profiles/quick-generate.md) | Generate PPTX direct SVG-to-PPTX short circuit |
| `apply-template-workspace` | Template-input stage | [`stages/apply-template-workspace.md`](./stages/apply-template-workspace.md) | Non-free Default Stage-1 selection after confirmation, or Quick direct exact-root input |
diff --git a/skills/ppt-master/workflows/profiles/beautify-pptx.md b/skills/ppt-master/workflows/profiles/beautify-pptx.md
index c2e169e8..5b5dfd65 100644
--- a/skills/ppt-master/workflows/profiles/beautify-pptx.md
+++ b/skills/ppt-master/workflows/profiles/beautify-pptx.md
@@ -32,6 +32,13 @@ Beautify constraints in this file apply in either runtime.
**Distinct from mirror templates**: `replication_mode: mirror` ([`executor-structured.md`](../../references/executor-structured.md) §1.1) keeps layout + visuals verbatim and edits text. Beautify is the inverse — content verbatim, layout redone, identity inherited.
+**Distinct from page-image reconstruction**: when the authoritative input is
+an ordered raster page roster and the user wants its visible layout preserved,
+activate the Codex-supported, Quick-only
+[`image-to-pptx.md`](./image-to-pptx.md) instead.
+Beautify requires a semantic source PPTX and deliberately redesigns layout; the
+two fidelity profiles never compose.
+
**When this profile is wrong — re-architecture belongs to ordinary Generate**: this profile preserves the source's page count and page order 1:1. It is for "keep this deck, just lay it out better". When the user instead wants the original page breakdown reconsidered — merge / split / reorder pages, re-outline the structure, build a *better deck* from the same content rather than a prettier version of the same pages — do not activate this profile. This includes re-pagination for fit: "keep every word but split a crowded page so it reads better" changes page count. Convert the deck with [`ppt_to_md`](../../scripts/source_to_md/ppt_to_md.py) and use ordinary Quick when Quick was explicit, otherwise the Default main pipeline. The deciding question: is the source's page split information to preserve, or just the previous author's structure to improve? Preserve → activate this profile; improve → ordinary Generate in the selected runtime.
---
diff --git a/skills/ppt-master/workflows/profiles/image-to-pptx.md b/skills/ppt-master/workflows/profiles/image-to-pptx.md
new file mode 100644
index 00000000..549dd921
--- /dev/null
+++ b/skills/ppt-master/workflows/profiles/image-to-pptx.md
@@ -0,0 +1,312 @@
+---
+description: Quick-only Generate profile for reconstructing one or more source images into layered, editable PPTX slides.
+---
+
+# Image to PPTX Profile
+
+> Quick-only Generate profile, not a top-level route. Normalize one or more
+> supplied images into the represented page roster, then rebuild each page as
+> native text, identity-faithful source graphics, and independently placeable
+> image layers.
+
+Reconstructs approved mockups, rendered slide images, contact sheets, or
+flattened page visuals into a new PPTX. It does not redesign the deck and does
+not run Strategist or confirmation. The visible result is the reference truth,
+but the output is not a screenshot skin: image content is rebuilt into the
+smallest useful background / foreground / subject stack, visible text is
+restored as native text, and source graphics remain visually exact.
+
+**Trigger**: the user supplies one or more raster visuals and explicitly asks
+to restore the represented pages as a PPTX. Ordinary photos, illustrations, and
+moodboards used only as resources for a new story do not activate this profile.
+
+**Support boundary — Codex required**: this profile is currently documented
+and validated for Codex because it depends on Codex's native reference-image
+generation/editing capability and direct inspection of every derived layer.
+Other hosts are not adapted or supported by this workflow; they may happen to
+work, but the repository makes no compatibility claim and defines no alternate
+host or generic image-backend fallback for this profile.
+
+**Hard rule — Quick only**: this profile always loads
+[`quick-generate.md`](./quick-generate.md) and never
+[`generate-pptx.md`](../generate-pptx.md). The user does not need to say
+"Quick" separately. Skip Strategist, Confirm UI, template selection,
+`design_spec.md`, `spec_lock.md`, and the Default first-page gate. The current
+main agent decides the reconstruction directly, prepares all resources, hand-
+authors SVG pages, runs the lockless final checker, and exports.
+
+**Hard rule — source surface, not template application**: stay in Quick free
+design and do not install or apply a Brand/Style/Layout/Deck workspace for this
+profile. A template would compete with the canonical page geometry and visual
+identity. A reusable-system request routes to Create Template instead.
+
+---
+
+## 1. Routing and Output Boundary
+
+| Request shape | Behavior |
+|---|---|
+| One or more image files represent pages that must become a final editable PPTX | Activate this profile and Quick Generate |
+| One file contains several clearly separated slide frames | Split it into the ordered page roster first, then reconstruct each frame |
+| Images are ordinary content assets or inspiration for a new deck | Use ordinary Generate |
+| Images should define a reusable Brand/Style/Layout/Deck workspace | Use [`create-template.md`](../create-template.md) |
+| A semantic source PPTX exists and only its layout should improve | Use [`beautify-pptx.md`](./beautify-pptx.md) |
+
+**Hard rule — mutually exclusive fidelity profiles**: Image to PPTX and
+Beautify never compose. Beautify preserves semantic PPTX content while
+redesigning layout; Image to PPTX preserves a rendered page surface while
+rebuilding its object and image-layer boundaries.
+
+**Hard rule — flat final deck**: output stays `pptx_structure.mode: flat`. Page
+pixels do not prove Master/Layout identity, placeholders, theme ancestry,
+hidden objects, notes, animations, chart data sources, or authoring history.
+Do not infer them. A reusable-system request routes to Create Template instead.
+
+---
+
+## 2. Normalize Source Images into Pages
+
+🚧 **GATE**: an ordered canonical page-image roster exists before image-layer
+decisions or SVG authoring.
+
+| Source form | Normalization |
+|---|---|
+| One file containing one complete page | Keep it as one canonical page image |
+| Several files containing one page each | Preserve the explicit or filename-natural order |
+| One or more regular contact sheets | Split row-major with `slice_images.py --grid`, without alpha removal |
+| A file containing several non-grid page frames | Record each visibly bounded page bbox and crop it into a separate lossless canonical page image |
+| Boundaries or order are genuinely ambiguous | Mark the roster blocked instead of silently merging, dropping, or reordering pages |
+
+Archive original files under `sources/`; keep normalized page images under
+`images/source-pages/` or another project-local source-page folder. Never
+overwrite an original file.
+
+**Hard rule — one normalized frame, one slide**: frame count, not input-file
+count, owns slide count. Every normalized page frame maps to one output slide
+in the same order. Preserve the frame's aspect ratio. Mixed aspect ratios are
+blocked until the current agent resolves one explicit whole-deck treatment.
+
+**Mandatory — inspect every canonical page**: ordinary image-resource
+inspection limits do not apply to this page roster. Inspect each normalized
+page once to identify text, source graphics, scene-image regions, overlap, and
+the minimum useful layer stack. Reopen only the current page or a specifically
+unresolved region afterward.
+
+---
+
+## 3. Reconstruct by Content Family
+
+Classify visible regions by what they are, not by how easy they are to crop.
+
+| Content family | Default realization | Non-negotiable boundary |
+|---|---|---|
+| Editable text | `native_text` | Restore exact visible wording, line grouping, alignment, emphasis, and approximate font metrics; do not bake ordinary slide text into generated images |
+| Source graphic | `source_graphic` | Logos, icons, badges, vector-like ornaments, and decorative marks preserve visible identity. Use an exact vector, deterministic redraw, sufficient source pixels, or Codex reference reconstruction according to the quality ladder below; never substitute a merely similar graphic |
+| Data graphic | `native_chart`, `native_table`, or exact `source_graphic` | Preserve every visible value, label, relationship, and geometry. Rebuild natively only when the source is legible enough to verify; otherwise use an exact crop/vector or mark `manual_required`. Never ask a generative model to recreate chart/table/data content |
+| Simple exact geometry | `native_shape` | Use a native shape only when fill, stroke, geometry, and layering can be matched faithfully; otherwise prepare an identity-faithful source-graphic asset |
+| Scene image | `image_layer` | Photos, people, characters, products, environmental backgrounds, textures, and complex illustrations may be reference-edited or regenerated as registered layers |
+| Unreadable or unsafe region | `manual_required` | Block rather than invent wording, identity, values, or a visually different replacement |
+
+**Graphic identity is authoritative; source pixel bytes are not**: use an exact
+known vector when available. Deterministically redraw a simple, fully legible
+graphic as SVG/native geometry. Reuse source pixels only when they are complete
+and sufficient at final display size. When a complex logo, icon, badge,
+ornament, or wordmark is visibly identifiable but too low-resolution, use its
+source crop as the Codex reference and reconstruct a higher-resolution asset
+that preserves the same silhouette, proportions, colors, lettering, bbox, and
+z-order. Never merely interpolate low-resolution pixels, redesign the brand,
+replace it with a similar library icon, or invent unreadable identity. If those
+properties cannot be verified, mark the graphic `manual_required`.
+
+**Visible-surface authority**: preserve every legible string, number, label,
+relative position, crop, z-order, color relationship, and emphasis visible in
+the source. Do not improve the layout, rewrite copy, correct claims through
+research, reveal invented semantics, or silently replace branded graphics.
+
+---
+
+## 4. Build the Minimum Useful Layer Stack
+
+For each page, decide the smallest stack that makes the intended objects
+independent. Do not split a page merely to maximize layer count.
+
+Typical bottom-to-top order:
+
+1. `base` — clean full-canvas background with all planned removable subjects,
+ foreground objects, and editable text removed; hidden background pixels are
+ reconstructed where necessary.
+2. `midground-*` — optional scene layers that must sit between the base and
+ primary subject.
+3. `subject-*` — people, characters, products, props, or other independently
+ movable cutouts.
+4. `foreground-*` — effects, foliage, particles, framing objects, or other
+ scene elements that cross the subject or native slide objects.
+5. `source-graphic-*` — exact or identity-faithfully reconstructed logos,
+ icons, badges, and ornamental marks, plus exact/native data graphics at
+ their visible z-order.
+6. `native-text-*` and exact native shapes.
+
+**Registered-group rule**: every Codex-derived base/midground/subject/
+foreground layer in a group starts independently from the same canonical page
+or scene bbox. Preserve its canvas dimensions, position, scale, pose, lighting,
+and visible style. Full-canvas registered layers are not trimmed independently;
+transparent pixels retain alignment.
+
+Use [`image-generator.md`](../../references/image-generator.md) §4.4's
+registered reconstruction group as the primitive:
+
+- create one clean base by removing **all** scene subjects/foreground objects,
+ source/data graphics, and editable text planned for separate realization,
+ then reconstruct only the newly exposed background;
+- create at least one independent subject/foreground output from the same
+ canonical source whenever the page contains separable scene content; the
+ base plus that output are the minimum two newly generated images;
+- derive every additional layer independently from the canonical source, never
+ from the base or another generated layer;
+- preserve the original pose, scale, and coordinates on RGBA transparency;
+- repeat only for additional layers that genuinely need independent movement,
+ overlap, or animation.
+
+**Batch non-overlapping objects**: one object does not imply one generation.
+When several subjects, props, effects, or source-graphic reconstructions have
+pairwise-disjoint padded bboxes—including visible shadows and effects—and can
+share one isolation treatment, ask Codex for one `layer-plate` containing all
+of them with clear separation. Use either:
+
+- a full-canvas registered plate that keeps the source positions, then create
+ one nested-SVG picture crop per recorded bbox; or
+- a regular isolated-cell sheet when source coordinates are unnecessary, then
+ use `slice_images.py --grid ... --names ... --trim --alpha` and place the
+ resulting assets at their recorded source bboxes.
+
+Both paths yield independent PPT picture objects from one generated output.
+If transparency is unavailable, use one exact flat key color for the whole
+plate and remove it once; never regenerate a separate green-background image
+for each object. Objects that overlap one another or require different z-order
+must use separate plates/layers.
+
+The reference-image CLI does not inherit source dimensions automatically. Pass
+an explicit matching aspect ratio/size, then verify that every member of one
+registration group has the same final pixel canvas. In SVG, place the base and
+all full-canvas layers at identical `x`, `y`, `width`, and `height` with
+`no-crop` behavior.
+
+**Reconstruct for final resolution**: retaining complete source pixels is valid
+only when they remain sharp enough at final display size. Otherwise use Codex
+reference reconstruction for scene content and the source-graphic quality
+ladder above; interpolation alone does not recover detail.
+
+**Reference-edit, not reinterpretation**: reconstruction prompts name the
+canonical source page/region and ask to preserve the visible composition and
+style. They may inpaint hidden scene pixels or complete an occluded subject,
+but must not redesign the scene, change a character/person, introduce text,
+substitute or alter a logo, or invent extra decorative graphics.
+
+When Codex cannot return transparency, generate the isolated layer or shared
+plate on one exact flat key color and use `slice_images.py` as a `1x1` sheet
+with `--alpha` and **without** `--trim`, preserving full-canvas registration.
+Several plate members share this single keyed output.
+
+---
+
+## 5. Source Evidence without a Quick Plan
+
+Before deciding layers, write source evidence to:
+
+```text
+<project_path>/analysis/reconstruction_inventory.json
+```
+
+The inventory records what is visibly present, not a resumable implementation
+plan. Keep it limited to:
+
+- original file and normalized page path;
+- page order, source-frame bbox, SHA-256, and pixel dimensions;
+- visible regions with stable ids, source bboxes, observed family
+ (`text`, `graphic`, `image`, or `unknown`), verbatim text when applicable,
+ and confidence;
+- overlap/z-order observations and unresolved evidence.
+
+Do **not** put final layer choices, generation prompts, output filenames, or SVG
+bindings into this inventory. The current main agent keeps those decisions in
+active context and writes only required operational image manifests/evidence.
+Context loss restarts the Quick run; the inventory is not a resume artifact.
+
+Low-confidence visible text, an uncertain page boundary, or an unidentified
+branded/data graphic is unresolved evidence and blocks successful delivery.
+
+---
+
+## 6. Image Preparation
+
+When any `image_layer` or low-resolution `source_graphic` requires reference
+editing or generation, load
+[`image-base.md`](../../references/image-base.md) and
+[`image-generator.md`](../../references/image-generator.md). The current Codex
+main agent resolves the layer stack directly, uses Codex's native
+reference-image capability, and finishes every required layer before SVG
+authoring. Do not adapt `image_gen.py`, its generic manifest, or provider
+backends for this profile.
+
+- Use `text_policy: none` for scene reconstruction layers. Use `embedded` only
+ when an exact visible wordmark/letterform is integral to a reconstructed
+ source graphic; ordinary slide text always remains native.
+- Exhaust the available Codex image path automatically; block before export if a
+ required layer remains `Needs-Manual`.
+- Preserve each generated layer's source page/region, source hash, operation,
+ prompt, backend/model when available, output path/hash, registration group,
+ and z-order in the applicable operational evidence.
+- Re-run `analyze_images.py` after assets change.
+- A generated candidate is not usable until its expected file exists, it has
+ been inspected once, and its registration group or plate has been checked
+ against the canonical page.
+- Inspect the recomposed page once after all generated layers, plate crops,
+ source graphics, native shapes, and native text are in place. This narrow
+ readback is mandatory fidelity validation, not resource reselection.
+
+---
+
+## 7. SVG Authoring and Release Gate
+
+Follow Quick Generate after source normalization and resource preparation.
+Hand-author pages serially from the prepared base, registered scene layers,
+identity-faithful source graphics, native shapes, and native text. Give independently
+movable layers stable direct-root group ids so later animation can target them.
+
+**Forbidden — screenshot skin**: do not use the complete source page as the
+sole full-slide picture and add token editable text above it. The source page
+is a comparison reference, not a hidden backing layer in the delivered slide.
+
+Verify each page against its canonical image:
+
+| Final check | Required evidence |
+|---|---|
+| Page roster | Every normalized frame becomes one slide in the same order and canvas treatment |
+| Native text | Every legible string/number is present verbatim and remains editable |
+| Source graphics | Logos, icons, and decorative graphics preserve the original identity and geometry at adequate final resolution; no similar substitute or unverified redesign appears |
+| Data graphics | Every chart/table/data value and relationship is native-and-verified or retained from an exact source asset; none is generatively recreated |
+| Layer registration | Base, subject, foreground, and other generated layers share the expected canvas/placement and show no jumps, seams, halos, or independent-crop drift |
+| Visible image fidelity | The recomposed scene preserves the source's visible subject identity, pose, crop, lighting, color relationships, and z-order |
+| Honest reconstruction | AI-recovered hidden pixels are identified as reconstruction, not claimed as original source detail |
+| Independent objects | Every layer requested for editing or animation is a distinct SVG/PPT picture object; non-overlapping members may originate from one shared generated plate |
+| Reference exclusion | Canonical full-page source images remain comparison evidence and are not referenced or packaged as delivered slide media |
+| Package quality | Quick's lockless final SVG checker and PPTX postflight pass |
+
+If a generated layer drifts, retry from the canonical reference with a narrower
+edit instruction. Do not compensate by changing native text/graphics or by
+flattening the full page. If the Codex image path is exhausted,
+mark the affected layer `Needs-Manual` and block successful export.
+
+```markdown
+## ✅ Image to PPTX Complete
+
+- [x] Source files were normalized into the complete ordered page roster
+- [x] Visible text is native and verbatim
+- [x] Source graphics preserve identity and are sharp enough at final size
+- [x] Required background / foreground / subject layers are independent and registered
+- [x] Shared plates were split/cropped into the required independent objects
+- [x] Recombined pages match the supplied visual references
+- [x] Canonical full-page source images are absent from delivered slide media
+- [x] Quick's SVG quality gate and PPTX postflight pass
+- [ ] **Next**: Report the PPTX and identify native, exact-source, and AI-reconstructed objects
+```
diff --git a/skills/ppt-master/workflows/profiles/quick-generate.md b/skills/ppt-master/workflows/profiles/quick-generate.md
index 85c63bed..02f643a6 100644
--- a/skills/ppt-master/workflows/profiles/quick-generate.md
+++ b/skills/ppt-master/workflows/profiles/quick-generate.md
@@ -78,6 +78,7 @@ Prepare source facts before initialization:
| Input | Action |
|---|---|
| Topic or requirements without supporting facts | Run [`topic-research`](../stages/topic-research.md) immediately and retain its Markdown supplement plus fact-provenance JSON for import |
+| One or more PNG / JPEG / WebP files representing page frames under Image to PPTX | Do not call `source_to_md.py`; normalize single-page files and multi-frame contact sheets into the canonical ordered frame roster through that profile, then import the originals below |
| PDF / DOCX / Office document / XLSX / XLSM / PPTX / EPUB / HTML / LaTeX / RST / web URL | Run `python3 ${SKILL_DIR}/scripts/source_to_md.py <file_or_URL_or_dir> [<file_or_URL_or_dir> ...]` |
| CSV / TSV | Read directly as a plain-text table source |
| Markdown or direct conversation text | Read directly |
@@ -97,6 +98,7 @@ After reading every direct and converted source, assess factual sufficiency:
| Material state | Action |
|---|---|
+| Image to PPTX page surface | Treat as a closed visible corpus; unreadable/occluded regions become `manual_required`, never external research |
| The requested outcome is supported | Continue |
| A required externally verifiable claim remains unsupported | Run [`topic-research`](../stages/topic-research.md) for those gaps only |
| Closed corpus / source-only / no external enrichment | Stay within the supplied material |
@@ -115,6 +117,11 @@ nor its artifacts.
Before initialization, resolve exactly one template branch:
+When [`image-to-pptx.md`](./image-to-pptx.md) is active, its canonical page
+surface owns the design: select **Free design** directly and do not inspect,
+install, or apply a supplied template workspace. The branches below apply to
+ordinary Quick and other compatible profiles.
+
- **Direct template application**: one or more exact current workspace roots
were supplied in the request, or Create Template returned an exact validated
root in the current conversation. Accept at most one root per declared kind.
@@ -166,6 +173,10 @@ target project; every external path is copied and remains untouched. Use
wrote Markdown beside the original source, pass that source path or directory
once; when `-o` wrote it elsewhere, pass both locations. Direct supported bitmap
inputs are archived under `sources/` and copied collision-safely into `images/`.
+When [`image-to-pptx.md`](./image-to-pptx.md) is active, its
+normalized frame roster is canonical page-surface input and the current main
+agent writes the source-evidence-only `analysis/reconstruction_inventory.json`
+before deciding the layer stack in active context.
For each imported PPTX, `import-sources` automatically writes
`analysis/<stem>.identity.json`, `analysis/<stem>.slide_library.json`, and the
@@ -334,19 +345,24 @@ Prepare only the resource paths needed by the decided pages:
| Resource | Required preparation |
|---|---|
| Supplied/extracted image | Copy the selected file into `images/`; preserve its factual/provenance context and use the measured file rather than an invented substitute |
+| Image-to-PPTX reconstruction asset | In Codex, preserve identity graphics through an exact vector, deterministic redraw, sufficient source asset, or reference-based high-resolution reconstruction; keep data graphics native-and-verified or exact. For scene imagery, build the minimum registered clean-base/midground/subject/foreground group; batch padded-bbox-disjoint objects into one shared plate, then split them with grid slicing or independent nested-SVG bbox crops |
| Bundled/custom icon | Follow the [icon library contract](../../templates/icons/README.md), choose one coherent primary library, sync a useful project pool covering recurring semantics and likely page-local needs without assigning icons to pages, and choose from that prepared pool during SVG authoring |
| Formula | Follow the [`latex_render.py` contract](../../scripts/docs/image.md), write `images/formula_manifest.json`, run the renderer, and keep the rendered PNG under `images/` |
| AI image | Follow `image-base.md` + `image-generator.md`; apply only the chosen rendering preset or exact custom bases, never blend unselected catalog identities, and keep `image_prompts.json` plus its human-readable sidecar |
| Web image | Follow `image-base.md` + `image-searcher.md`; keep query/status data and `image_sources.json`, including any required on-slide attribution |
| Illustration slice | Generate or obtain the parent sheet, run `slice_images.py`, and place only the resulting element files |
-| Registered subject/base pair | Follow `image-generator.md` §4.4; keep the clean base and transparent subject on the same full canvas, then place both with `crop=no-crop` |
+| Registered reconstruction group | Follow `image-generator.md` §4.4; keep full-canvas members registered with `crop=no-crop`, and materialize every required shared-plate member as an independent picture object |
| Visualization | Keep Chart values, Table cell topology, and chosen treatment in active context; load the applicable Chart/Table authority in §3 and write native replacement metadata only for an independently selected native-ready object |
**Image inspection boundary**: acquisition-time suitability review follows the
owning AI/web/slice reference. Once resources reach terminal status, SVG
authoring follows `executor-image.md`'s narrow placement inspection: inspect only
one specifically ambiguous `Existing`/`Sourced` asset and never routinely reopen
-`Generated` outputs.
+`Generated` outputs. Image to PPTX is the narrow fidelity exception: inspect
+every normalized page once for its inventory, inspect every generated
+reconstruction layer or shared plate once, and inspect the final recomposition
+against the canonical frame. Reopen only the current page or one unresolved
+region after that required comparison.
After image resources change, run `analyze_images.py` so
`analysis/image_analysis.csv` reflects the files that SVG authoring will use.
@@ -406,6 +422,13 @@ relationship better. Formula-only pages use
[`image-layout-spec.md`](../../references/image-layout-spec.md) without forcing a
multi-image system.
+Image to PPTX replaces this open composition decision for its canonical page
+frame: preserve the source geometry, restore text natively, preserve
+source-graphic identity through the prepared exact or reconstructed asset, and
+use the active-context registered layer/plate stack for scene imagery. Run the
+ordinary decision only for an additional non-source image whose placement is
+not already fixed by that surface.
+
**Mandatory — per-page Structure decision**: after the current page's content
and communication move are determined, but before choosing any geometry or
shape, decide whether geometry must carry qualitative `order`, `link`, `parent`,
diff --git a/skills/ppt-master/workflows/routing.md b/skills/ppt-master/workflows/routing.md
index a458a0d1..309cd5a5 100644
--- a/skills/ppt-master/workflows/routing.md
+++ b/skills/ppt-master/workflows/routing.md
@@ -30,7 +30,7 @@ route selection. After selection, the active runtime authority owns execution.
| Route | Request shape | Authority | Preconditions | Mutation model | Output contract |
|---|---|---|---|---|---|
-| Generate PPTX | Create a new presentation or presentation-authored video; regenerate an existing deck visually; use source material or a topic; optionally select a registered library template or supply an explicit workspace | Beautify: [`beautify-pptx`](./profiles/beautify-pptx.md), which selects Default or Quick; ordinary Default: [`generate-pptx`](./generate-pptx.md); ordinary explicit Quick: [`quick-generate`](./profiles/quick-generate.md) | Source facts exist or research can gather them; explicit quick intent activates its runtime | Author new SVG pages and export a new PPTX | Default: spec, lock, SVG, validation, and PPTX; Quick: optional source/resource artifacts, no spec/lock, SVG, and one PPTX; either runtime may derive narrated PPTX/MP4 delivery through existing stages |
+| Generate PPTX | Create, reconstruct, or visually regenerate a presentation/video from sources or a topic; templates remain optional | Image to PPTX: [`image-to-pptx`](./profiles/image-to-pptx.md), always Quick; Beautify: [`beautify-pptx`](./profiles/beautify-pptx.md), Default or Quick; ordinary [`generate-pptx`](./generate-pptx.md) / [`quick-generate`](./profiles/quick-generate.md) | Facts exist or research can gather them; Image to PPTX also requires Codex and an ordered page-frame roster | Author SVG pages and export a new PPTX | Default: spec/lock/SVG/PPTX; Quick: optional source/resource artifacts, no spec/lock, SVG/PPTX; either may derive narrated PPTX/MP4 |
| Create Template | Create a reusable brand/style/layout/deck template from one or more PPTX/SVG files, images/PDFs, direct or file-based text, documents/websites, brand assets, or a mixed reference bundle | [`create-template`](./create-template.md) | A reusable-template request exists; reference material is optional, and project scope additionally requires an initialized target project | Author a new portable workspace; never modify any reference file in place | Workspace with required `templates/`, optional `images/` / `icons/`, and optional review `exports/` |
| Fill Native PPTX | Use a raw PPTX's native slide shells and replace/fill content | [`template-fill-pptx`](./template-fill-pptx.md) | Source PPTX plus new material/topic | Clone and patch PPTX through OOXML; no SVG pipeline | New filled PPTX in project `exports/` |
| Enhance Native PPTX | Keep a finished PPTX's visible slides stable while adding notes, audio, timings, or transitions | [`native-enhance-pptx`](./native-enhance-pptx.md) | Finished source PPTX exists | Append/update scoped OOXML parts; no slide regeneration | New enhanced PPTX in project `exports/` |
@@ -41,27 +41,29 @@ route selection. After selection, the active runtime authority owns execution.
| Request condition | Generate-route behavior |
|---|---|
+| One or more raster files represent page frames that must be reconstructed into a layered editable PPTX | Activate the Codex-supported [`image-to-pptx`](./profiles/image-to-pptx.md); normalize the represented frame roster and activate `quick-generate` directly without requiring a separate Quick request |
| Existing PPTX must preserve wording, page count, and page order 1:1 | Activate [`beautify-pptx`](./profiles/beautify-pptx.md); it selects `quick-generate` when that profile's explicit trigger also matches, otherwise `generate-pptx` |
| The effective delivery purpose is recorded, self-running, or video-directed | Inside the already selected Default or explicit Quick runtime, load [`video-design`](../references/video-design.md) before whole-solution/page planning. This is a conditional design reference, not a profile or fifth route; notes, animation, audio, and optional native MP4 remain owned by their existing stages |
-| Explicit quick/fast, skip-strategy, or direct SVG-to-PPTX intent without Beautify | Load [`quick-generate`](./profiles/quick-generate.md) directly without loading `generate-pptx.md`: prepare sources/resources as needed, let the current agent decide without interaction, directly apply at most one exact workspace root per kind supplied for this run, otherwise use free design, omit Strategist/Confirm UI/spec/lock, hand-author SVG, run the lockless final checker, and export the final PPTX |
+| Explicit quick/fast, skip-strategy, or direct SVG-to-PPTX intent without an active fidelity profile | Load [`quick-generate`](./profiles/quick-generate.md) directly without loading `generate-pptx.md`: prepare sources/resources as needed, let the current agent decide without interaction, directly apply at most one exact workspace root per kind supplied for this run, otherwise use free design, omit Strategist/Confirm UI/spec/lock, hand-author SVG, run the lockless final checker, and export the final PPTX |
| Topic only, or supplied sources leave planning-critical factual gaps | Run [`topic-research`](./stages/topic-research.md) inside the selected Generate profile's source preparation: immediately for topic-only input, or after conversion and reading for source-backed input; research only the identified gaps |
| Existing PPTX may be split, merged, dropped, reordered, or re-outlined | Treat the PPTX as source content through the selected Generate authority's source intake; continue Default unless explicit Quick intent selected that runtime |
| Default Generate reaches planning | Step 3 prepares template candidates without interaction. Stage 1 then confirms the communication contract and free-design/template choice together; only a confirmed non-free choice runs [`apply-template-workspace`](./stages/apply-template-workspace.md) before Stage 2 |
-| Explicit current brand/style/layout/deck workspace root | Default Generate preserves the exact path as a Stage-1 template candidate; Quick Generate validates and installs it directly without Steps 3–4 or Confirm UI. Classify it as `library` only when its normalized root exactly matches a registered index entry; otherwise retain `explicit`. Consume the workspace root, never only its inner `templates/` directory |
+| Explicit current brand/style/layout/deck workspace root outside Image to PPTX | Default Generate preserves the exact path as a Stage-1 template candidate; Quick Generate validates and installs it directly without Steps 3–4 or Confirm UI. Classify it as `library` only when its normalized root exactly matches a registered index entry; otherwise retain `explicit`. Consume the workspace root, never only its inner `templates/` directory |
| Split-mode project resumes in a fresh chat | Run [`resume-execute`](./stages/resume-execute.md) inside the active Generate route |
| Existing generated project needs a deck-wide `colors.*` or universal `typography.font_family` substitution | Stay in Generate; load [`update_spec.py`](../scripts/docs/update_spec.md), honor its supported-key boundary, then rerun the final quality gate and Step 7 export |
| User explicitly requests spec refinement | Run [`refine-spec`](./stages/refine-spec.md) after Design Spec Gate 1 and before lock Gate 2 |
| Data charts exist | Run [`verify-charts`](./stages/verify-charts.md) before export |
| User explicitly requests visual review | Run [`visual-review`](./stages/visual-review.md) before post-processing |
-| User requests preview, selection, or annotation application | Use the default Generate pipeline and run [`live-preview`](./stages/live-preview.md) at the stage defined there; explicit Quick + preview intent falls back to default rather than dropping preview |
+| User requests preview, selection, or annotation application outside Image to PPTX | Use the default Generate pipeline and run [`live-preview`](./stages/live-preview.md) at the stage defined there; explicit Quick + preview intent falls back to default rather than dropping preview. Image to PPTX remains Quick-only and uses its mandatory canonical-frame recomposition comparison instead of this interactive stage |
| User requests page transitions, auto-advance, or deck-wide animation settings without page-specific motion planning or an existing `animations.json` | Load [`animations`](../references/animations.md) and apply its export-level contract |
| `<project_path>/animations.json` already exists, the user explicitly requests per-slide/object-level animation control, or the effective Custom Animations outcome in `design_spec.md §I` is enabled | Run [`customize-animations`](./stages/customize-animations.md) after the final SVG quality gate and any enabled speaker-note pass, before Generate Step 7. A §IX `Motion suggestion` informs an active pass but never triggers it alone |
| Generate PPTX receives an explicit narration request or has effective Narration Audio enabled in `design_spec.md §I`; Enhance Native PPTX has a confirmed `audio.enabled: true` module | Run [`generate-audio`](./stages/generate-audio.md) after the owning route's notes/export readiness; Generate audio implies effective Speaker Notes enabled |
-**Hard rule — profile, not fifth route**: Beautify changes content/page
-invariants, then selects one existing Generate runtime: explicit Quick intent
-uses Quick; otherwise it uses Default. It does not define a separate artifact
-lifecycle or load both runtimes.
+**Hard rule — fidelity profiles, not fifth routes**: Image to PPTX and Beautify
+change different source/page invariants and are mutually exclusive. Image to
+PPTX always activates Quick; Beautify uses Quick only on explicit Quick intent
+and otherwise uses Default. Neither defines a separate artifact lifecycle or
+loads both runtimes.
**Hard rule — direct-generation profile, not a fifth route**: `quick-generate`
stays inside Generate PPTX but owns an explicit SVG → PPTX short circuit. Page
@@ -71,7 +73,8 @@ or agent-selected. Quick may consume exact Brand/Style/Layout/Deck workspaces as
flat authoring inputs; compiling reusable Master/Layout/placeholder structure
still requires the default lock-backed Generate pipeline. Once selected, Quick
is the complete runtime procedure and never loads `generate-pptx.md`; Default
-never loads `quick-generate.md`. Beautify may select either one, but not both.
+never loads `quick-generate.md`. Image to PPTX is the narrow profile-owned
+Quick activation; Beautify may select either runtime, but never both.
---
@@ -90,6 +93,7 @@ When a PPTX already contains native Master/Layout parts, `create-template` mirro
| Input | Route behavior |
|---|---|
+| One or more images containing page frames + explicit final-deck reconstruction intent | Generate PPTX with the Codex-supported, Quick-only [`image-to-pptx`](./profiles/image-to-pptx.md); normalize page frames first and do not infer reusable native structure from pixels |
| Raw PPTX called a template + new content | Fill Native PPTX unless the user explicitly asks for a reusable template workspace |
| Any supported reference bundle or direct-text brief + reusable template request | Create Template |
| Current template workspace root + content | [`generate-pptx`](./generate-pptx.md) Stage-1 template choice |