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
docs(animations): align lifecycle planning with multi-effect motion
hugohe31b4774476191
diff --git a/docs/animations.md b/docs/animations.mdindex 66a7be67..cfc80487 100644--- a/docs/animations.md+++ b/docs/animations.md@@ -79,18 +79,20 @@ an explicitly configured auto-advance timer.| Choice | Use it when ||---|---|-| `auto` | You want PPT Master to choose suitable effects from each content group's role; this is the recommended opt-in |+| `auto` | You want PPT Master to choose a generic entrance from each content group's role; this is the recommended automatic opt-in || A native `entrance_*` key | You want one of PowerPoint's 53 native entrance presets || A native `emphasis_*` key | An already visible object should draw attention or change appearance || A native `path_*` key | An object should follow one of PowerPoint's 64 motion paths || A native `exit_*` key | An object should leave the slide during the sequence |-| `mixed` | You need the compatible deterministic mode over canonical PowerPoint presets |-| `random` | You want deterministic variation from the same canonical preset pool |+| `mixed` | You need deterministic variation across the canonical entrance pool |+| `random` | You want seeded variation from the same canonical entrance pool || `none` | You want to disable element animation |The canonical registry contains 203 PowerPoint-native keys: 53 entrance, 33emphasis, 64 motion path, and 53 exit presets. New selections, sidecars,automatic choices, traces, and examples use these category-qualified keys.+`auto`, `mixed`, and `random` select entrances only. Use an explicit canonical+key for emphasis, motion-path, or exit behavior.The 29 established short names remain accepted only as compatibility inputs;they normalize before writing and do not retain a second behavior engine.Old Fly direction names all normalize to `entrance_fly`, and old Wipe@@ -104,10 +106,11 @@ audio/video workflows because they require media or bookmark targets.## Customize Specific ObjectsUse `animations.json` only when deck-wide settings are not enough—for example,-title first, chart second, conclusion last. List the real groups, write sparse-overrides for only the affected slides and objects, validate, and export.-`scaffold` remains an optional complete editing starter; delete untouched-entries before using it as the final sidecar.+one object entering, moving, drawing attention, and then leaving. List the real+groups, write sparse overrides for only the affected slides and objects,+validate, and export. `scaffold` is an optional neutral editing starter: it+sets the default object effect to `none`, and untouched `{}` group entries do+not enable animation.```bashpython3 skills/ppt-master/scripts/animation_config.py list-groups <project>@@ -115,28 +118,65 @@ python3 skills/ppt-master/scripts/animation_config.py validate <project>python3 skills/ppt-master/scripts/svg_to_pptx.py <project>```-The generated sidecar targets stable top-level `<g id="...">` content groups. Common per-object fields are:+The sidecar targets stable top-level `<g id="...">` content groups. A group ID+is a PowerPoint shape-target anchor, not an Animation Pane row. The compatible+single-effect object still creates one row; an `effects[]` array can create+several ordered rows that all target the same shape:++```json+{+ "version": 1,+ "slides": {+ "03_threshold": {+ "animation": { "trigger": "after-previous" },+ "groups": {+ "risk-marker": {+ "effects": [+ { "effect": "entrance_fade", "order": 1, "duration": 0.25 },+ { "effect": "path_right", "order": 2, "delay": 0.1, "duration": 0.7 },+ { "effect": "emphasis_teeter", "order": 3, "trigger": "with-previous", "duration": 0.45 },+ { "effect": "exit_fade", "order": 4, "trigger_shape": "details-button", "duration": 0.3 }+ ]+ }+ }+ }+ }+}+```++A populated group uses either the legacy single-effect fields or the+`{ "effects": [...] }` form, never both. `effects` must be non-empty, and every+row names an explicit `effect`. Existing single-effect sidecars remain fully+compatible.++Common row fields are:| Field | Purpose ||---|---|-| `effect` | Override the object effect; use `none` to keep that object static |-| `order` | Change reveal order without changing slide layer order |-| `delay` | Add a pause in `after-previous`, or after clicking `trigger_shape` |-| `duration` | Override that object's scheduled animation duration |+| `effect` | Select one explicit effect; the legacy form may use `none` to keep that object static |+| `trigger` | Override this row's Start mode; otherwise inherit the slide animation trigger |+| `order` | Order ordinary rows across the slide without changing slide layers; trigger-shape rows remain in separate interactive sequences |+| `delay` | Add a pause to this row's resolved Start behavior |+| `duration` | Override this row's scheduled animation duration || `effect_options` | Set effect-specific `direction`, `amount`, `color`, `font_name`, `relative`, or `size` || `trigger_shape` | Trigger this row when another top-level group is clicked (PowerPoint **On Click of**) || Timing modifiers | `repeat_count`/`repeat_duration`, `auto_reverse`, `rewind`, `accelerate`, `decelerate`, `bounce_end`, and `restart` || Completion | `after_effect` (dim/hide) and a `.m4a`/`.mp3`/`.wav` `sound` path |+`order`, `delay`, `duration`, `trigger`, and `trigger_shape` are resolved per+row. The slide-level animation trigger is inheritance only. `trigger_shape`+implies `on-click`; if the row also declares `trigger`, it must be+`on-click`.+Use `python3 skills/ppt-master/scripts/pptx_animations.py --describe<canonical_effect>` to see exactly which options that effect accepts. Speed iscontrolled by `duration`; smooth start/end are controlled by`accelerate`/`decelerate`. Change Font's `font_name` is one concretetarget-installed PowerPoint face, never a CSS font stack.-`trigger_shape` is group-only and points to a different group id on the same-slide. It affects only that row; the slide Start mode still controls all other-rows. Recorded narration rejects interactive trigger-shape animations.+`trigger_shape` points to a different group id on the same slide and affects+only its row. Recorded narration rejects any row that resolves to `on-click`,+including trigger-shape rows.When a user asks the AI to tune individual objects, use the [`customize-animations`](../skills/ppt-master/workflows/stages/customize-animations.md) stage. The full sidecar schema and target-validation rules remain in the [animation execution reference](../skills/ppt-master/references/animations.md).@@ -146,8 +186,9 @@ PPT Master validates animation settings strictly: unknown effects or Start modes| Boundary | User-facing consequence ||---|---|-| Animation target | Element animation operates on logical top-level content groups, not every SVG atom |+| Animation target | Element animation operates on logical top-level content-group anchors; one anchor may own several Animation Pane rows || Static structure | Backgrounds, Master/Layout content, placeholders, and page chrome remain static |+| Unsupported object builds | No paragraph/text-range builds, custom freeform motion-path authoring, native Chart/SmartArt build sequencing, or media playback commands are inferred from grouped SVG content || Output route | Animation exists in the native PPTX generated from `svg_output/`; `svg_final/` is a static preview || Existing PPTX routes | Template Fill and Native Enhance preserve source object animation rather than translating it into this generated-deck model || Playback compatibility | Microsoft PowerPoint desktop is the primary validation target; Keynote, WPS, LibreOffice, and older Office versions may remap or omit individual effects |diff --git a/docs/audio-narration.md b/docs/audio-narration.mdindex 16d39772..4c29ee5d 100644--- a/docs/audio-narration.md+++ b/docs/audio-narration.md@@ -142,7 +142,7 @@ troubleshooting. Cloud providers remain serial.The edge command creates `audio/<stem>.mp3` and `notes/subtitles/<stem>.srt` from the same streaming request. Sentence-ending punctuation closes a cue. A cue over 20 visible characters first splits at commas, semicolons, or colons, then at the nearest word boundary only if it is still too long. Use `--subtitle-max-chars` to change the limit. Adjacent timing overlap up to 100 ms is tolerated by moving the later cue start to the previous cue end; larger overlap fails. Each SRT uses a page-local timebase with a zero origin and preserves edge's `WordBoundary` timing, including any leading silence before the first cue. The cloud-provider commands currently create audio only.-When canonical custom animation exists, `narration_timing.json` remains deliberately separate from read-only `animations.json`. It records the ordered SRT-set SHA-256, narration padding, ordered SVG group IDs, and optional 1-based cue numbers. `narration_sync.py animations` rejects a stale fingerprint, validates the group IDs against the current SVGs, and writes the derived `narration_animations.json` with only supported PowerPoint fields. With no animation sidecars, skip that derivation. `narration_sync.py subtitles` reads the final PPTX's actual presentation order plus millisecond slide-advance and transition values, so `total.srt` follows the native PPTX timeline. A relative `--pptx` path is resolved under `<project_path>`.+When canonical custom animation exists, `narration_timing.json` remains deliberately separate from read-only `animations.json`. It records the ordered SRT-set SHA-256, narration padding, ordered SVG group IDs, and optional 1-based cue numbers. `narration_sync.py animations` rejects a stale fingerprint, validates the group IDs against the current SVGs, and writes the derived `narration_animations.json` with only supported PowerPoint fields. A group with `effects[]` still maps to one cue: its first active row is anchored to that cue, while later rows retain their relative delay. With no animation sidecars, skip that derivation. `narration_sync.py subtitles` reads the final PPTX's actual presentation order plus millisecond slide-advance and transition values, so `total.srt` follows the native PPTX timeline. A relative `--pptx` path is resolved under `<project_path>`.PowerPoint's video encoder can quantize each slide/media segment to its output frame clock. Those small per-page differences may accumulate even when the PPTX timing values are correct. Passing the finished `.mp4` / `.wmv` / `.mov` with `--video` uses normalized audio correlation to locate each original page narration in the exported audio track. It changes only the page-level offsets: edge's cue text and page-local `WordBoundary` timing remain untouched. This is a post-export subtitle calibration step and does not rewrite the video.diff --git a/docs/powerpoint-svg-mapping.md b/docs/powerpoint-svg-mapping.mdindex 8c2daf3a..fd71d10a 100644--- a/docs/powerpoint-svg-mapping.md+++ b/docs/powerpoint-svg-mapping.md@@ -211,13 +211,23 @@ These capabilities belong to PPTX package semantics. Their absence from page SVG|---|---|---|---|---|| Speaker notes | `notes/<slide>.md` sidecar | Notes Slide part and relationship | `Sidecar/package` | Notes are not SVG text and do not affect page geometry || Slide transition | CLI options or `animations.json` | `p:transition` | `Sidecar/package` | Unknown effects or invalid durations fail; no silent `fade` fallback |-| Object animation (entrance / emphasis / motion path / exit) | `animations.json` targeting stable top-level SVG group IDs | Root `p:timing` animation tree | `Sidecar/package`; the group ID is only the target anchor | Static structural layers and placeholders cannot be animated |+| Object animation (entrance / emphasis / motion path / exit) | `animations.json` targeting stable top-level SVG group IDs; `effects[]` may assign several rows to one anchor | Root `p:timing` animation tree | `Sidecar/package`; the group ID is only the shape-target anchor | Static structural layers and placeholders cannot be animated || Narration audio | `audio/` asset plus recorded-narration export option | Media relationship, audio carrier, and timing | `Sidecar/package` | Asset, slide association, and timing must validate || Automatic slide advance | Explicit transition timing or narration-derived duration | `advTm`/advance behavior | `Sidecar/package` | Click-driven animation is incompatible with recorded narration || Hyperlink or action | No main SVG compiler mapping | Not created by page SVG | `Direct preservation` where a native route retains source OOXML | An action-button preset supplies visual geometry only || Comment or review thread | No SVG or generation-side mapping | Not authored | `Direct preservation` only when explicitly owned by another route | Do not convert review metadata into visible slide content automatically || Relationship not owned by a mapped feature | No generic SVG escape hatch | Not generated | `Direct preservation` where applicable | Arbitrary relationship injection is unsupported |+For one target group, the fully compatible legacy object represents one+effect row, while a non-empty `effects[]` represents several; the two forms are+mutually exclusive. Every row may set its own `trigger`, sequence `order`,+`delay`, `duration`, and `trigger_shape`, with the slide animation trigger used+only as an inherited Start value. `auto`, `mixed`, and `random` resolve generic+entrances only; explicit canonical effects cover entrance, emphasis, native+motion-path presets, and exit. This mapping does not infer paragraph/text-range+builds, custom freeform motion paths, native Chart/SmartArt build sequences, or+media playback commands.+See [Animations & Transitions](./animations.md) (technical source: [`references/animations.md`](../skills/ppt-master/references/animations.md)) and [`audio-narration.md`](./audio-narration.md) for the sidecar workflows.## 10. Other PowerPoint-native featuresdiff --git a/docs/technical-design.md b/docs/technical-design.mdindex 53c33607..fc7e84e9 100644--- a/docs/technical-design.md+++ b/docs/technical-design.md@@ -686,11 +686,36 @@ Animating individual primitives would produce 30+ separately moving atoms perslide, while animating only the slide as a whole loses visual storytelling.Top-level groups are the natural granularity: Executor already uses`<g id="...">` to mark logical content blocks, so entrance, emphasis, path,-and exit effects share the same semantic units.+and exit effects share the same semantic units. The group identifies a+PowerPoint shape target rather than one timeline record: the legacy+single-effect object creates one Animation Pane row, while `effects[]` may+create several ordered rows that all target the same shape.**Why page structure is auto-skipped.** Any top-level group with `data-pptx-layer` is static structure, and the current scanner also treats every explicit `data-pptx-placeholder` as static page framing; `background` / `header` / `footer` / `decoration` / `watermark` / `page-number` roles cover the remaining chrome. The ID-token fallback is not enabled or disabled per SVG: it applies to each top-level group that lacks layer, role, and placeholder markers, so a mixed new/legacy SVG may still use the legacy ID heuristic on only its unmarked groups. Separately, when an SVG has no top-level groups, no animation target has been found, and only one to eight root primitives qualify, those primitives form a bounded compatibility fallback. This is the scanner's actual scope; the animation reference's whole-page “marker-free legacy SVG” wording still needs separate alignment with the implementation.-**Why object-level animation uses a sidecar, not SVG attributes.** SVG remains the static visual source of truth. Custom PPTX animation is export policy, so per-object overrides live in optional `animations.json` keyed by slide stem and top-level group id. This avoids polluting SVG with PowerPoint-specific metadata while still letting users tune order, effect, delay, and duration when the default global animation is not enough.+**Why object-level animation uses a sidecar, not SVG attributes.** SVG remains+the static visual source of truth. Custom PPTX animation is export policy, so+per-object overrides live in optional `animations.json` keyed by slide stem and+top-level group id. A populated group uses either the fully compatible legacy+single-effect fields or a non-empty `effects[]` envelope, never both. Each+resolved row owns its effect, sequence order, delay, duration, Start mode,+and optional `trigger_shape`; the slide animation trigger supplies only the+inherited Start mode. The generated scaffold is neutral (`effect: none`) and+leaves groups as `{}` until motion is adopted. This keeps PowerPoint-specific+metadata out of SVG without forcing one semantic object to have only one+motion phase.++**Why automatic modes remain entrance-only.** `auto`, `mixed`, and `random`+answer one bounded question: how an otherwise generic reveal should enter.+They do not invent emphasis, movement, or exit intent. Those three categories,+and an explicitly selected entrance, use canonical effects in the sidecar so+the authoring decision remains inspectable.++**Why the target model stops at top-level shape effects.** The generated model+does not infer paragraph/text-range builds, author custom freeform motion+paths, sequence native Chart/SmartArt internals, or emit media playback+commands. Native motion-path presets remain valid object effects; media+playback remains in the audio/video workflows.**Why recorded narration drives auto-advance from clip duration.** Recorded-narration mode targets video export, where no presenter clicks through the deck. It probes each clip's real duration and sets slide auto-advance to `audio duration + --narration-padding`; padding defaults to 0.5 seconds so the tail is not cut off. It does not use estimated reading speed or a fixed per-slide duration.@@ -700,7 +725,8 @@ object-level click events. The recorded narration path writes page-level audioand slide auto-advance timings only, so click-driven object effects would leavethe export dependent on extra manual PowerPoint rehearsal. Decks exported with`--recorded-narration` must therefore use click-free object animations-(`after-previous` or `with-previous`).+(`after-previous` or `with-previous`) on every resolved row; this also excludes+`trigger_shape`.**Why native video export is a separate command.** Audio synthesis and PPTXpackaging are cross-platform project operations; PowerPoint video encoding is adiff --git a/docs/zh/animations.md b/docs/zh/animations.mdindex ba60ceeb..a702aac3 100644--- a/docs/zh/animations.md+++ b/docs/zh/animations.md@@ -75,29 +75,31 @@ OOXML,而不是嵌入视频。对象动画包括进入、强调、动作路径| 选择 | 适用场景 ||---|---|-| `auto` | 让 PPT Master 根据内容组角色选择合适效果;这是开启元素动画时的推荐选项 |+| `auto` | 让 PPT Master 根据内容组角色选择通用进入效果;这是自动开启元素动画时的推荐选项 || 原生 `entrance_*` | 使用 PowerPoint 的 53 个原生进入预设之一 || 原生 `emphasis_*` | 让已显示对象获得关注或改变外观 || 原生 `path_*` | 让对象沿 PowerPoint 的 64 条动作路径之一移动 || 原生 `exit_*` | 让对象在动画序列中退出页面 |-| `mixed` | 使用兼容模式名,在规范 PowerPoint 预设中确定性轮换 |-| `random` | 从同一规范预设池中稳定地生成变化 |+| `mixed` | 在规范进入预设池中确定性轮换 |+| `random` | 从同一规范进入预设池中按固定种子生成变化 || `none` | 关闭元素动画 |规范注册表包含 203 个 PowerPoint 原生标识:53 个进入、33 个强调、64 条动作路径、53 个退出。现在新选择、sidecar、自动决策、转换轨迹和示例都只使用-带类别前缀的规范名称。29 个旧短名称只保留为兼容输入,写入前会归一化,不再-维护第二套动画行为。旧 Fly 方向名统一映射到 `entrance_fly`,旧 Wipe 方向名-统一映射到 `entrance_wipe`;方向会保留为参数,而不会形成新的规范预设。旧-`wheel` 保留四辐语义。运行+带类别前缀的规范名称。`auto`、`mixed` 与 `random` 只会选择进入效果;强调、+动作路径与退出必须使用显式规范标识。29 个旧短名称只保留为兼容输入,写入前会+归一化,不再维护第二套动画行为。旧 Fly 方向名统一映射到 `entrance_fly`,旧+Wipe 方向名统一映射到 `entrance_wipe`;方向会保留为参数,而不会形成新的规范+预设。旧 `wheel` 保留四辐语义。运行`python3 skills/ppt-master/scripts/pptx_animations.py --list` 可查看完整分类清单。4 个媒体播放命令需要媒体或书签目标,仍由音视频工作流负责。## 自定义具体对象-只有当整份 deck 的统一设置不够用时才需要 `animations.json`,例如标题先出现、-图表第二个出现、结论最后出现。先列出真实分组,只为受影响页面和对象写稀疏覆盖,-然后校验并导出。`scaffold` 仍可作为完整编辑起点,但最终 sidecar 应删除未改动项。+只有当整份 deck 的统一设置不够用时才需要 `animations.json`,例如让同一对象+进入、移动、获得强调后再退出。先列出真实分组,只为受影响页面和对象写稀疏覆盖,+然后校验并导出。`scaffold` 是可选的中性编辑起点:其默认对象效果为 `none`,+未修改的 `{}` 分组条目不会开启动画。```bashpython3 skills/ppt-master/scripts/animation_config.py list-groups <project>@@ -105,26 +107,59 @@ python3 skills/ppt-master/scripts/animation_config.py validate <project>python3 skills/ppt-master/scripts/svg_to_pptx.py <project>```-生成的 sidecar 以稳定的顶层 `<g id="...">` 内容组为目标。常用对象级字段如下:+sidecar 以稳定的顶层 `<g id="...">` 内容组为目标。group ID 是 PowerPoint+shape target 锚点,不等同于 Animation Pane 中的一行。兼容的单效果对象仍生成+一行;`effects[]` 可以生成多条有序记录,并让它们共同指向同一 shape:++```json+{+ "version": 1,+ "slides": {+ "03_threshold": {+ "animation": { "trigger": "after-previous" },+ "groups": {+ "risk-marker": {+ "effects": [+ { "effect": "entrance_fade", "order": 1, "duration": 0.25 },+ { "effect": "path_right", "order": 2, "delay": 0.1, "duration": 0.7 },+ { "effect": "emphasis_teeter", "order": 3, "trigger": "with-previous", "duration": 0.45 },+ { "effect": "exit_fade", "order": 4, "trigger_shape": "details-button", "duration": 0.3 }+ ]+ }+ }+ }+ }+}+```++一个已填写的分组只能使用旧单效果字段或 `{ "effects": [...] }`,不能混用。+`effects` 必须非空,且每一行都要显式声明 `effect`。现有单效果 sidecar 完全兼容。++常用动画行字段如下:| 字段 | 用途 ||---|---|-| `effect` | 覆盖对象动画效果;设为 `none` 可让该对象保持静态 |-| `order` | 调整揭示顺序,不改变页面图层顺序 |-| `delay` | 在 `after-previous` 中或单击 `trigger_shape` 后增加等待时间 |-| `duration` | 覆盖该对象的动画排程时长 |+| `effect` | 选择一个显式效果;旧单效果形式可用 `none` 让对象保持静态 |+| `trigger` | 覆盖本行的 Start 模式;省略时继承页面动画 trigger |+| `order` | 设置普通动画行的整页顺序且不改变图层;trigger-shape 行保留在独立交互序列中 |+| `delay` | 给本行解析后的 Start 行为增加等待时间 |+| `duration` | 覆盖本行的动画排程时长 || `effect_options` | 设置效果适用的 `direction`、`amount`、`color`、`font_name`、`relative` 或 `size` || `trigger_shape` | 单击另一个顶层内容组时触发本行(PowerPoint“单击下列对象时”) || 计时修饰 | `repeat_count`/`repeat_duration`、`auto_reverse`、`rewind`、`accelerate`、`decelerate`、`bounce_end` 与 `restart` || 播放完成 | `after_effect`(变暗/隐藏)和 `.m4a`/`.mp3`/`.wav` `sound` 路径 |+`order`、`delay`、`duration`、`trigger` 与 `trigger_shape` 都按动画行独立解析。+页面级动画 trigger 只负责提供继承值。`trigger_shape` 隐含 `on-click`;若同一行+也显式写了 `trigger`,其值必须是 `on-click`。+运行 `python3 skills/ppt-master/scripts/pptx_animations.py --describe<canonical_effect>` 可查看该效果实际接受的完整参数。速度由 `duration` 控制,平滑开始/结束由 `accelerate`/`decelerate` 控制。Change Font 的 `font_name`必须是目标环境已安装的一个具体 PowerPoint 字体名,不能写 CSS 字体列表。-`trigger_shape` 只能写在对象组上,并指向同一页另一个分组 id。它只让当前动画行-变为交互触发,其他行仍遵循页面 Start 模式;录制旁白不接受这种交互动画。+`trigger_shape` 指向同一页另一个分组 id,并且只影响所在动画行。录制旁白不接受+任何最终解析为 `on-click` 的动画行,其中包括 `trigger_shape` 行。当用户要求 AI 调整具体对象时,使用 [`customize-animations`](../../skills/ppt-master/workflows/stages/customize-animations.md) 阶段。完整 sidecar schema 与目标校验规则仍由[动画执行规范](../../skills/ppt-master/references/animations.md)维护。@@ -134,8 +169,9 @@ PPT Master 会严格校验动画设置:未知效果或 Start 模式、非法| 边界 | 对用户的影响 ||---|---|-| 动画目标 | 元素动画作用于逻辑内容组,而不是每一个 SVG 原子 |+| 动画目标 | 元素动画作用于逻辑顶层内容组锚点;一个锚点可以拥有多条 Animation Pane 记录 || 静态结构 | 背景、Master/Layout 内容、placeholder 与页面框架保持静态 |+| 不支持的对象 build | 不会从分组 SVG 推导段落/文字范围 build、自定义自由动作路径、原生 Chart/SmartArt 分步 build 或媒体播放命令 || 输出路线 | 动画存在于从 `svg_output/` 生成的原生 PPTX;`svg_final/` 只是静态预览 || 现有 PPTX 路线 | Template Fill 与 Native Enhance 保留源对象动画,不把它翻译成生成路线的动画模型 || 播放兼容性 | Microsoft PowerPoint 桌面版是主要验证目标;Keynote、WPS、LibreOffice 与较旧 Office 可能重新映射或忽略个别效果 |diff --git a/docs/zh/audio-narration.md b/docs/zh/audio-narration.mdindex 6f866e0f..14f3e8ed 100644--- a/docs/zh/audio-narration.md+++ b/docs/zh/audio-narration.md@@ -136,7 +136,7 @@ Edge 默认同时生成最多 3 页音频/SRT。可用 `--concurrency <N>` 调Edge 命令会从同一次流式请求中生成 `audio/<stem>.mp3` 与 `notes/subtitles/<stem>.srt`。句末标点必定结束一条字幕;单条超过默认 20 个可见字符时,优先在逗号、分号或冒号处拆分,仍然过长才在最近的词边界拆分。可用 `--subtitle-max-chars` 调整上限。相邻字幕最多允许 100 毫秒的计时重叠:后一句起点会移到前一句终点;超过该范围则报错。每页 SRT 使用从零计时的页内时间基准,并保留 Edge `WordBoundary` 的实际时间(包括首条字幕前的静音);云端 provider 命令目前只生成音频。-存在规范自定义动画时,`narration_timing.json` 与只读的 `animations.json` 刻意分离:前者记录整套有序 SRT 的 SHA-256、旁白 padding、有序 SVG 组 ID 和可选的 1-based cue 编号。`narration_sync.py animations` 会拒绝过期的 SRT 指纹,用当前 SVG 校验组 ID,并把 PowerPoint 支持的字段写入派生的 `narration_animations.json`。没有动画 sidecar 时跳过该派生步骤。`narration_sync.py subtitles` 从最终 PPTX 读取真实页面关系顺序、毫秒级页面推进与转场时间,因此 `total.srt` 使用原生 PPTX 时间轴。相对 `--pptx` 路径按 `<project_path>` 解析。+存在规范自定义动画时,`narration_timing.json` 与只读的 `animations.json` 刻意分离:前者记录整套有序 SRT 的 SHA-256、旁白 padding、有序 SVG 组 ID 和可选的 1-based cue 编号。`narration_sync.py animations` 会拒绝过期的 SRT 指纹,用当前 SVG 校验组 ID,并把 PowerPoint 支持的字段写入派生的 `narration_animations.json`。包含 `effects[]` 的分组仍只映射一条 cue:第一条有效动画行锚定该 cue,后续动画行保留相对延迟。没有动画 sidecar 时跳过该派生步骤。`narration_sync.py subtitles` 从最终 PPTX 读取真实页面关系顺序、毫秒级页面推进与转场时间,因此 `total.srt` 使用原生 PPTX 时间轴。相对 `--pptx` 路径按 `<project_path>` 解析。PowerPoint 的视频编码器可能把每个页面 / 媒体段落量化到输出帧时钟;即使 PPTX 计时值正确,这些很小的分页误差仍可能逐页累积。把最终 `.mp4` / `.wmv` / `.mov` 通过 `--video` 传入后,脚本会用归一化音频相关性在视频音轨中定位每页原始旁白。它只改页级偏移,Edge 的字幕文本和页内 `WordBoundary` 时间保持不变;这是视频导出后的字幕校准步骤,不会改写视频。diff --git a/docs/zh/powerpoint-svg-mapping.md b/docs/zh/powerpoint-svg-mapping.mdindex bad8bbed..902defd6 100644--- a/docs/zh/powerpoint-svg-mapping.md+++ b/docs/zh/powerpoint-svg-mapping.md@@ -206,13 +206,20 @@ PowerPoint 原生 Chart/Table 对象是可选功能。默认导出保留 SVG fal|---|---|---|---|---|| 演讲者备注 | `notes/<slide>.md` sidecar | Notes Slide part 与 relationship | `Sidecar/package` | 备注不是 SVG 文本,不影响页面几何 || 幻灯片切换 | CLI 选项或 `animations.json` | `p:transition` | `Sidecar/package` | 未知效果或非法时长失败;不默默 fallback 到 `fade` |-| 对象动画(进入 / 强调 / 动作路径 / 退出) | `animations.json`,目标为稳定的顶层 SVG group ID | 根 `p:timing` 动画树 | `Sidecar/package`;group ID 仅为目标锚点 | 静态结构层与占位符不可动画 |+| 对象动画(进入 / 强调 / 动作路径 / 退出) | `animations.json`,目标为稳定的顶层 SVG group ID;`effects[]` 可让一个锚点拥有多条记录 | 根 `p:timing` 动画树 | `Sidecar/package`;group ID 仅为 shape target 锚点 | 静态结构层与占位符不可动画 || 旁白音频 | `audio/` 资产加 recorded-narration 导出选项 | media relationship、audio carrier 与 timing | `Sidecar/package` | 必须校验资产、Slide 关联与时序 || 幻灯片自动换页 | 显式 transition timing 或旁白派生时长 | `advTm`/换页行为 | `Sidecar/package` | 单击驱动动画与录制旁白不兼容 || 超链接或动作 | 无主 SVG 编译器映射 | 不由页面 SVG 创建 | 原生路线保留源 OOXML 时为 `Direct preservation` | action-button preset 只提供可见几何 || 批注或审阅线程 | 无 SVG 或生成侧映射 | 不编写 | 仅在其他路线明确拥有时为 `Direct preservation` | 不自动将审阅 metadata 转为可见 Slide 内容 || 不属于已映射功能的 relationship | 无通用 SVG 逃生口 | 不生成 | 适用时为 `Direct preservation` | 不支持任意 relationship 注入 |+对于一个目标 group,完全兼容的旧对象表示一条效果记录,非空 `effects[]` 表示+多条记录;两种形式互斥。每条记录都可独立设置 `trigger`、序列 `order`、+`delay`、`duration` 与 `trigger_shape`,页面动画 trigger 只提供继承的 Start+值。`auto`、`mixed` 与 `random` 只解析通用进入效果;显式规范效果覆盖进入、+强调、PowerPoint 原生动作路径预设和退出。该映射不会推导段落/文字范围 build、+自定义自由动作路径、原生 Chart/SmartArt build 序列或媒体播放命令。+sidecar 工作流见[转场与动画](./animations.md)(技术规范源为 [`references/animations.md`](../../skills/ppt-master/references/animations.md))与 [`audio-narration.md`](./audio-narration.md)。## 10. 其他 PowerPoint 原生功能diff --git a/docs/zh/technical-design.md b/docs/zh/technical-design.mdindex ffbe977f..804083cb 100644--- a/docs/zh/technical-design.md+++ b/docs/zh/technical-design.md@@ -654,11 +654,29 @@ ChartEx 导入被有意限制为 7 个已验证数据模型:`treemap`、`sunbu形状 ID——每个被动画的对象都需要稳定的 shape ID。给单个原语做动画会产出每页 30+ 个分别运动的原子,只给整页做动画又会损失视觉叙事。顶层 group本来就是 Executor 标记逻辑内容块的自然粒度,因此进入、强调、动作路径和退出-可以共用同一套语义单元。+可以共用同一套语义单元。group 标识的是 PowerPoint shape target,而不是一条+时序记录:旧单效果对象生成一条 Animation Pane 记录,`effects[]` 则可以生成+多条有序记录,并让它们共同指向同一 shape。**为什么页面结构自动跳过。** 顶层 group 只要带有 `data-pptx-layer`,就被视为不可动画的结构层;当前实现也把任何显式 `data-pptx-placeholder` 视为静态页框,`background` / `header` / `footer` / `decoration` / `watermark` / `page-number` 等 role 再补齐其余页面 chrome。ID token 回退不是按整份 SVG 启停,而是仅对同时缺少 layer、role 和 placeholder 的单个顶层 group 生效,因此新旧标记混合的 SVG 仍可能只在未标记 group 上使用 legacy ID 判断。另有一个有界的原语兼容回退:只有整页没有顶层 group、尚未找到任何动画目标且根原语候选为 1–8 个时,才把这些根原语作为锚点。这是当前扫描器的真实作用域;动画 reference 中“仅 marker-free legacy SVG”这一整页口径仍需另行与实现对齐。-**为什么对象级动画用 sidecar,而不是 SVG 属性。** SVG 继续作为静态视觉源。自定义 PPTX 动画属于导出策略,所以对象级覆盖放在可选的 `animations.json`,按 slide stem 和顶层 group id 关联。这样不会把 PowerPoint 专用元数据塞进 SVG,同时仍能在默认全局动画不够用时调整顺序、效果、延迟和时长。+**为什么对象级动画用 sidecar,而不是 SVG 属性。** SVG 继续作为静态视觉源。+自定义 PPTX 动画属于导出策略,所以对象级覆盖放在可选的 `animations.json`,+按 slide stem 和顶层 group id 关联。一个已填写的分组只能使用完全兼容的旧单+效果字段或非空 `effects[]` 封套,不能混用。每条解析后的动画行独立拥有效果、+序列顺序、延迟、时长、Start 模式和可选 `trigger_shape`;页面动画 trigger+只提供继承的 Start 模式。生成的 scaffold 保持中性(`effect: none`),分组在+采用动效前只是 `{}`。这样既不会把 PowerPoint 专用元数据塞进 SVG,也不会迫使+一个语义对象只能拥有一个动作阶段。++**为什么自动模式只负责进入效果。** `auto`、`mixed` 与 `random` 只回答一个+有界问题:普通揭示应如何进入。它们不会自行发明强调、移动或退出意图。这三类+效果以及显式选择的进入效果都使用 sidecar 中的规范标识,使创作决策可以检查。++**为什么目标模型止于顶层 shape 效果。** 生成模型不会推导段落/文字范围 build、+创作自定义自由动作路径、编排原生 Chart/SmartArt 内部 build,也不会写入媒体播放+命令。PowerPoint 原生动作路径预设仍是有效对象效果;媒体播放继续归音视频工作流+所有。**为什么录制旁白让自动推进时长跟着片段时长走。** 录制旁白模式面向视频导出,视频里没有演讲者去点击。该模式会逐页探测音频实际时长,并把自动推进设置为“音频时长 + `--narration-padding`”;padding 默认是 0.5 秒,用于避免音频尾部被切断。它不使用估算朗读速度或固定每页时长。@@ -666,7 +684,8 @@ ChartEx 导入被有意限制为 7 个已验证数据模型:`treemap`、`sunbu点击计时,但 PPT Master 不合成对象级点击事件。录制旁白路径只写页面级音频和页面自动推进计时,所以单击触发的对象效果会让导出依赖额外的 PowerPoint 人工排练。使用 `--recorded-narration` 导出的 deck 必须采用无点击对象动画-(`after-previous` 或 `with-previous`)。+(`after-previous` 或 `with-previous`);该要求按每条解析后的动画行检查,也排除+`trigger_shape`。**为什么原生视频导出保持独立命令。** 音频合成和 PPTX 打包属于跨平台项目操作;PowerPoint 视频编码则是 Windows 桌面集成。`powerpoint_video.py` 接收最终带旁白 PPTX,调用 `CreateVideo` 并轮询 `CreateVideoStatus`,对调用方呈现同步结果,同时避免把 Office 自动化耦合进 TTS backend。diff --git a/skills/ppt-master/references/animations.md b/skills/ppt-master/references/animations.mdindex a7580c2c..6cf91fea 100644--- a/skills/ppt-master/references/animations.md+++ b/skills/ppt-master/references/animations.md@@ -13,7 +13,7 @@ before the page plan is frozen, not only when a deck is already exported.| What the deck needs | Reach for | Decided at ||---|---|---|-| Reveal content in step with the narration | Per-element object animation — `-a auto` deck-wide, or an `animations.json` sidecar for specific order, effects, timing, and triggers | Post-processing; §2, §4, [`customize-animations`](../workflows/stages/customize-animations.md) |+| Reveal content in step with the narration | Per-element object animation — `-a auto` for generic entrance reveals, or an `animations.json` sidecar for explicit enter/emphasize/move/exit/static lifecycle choreography | Post-processing; §2, §4, [`customize-animations`](../workflows/stages/customize-animations.md) || A continuous action — slide-in, flip, camera push-in, progressive reveal, camera pan | **Morph: author the action as two static pages, then select Morph and add explicit pairs when identity must be deterministic.** There is no keyframe timeline anywhere in this pipeline; the difference between two ordinary editable slides *is* the animation | **Page authoring (Step 6), then motion post-processing** — §2.1, §3.1 || A static full-bleed page that should stop looking frozen | Consider slow `path_*` motion on a visually subordinate image or atmospheric layer; §4.1 gives one starting recipe | Post-processing; §4.1 || Carousel, counting numerals, parallax depth, click-to-reveal flip card | Four recurring recipes assembled from the mechanisms above | §4.2 — the carousel and odometer both need paired pages |@@ -47,7 +47,13 @@ To regenerate a deck with different settings, rerun `svg_to_pptx.py` against the## 2. Custom Object-Level Animation-Per-element animation is off by default. To enable it deck-wide, pass `-a auto` at export (no config needed). When a deck instead needs specific object timing — for example title first, chart second, annotation last — use the optional `animations.json` sidecar. The SVG remains the visual source; the custom stage may rewrite its grouping hierarchy, ids, and bounds to create better semantic anchors without changing visible output, while the sidecar controls PPTX animation behavior.+Per-element animation is off by default. To enable generic entrance reveals+deck-wide, pass `-a auto` at export (no config needed). When a deck instead+needs a specific object lifecycle—for example enter, move, emphasize, then+exit—use the optional `animations.json` sidecar. The SVG remains the visual+source; the custom stage may rewrite its grouping hierarchy, ids, and bounds to+create better semantic anchors without changing visible output, while the+sidecar controls PPTX animation behavior.Run the [`customize-animations`](../workflows/stages/customize-animations.md)post-processing stage when the project already carries `animations.json`, when@@ -57,15 +63,16 @@ reveals, or when the effective Custom Animations outcome inadvice and informs an active pass, but never triggers the stage alone.**Hard rule — semantic anchors before object-targeted sidecar entries**: when-object animation is in scope, derive reveal units from page meaning and-narration, then regroup coarse/fragmented Slide-local content without changing-its appearance. Only post-regroup top-level ids are valid object targets.+object animation is in scope, derive motion units and their lifecycle duties+from page meaning and narration, then regroup coarse/fragmented Slide-local+content without changing its appearance. Only post-regroup top-level ids are+valid object targets.```bash# Inspect the real anchors after the semantic regrouping passpython3 skills/ppt-master/scripts/animation_config.py list-groups <project>-# Build an editable scaffold from the post-regroup anchors when useful+# Build a neutral editable scaffold from the post-regroup anchors when usefulpython3 skills/ppt-master/scripts/animation_config.py scaffold <project># Validate references before export@@ -75,18 +82,26 @@ python3 skills/ppt-master/scripts/animation_config.py validate <project>python3 skills/ppt-master/scripts/svg_to_pptx.py <project>```+The scaffold keeps `defaults.animation.effect: none` and may list untouched+groups as empty `{}` placeholders; creating it does not opt the deck into+object motion. Populate only adopted motion units.+Sparse sidecar excerpt (unlisted slides inherit resolved defaults):```json{"version": 1,"slides": {- "03_market": {+ "03_threshold": {"groups": {- "title": { "effect": "entrance_fade", "order": 1 },- "chart": { "effect": "entrance_wipe", "effect_options": { "direction": "left" }, "order": 2, "duration": 0.6 },- "details-button": { "effect": "none" },- "insight": { "effect": "entrance_fly", "effect_options": { "direction": "up_right" }, "order": 3, "delay": 0.2, "trigger_shape": "details-button" }+ "risk-marker": {+ "effects": [+ { "effect": "entrance_fade", "order": 1, "duration": 0.25 },+ { "effect": "path_right", "effect_options": { "relative": true }, "order": 2, "duration": 0.7 },+ { "effect": "emphasis_teeter", "order": 3, "duration": 0.45 },+ { "effect": "exit_fade", "order": 4, "duration": 0.3 }+ ]+ }}}}@@ -97,18 +112,33 @@ Rules:- `slides` keys match SVG stems (`03_market.svg` → `03_market`).- `groups` keys match top-level `<g id="...">` anchors.-- `effect: none` removes that group from the object-animation sequence.-- `order` changes animation order only; it does not change slide layering.-- `delay` is seconds before that group starts in `after-previous` mode.-- `trigger_shape` is a group-only reference to another unique, triggerable+- A populated group block chooses exactly one representation: the+ backward-compatible single-effect object, or+ `{ "effects": [row, ...] }`. `effects` is non-empty and mutually exclusive+ with every legacy single-effect field; each row explicitly names `effect`.+ An untouched scaffold `{}` remains a neutral placeholder.+- `effect: none` in the legacy form removes that group from the object-animation+ sequence and is useful for overriding inherited generic animation.+- `effects[]` permits the same PowerPoint shape to carry several Animation Pane+ rows. `order` sorts ordinary rows across the slide; ties retain SVG group+ order and then array order. `trigger_shape` rows keep that relative ordering+ in separate interactive sequences rather than interleaving with the main+ sequence. Ordering never changes slide layering.+- `delay` is seconds added to that row's resolved Start.+- `trigger` may be set per legacy row or `effects[]` row; otherwise it inherits+ the resolved slide Start mode.+- `trigger_shape` is a row-specific reference to another unique, triggerabletop-level group. It maps to PowerPoint **Trigger → On Click of**, makes only- that row interactive, and uses `delay` as `TriggerDelayTime`.-- `duration` overrides the per-group schedule duration. `entrance_appear`+ that row interactive, and uses `delay` as `TriggerDelayTime`. It implies+ `on-click`; an explicit row `trigger` may accompany it only when also+ `on-click`.+- `duration` overrides the per-row schedule duration. `entrance_appear`remains a 1ms visibility flip, and instantaneous native emphasis presetsretain their PowerPoint-authored duration; the configured value still spacesthe next `after-previous` row.-- `effect_options` requires an explicit canonical `effect` in the same block- and accepts only parameters PowerPoint exposes for that effect:+- `effect_options` requires an explicit canonical `effect` in the same legacy+ block or `effects[]` row and accepts only parameters PowerPoint exposes for+ that effect:| Option | Applies to ||---|---|@@ -118,7 +148,7 @@ Rules:| `font_name` | Change Font; required for `emphasis_change_font`; one installed PowerPoint face, not a CSS list || `size` | Grow/Shrink || `relative` | Motion paths (`true` = shape-relative, `false` = fixed slide path) |-- Any animation/group block may set `repeat_count` or `repeat_duration`+- Any animation block or effect row may set `repeat_count` or `repeat_duration`(mutually exclusive), `auto_reverse`, `rewind`, `accelerate`, `decelerate`,`bounce_end`, `restart`, `after_effect`, and `sound`. Ratios are `0..1`;`bounce_end` requires an interpolated behavior and cannot combine with@@ -129,9 +159,10 @@ Rules:- `Speed` and smooth start/end are not duplicate sidecar fields: they arederived from `duration` and `accelerate`/`decelerate`.- This is the complete parameter surface for the generated top-level-group- target model. PowerPoint paragraph/text-range build fields are intentionally- absent because grouped SVG content is not emitted as paragraph builds; media- play/pause/stop commands remain in the audio/video workflows.+ target model, including multiple ordered effects on one group. PowerPoint+ paragraph/text-range build fields are intentionally absent because grouped+ SVG content is not emitted as paragraph builds; media play/pause/stop+ commands remain in the audio/video workflows.- Run `python3 skills/ppt-master/scripts/pptx_animations.py --describe<canonical_effect>` for that effect's exact option values and full parametercontract.@@ -144,9 +175,10 @@ slides and omitted slide fields inherit `defaults.transition` /`defaults.animation`, then CLI/exporter resolution. Explicit CLI flags overridethe corresponding sidecar default/slide fields; explicit group overrides remainunless `-a none` hard-disables all object motion. Groups inherit the resolved-slide duration, timing modifiers, after-effect, and sound. `effect_options`-remains coupled to an explicit effect; `trigger_shape` is never inherited;-omitted `order`/`delay` use exporter defaults.+slide duration, Start mode, timing modifiers, after-effect, and sound into each+legacy or `effects[]` row. `effect_options` remains coupled to an explicit+effect; `trigger_shape` is never inherited; omitted `order`/`delay` use+exporter defaults.### 2.1 Deterministic Morph Object Pairing@@ -302,10 +334,16 @@ Enable with `-a auto`, select a canonical effect with`--animation entrance_fade`, and choose Start behavior with`--animation-trigger on-click|with-previous|after-previous`.-PowerPoint's separate **Trigger → On Click of** behavior uses group-only+PowerPoint's separate **Trigger → On Click of** behavior uses row-specific`trigger_shape`. It links that row to another top-level group while unlinkedrows keep the slide Start mode; it is not a fourth deck-wide Start mode.+**Lifecycle-first selection**: classify semantic `initial → action → end`+before choosing an effect: `enter→entrance_*`,+`emphasize→emphasis_*`, `move→path_*` or Morph, `exit→exit_*`, and+`static→` no row (or legacy `effect: none` to suppress inheritance). A unit may+use several ordered `effects[]` rows. There is no category quota.+The registry exposes two layers:- **203 PowerPoint-native object presets**: 53 `entrance_*` presets, 33@@ -336,21 +374,24 @@ The native keys mirror the object-capable `MsoAnimEffect` surface. The fourmedia commands—play, pause, stop, and play from bookmark—are not object effectsfor SVG groups and remain owned by the audio/video workflows.-- `auto` maps semantic ids to canonical entrances: charts/tables/timelines use+- `auto` handles generic `enter` duties only and maps semantic ids to canonical entrances: charts/tables/timelines use`entrance_wipe`; cards/steps use `entrance_fly`; titles/takeaways use`entrance_fade`; image-like ids cycle a richer pool; unmatched ids cyclefade/wipe/fly/zoom.-- `mixed` (legacy mode name) — deterministic. The first animated group on each+- `mixed` (legacy mode name) handles generic `enter` duties only and is+ deterministic. The first animated group on eachslide uses `entrance_fade`; later groups cycle through a 16-effect canonicalPowerPoint entrance pool across the deck. The mode name remains compatible;it no longer selects hand-authored compatibility rows.-- `random` — samples from the same canonical PowerPoint entrance pool.+- `random` handles generic `enter` duties only and samples from the same+ canonical PowerPoint entrance pool.Resolution is seeded from the effective deck input, so the same inputproduces the same choices; `--conversion-trace` records every resolved effectwhen diagnostics are enabled.`entrance_appear` is excluded from every variation pool because it has no-visible motion.+visible motion. `auto`, `mixed`, and `random` never satisfy an adopted+`emphasize`, `move`, or `exit` duty; those require explicit canonical effects.Flags: `-a/--animation` selects effect/mode; `--animation-trigger` selects Start;`--animation-duration` and `--animation-stagger` control base timing;@@ -395,12 +436,18 @@ mechanisms already defined above — none needs a new capability.## 5. Anchor Logic — Top-Level `<g id="...">`-Per-element animations are anchored on **top-level `<g id="...">` content groups** in the SVG (e.g. `<g id="cover-title">`, `<g id="card-1">`). IDs must be unique within the page. One group produces one animation-pane row; whether that row needs a click depends on the selected Start mode. Nested implementation groups may remain anonymous because the sidecar does not target them.+Per-element animations are anchored on **top-level `<g id="...">` content+groups** in the SVG (e.g. `<g id="cover-title">`, `<g id="card-1">`). IDs must+be unique within the page. A backward-compatible single-effect group produces+one Animation Pane row; `effects[]` may produce several ordered rows targeting+the same PowerPoint shape. Each row inherits the slide Start mode unless it+declares its own `trigger`. Nested implementation groups may remain anonymous+because the sidecar does not target them.**Hard rule — existing groups are not custom-animation intent**: thepre-existing SVG hierarchy is implementation evidence, not an authoritative-reveal plan. During the custom-animation stage, derive one group per logical-page unit from claims, comparisons, sequence, causality, and narration beats;+motion plan. During the custom-animation stage, derive one group per logical+motion unit from claims, comparisons, sequence, causality, and narration beats;split coarse wrappers and merge fragmented atoms when needed, then use`list-groups` only after that rewrite. This is also the granularity PowerPointuses for group-select / group-move. Do not split or merge units to hit a target@@ -429,8 +476,9 @@ reference; a self-trigger; or any attempt to animate or trigger from astructural layer. These errors never downgrade or silently omit a target.Generated export reads each slide's timing tree back and checks row count/order,-trigger, trigger shape, shape target, preset class, resolved effect tuple, native behavior-signature, duration, and timeline offset. Package validation then checks root+including repeated rows on one shape, trigger, trigger shape, shape target,+preset class, resolved effect tuple, native behavior signature, duration, and+timeline offset. Package validation then checks roottiming placement, unique and valid `p:cTn` ids, and every `p:spTgt` reference.Deterministic Morph additionally checks the final adjacent slide parts for therequested `!!` names, one-to-one uniqueness, compatible object types, and adiff --git a/skills/ppt-master/references/shared-standards-core.md b/skills/ppt-master/references/shared-standards-core.mdindex 3d7f35bc..c7d0df34 100644--- a/skills/ppt-master/references/shared-standards-core.md+++ b/skills/ppt-master/references/shared-standards-core.md@@ -589,7 +589,7 @@ These forms are needed only when the stated PPT behavior matters:**Hard rule — root groups protect body-text layout**: Every visible direct root `<g>` declares positive root-coordinate `data-pptx-bounds="x y width height"`. Keep it when frame/native coordinates size one PowerPoint object; placeholder bounds also supply the slot frame. On flat pages, make each module zone as generous as the canvas and sibling layout allow without overlapping another module zone. Checker validates this subcanvas against the root `viewBox`, then recursively validates only estimable `<text>` descendants against it using the shared SVG-to-PPTX per-run width estimate and safety headroom. Nested groups and all shapes, images, paths, `<use>` instances, effects, and object frames are not content-boundary inputs. Per side, Checker ignores text/bounds overflow through `1px`, warns through `5%` of the containing boundary dimension, and fails above `5%`. Bounds do not clip or reflow.-Wrap each logical Slide-local body unit in one descriptive top-level `<g id>`; group count follows the page's semantic units, and each group becomes one animation step when animation is enabled. Nested implementation groups may remain anonymous and need no bounds; any nested bounds are ignored. Flat pages use ordinary groups; structured slots already qualify, while titles, direct atomic Master/Layout elements, and canvas-level static framing—including background images and full-canvas scrim/decoration rectangles—may remain root primitives. On flat pages, give such static framing a stable `id` plus `data-pptx-role="background"` / `"decoration"`; never add a `<g>` solely to silence an ungrouped-element advisory.+Wrap each logical Slide-local body unit in one descriptive top-level `<g id>`; group count follows the page's semantic units, and each group becomes one stable animation target when animation is enabled. Generic deck-wide animation gives that target one step; an explicit animation sidecar may assign it several ordered effects. Nested implementation groups may remain anonymous and need no bounds; any nested bounds are ignored. Flat pages use ordinary groups; structured slots already qualify, while titles, direct atomic Master/Layout elements, and canvas-level static framing—including background images and full-canvas scrim/decoration rectangles—may remain root primitives. On flat pages, give such static framing a stable `id` plus `data-pptx-role="background"` / `"decoration"`; never add a `<g>` solely to silence an ungrouped-element advisory.**Reference — not a constraint**: A top-level semantic group may containdescriptive nested `<g>` edit groups when its internal elements form usefuldiff --git a/skills/ppt-master/references/strategist.md b/skills/ppt-master/references/strategist.mdindex 34fff016..2020c788 100644--- a/skills/ppt-master/references/strategist.md+++ b/skills/ppt-master/references/strategist.md@@ -283,13 +283,25 @@ user/template requirements bind.| Image composition | Image-as-canvas, editorial crop, collage, cutout, or meaningful focus / comparison / evidence units carry the page better than an adjacent rectangle | Propose a permitted source; when selected, load [`strategist-image.md`](./strategist-image.md), record a concise §VIII `Layout pattern` suggestion, and describe page-level image/overlay relationships in §IX `Layout` / `Images` || Native paint / overlay | Gradient, translucency, scrim, vignette, or wash supports focus, hierarchy, depth, legibility, or image integration | Record purpose/layering in §IX `Layout`, plus `Images` when imagery participates; no new field or type/stops/opacity/coordinates—Executor chooses realization || Native shape / Merge Shapes | A literal Office symbol, a stock bent/curved relationship contour, or a compound silhouette, negative-space cutout, overlap-only region, or meaningful fragmentation strengthens the visual idea | Add an optional §IX `Native shape suggestion` with the semantic result plus a candidate preset/Connector family or Boolean operation/operands |-| Page transition | A section/state change, spatial continuity, recorded/self-running flow, or the same semantic object changing position, scale, crop, or state across adjacent pages benefits from motion | Add an optional §IX `Motion suggestion` describing the communication job and any continuing object's start/end semantic states; leave effect, ids, pairing names, and timing to Executor |-| Object animation | Progressive reveal clarifies sequence, causality, comparison, hierarchy, narration order, full-view → detail, atmosphere → evidence, or hotspot/annotation order | Add an optional §IX `Motion suggestion` describing semantic units/order and any visible image-state relationship; leave group ids, effect, and timing to Executor |+| Page transition | A section/state change, spatial continuity, recorded/self-running flow, or the same semantic object changing position, scale, crop, or state across adjacent pages benefits from motion | Add an optional §IX `Motion suggestion` describing the communication job and any continuing object's initial state → action → end state; leave effect, ids, pairing names, and timing to Executor |+| Object animation | Progressive reveal, emphasis, movement, removal, or deliberate stillness clarifies sequence, causality, comparison, hierarchy, narration order, full-view → detail, atmosphere → evidence, or hotspot/annotation order | Add an optional §IX `Motion suggestion` naming each relevant semantic unit's lifecycle duty and initial state → communication action → end state, plus any meaningful order/relationship; leave group ids, effects, options, and timing to Executor |-Write useful motion advice regardless of the effective Custom Animations outcome.-The suggestion remains non-binding and never activates custom-animation-execution by itself; only an explicit motion requirement or an enabled outcome-may require visible endpoint/reveal-state preparation.+**Reference — not a constraint: motion lifecycle vocabulary.**++| Duty | Semantic lifecycle |+|---|---|+| `enter` | absent → introduce → present |+| `emphasize` | present → redirect attention → present/altered |+| `move` | state/position A → progress → state/position B |+| `exit` | present → retire → absent |+| `static` | present → hold as reference → present |++Use only relevant duties—no category quota. For every unit mentioned in a+`Motion suggestion`, state its duty, lifecycle, and meaningful order; never+name an effect, target id, option, or timing. Write useful advice regardless of+the effective outcome. Suggestions remain non-binding and never activate the+custom stage; only an explicit motion requirement or an enabled outcome may+require visible lifecycle-state preparation.Review planned pages through two lenses:diff --git a/skills/ppt-master/scripts/docs/pptx-animations.md b/skills/ppt-master/scripts/docs/pptx-animations.mdindex 73b758e0..8a396400 100644--- a/skills/ppt-master/scripts/docs/pptx-animations.md+++ b/skills/ppt-master/scripts/docs/pptx-animations.md@@ -25,17 +25,23 @@ package validation; they do not resolve or author animation effects.## 2. Domain Model-One resolved animation-pane row contains these fields:+`groups.<id>` accepts either one backward-compatible effect object or one+non-empty `effects[]` array; the forms are exclusive and every array row names+`effect`. Both expand into the same row model, so repeated shape targets are+valid. Legacy rows also accept `trigger`; omitted row settings inherit the+resolved slide animation.++One resolved row contains these fields:| Field | Meaning ||---|---|| Target | Positive PowerPoint shape id written to `p:spTgt@spid` || Effect | One canonical PowerPoint-authored preset class / id / subtype / behavior-tree signature |-| Trigger | `on-click`, `with-previous`, or `after-previous` |+| Trigger | Row-specific `on-click`, `with-previous`, or `after-previous`; omitted values inherit the resolved slide Start mode || Trigger shape | Optional different top-level group; maps to PowerPoint `On Click of` || Duration | Finite positive schedule duration; scalable native behavior trees preserve their internal timing ratios |-| Delay | Finite non-negative offset used by `after-previous` or as trigger-shape `TriggerDelayTime` |-| Order | Positive integer sidecar order; ties retain stable SVG order |+| Delay | Finite non-negative row offset; shape-trigger rows use it as `TriggerDelayTime` |+| Order | Positive integer sidecar order; ties retain stable SVG group order, then `effects[]` index || Effect options | Effect-specific `direction`, `amount`, `color`, `font_name` (one installed PowerPoint face, required for Change Font; not a CSS list), `relative`, or `size` values from PowerPoint `EffectParameters` || Timing options | Repeat count/span, auto-reverse, rewind, accelerate/decelerate, bounce-end ratio, and restart policy || Completion | Optional dim/hide behavior and packaged `.m4a`/`.mp3`/`.wav` sound |@@ -44,15 +50,18 @@ Modes resolve before XML writing:| Mode | Resolution ||---|---|-| `auto` | Deterministic semantic mapping from the SVG group id |-| `mixed` | Deterministic cycle over canonical PowerPoint entrance presets |-| `random` | Stable seeded choice from the same canonical preset pool |+| `auto` | Generic entrance only: deterministic semantic mapping from the SVG group id |+| `mixed` | Generic entrance only: deterministic cycle over canonical PowerPoint entrance presets |+| `random` | Generic entrance only: stable seeded choice from the same canonical entrance pool || `none` | No object-animation sequence |The same effective input produces the same `random` choices. When enabled,`--conversion-trace` records each resolved row and effect, so a generated deckcan be audited without replaying the resolver.+`animation_config.py scaffold` is neutral: object defaults are `none`, and+empty `{}` group placeholders inherit no motion until populated.+---## 3. Canonical Registry and Compatibility Inputs@@ -128,7 +137,7 @@ for marker-free legacy SVGs.| Target state | Behavior ||---|---|-| Ordinary content group | Animatable |+| Ordinary content group | Animatable; a legacy block resolves one row and `effects[]` may resolve several rows against the same final shape || Legacy chrome-like id | Skipped unless explicitly named in `animations.json` || Explicit sidecar group override | May override only the legacy chrome-name heuristic || `data-pptx-layer` or explicit static role/placeholder | Structural and never animatable |@@ -157,11 +166,17 @@ Trigger mapping:| `with-previous` | `withEffect` || `after-previous` | `afterEffect` |-A group-level `trigger_shape` resolves to a different shape id and writes+A row-level `trigger_shape` resolves to a different shape id and writesPowerPoint's native `interactiveSeq` with `onClick` shape conditions. Its row-remains `clickEffect`; group `delay` becomes `TriggerDelayTime`. Ordinary rows+remains `clickEffect`; row `delay` becomes `TriggerDelayTime`. Ordinary rowsremain in `mainSeq` and keep the slide Start mode.+Row `trigger` overrides slide Start in both forms. `trigger_shape` implies+`on-click` and conflicts with an explicit non-`on-click` Start. Repeated+`p:spTgt@spid` values are valid distinct Animation Pane rows. Ordinary rows+retain page-wide `order`; trigger-shape rows retain their relative order in+separate `interactiveSeq` branches and do not interleave with `mainSeq`.+The writer does not emit `p:bldP` for grouped content or pictures. Microsoftdefines `p:bldP@spid` for a text-bearing `p:sp`; using it for `p:grpSp` or`p:pic` creates an invalid build reference. Package validation still accepts a@@ -198,7 +213,7 @@ project-level preflight; field-only validation remains filesystem-independent.Generated export reads every slide back before packaging and compares eachrequested row with the serialized result:-- row count and row order;+- row count and row order, including stable repeated-target rows;- trigger, optional trigger shape, and shape target;- resolved effect key, preset class, filter, `presetID`, and `presetSubtype`;- exact effect options, repeat/reverse/rewind/acceleration/bounce/restartdiff --git a/skills/ppt-master/scripts/docs/svg-pipeline.md b/skills/ppt-master/scripts/docs/svg-pipeline.mdindex 74d7b94d..cc48f282 100644--- a/skills/ppt-master/scripts/docs/svg-pipeline.md+++ b/skills/ppt-master/scripts/docs/svg-pipeline.md@@ -647,26 +647,27 @@ Behavior:- Long-audio import and automatic long-audio splitting are not supported; keep narration assets page-level- Voice choices can be listed with `python3 scripts/notes_to_audio.py --list-common-voices`, `python3 scripts/notes_to_audio.py --list-voices --locale zh-CN`, or provider-specific `--provider <name> --list-voices`- Page transitions are controlled by `-t/--transition`; per-element object animations are controlled by `-a/--animation`-- Per-element animation applies to ordinary top-level SVG `<g id="...">` groups in z-order; use one group per logical Slide-local content unit rather than targeting a group count. Master/Layout atoms and slot groups are structural and excluded; exact id tokens remain a fallback only when explicit structural roles are absent+- Per-element animation applies to ordinary top-level SVG `<g id="...">` groups; each group is a PowerPoint shape-target anchor, not necessarily one Animation Pane row. Use one group per logical Slide-local content unit rather than targeting a group count. Master/Layout atoms and slot groups are structural and excluded; exact id tokens remain a fallback only when explicit structural roles are absent- An explicit `animations.json` group entry may override the marker-free legacy chrome-name heuristic. It cannot override `data-pptx-layer` or an explicit static role/placeholder marker-- Start mode is set by `--animation-trigger`, mirroring PowerPoint's Start dropdown: `after-previous` (default, cascade with `--animation-stagger` spacing on slide entry), `on-click` (presenter-paced), `with-previous` (all together on slide entry)-- `on-click` is for live presentations only; recorded narration rejects it because the tool does not generate object-level click timings+- Start mode is set globally by `--animation-trigger`, mirroring PowerPoint's Start dropdown: `after-previous` (default, cascade with `--animation-stagger` spacing on slide entry), `on-click` (presenter-paced), or `with-previous` (all together on slide entry). A sidecar row may override it with `trigger`; the slide value is only the inherited Start mode+- `on-click` is for live presentations only; recorded narration rejects every row that resolves to it, including a row with `trigger_shape`, because the tool does not generate object-level click timings- Flat SVG roots without top-level groups fall back to at most 8 visible primitives; beyond that, animation is skipped on the slide- Per-element animation defaults to `none`. `auto` is opt-in (`-a auto`) and maps- effects from the group's SVG id: information-dense elements get a stable- effect (chart→wipe, card-/step-/pillar-→fly, title/takeaway→fade); image-like- ids (hero/figure-/image/img-/kpi) cycle through a richer pool- (zoom/dissolve/circle/box/diamond/wheel), while unmatched ids cycle through- fade/wipe/fly/zoom.-- `mixed` (legacy) is deterministic: the first animated group on each slide uses `fade`, then later groups cycle through a larger 16-effect pool across the whole deck; `random` uses a stable seed from the effective deck input, and `--conversion-trace` records each resolved effect when enabled-- `--animation-duration` controls the per-element schedule length (default+ generic entrance effects from the group's SVG id: information-dense elements+ get a stable entrance (chart→wipe, card-/step-/pillar-→fly,+ title/takeaway→fade); image-like and unmatched ids rotate through bounded+ entrance pools.+- `mixed` (legacy) deterministically rotates through the canonical entrance pool; `random` selects from the same entrance pool with a stable seed from the effective deck input. `auto`, `mixed`, and `random` never choose emphasis, motion-path, or exit effects; select an explicit canonical `entrance_*`, `emphasis_*`, `path_*`, or `exit_*` key for those authored duties. `--conversion-trace` records each resolved effect when enabled+- `--animation-duration` controls the inherited per-row schedule length (default`0.4`); scalable native effects preserve internal timing ratios, whileinstantaneous presets keep their authored duration. `--animation-stagger`- adds gap between elements in `after-previous` mode (default `0.5`)-- Optional object-level overrides live in `<project>/animations.json` or a path passed via `--animation-config`; build and validate them with `animation_config.py scaffold|validate`+ supplies the default gap between successive non-trigger-shape rows in+ `after-previous` mode (default `0.5`)+- Optional object-level overrides live in `<project>/animations.json` or a path passed via `--animation-config`; build and validate them with `animation_config.py scaffold|validate`. The scaffold is neutral (`defaults.animation.effect: none`, untouched groups `{}`). A populated group uses either the fully compatible legacy single-effect fields or a non-empty `effects[]`, never both; every `effects[]` row names an explicit effect+- One `effects[]` row becomes one Animation Pane record on the group's shape target. Each row may independently set sequence `order`, `delay`, `duration`, `trigger`, and `trigger_shape`; ordinary rows use page-wide order, while `trigger_shape` rows keep relative order in separate interactive sequences and imply `on-click`- Animation configuration is strict: unknown effects/modes/triggers, invalid finite/range/order values, missing slides/groups, and structural-layer targets fail export without fallback or silent omission-- Generated export reads every slide back and verifies animation row order, trigger, shape target, resolved effect tuple, duration, and offset. Package validation then checks timing placement, `p:cTn` ids, and `p:spTgt` references before publication-- The animation writer does not emit `p:bldP` for groups or pictures. Direct-PPTX routes preserve source object animation and perform structural package validation only; they do not author effects+- Generated export reads every slide back and verifies animation row order, including repeated rows on one shape target, trigger, shape target, resolved effect tuple and native behavior signature, duration, and offset. Package validation then checks timing placement, `p:cTn` ids, and `p:spTgt` references before publication+- The animation writer does not emit paragraph/text-range builds (`p:bldP`), custom freeform motion paths, native Chart/SmartArt build sequences, or media playback commands for grouped SVG content. Direct-PPTX routes preserve source object animation and perform structural package validation only; they do not author effects- The full registry, OOXML rules, and compatibility boundary are documented in [`pptx-animations.md`](./pptx-animations.md)Dependency:diff --git a/skills/ppt-master/scripts/prompt_audit_manifest.json b/skills/ppt-master/scripts/prompt_audit_manifest.jsonindex 58c6ce9a..de4bc10e 100644--- a/skills/ppt-master/scripts/prompt_audit_manifest.json+++ b/skills/ppt-master/scripts/prompt_audit_manifest.json@@ -12,7 +12,7 @@"skills/ppt-master/templates/schemas/*.json"],"exclude": [],- "max_tokens": 400600+ "max_tokens": 402100},"file_budgets": {"AGENTS.md": 2400,@@ -28,7 +28,7 @@"skills/ppt-master/references/svg-effects.md": 11725,"skills/ppt-master/references/native-data-interface.md": 6200,"skills/ppt-master/references/pptx-structure-interface.md": 4300,- "skills/ppt-master/references/strategist.md": 14225,+ "skills/ppt-master/references/strategist.md": 14350,"skills/ppt-master/references/strategist-image.md": 2525,"skills/ppt-master/references/strategist-template.md": 2100,"skills/ppt-master/templates/design_spec_reference.md": 3275,@@ -170,7 +170,7 @@"registry": "visual-styles"}],- "max_tokens": 62325+ "max_tokens": 62475},"route.generate.quick-generate": {"description": "Explicit non-interactive Generate path with conditional source/resource preparation and the shared SVG authoring core.",@@ -269,7 +269,7 @@"stage.generate.strategist.image"],"files": [],- "max_tokens": 64850+ "max_tokens": 64975},"route.generate.planning-ai": {"description": "Generate-PPTX planning when AI image direction is available, including representative multi-source custom rendering synthesis.",@@ -401,7 +401,7 @@"stage.generate.executor.notes"],"files": [],- "max_tokens": 88025+ "max_tokens": 88175},"route.generate.flat-ai-two-types": {"description": "Generate-PPTX context with AI images, representative multi-source custom rendering, and two local types.",@@ -449,7 +449,7 @@"stage.shared.generate-audio"],"files": [],- "max_tokens": 15100+ "max_tokens": 15125},"route.generate.beautify-flat-no-image": {"description": "Generate-PPTX 1:1 beautify profile on the flat no-image path.",@@ -459,7 +459,7 @@"profile.generate.beautify-pptx"],"files": [],- "max_tokens": 94950+ "max_tokens": 95100},"route.generate.flat-no-image-chart": {"description": "Default flat Generate-PPTX path with chart authoring, native-data replacement, and verification.",@@ -472,7 +472,7 @@"stage.generate.verify-charts"],"files": [],- "max_tokens": 112350+ "max_tokens": 112500},"route.generate.brand-flat-no-image": {"description": "Brand-preset flat Generate-PPTX path without image acquisition.",@@ -484,7 +484,7 @@"stage.generate.template.brand"],"files": [],- "max_tokens": 95050+ "max_tokens": 95200},"route.generate.deck-structured-no-image": {"description": "Deck-preset structured Generate-PPTX path without image acquisition.",@@ -496,7 +496,7 @@"stage.generate.template.deck"],"files": [],- "max_tokens": 105000+ "max_tokens": 105150},"route.generate.layout-structured-no-image": {"description": "Layout-preset structured Generate-PPTX path without image acquisition.",@@ -508,7 +508,7 @@"stage.generate.template.layout"],"files": [],- "max_tokens": 105425+ "max_tokens": 105600},"route.generate.topic-only-flat-no-image": {"description": "Topic research followed by the default flat no-image Generate-PPTX path.",@@ -518,7 +518,7 @@"route.generate.flat-no-image"],"files": [],- "max_tokens": 89525+ "max_tokens": 89675},"stage.generate.executor.flat": {"description": "Incremental flat Executor core with representative multi-source custom mode/style execution.",@@ -698,7 +698,7 @@"skills/ppt-master/scripts/docs/pptx-transitions.md","skills/ppt-master/scripts/docs/svg-pipeline.md"],- "max_tokens": 29025+ "max_tokens": 30300},"stage.generate.video-motion-plan": {"description": "Conditional resolved animation-to-video handoff contract.",@@ -714,7 +714,7 @@"files": ["skills/ppt-master/references/animations.md"],- "max_tokens": 6950+ "max_tokens": 7175},"stage.shared.generate-audio": {"description": "Shared narration-audio stage.",@@ -722,7 +722,7 @@"files": ["skills/ppt-master/workflows/stages/generate-audio.md"],- "max_tokens": 5350+ "max_tokens": 5375},"governance.failure-recovery": {"description": "Global stop, retry, and resume policy.",@@ -764,7 +764,7 @@"stage.generate.strategist.template"],"files": [],- "max_tokens": 64400+ "max_tokens": 64550},"route.generate.planning-template-ai": {"description": "Explicit template workspace plus confirmed AI-image planning.",diff --git a/skills/ppt-master/workflows/stages/customize-animations.md b/skills/ppt-master/workflows/stages/customize-animations.mdindex c306188b..1f93cfb8 100644--- a/skills/ppt-master/workflows/stages/customize-animations.md+++ b/skills/ppt-master/workflows/stages/customize-animations.md@@ -90,7 +90,7 @@ author motion merely to expose a capability.----## 2. Rebuild Semantic Motion Groups When Needed, Then List IDs+## 2. Rebuild Semantic Motion Units When Needed, Then List IDs**Mandatory when object-targeted motion is in scope — content-first groupingaudit**: inspect each affected slide's visible content against its communication@@ -99,15 +99,15 @@ anchor. The affected set is the page named by an adopted suggestion or explicitobject-motion request, plus both endpoints of each deterministic Morph pair.Untouched pages need no animation audit. Existing groups are implementationevidence only. Keep a current group unchanged only after confirming that it-already represents exactly one audience-facing reveal unit or one continuing+already represents exactly one audience-facing motion unit or one continuingMorph object. A page-transition-only plan without explicit Morph pairs skipsregrouping and group listing.| Content condition | Required grouping action ||---|---|-| One current group contains several independently narrated rows, cards, steps, claims, or stages | Split it into descriptive direct-root sibling groups, one per reveal unit |-| One reveal unit is scattered across groups or root primitives | Merge or wrap its background, icon, label, value, and supporting text into one direct-root group |-| A connector or arrow explains entry into a node or stage | Reveal it with the relationship or target unit that makes the connection intelligible |+| One current group contains several independently narrated rows, cards, steps, claims, or stages | Split it into descriptive direct-root sibling groups, one per motion unit |+| One motion unit is scattered across groups or root primitives | Merge or wrap its background, icon, label, value, and supporting text into one direct-root group |+| A connector or arrow explains entry into a node or stage | Keep it with the relationship or target unit that makes the connection intelligible || A hero visual, overview graphic, takeaway, or warning has its own communication role | Give it its own semantic group || The same semantic object continues across adjacent Morph pages | Isolate each endpoint as one direct-root group and keep both endpoints as compatible object kinds || Several atoms express one inseparable idea | Keep them together; do not animate the atoms separately |@@ -168,7 +168,10 @@ only after semantic regrouping:python3 skills/ppt-master/scripts/animation_config.py scaffold <project_path>```-Do not read the full scaffold unless it is needed as an editing starting point.+The scaffold is neutral: its default object effect is `none`, and listed groups+may remain empty `{}` placeholders until adopted. Creating it does not select+generic entrance animation. Do not read the full scaffold unless it is needed+as an editing starting point.---@@ -183,19 +186,34 @@ deck-wide transition review.| Page transition | `defaults.transition` or `slides.<slide>.transition` | Control how one slide enters from the previous slide || Deterministic Morph pair | `slides.<destination>.morph` | Bind one real source group to one real destination group when semantic identity continues across adjacent slides || Page animation defaults | `defaults.animation` or `slides.<slide>.animation` | Control the default object-animation behavior for animated groups on a slide |-| Object overrides | `slides.<slide>.groups.<group_id>` | Control order, effect, delay, or duration for a real SVG group |+| Object lifecycle | `slides.<slide>.groups.<group_id>` | Assign one legacy effect row or an ordered `effects[]` sequence to a real SVG motion unit |**Per-affected-page motion brief**: decide what communication job the requested-motion should perform—or that it should perform none—then choose only the-relevant transition, reveal sequence, object effects, and timing. Use+motion should perform—or that it should perform none. Classify the relevant+motion units by lifecycle before choosing effects, then select only the+relevant transition, object effects, order, and timing. Use`design_spec.md` for slide role, `spec_lock.md` for rhythm and visual style,speaker notes for narration order, and SVG group ids for target validity.-**Title reveal decision**: when a title participates in the affected page's-motion job, choose static, immediate, delayed, synchronized, post-hero, or-narration-cued behavior from slide intent. Use the sidecar override for a-marker-free legacy chrome-like id; repair an incorrect explicit-structural/static marker before animating it.+**Mandatory — lifecycle before effect selection**:++| Duty | State contract | Effect family |+|---|---|---|+| `enter` | absent → introduce → present | `entrance_*`; modes only for generic reveal |+| `emphasize` | present → redirect attention → present/altered | Explicit `emphasis_*` |+| `move` | state/position A → progress → state/position B | Explicit `path_*`, or endpoint pages + Morph |+| `exit` | present → retire → absent | Explicit `exit_*` |+| `static` | present → hold as reference → present | Omit; use legacy `effect: none` only to suppress inheritance |++A unit may carry several duties as ordered `effects[]` rows. There is no+category quota; never reverse-engineer a communication job from an available+effect.++**Title motion decision**: when a title participates, classify its lifecycle,+then choose immediate, delayed, synchronized, post-hero, or narration-cued+timing from slide intent. Use the sidecar override for a marker-free legacy+chrome-like id; repair an incorrect explicit structural/static marker before+animating it.**Default — inherit unaffected motion layers (may override when the page'scommunication job requires it)**: a custom object-animation pass may leave the@@ -208,9 +226,10 @@ longer motion for conceptual pivots, hero diagrams, section boundaries, andfinal takeaways. Uniform timing is valid when it fits the requested style.**Reference — not a constraint: motion judgment.** Decide the communication-job, tone, audience order, and whether direction carries meaning before using-geometry. If motion adds no clarity or intended feeling, use `none`,-`entrance_appear`, or `entrance_fade`. Layout direction alone does not require+job, lifecycle, tone, audience order, and whether direction carries meaning+before using geometry. If motion adds no clarity or intended feeling, classify+the unit `static`; use `none`, `entrance_appear`, or `entrance_fade` only when+that result matches the lifecycle. Layout direction alone does not requirespecial motion; variation follows a real content/tone change, never a quota.### 3.1 Supported Page Transitions@@ -255,9 +274,9 @@ tree. Media-only commands remain in the audio/video workflows.| Choice | Behavior ||---|---|| `entrance_*` / `emphasis_*` / `path_*` / `exit_*` | Select one explicit canonical PowerPoint object effect |-| `auto` | Map content roles to canonical entrances; image-like ids use a richer canonical pool |-| `mixed` | Cycle 16 canonical entrance presets by group order |-| `random` | Select deterministically from the same canonical entrance pool |+| `auto` | Generic `enter` only: map content roles to canonical entrances; image-like ids use a richer canonical pool |+| `mixed` | Generic `enter` only: cycle 16 canonical entrance presets by group order |+| `random` | Generic `enter` only: select deterministically from the same canonical entrance pool || `none` | Exclude the object or slide from in-slide animation |The 29 old short names remain readable only as compatibility inputs; do not use@@ -269,10 +288,15 @@ direction as `effect_options.direction`; legacy `wheel` preserves its historicalfour-spoke amount.`auto`, `mixed`, and `random` never choose emphasis, motion-path, or exit-effects implicitly. Select an explicit canonical key when the plan calls for-one.+effects implicitly. Use them only after classifying a unit as a generic+`enter`; select an explicit canonical key for every adopted `emphasize`,+`move`, or `exit` duty.-**Hard rule — explicit semantic choreography**: When an adopted image-led plan depends on a specific reveal relationship or order, target its real groups with explicit canonical effects and order; do not delegate those material decisions to `auto`, `mixed`, or `random`. Those modes remain valid when generic entrance treatment is sufficient.+**Hard rule — explicit semantic choreography**: When an adopted plan depends+on a specific lifecycle, relationship, or order, target its real groups with+explicit canonical effects and order; do not delegate those material decisions+to `auto`, `mixed`, or `random`. Those modes remain valid only when generic+entrance treatment is sufficient.**Start modes**:@@ -315,12 +339,14 @@ explicit structural layer, role, or placeholder marker.| `animation.duration` | Slide-specific default object schedule duration || `animation.stagger` | Slide-specific delay between object animation rows || `animation.trigger` | Slide-specific start mode |-| `groups.<id>.effect` | Object-specific canonical native effect, `auto`, `mixed`, `random`, or `none`; old names are read-only compatibility inputs |-| `order` | Animation order only; does not change SVG layer order |-| `delay` | Extra seconds in `after-previous`, or after clicking `trigger_shape` |-| `duration` | Per-group schedule duration in seconds; scalable native behavior trees keep their internal timing ratios, while `entrance_appear` and instantaneous native presets retain their PowerPoint-authored duration and use this value for subsequent `after-previous` spacing |-| `effect_options` | Effect-specific PowerPoint parameters; requires an explicit canonical `effect` in the same block |-| `trigger_shape` | Different top-level group id for native **On Click of**; group-only and not inherited |+| `groups.<id>.effects` | Non-empty ordered array for a multi-duty lifecycle; every row explicitly names `effect`, and `effects` cannot coexist with legacy single-effect fields in the same group block |+| `groups.<id>.effect` | Backward-compatible single-row form: one canonical native effect, `auto`, `mixed`, `random`, or `none`; old names are read-only compatibility inputs |+| `effects[].trigger` / legacy `trigger` | Row-specific Start mode; omitted values inherit `animation.trigger` |+| `order` | Page-wide order for ordinary rows; ties retain SVG group order and then `effects[]` index. `trigger_shape` rows keep relative order in separate interactive sequences; SVG layer order never changes |+| `delay` | Row-specific seconds added to the resolved Start or shape trigger |+| `duration` | Per-row schedule duration in seconds; scalable native behavior trees keep their internal timing ratios, while `entrance_appear` and instantaneous native presets retain their PowerPoint-authored duration and use this value for subsequent `after-previous` spacing |+| `effect_options` | Effect-specific PowerPoint parameters; requires an explicit canonical `effect` in the same legacy block or `effects[]` row |+| `trigger_shape` | Different top-level group id for native **On Click of**; row-only and not inherited. It implies `on-click`; an explicit row `trigger` may accompany it only when also `on-click` || `repeat_count` / `repeat_duration` | Repeat count or total repeat span; mutually exclusive || `auto_reverse`, `rewind` | Reverse each cycle and/or restore the pre-animation state || `accelerate`, `decelerate`, `bounce_end` | `0..1` timing ratios; acceleration plus deceleration must not exceed `1`; bounce requires an interpolated effect and cannot combine with deceleration |@@ -328,6 +354,13 @@ explicit structural layer, role, or placeholder marker.| `after_effect` | `none`, `dim` with `color`, `hide`, or `hide-on-next-click` || `sound` | Project-relative or absolute `.m4a`, `.mp3`, or `.wav` path |+**Hard rule — one group representation**: A populated+`groups.<id>` object uses either the backward-compatible single-effect fields+or `effects[]`, never both. `effects[]` must contain at least one object, and+every row explicitly names `effect`. An untouched scaffold `{}` is a neutral+placeholder. Omitted row duration, Start, timing/completion controls, and sound+inherit the resolved slide animation values exactly as the legacy form does.+`effect_options` may contain `direction`, `amount`, `color`, `font_name`,`relative`, or `size`, but validation permits only fields supported by theselected effect. Before writing a parameterized effect, run@@ -337,32 +370,10 @@ PowerPoint Speed; `accelerate`/`decelerate` own smooth start/end, so do notinvent duplicate fields. Change Font's `font_name` is one concretetarget-installed PowerPoint face, never a CSS font stack.-**Canonical sparse example — only the affected slide and divergent fields-appear**:--```json-{- "version": 1,- "slides": {- "03_market": {- "transition": {- "effect": "wipe",- "effect_options": { "direction": "left" },- "duration": 0.35- },- "groups": {- "chart": { "effect": "entrance_wipe", "effect_options": { "direction": "left" }, "order": 2, "duration": 0.6 },- "insight": { "effect": "entrance_fly", "effect_options": { "direction": "up_right" }, "order": 3, "delay": 0.2, "trigger_shape": "chart" }- }- }- }-}-```--Every unlisted page inherits the resolved defaults. `03_market` changes its-transition and two real groups without restating a page animation block.-Structural chrome stays omitted unless a marker-free legacy name needs an-explicitly reviewed override.+Use the coherent multi-category `effects[]` example in+[`animations.md`](../../references/animations.md) §2. Its static frame stays+unlisted while one real unit runs enter → move → emphasize → exit. Keep the+legacy object for one-row overrides; never convert old sidecars mechanically.Use the complete two-slide deterministic Morph example in[`animations.md`](../../references/animations.md) §2.1; do not copy the source@@ -401,8 +412,9 @@ ambiguous direct-root groups, conflicting or undeclared shared keys, non-objectMorph, and any target that does not remain one compatible Slide-local objectafter structure processing.-Generate Step 7 export reads back row order, trigger, target, resolved effect,-duration, offset, timing placement, IDs, and shape references. Narration+Generate Step 7 export reads back row order, including repeated rows targeting+one shape, trigger, target, resolved effect, duration, offset, timing placement,+IDs, and shape references. Narrationpreserves these rows. Direct-PPTX routes fingerprint and preserve source objectanimation; they never author it. See[`pptx-animations.md`](../../scripts/docs/pptx-animations.md).diff --git a/skills/ppt-master/workflows/stages/generate-audio.md b/skills/ppt-master/workflows/stages/generate-audio.mdindex d4f70b78..f9ce937b 100644--- a/skills/ppt-master/workflows/stages/generate-audio.md+++ b/skills/ppt-master/workflows/stages/generate-audio.md@@ -227,7 +227,7 @@ The edge command writes each MP3 and its internal page SRT from the same `edge-t> Active `animations.json` requires `narration_timing.json`; explicit `--no-animations` bypasses both. Without a sidecar, `narration_sync.py animations` maps groups **positionally** (group N → cue N) and warns when later objects may reveal during an earlier topic. Treat that warning as required repair: author the semantic plan and re-derive.-**Narration animation ownership**: When `animations.json` is consumed, it remains read-only. The audio stage deep-copies it to `narration_animations.json`, preserves transitions, effects, durations, order, and explicit `effect: none`, then changes only the derived trigger/delay values needed for click-free narration playback. The authored `narration_timing.json` maps each animated content group to the SRT cue that speaks about that content. The command may still read an affected SVG page to resolve structural group order when a sparse sidecar cannot identify every effective group; this structural fallback does not replace the semantic-context step and never edits SVG, notes, or `animations.json`. Unmatched groups keep their canonical relative delay.+**Narration animation ownership**: When `animations.json` is consumed, it remains read-only. The audio stage deep-copies it to `narration_animations.json`, preserves transitions, effects, durations, order, and explicit `effect: none`, then changes only the derived trigger/delay values needed for click-free narration playback. The authored `narration_timing.json` maps each animated content group—not each effect row—to the SRT cue that speaks about that content. For `effects[]`, the cue anchors the group's first active row; later rows keep global order and their relative delay. The command may still read an affected SVG page to resolve structural group order when a sparse sidecar cannot identify every effective group; this structural fallback does not replace the semantic-context step and never edits SVG, notes, or `animations.json`. Unmatched groups keep their canonical relative delay.**Title timing handoff when canonical animation exists**: preserve the title reveal decision already made by the custom-animation pass. Assign a title group to an SRT cue only when the user's request or the active motion plan explicitly chose `narration-cued`; otherwise leave its `cue` omitted in `narration_timing.json` so it keeps the canonical relative delay from `animations.json`. Do not infer `narration-cued` merely because speaker notes mention the title.