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

fix(beautify): select runtime from explicit quick intent

hugohe38040bd9c6b3d
diff --git a/AGENTS.md b/AGENTS.md
index 8ed378a1..a31bfcc4 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.
+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.
**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.
@@ -15,7 +15,7 @@ PPT Master turns source material into natively editable DrawingML PPTX. Generate
- Raw PPTX template plus new material/topic routes to [`template-fill-pptx`](skills/ppt-master/workflows/template-fill-pptx.md), not the SVG pipeline.
- Raw PPTX cannot be consumed as a Generate template workspace; run [`create-template`](skills/ppt-master/workflows/create-template.md) first and return with the generated workspace root as a Stage-1 candidate. Never add Master/Layout structure directly to an existing PPTX/SVG; generate new structured SVG pages from the workspace.
- 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.
-- PPTX beautify is a strict 1:1 main-generation [`profile`](skills/ppt-master/workflows/profiles/beautify-pptx.md), not a separate route; any split/merge/drop/reorder uses the default main-pipeline policy.
+- 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.
- 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.
@@ -40,7 +40,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); Default/Beautify use [`generate-pptx.md`](skills/ppt-master/workflows/generate-pptx.md), while explicit Quick uses [`quick-generate.md`](skills/ppt-master/workflows/profiles/quick-generate.md) directly.
+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).
```bash
# Source content conversion
diff --git a/docs/technical-design.md b/docs/technical-design.md
index f95b174f..a096bcd1 100644
--- a/docs/technical-design.md
+++ b/docs/technical-design.md
@@ -44,14 +44,13 @@ 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, including its
-`beautify-pptx` profile. The explicit `quick-generate` profile stays inside the
-same route but bypasses its separate planning/confirmation, first-page gate,
-and preview finalization. Source understanding and resource preparation still
-run as needed; one lockless final quality gate remains mandatory. Routing loads
-these runtime authorities independently: Default/Beautify read
-`generate-pptx.md`, while Quick reads only `quick-generate.md`; neither profile
-loads the other's procedure.
+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.
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.
@@ -180,14 +179,14 @@ Use this table before reasoning about implementation details. Most failed runs s
| 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 |
-| Existing PPTX, preserve page count/order/wording 1:1, improve layout | Generate PPTX + `beautify-pptx` profile | regenerate through SVG; content and pagination are locked |
+| Existing PPTX, preserve page count/order/wording 1:1, improve layout | Generate PPTX + `beautify-pptx` profile | content and pagination stay locked; explicit Quick intent uses Quick, otherwise Default |
| Finished PPTX, keep content/layout stable, add notes/audio/timings/transitions | Enhance Native PPTX (`native-enhance-pptx`) | direct OOXML patch; no design regeneration |
| User wants a reusable template workspace from one or more PPTX/SVG files, images/PDFs, documents/websites, brand assets, direct text, or a mixed reference bundle | Create Template (`create-template`) | the fixed entry reads every applicable evidence channel, dispatches one Create Brand, Create Style, Create Layout, or Create Deck child workflow, then returns a workspace root as a Generate Stage-1 candidate; structured children may export a review PPTX |
| Default Generate reaches planning; an exact current-contract workspace root or current Create Template handoff may already be present | Generate PPTX Stage 1 | Step 3 prepares candidates without interaction; Stage 1 confirms communication plus free design/template use together; ordinary requests default to free design, explicit template intent or any root defaults to template mode, and only one root is preselected; selected workspaces are validated/fused before Stage 2 |
| User asks to tune object-level animation order/effect/timing | Generate PPTX + `customize-animations` stage | optional export policy via `animations.json` |
| User asks to preview, select, annotate, or re-export browser edits | Generate PPTX + `live-preview` stage | annotations apply only at defined handoff points |
-Ambiguous "optimize this PPT" requests reduce to one discriminator: preserve the original page count/order/wording, or treat the deck as source material and rebuild the story. Both use Generate PPTX; preservation selects the `beautify-pptx` profile, while restructuring uses the normal profile.
+Ambiguous "optimize this PPT" requests reduce to one discriminator: preserve the original page count/order/wording, or treat the deck as source material and rebuild the story. Both use Generate PPTX; preservation selects the `beautify-pptx` profile, while restructuring uses the normal profile. In either case, explicit Quick intent selects Quick; otherwise Default applies.
---
@@ -493,7 +492,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 the Default Step 1–7 sequence and its Beautify overlay, while [`quick-generate.md`](../skills/ppt-master/workflows/profiles/quick-generate.md) owns the self-contained Quick lifecycle. [`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. [`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.
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.
@@ -856,7 +855,7 @@ Supporting files stay separate only to keep route contracts focused and load opt
| Class | Runbooks | Owning route |
|---|---|---|
-| Generation profiles | `beautify-pptx`, `quick-generate` | Generate PPTX with either wording/page invariants or the explicit direct SVG-to-PPTX short circuit |
+| 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 |
| 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/technical-design.md b/docs/zh/technical-design.md
index 4715f2ab..944c94ca 100644
--- a/docs/zh/technical-design.md
+++ b/docs/zh/technical-design.md
@@ -40,7 +40,7 @@ PPT Master 不以“任意 SVG 都能转成 PPTX”为目标。`svg_output/` 使
## Generate PPTX 路线架构
-下图描述 Generate PPTX 的默认生命周期,也包含其 `beautify-pptx` profile。显式 `quick-generate` profile 仍属于同一路线,但只绕过独立的规划 / 确认、首屏 gate 与预览终稿化;来源理解和资源准备仍按需运行,一次无锁最终质量门始终保留。路由会独立加载两套运行时权威:Default/Beautify 读取 `generate-pptx.md`,Quick 只读取 `quick-generate.md`,双方都不加载对方的流程。Create Template 有独立的工作区生命周期;Fill Native PPTX 与 Enhance Native PPTX 直接操作 OOXML。本文后续路线表会覆盖全部四条顶层路线。
+下图描述 Generate PPTX 的默认生命周期。`beautify-pptx` profile 默认使用该生命周期;同一请求明确要求快速模式时,则改用 `quick-generate`,但 1:1 来源约束保持不变。Quick 会绕过独立规划 / 确认、首屏 gate 与预览终稿化;来源理解和资源准备仍按需运行,一次无锁最终质量门始终保留。每次只加载一份运行时流程。Create Template 有独立的工作区生命周期;Fill Native PPTX 与 Enhance Native PPTX 直接操作 OOXML。本文后续路线表会覆盖全部四条顶层路线。
```
用户输入 (PDF/DOCX/XLSX/PPTX/URL/Markdown/主题文本)
@@ -163,14 +163,14 @@ narration 标记。
| 显式要求快速生成 | 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 |
-| 现有 PPTX,页数 / 页序 / 措辞 1:1 保留,只改善排版 | Generate PPTX + `beautify-pptx` profile | 通过 SVG 重新生成;内容和分页锁定 |
+| 现有 PPTX,页数 / 页序 / 措辞 1:1 保留,只改善排版 | Generate PPTX + `beautify-pptx` profile | 内容和分页锁定;明确要求快速时走 Quick,否则走 Default |
| 已完成 PPTX,保持内容 / 布局稳定,只加讲稿、音频、计时、转场 | Enhance Native PPTX(`native-enhance-pptx`) | 直接 OOXML patch;不重新设计 |
| 用户想从一个或多个 PPTX/SVG、图片/PDF、文档/网站、品牌资产、直接文字或混合参考材料包构建可复用模板工作区 | Create Template(`create-template`) | 固定入口读取每个适用证据通道,只分派一个 Create Brand、Create Style、Create Layout 或 Create Deck 子工作流,再返回作为 Generate Stage 1 候选的工作区根目录;结构型子工作流可导出审阅 PPTX |
| Default Generate 进入规划;本次运行可能已带精确工作区 root 或 Create Template handoff | Generate PPTX Stage 1 | Step 3 只准备候选;Stage 1 同时确认沟通与自由设计/模板使用;普通请求默认自由设计,明确模板意图或任意 root 默认模板模式,且只有单 root 会预选;随后才安装供 Stage 2 读取 |
| 用户要求调整对象级动画顺序 / 效果 / 计时 | Generate PPTX + `customize-animations` 阶段 | 通过 `animations.json` 控制可选导出策略 |
| 用户要求预览、选择、注解或重导出浏览器编辑 | Generate PPTX + `live-preview` 阶段 | 注解只在规定交接点应用 |
-“优化这份 PPT”这类含糊请求归约为一个判定点:是否保留原始页数、页序和逐页措辞。两者都属于 Generate PPTX;保留时选择 `beautify-pptx` profile,允许重构时使用普通 profile。
+“优化这份 PPT”这类含糊请求归约为一个判定点:是否保留原始页数、页序和逐页措辞。两者都属于 Generate PPTX;保留时选择 `beautify-pptx` profile,允许重构时使用普通 profile。两种情况下都只在明确要求快速时选择 Quick,否则使用 Default。
---
@@ -431,7 +431,7 @@ Stage-1 沟通推荐的编写不得读取这些候选或任何模板内容。UI
## 执行纪律
-Generate 路由会在加载流程前选定一份运行时权威:[`workflows/generate-pptx.md`](../../skills/ppt-master/workflows/generate-pptx.md) 拥有默认 Step 1–7 及其 Beautify 叠加规则,[`quick-generate.md`](../../skills/ppt-master/workflows/profiles/quick-generate.md) 拥有自足的 Quick 生命周期;[`SKILL.md`](../../skills/ppt-master/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 生命周期;[`beautify-pptx.md`](../../skills/ppt-master/workflows/profiles/beautify-pptx.md) 根据是否明确要求 Quick 在两者中只选一个,并在两条分支中保持同一套 1:1 约束。`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 +752,7 @@ ChartEx 导入被有意限制为 7 个已验证数据模型:`treemap`、`sunbu
| 分类 | 文档 | 归属路线 |
|---|---|---|
-| 生成 profile | `beautify-pptx`、`quick-generate` | Generate PPTX;分别负责逐字措辞 / 页数 / 页序不变量与显式 SVG→PPTX 直接短路 |
+| 生成 profile | `beautify-pptx`、`quick-generate` | Beautify 保留逐字措辞 / 页数 / 页序,未明确快速时选择 Default;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 60cbe96d..eade1453 100644
--- a/skills/ppt-master/SKILL.md
+++ b/skills/ppt-master/SKILL.md
@@ -33,17 +33,18 @@ PPT Master is a routed presentation workflow. This entry owns global execution d
| Selected route / profile | Runtime authority |
|---|---|
-| Generate PPTX — Default or Beautify | [`workflows/generate-pptx.md`](workflows/generate-pptx.md); Beautify additionally loads [`workflows/profiles/beautify-pptx.md`](workflows/profiles/beautify-pptx.md) |
-| Generate PPTX — explicit Quick | [`workflows/profiles/quick-generate.md`](workflows/profiles/quick-generate.md) |
+| 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) |
| Create Template | [`workflows/create-template.md`](workflows/create-template.md) |
| Fill Native PPTX | [`workflows/template-fill-pptx.md`](workflows/template-fill-pptx.md) |
| 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. Default/Beautify and Quick are mutually exclusive
-Generate runtime authorities: neither loads the other's procedure. Profiles,
-stages, governance files, and child workflows refine one selected route; they
-never compete with it.
+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.
---
diff --git a/skills/ppt-master/scripts/prompt_audit_manifest.json b/skills/ppt-master/scripts/prompt_audit_manifest.json
index e7bc8f1d..dbb4555e 100644
--- a/skills/ppt-master/scripts/prompt_audit_manifest.json
+++ b/skills/ppt-master/scripts/prompt_audit_manifest.json
@@ -222,6 +222,16 @@
],
"max_tokens": 80000
},
+ "route.generate.quick-generate.beautify": {
+ "description": "Quick Generate with the shared strict 1:1 Beautify profile.",
+ "scope": "cumulative",
+ "include": [
+ "route.generate.quick-generate",
+ "profile.generate.beautify-pptx"
+ ],
+ "files": [],
+ "max_tokens": 70000
+ },
"route.generate.quick-generate.template-fusion": {
"description": "Quick Generate with the maximum Brand, Style, Layout, and Deck exact-root fusion loaded for flat authoring.",
"scope": "cumulative",
@@ -736,7 +746,7 @@
"max_tokens": 2000
},
"profile.generate.beautify-pptx": {
- "description": "Strict 1:1 wording, order, and page-count generation profile.",
+ "description": "Strict 1:1 wording, order, and page-count profile with Default and explicit Quick branches.",
"scope": "incremental",
"files": [
"skills/ppt-master/workflows/profiles/beautify-pptx.md"
diff --git a/skills/ppt-master/workflows/generate-pptx.md b/skills/ppt-master/workflows/generate-pptx.md
index 2b14b1c3..4e7eac56 100644
--- a/skills/ppt-master/workflows/generate-pptx.md
+++ b/skills/ppt-master/workflows/generate-pptx.md
@@ -18,8 +18,8 @@ description: Default Generate PPTX authority for source intake, planning, SVG au
- Gate checklists are internal verification, not user-facing output. On success, continue automatically and emit at most one compact status line when useful; on failure, report only the blocking items and required recovery.
**Profile boundary**: Explicit Quick is selected before runtime authority
-loading and never enters this file. Default and Beautify do not load or apply
-the Quick profile.
+loading and never enters this file. Beautify enters this file only when its
+request does not explicitly select Quick.
### SVG Page-Design Boundary
diff --git a/skills/ppt-master/workflows/profiles/beautify-pptx.md b/skills/ppt-master/workflows/profiles/beautify-pptx.md
index bd386623..ef652a43 100644
--- a/skills/ppt-master/workflows/profiles/beautify-pptx.md
+++ b/skills/ppt-master/workflows/profiles/beautify-pptx.md
@@ -1,15 +1,21 @@
---
-description: Main-generation profile for 1:1, content-faithful re-layout of an existing deck through the standard SVG pipeline.
+description: Generate profile for 1:1, content-faithful re-layout of an existing deck through Default or explicit Quick execution.
---
# Beautify PPTX (Re-layout) Profile
-> Main-pipeline profile, not a top-level route. [`template-fill-pptx.md`](../template-fill-pptx.md) reuses a deck's design and swaps in new content; this profile keeps a deck's content and redoes its layout.
+> Generate profile, not a top-level route. [`template-fill-pptx.md`](../template-fill-pptx.md) reuses a deck's design and swaps in new content; this profile keeps a deck's content and redoes its layout.
Re-lays-out an existing `.pptx`: the text is preserved **verbatim**, the source deck's visual identity (palette / fonts) is **inherited as truth**, and only layout, hierarchy, and whitespace are redesigned. Output is a brand-new native deck generated through the standard SVG pipeline — not a patch over the original.
**Trigger**: the user supplies a `.pptx` and asks to beautify / re-layout / 重新排版 / 美化 while keeping the content. Explicit intent + a provided file only; never auto-infer.
+**Hard rule — select one runtime before continuing**: when the same request
+also meets [`quick-generate.md`](./quick-generate.md)'s explicit trigger, load
+that runtime and do not load `generate-pptx.md`. Otherwise load
+[`generate-pptx.md`](../generate-pptx.md) and do not load Quick. The 1:1
+Beautify constraints in this file apply in either runtime.
+
---
## 1. When to Run
@@ -22,11 +28,11 @@ Re-lays-out an existing `.pptx`: the text is preserved **verbatim**, the source
**Hard rule — content is frozen**: every text string from the source is preserved exactly (no add / remove / reword / reorder). Beautification freedom lives only in layout, hierarchy, spacing, and visual rhythm.
-**Hard rule — not a patch, not a fill**: this regenerates a native deck through Strategist → Executor → export ([`generate-pptx`](../generate-pptx.md) Steps 4–7). It does **not** edit the source file in place, and it is **not** [`template-fill-pptx`](../template-fill-pptx.md) (which clones source slides and replaces text). It also does not parse an arbitrary third-party template for text-only substitution (the rejected #53 direction) — it builds every page from scratch.
+**Hard rule — not a patch, not a fill**: this regenerates a native deck through the selected Default or Quick SVG → PPTX runtime. It does **not** edit the source file in place, and it is **not** [`template-fill-pptx`](../template-fill-pptx.md) (which clones source slides and replaces text). It also does not parse an arbitrary third-party template for text-only substitution (the rejected #53 direction) — it builds every page from scratch.
**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.
-**When this profile is wrong — re-architecture belongs to the default main pipeline**: 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 run the default main pipeline, where the Strategist re-architects the outline freely from the extracted content. 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 → default main pipeline.
+**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.
---
@@ -52,10 +58,18 @@ Match the canvas to the source so 1:1 pages and paste-back align. Determine the
| other | nearest format in [`canvas-formats.md`](../../references/canvas-formats.md); record the source pixel size in the spec |
```bash
+# Default runtime:
python3 ${SKILL_DIR}/scripts/project_manager.py init <project_name> --format <format>
+
+# Quick runtime instead:
+python3 ${SKILL_DIR}/scripts/project_manager.py init <project_name> --format <format> --quick-generate
+
+# Both runtimes then import once:
python3 ${SKILL_DIR}/scripts/project_manager.py import-sources <project_path> <source.pptx>
```
+Run exactly one `init` command: the Quick form only when Quick was selected.
+
---
## 4. Extract Identity and Data; Assemble Inventory
@@ -132,12 +146,26 @@ If `images/image_manifest.json` does not exist because the source deck has no ex
- [x] `analysis/<stem>.slide_library.json` holds chart + table data and SmartArt semantic structure for regeneration
- [x] `analysis/source_profile.json` (multi-deck index) summarizes the source facts in its `decks[]` entry
- [x] `analysis/beautify_inventory.json` ledgers per-slide text / images / data + ignored + needs-confirmation
-- [ ] **Next**: Step 5 — Beautify Plan (recommend & confirm)
+- [ ] **Next**: Step 5 — resolve Beautify decisions in the selected runtime
```
---
-## 5. Beautify Plan — Recommend & Confirm
+## 5. Beautify Decisions
+
+### Quick branch
+
+When Quick was selected, do not run the Default confirmation flow below. Apply
+the same inventory interpretation, source-identity judgment, and body-size
+method documented in this section, but make the decisions directly in the
+active context. Explicit user requirements remain authoritative; otherwise use
+the source identity as the default. Resolve `ignored` and `needs_confirmation`
+without creating a confirmation payload, Design Spec, lock, or substitute
+plan. If a flagged complex object cannot be regenerated without losing frozen
+facts, stop as a hard prerequisite instead of simplifying it. Then continue to
+the Quick branch in §6.
+
+### Default branch — Recommend & Confirm
⛔ **BLOCKING**: the scope is not hard-coded — same spirit as the Strategist confirmation stage. Recommend each item below from what the deck actually contains (the Step 4 inventory), present the plan, and **wait for the user to confirm or adjust** before writing any spec. Use Generate Step 4's selected surface for the full visual confirmation; keep the structural-scope decisions in chat. Values confirmed through either channel are honored identically.
@@ -229,7 +257,15 @@ On confirmation, enter [`generate-pptx`](../generate-pptx.md) Step 4 as Strategi
---
-## 6. Executor + Export
+## 6. Author + Export
+
+**Quick**: follow [`quick-generate.md`](./quick-generate.md) §3–4. The
+Beautify inventory is the exact page roster and frozen-content contract; keep
+its source order, hand-author every page, run the lockless Quick final checker,
+and export with `--quick-generate`. Do not run Confirm UI, write a Design Spec
+or lock, run the Default first-page gate, or call `finalize_svg.py`.
+
+**Default**: run the standard pipeline as follows.
Run the standard pipeline ([`generate-pptx`](../generate-pptx.md) Steps 6–7). The Executor re-lays-out each page — hierarchy, spacing, alignment, page rhythm — using the semantic anchors in `spec_lock.md` plus current page/source/template context; valid page-local colors, gradients, effects, and export-safe display faces need not be added to the lock. It regenerates charts / tables as native SVG from the extracted data and re-lays-out the source pictures.
@@ -258,7 +294,7 @@ python3 ${SKILL_DIR}/scripts/source_to_md/ppt_to_md.py <project_path>/exports/<o
- [x] Content + data values verbatim (read-back Markdown matches the source)
- [x] 1:1 page count preserved
-- [x] Source colors + fonts inherited as locked truth
+- [x] Source-derived or explicitly overridden colors + fonts applied consistently
- [x] Charts / tables regenerated as native SVG in the inherited style
- [x] Native PPTX exported to `exports/`
```
diff --git a/skills/ppt-master/workflows/routing.md b/skills/ppt-master/workflows/routing.md
index 50c13caf..cef01e4c 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; regenerate an existing deck visually; use source material or a topic; optionally select a registered library template or supply an explicit workspace | Default/Beautify: [`generate-pptx`](./generate-pptx.md); explicit Quick: [`quick-generate`](./profiles/quick-generate.md) | Source facts exist or research can gather them; explicit quick intent activates its profile | 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 |
+| Generate PPTX | Create a new presentation; 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 |
| 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,10 +41,10 @@ route selection. After selection, the active runtime authority owns execution.
| Request condition | Generate-route behavior |
|---|---|
-| Explicit quick/fast, skip-strategy, or direct SVG-to-PPTX intent | 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 |
+| 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` |
+| 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 |
| 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 the default pipeline unless explicit Quick Generate intent selected that profile |
-| Existing PPTX must preserve wording, page count, and page order 1:1 | Activate the [`beautify-pptx`](./profiles/beautify-pptx.md) profile inside the main pipeline |
| 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 |
| Split-mode project resumes in a fresh chat | Run [`resume-execute`](./stages/resume-execute.md) inside the active Generate route |
@@ -57,7 +57,10 @@ route selection. After selection, the active runtime authority owns execution.
| `<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**: The 1:1 beautify behavior uses the same Strategist → Executor → SVG export lifecycle as Generate PPTX. It changes content/page invariants; it does not define a separate artifact lifecycle.
+**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 — direct-generation profile, not a fifth route**: `quick-generate`
stays inside Generate PPTX but owns an explicit SVG → PPTX short circuit. Page
@@ -67,7 +70,7 @@ 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
-and Beautify never load `quick-generate.md`.
+never loads `quick-generate.md`. Beautify may select either one, but not both.
---