AI turns documents or topics into real, native PowerPoint decks—with native shapes, transitions and animations, data-backed charts and tables on demand, audio narration from speaker notes, and support for your own .pptx templates. · by Hugo He
refactor(prompts): tighten spec references, customize-animations, and image references
hugohe345fb359e03dc
diff --git a/skills/ppt-master/references/image-layout-spec.md b/skills/ppt-master/references/image-layout-spec.mdindex a02e6588..999d1958 100644--- a/skills/ppt-master/references/image-layout-spec.md+++ b/skills/ppt-master/references/image-layout-spec.md@@ -2,35 +2,17 @@# Image Layout Specification-Neutral geometry and review rules for every image placement. This file calculates the selected composition; it never chooses a resource, pattern, or automatic left/right or top/bottom layout.--**When to run**: whenever an image will be placed. Use the current page composition to select its region first, then apply the relevant single-item, adjacent, overlay, or multi-item calculation below.+Neutral geometry and review rules for every image placement. This file calculates the selected composition; it never chooses a resource, pattern, or an automatic left/right or top/bottom layout. Whenever an image will be placed, select its region from the current page composition first, then apply the matching single-item, adjacent, overlay, or multi-item calculation.---## 1. Ownership and Inputs-| Role | Owns |-|---|---|-| Default Strategist | Resource choice, semantic role, crop boundary, and preferred image/content or image/shape relationship |-| Image_Generator | Composition inside each generated bitmap for its planned container |-| Default Executor | Final SVG regions and geometry; may adapt the preferred relationship while preserving binding resource, content, and crop constraints |-| Quick Generate main agent | The planning and realization decisions above in one active context |--This specification and [`image-layout-patterns.md`](./image-layout-patterns.md) are the always-read geometry and composition vocabulary; [`svg-image-embedding.md`](./svg-image-embedding.md) owns embedding. Default and Quick SVG authoring also load [`svg-effects.md`](./svg-effects.md) and [`native-shape-authoring.md`](./native-shape-authoring.md) before realization, so apply their contracts directly when a selected construction needs effects, preset geometry, or Boolean geometry. Other routes follow their own documented load triggers.+Default Strategist owns resource choice, semantic role, crop boundary, and the preferred image/content or image/shape relationship; Image_Generator owns composition inside each generated bitmap for its planned container; Default Executor owns final SVG regions and geometry and may adapt the preferred relationship while preserving binding resource, content, and crop constraints; Quick's main agent holds all of these in one context. This specification and [`image-layout-patterns.md`](./image-layout-patterns.md) are the always-read geometry and composition vocabulary; [`svg-image-embedding.md`](./svg-image-embedding.md) owns embedding; [`svg-effects.md`](./svg-effects.md) and [`native-shape-authoring.md`](./native-shape-authoring.md) are loaded before realization, so apply them directly when a construction needs effects, preset, or Boolean geometry.### 1.1 Geometry notation-| Symbol | Meaning |-|---|---|-| `(x0, y0, W, H)` | Current selected page region |-| `(ws, hs)` | Measured source width and height |-| `R = ws / hs` | Source aspect ratio |-| `Q = W / H` | Selected-region aspect ratio |-| `g`, `gx`, `gy` | Gap between adjacent regions, columns, or rows |-| `ax`, `ay` | Horizontal and vertical anchor fractions in `[0,1]` |--All dimensions must be finite and positive. Derive `R` from current measured source data rather than a requested or previously planned size.+`(x0, y0, W, H)` current selected region; `(ws, hs)` measured source size; `R = ws / hs` source aspect; `Q = W / H` region aspect; `g`, `gx`, `gy` gaps between regions, columns, rows; `ax`, `ay` anchor fractions in `[0,1]`. All dimensions are finite and positive; derive `R` from current measured source data, never a requested or previously planned size.---@@ -38,82 +20,39 @@ All dimensions must be finite and positive. Derive `R` from current measured sou### 2.1 Contain-Contain keeps the complete source visible inside `(W,H)`:+Keeps the complete source visible inside `(W,H)`; centered contain uses `ax = ay = 0.5` and normally maps to a legal `meet` anchor.```text-if R >= Q:- w = W- h = W / R-else:- h = H- w = H × R--x = x0 + ax × (W - w)-y = y0 + ay × (H - h)+if R >= Q: w = W; h = W / R else: h = H; w = H × R+x = x0 + ax × (W - w); y = y0 + ay × (H - h)```-Centered contain uses `ax = ay = 0.5`. SVG realization normally maps this to a legal `meet` anchor.-### 2.2 Fill-Fill covers `(W,H)` without distortion and crops overflow:+Covers `(W,H)` without distortion and crops overflow; centered fill uses `ax = ay = 0.5` and normally maps to a legal `slice` anchor. Use fill only when the active crop boundary permits the computed loss and the anchor protects the declared focal content.```text-if R >= Q:- h = H- w = H × R-else:- w = W- h = W / R--overflow_x = w - W-overflow_y = h - H-x = x0 - ax × overflow_x-y = y0 - ay × overflow_y+if R >= Q: h = H; w = H × R else: w = W; h = W / R+overflow_x = w - W; overflow_y = h - H+x = x0 - ax × overflow_x; y = y0 - ay × overflow_y```-Centered fill uses `ax = ay = 0.5`. SVG realization normally maps this to a legal `slice` anchor. Use fill only when the active crop boundary permits the computed loss and the anchor protects the declared focal content.-### 2.3 Mode selection-| Need | Geometry |-|---|---|-| Complete source, evidence, or edge content | Contain |-| Region coverage with a focal-safe crop | Fill |-| Complete source plus a detail view | One contain placement plus a separately justified crop |-| Irregular or repeated source windows | Apply the selected region math first, then load the owning crop/shape reference |+Complete source, evidence, or edge content → contain; region coverage with a focal-safe crop → fill; complete source plus a detail view → one contain placement plus a separately justified crop; irregular or repeated source windows → the selected region math first, then the owning crop/shape reference.---## 3. Single Image-Place a standalone item by applying §2 to its selected region. The region itself comes from the page hierarchy; source ratio determines the item geometry inside it, not the page structure.--For an item adjacent to another region, divide only the available selected region. Let `q_item` and `q_other` be positive visual weights for the image and the other content.--### 3.1 Horizontal adjacency--```text-available = W - g-item_width = available × q_item / (q_item + q_other)-other_width = available - item_width-```--Both regions use height `H`. Place either region first according to the selected composition; no fixed share is implied.--### 3.2 Vertical adjacency+Apply §2 to the selected region; the region comes from the page hierarchy and the source ratio determines the item geometry inside it, not the page structure. For an item adjacent to another region, divide only the available region by positive visual weights `q_item` and `q_other` — no fixed share is implied, and either region may be placed first:```text-available = H - g-item_height = available × q_item / (q_item + q_other)-other_height = available - item_height+horizontal: available = W - g; item_width = available × q_item / (q_item + q_other); other_width = available - item_width (both use height H)+vertical: available = H - g; item_height = available × q_item / (q_item + q_other); other_height = available - item_height (both use width W)```-Both regions use width `W`. Place either region first according to the selected composition.--### 3.3 Overlay and inset--An overlay keeps the image region and overlay region independently measurable. An inset selects a child region `(xi, yi, Wi, Hi)` inside the current region, then reapplies §2 using the same source ratio. Do not derive either region from an assumed percentage; size it from the actual hierarchy, copy, focal content, and required separation.+**Overlay and inset**: an overlay keeps the image region and overlay region independently measurable; an inset selects a child region `(xi, yi, Wi, Hi)` inside the current region and reapplies §2 with the same source ratio. Size either from the actual hierarchy, copy, focal content, and required separation, never an assumed percentage.---@@ -121,84 +60,35 @@ An overlay keeps the image region and overlay region independently measurable. A### 4.1 Equal grid-For `c` columns and `r` rows:+For `c` columns and `r` rows — use equal cells when peer comparison is the message, applying contain or fill independently per cell:```text-cell_width = (W - (c - 1) × gx) / c-cell_height = (H - (r - 1) × gy) / r--cell_x(col) = x0 + col × (cell_width + gx)-cell_y(row) = y0 + row × (cell_height + gy)+cell_width = (W - (c - 1) × gx) / c; cell_height = (H - (r - 1) × gy) / r+cell_x(col) = x0 + col × (cell_width + gx); cell_y(row) = y0 + row × (cell_height + gy)```-Use equal cells when peer comparison is the message. Apply contain or fill independently to each source within its cell.-### 4.2 Weighted tracks-For column weights `u[1]…u[c]` and row weights `v[1]…v[r]`:+For column weights `u[1…c]` and row weights `v[1…r]` — use when one item is primary; a spanning item receives the sum of its tracks plus the internal gaps it crosses:```text-available_width = W - (c - 1) × gx-available_height = H - (r - 1) × gy--column_width[j] = available_width × u[j] / sum(u)-row_height[k] = available_height × v[k] / sum(v)+column_width[j] = (W - (c - 1) × gx) × u[j] / sum(u); row_height[k] = (H - (r - 1) × gy) × v[k] / sum(v)```-Use weighted tracks when one item is primary. A spanning item receives the sum of its tracks plus the internal gaps it crosses.-### 4.3 Free multi-item composition-**Mandatory**: For montage, arc, overlap, or another non-grid arrangement, give-every carrier a finite center and positive size, give every intended overlap an-unambiguous front item, and verify the visible union against `(W,H)`.--**Default — shared direction (may override when deliberate disorder serves the-communication job)**: Select one direction generator and derive related carriers-from shared geometry. An override still declares a bounded placement/angle rule-so disorder is authored rather than accidental. Use the following state:--| State | Definition |-|---|---|-| `p[i] = (cx[i], cy[i])` | Explicit center of item `i` |-| `(w[i], h[i])` | Explicit positive carrier size |-| `s[i] > 0` | Optional shared size rhythm: `(w[i], h[i]) = s[i] × (w0, h0)` |-| `P` (optional) | Parent contour controlling the outer silhouette, shared seam, reveal, or attachment path |-| `V[i]` | Visible carrier after applying its clip and, when `P` is a silhouette, intersecting it with `P` |-| `z[i]` | Stacking rank required for carriers that overlap |--For a straight shared direction `θ`, calculate centers in its local frame:--```text-d = (cos(θ), sin(θ))-n = (-sin(θ), cos(θ))-p[i] = p0 + t[i] × d + e[i] × n-```+**Mandatory**: for montage, arc, overlap, or another non-grid arrangement, give every carrier a finite center `p[i] = (cx[i], cy[i])` and positive size `(w[i], h[i])` (optionally `s[i] × (w0, h0)` for a shared size rhythm), give every intended overlap an unambiguous front item through stacking rank `z[i]` (`area(V[i] ∩ V[j]) > 0` where `V[i]` is the visible carrier after its clip and any parent contour `P`), and verify the visible union against `(W,H)`. `P` must visibly control at least one structural role (outer silhouette, shared seam, reveal, or attachment path); otherwise use the region boundary and omit it.-Choose `t[i]` and transverse offset `e[i]` as explicit sequences; add `s[i]`-when scale carries the rhythm. Reuse a progression when rhythm is intended; do-not substitute unrelated per-item values.+**Default — shared direction (may override when deliberate disorder serves the communication job)**: select one direction generator and derive related carriers from shared geometry; an override still declares a bounded placement/angle rule so disorder is authored. For a straight direction `θ`: `d = (cos θ, sin θ)`, `n = (-sin θ, cos θ)`, `p[i] = p0 + t[i] × d + e[i] × n`, with `t[i]`, transverse `e[i]`, and optional `s[i]` as explicit sequences that reuse a progression when rhythm is intended.| Generator | Executable rule ||---|---|-| `vector` | Use the straight-frame equation with ordered `t[i]`; set `t[i+1] = t[i] + advance[i]`, where each `advance[i] > 0`. Control overlap through `advance[i]`, not an accidental negative gap. |-| `shared-baseline` | Choose baseline `B(t) = b + t × d`. If `r[i]` is the carrier's half-extent along `n`, place `p[i] = B(t[i]) + r[i] × n`; this keeps one carrier edge on the same baseline while sizes vary. |-| `curve-spine` | Choose ordered parameters `u[i]` on `C(u)` with `||C'(u[i])|| > 0`. Set `d[i] = normalize(C'(u[i]))`, `n[i] = (-d[i].y, d[i].x)`, and `p[i] = C(u[i]) + e[i] × n[i]`; at a zero derivative, use the secant between nearest distinct samples or another generator. |-| `panel` | Define one convex 2D quadrilateral `A,B,C,D` in consistent winding and `F(u,v) = (1-u)(1-v)A + u(1-v)B + uvC + (1-u)vD`. Split monotone `u`/`v` intervals; each cell uses its four `F` corners. |--For each intended overlap, calculate `area(V[i] ∩ V[j]) > 0` and assign the-front item through `z[i]` and `z[j]`. `P` must visibly control at least one-listed structural role; otherwise use the selected region boundary and omit it.--**Reference — not a constraint**: Use one of these angle mechanisms according to the selected composition:--| Mechanism | Geometry |-|---|---|-| Clip-shape angle | Keep the bitmap upright and angle only the carrier contour or clip path. |-| Parent-group rotation | Build the complete arrangement first, then rotate its carriers, frames, and attached labels together around one pivot. |-| Tangent rotation | On `curve-spine`, rotate item `i` around `p[i]` by `atan2(d[i].y, d[i].x)` when the carriers should follow the path. |+| `vector` | Straight-frame equation with ordered `t[i+1] = t[i] + advance[i]`, `advance[i] > 0`; overlap is controlled through `advance[i]`, never an accidental negative gap |+| `shared-baseline` | Baseline `B(t) = b + t × d`; with `r[i]` the carrier's half-extent along `n`, `p[i] = B(t[i]) + r[i] × n` keeps one edge on the baseline while sizes vary |+| `curve-spine` | Ordered `u[i]` on `C(u)` with `‖C'(u[i])‖ > 0`; `d[i] = normalize(C'(u[i]))`, `n[i] = (-d[i].y, d[i].x)`, `p[i] = C(u[i]) + e[i] × n[i]`; at a zero derivative use the secant between nearest distinct samples or another generator |+| `panel` | One convex quadrilateral `A,B,C,D` in consistent winding with `F(u,v) = (1-u)(1-v)A + u(1-v)B + uvC + (1-u)vD`; split monotone `u`/`v` intervals, each cell using its four `F` corners |-**Forbidden — unsupported image deformation**: Do not use shear, skew, or true perspective mapping. A `panel` is a set of 2D quadrilateral clips/crops; it does not warp the image plane.+**Reference — angle mechanisms**: clip-shape angle (bitmap upright, only the carrier contour or clip angled); parent-group rotation (build the arrangement, then rotate carriers, frames, and labels together around one pivot); tangent rotation (on `curve-spine`, rotate item `i` around `p[i]` by `atan2(d[i].y, d[i].x)`). **Forbidden — unsupported deformation**: no shear, skew, or true perspective; a `panel` is a set of 2D quadrilateral clips/crops, never a warped image plane.---@@ -206,17 +96,17 @@ listed structural role; otherwise use the selected region boundary and omit it.| Check | Required response ||---|---|-| Computed width or height is non-positive | Re-select the page regions or reduce gaps |-| Contain leaves unusable residual space | Recompose the surrounding regions; do not stretch the source |+| Computed width or height non-positive | Re-select the regions or reduce gaps |+| Contain leaves unusable residual space | Recompose the surrounding regions; never stretch || Fill removes focal or required content | Change anchor, enlarge the region, or use contain |-| Adjacent text/content region cannot carry its material | Reweight or change the selected relationship |-| Equal cells imply equality that the content does not have | Use weighted tracks or a free composition |-| Peer images use inconsistent visual scale without meaning | Normalize their regions or make the hierarchy explicit |-| A free carrier lacks an explicit center or positive size, or an intended overlap lacks stacking order | Supply the missing geometry or z-order before drawing |-| Items intended as one system lack both a shared direction and a deliberate-disorder rule | Derive them from one vector, baseline, curve, panel, or bounded override |-| Per-item angles vary without a shared direction or deliberate-disorder rule | Use one parent-group angle, a shared clip-shape direction, curve tangents, or a bounded angle rhythm |-| The parent contour does not affect silhouette, seam, reveal, or attachment | Remove it or reconstruct the carriers from that contour |-| A panel depends on shear, skew, or perspective warping | Replace it with 2D quadrilateral carriers and focal-safe crops |+| Adjacent content region cannot carry its material | Reweight or change the relationship |+| Equal cells imply an equality the content lacks | Weighted tracks or free composition |+| Peer images use inconsistent scale without meaning | Normalize regions or make the hierarchy explicit |+| A free carrier lacks a center, size, or stacking order for an overlap | Supply it before drawing |+| Items meant as one system lack both a shared direction and a deliberate-disorder rule | Derive them from one vector, baseline, curve, panel, or bounded override |+| Per-item angles vary without a shared direction or disorder rule | One parent-group angle, shared clip direction, curve tangents, or a bounded angle rhythm |+| The parent contour affects no silhouette, seam, reveal, or attachment | Remove it or reconstruct the carriers from it |+| A panel depends on shear, skew, or perspective | Replace with 2D quadrilateral carriers and focal-safe crops || Gaps, alignments, or overlaps drift without purpose | Recalculate from the shared region and gap values |-The final geometry must express the active page hierarchy, preserve the selected resource relationships, and remain valid under the conditionally loaded technical contracts.+The final geometry expresses the active page hierarchy, preserves the selected resource relationships, and stays valid under the conditionally loaded technical contracts.diff --git a/skills/ppt-master/references/svg-image-embedding.md b/skills/ppt-master/references/svg-image-embedding.mdindex 05c93fc5..de600479 100644--- a/skills/ppt-master/references/svg-image-embedding.md+++ b/skills/ppt-master/references/svg-image-embedding.md@@ -2,21 +2,13 @@# SVG Image Embedding Guide-Technical spec and workflow for adding images to SVG files.+Status names, resource lifecycle, and the embedding workflow for images in SVG pages. [`svg-effects.md`](./svg-effects.md) §6.5 owns the native carrier, crop transport, and filter/clip contracts; Base64 embedding, preview serving, and image-optimization flags are tool behavior in [`svg-pipeline.md`](../scripts/docs/svg-pipeline.md).---## Image Resource List Format-Each image carries an `Acquire Via` field plus a status annotation. This file-owns status names, resource lifecycle, and embedding workflow;-[`svg-effects.md`](./svg-effects.md) §6.5 owns native carrier, crop transport,-and filter/clip contracts.--| Mode | Resource authority and preparation timing |-|---|---|-| Default Generate | `design_spec.md §VIII` plus its lock projection; when user-provided images are selected, run `analyze_images.py` after Strategist confirmation and complete the list before Executor |-| Quick Generate | Current main agent's active-context resource decisions; materialize explicit user paths first, resolve unspecified acquisition decisions automatically, and finish user/ai/web/slice preparation before SVG authoring without confirmation or a persisted roster |+Each image carries an `Acquire Via` field plus a status. Default Generate's authority is `design_spec.md §VIII` plus its lock projection (run `analyze_images.py` after confirmation when user images are selected and complete the list before Executor); Quick's is the main agent's active-context decisions (explicit user paths first, unspecified acquisition resolved automatically, all preparation finished before SVG authoring without confirmation or a persisted roster).```markdown| Filename | Dimensions | Purpose | Type | Layout pattern | Crop Policy | Acquire Via | Status | Reference |@@ -28,177 +20,34 @@ and filter/clip contracts.| Status | Meaning | Executor Handling ||--------|---------|-------------------|-| **Pending** | Acquisition or declared derivation is needed; not yet attempted | Step 5 consumes this; must not remain afterward |-| **Failed** | The latest automatic acquisition attempt failed; this is retryable and non-terminal | Step 5 reruns the owning manifest or explicitly resolves the row to `Needs-Manual`; Executor must never treat `Failed` as usable content |-| **Needs-Selection** | Web search produced one bounded thumbnail-only candidate page; no original or provenance exists yet | Step 5 reviews/promotes one candidate, advances to `next_candidate_page`, or after pool exhaustion materially changes the query and returns the row to `Pending`; Executor must never consume this intermediate state |-| **Generated** | AI/slice output exists | Reference from `../images/`; manifest records govern attribution. An `Illustration Sheet` stays in §VIII only as an unplaced slice source |-| **Sourced** | Web-sourced file exists at expected path | Reference from `../images/`; check `image_sources.json` for `license_tier` — if `attribution-required`, render an inline credit element on the slide (see [`executor-web-image.md`](./executor-web-image.md) §1 and [`image-searcher.md`](./image-searcher.md) §7 for the attribution contract) |-| **Needs-Manual** | The owning source path requires manual fulfillment; for `slice`, the parent sheet is unavailable | Default Generate may use a dashed placeholder until its readiness gate. Quick Generate blocks every required row still in this status, even if an unverified candidate file exists; validate a supplied replacement and reconcile it to `Existing`, `Generated`, or `Sourced` first. Quick automated AI exhaustion never creates this status: [`image-generator.md`](./image-generator.md) §7 removes the affected AI/dependent-slice jobs through its declared no-AI replan. For a retained manual `slice`, supply the parent sheet and rerun `slice_images.py`; do not hand-place individual element files. |-| **Existing** | User already has image (`Acquire Via: user`) | Place in `images/`, reference with `<image>` |-| **Placeholder** | Intentionally not prepared yet (`Acquire Via: placeholder`) | Dashed border placeholder; replace later |+| **Pending** | Acquisition or declared derivation needed, not yet attempted | Step 5 consumes it; must not remain afterward |+| **Failed** | Latest automatic attempt failed; retryable, non-terminal | Step 5 reruns the owning manifest or resolves the row to `Needs-Manual`; never usable content |+| **Needs-Selection** | Web search produced one bounded thumbnail page; no original or provenance yet | Step 5 promotes one candidate, advances to `next_candidate_page`, or after exhaustion changes the query and returns the row to `Pending`; never consumed |+| **Generated** | AI/slice output exists | Reference from `../images/`; manifest records govern attribution; an `Illustration Sheet` stays in §VIII only as an unplaced slice source |+| **Sourced** | Web-sourced file exists at the expected path | Reference from `../images/`; with `license_tier: attribution-required` in `image_sources.json`, render an inline credit ([`executor-web-image.md`](./executor-web-image.md) §1, [`image-searcher.md`](./image-searcher.md) §7) |+| **Needs-Manual** | The owning path requires manual fulfillment; for `slice`, the parent sheet is unavailable | Default may use a dashed placeholder until its readiness gate; Quick blocks every required row in this status even with an unverified candidate file — validate and reconcile a supplied replacement to `Existing`, `Generated`, or `Sourced` first. Quick automated AI exhaustion never creates it ([`image-generator.md`](./image-generator.md) §7's no-AI replan). A retained manual `slice` needs the parent sheet and a `slice_images.py` rerun, never hand-placed element files |+| **Existing** | User-supplied (`Acquire Via: user`) | Place in `images/`, reference with `<image>` |+| **Placeholder** | Intentionally not prepared (`Acquire Via: placeholder`) | Dashed placeholder; replace later |---## Workflow-```-1. Resolve image needs:- - Default Generate → Strategist-owned resource list + lock projection- - Quick Generate → current main agent resolves the required resource in active context; explicit user paths/URLs/choices win, unspecified choices use automatic resolution, no interaction or persisted roster-2. Prepare project-local resources before SVG authoring:- - user → materialize the explicit source under project/images/ → Existing- - Pending prepared derivative → follow [`image-base.md`](./image-base.md) §1 before ordinary `Acquire Via` dispatch- - Pending / Failed + ai → Image_Generator executes the selected path → Generated, Default recovery decision, or Quick no-AI replan- - Pending / Failed + web + vision → Image_Searcher saves at most 8 ranked previews → Needs-Selection → promote one original or fetch the next page → Sourced / Needs-Manual- - Pending / Failed + web without vision → Image_Searcher accepts only a strict metadata-ranked best-only candidate and records that method → Sourced or Needs-Manual- - Pending + slice → after parent AI sheet is Generated, slice_images.py cuts element files → Generated-3. SVG authoring consumes only prepared resources (Executor in Default Generate; current main agent in Quick Generate)- ├── Existing / Generated → <image href="../images/xxx.png" .../>- ├── Sourced + license_tier=no-attribution → <image href=...> only- ├── Sourced + license_tier=attribution-required → <image href=...> + small <text> credit element on the slide- ├── Sourced + license_tier=manual → <image href=...> only (user-supplied --from-url; rights/credit are user responsibility)- └── Placeholder / Needs-Manual → Dashed border + description text until a supplied file is validated and status is reconciled-4. Preview: python3 -m http.server -d <project_path> 8000 → /svg_output/<filename>.svg-5. Export:- - Default Generate → follow [`generate-pptx.md`](../workflows/generate-pptx.md) Step 7- - Quick Generate → after every required resource has a validated expected file/provenance and usable status, run the profile's final checker, then its `--quick-generate` export-```--> Keep external references in `svg_output/` during generation. Default Generate uses `finalize_svg.py` to embed images into the mandatory `svg_final/` visual preview. Quick Generate omits that preview artifact. Both native PPTX exports independently read image references from `svg_output/`.--**Hard rule — export boundary**: `svg_final/` is a self-contained SVG preview for embeddable raster/SVG assets and may be manually inserted into PowerPoint as an SVG picture. EMF/WMF assets retain the documented external-reference exception for lossless native passthrough. The only supported generated-PPTX route is `svg_output/` through the project SVG-to-DrawingML converter. PowerPoint's manual Convert-to-Shape operation is unsupported.-------## External Reference vs Base64 Embedding+1. Resolve image needs — Default: Strategist resource list + lock projection; Quick: the main agent in active context.+2. Prepare project-local resources before SVG authoring: `user` → materialize under `images/` → `Existing`; a Pending prepared derivative → [`image-base.md`](./image-base.md) §1 before ordinary dispatch; `ai` → Image_Generator → `Generated`, a Default recovery decision, or the Quick no-AI replan; `web` with vision → Image_Searcher saves at most 8 ranked previews → `Needs-Selection` → promote or next page → `Sourced` / `Needs-Manual`; `web` without vision → strict metadata-ranked best-only candidate with the method recorded → `Sourced` / `Needs-Manual`; `slice` → after the parent sheet is `Generated`, `slice_images.py` → `Generated`.+3. Authoring consumes only prepared resources: `Existing` / `Generated` → `<image href="../images/xxx.png" …/>`; `Sourced` → `<image>` plus a credit `<text>` only for `attribution-required` (`no-attribution` and `manual` place the image alone); `Placeholder` / `Needs-Manual` → dashed border plus description text until a supplied file is validated and reconciled.+4. Export — Default: [`generate-pptx.md`](../workflows/generate-pptx.md) Step 7; Quick: after every required resource has a validated file/provenance and usable status, its final checker then `--quick-generate` export.-| Method | Pros | Cons | Suitable For |-|--------|------|------|-------------|-| **External reference** | Small file size, fast iteration, easy to replace | Preview requires HTTP server from project root | `svg_output/` development phase |-| **Base64 embedding** | Self-contained file, stable direct preview / SVG-picture insertion | Large file size | `svg_final/` preview phase |+Keep external references in `svg_output/` during generation; Default's `finalize_svg.py` embeds images into the `svg_final/` preview, Quick omits it, and both native exports read `svg_output/` directly. **Hard rule — export boundary**: `svg_final/` is a self-contained preview that may be inserted into PowerPoint as an SVG picture (EMF/WMF keep the external-reference exception for lossless passthrough); the only supported generated-PPTX route is `svg_output/` through the project converter; PowerPoint's manual Convert-to-Shape is unsupported.----## Method 1: External Reference (Recommended for Generation Phase)--### Syntax+## Canonical `<image>` form```xml-<image href="../images/image.png" x="0" y="0" width="1280" height="720"- preserveAspectRatio="xMidYMid slice"/>+<image href="../images/image.png" x="0" y="0" width="1280" height="720" preserveAspectRatio="xMidYMid slice"/>```-### Key Attributes--| Attribute | Description | Example |-|-----------|-------------|---------|-| `href` | Image path (relative or absolute) | `"../images/cover.png"` |-| `x`, `y` | Image top-left corner position | `x="0" y="0"` |-| `width`, `height` | Image display dimensions | `width="1280" height="720"` |-| `preserveAspectRatio` | Scaling mode | `"xMidYMid slice"` |--### preserveAspectRatio Common Values--| Value | Effect |-|-------|--------|-| `xMidYMid slice` | Center crop (similar to CSS `cover`) |-| `xMidYMid meet` | Complete display (similar to CSS `contain`) |-| `none` | Stretch to fill, no aspect ratio preservation |--### Preview Method--Browser security blocks external images on directly opened SVGs. Serve via HTTP from the project root:--```bash-python3 -m http.server -d <project_path> 8000-# Visit http://localhost:8000/svg_output/your_file.svg-```-------## Method 2: Base64 Embedding (Recommended for Preview Phase)--### Syntax--```xml-<image href="data:image/png;base64,iVBORw0KGgo..." x="0" y="0" width="1280" height="720"/>-```--### MIME Types--| MIME Type | File Format |-|-----------|-------------|-| `image/png` | PNG |-| `image/jpeg` | JPG/JPEG |-| `image/gif` | GIF |-| `image/webp` | WebP |-| `image/svg+xml` | SVG |-----+`href` is the relative project path; `x`, `y`, `width`, `height` the display frame; `preserveAspectRatio` `xMidYMid slice` (center crop, like CSS `cover`), `xMidYMid meet` (complete display, like `contain`), or `none` (stretch — never for a `no-crop` source). A Base64 `data:` href is the `svg_final/` preview form produced by finalization, not an authoring form. `clipPath` on `<image>` is conditionally allowed under [`shared-standards-core.md`](./shared-standards-core.md) §1.2; when it does not fit, bake rounded corners into an alpha PNG before embedding.-## Conversion Process--Default Generate follows [`generate-pptx.md`](../workflows/generate-pptx.md)-Step 7; it owns the serial post-processing and export commands. Quick Generate-follows [`quick-generate.md`](../workflows/profiles/quick-generate.md) after its-required-resource gate. The native PPTX converter reads `svg_output/` and maps-its project-local image references directly to DrawingML in both modes.--### Standalone: align_embed_images.py (advanced)--For processing specific SVGs without the full pipeline:--```bash-python3 scripts/svg_finalize/align_embed_images.py <svg_file>-python3 scripts/svg_finalize/align_embed_images.py --dry-run <svg_file>-```--Use `finalize_svg.py --only align-images` for project-level batches. The old-`crop-images`, `fix-aspect`, and `embed-images` step names are compatibility-aliases only when invoked through `finalize_svg.py --only`.-------## Best Practices--### Native PPTX Image Export--**Default — preserve unmodified image bytes**: `svg_to_pptx.py` uses `--image-sizing cap`. It keeps original bytes when an image needs neither resizing nor EXIF geometry normalization, and re-encodes only images that require one of those transformations. Use the explicit compact command only when a compact export is requested.--| Need | Command |-|---|---|-| Normal native export | `python3 scripts/svg_to_pptx.py <project_path>` |-| Explicit compact export | `python3 scripts/svg_to_pptx.py <project_path> --image-sizing display --image-scale 2 --image-quality 85` |-| Force original bytes | `python3 scripts/svg_to_pptx.py <project_path> --no-image-optimize` |--### File Organization--```-project/-├── images/ # Image assets-├── sources/ # Source files and their accompanying images-│ └── article_files/-├── svg_output/ # Raw version (external references)-└── svg_final/ # Derived self-contained visual preview (images embedded)-```--### Rounded Corner / Non-rectangular Image Cropping--`clipPath` **on `<image>` elements** is conditionally allowed — authoritative constraints in [`shared-standards-core.md`](./shared-standards-core.md) §1.2; do not restate or relax here.--Fallback when `clipPath` doesn't fit: bake rounded corners into the source image (PNG with alpha) before embedding.-------## FAQ--**Q: Can't see images when opening SVG directly?**-Browser security blocks cross-directory requests. Serve via HTTP from project root, or run `finalize_svg.py` first and view from `svg_final/`.--**Q: Base64 file too large?**-Compress the source, use JPEG, reduce resolution to match actual display dimensions.--**Q: How to reverse-extract a Base64 image?**-```bash-base64 -d image.b64 > image.png-```+Project layout: `images/` (assets), `sources/` (source files and their `*_files/` images), `svg_output/` (external references), `svg_final/` (Default-only embedded preview). Preview `svg_output/` through `python3 -m http.server -d <project_path> 8000` (browsers block cross-directory images on directly opened files). Native export keeps original image bytes by default (`--image-sizing cap`); explicit compact export uses `--image-sizing display --image-scale 2 --image-quality 85`, and `--no-image-optimize` forces original bytes.diff --git a/skills/ppt-master/scripts/docs/pptx-animations.md b/skills/ppt-master/scripts/docs/pptx-animations.mdindex ef6146b2..80325599 100644--- a/skills/ppt-master/scripts/docs/pptx-animations.md+++ b/skills/ppt-master/scripts/docs/pptx-animations.md@@ -280,3 +280,37 @@ See [`pptx-transitions.md`](./pptx-transitions.md) for the symmetric page-motioncore, MCE handling, and slide-advance contract.See [`video-motion-plan.md`](./video-motion-plan.md) for the downstreamanimation-to-video contract.++## 8. Sidecar Field Reference++`animations.json` fields as validated by `animation_config.py validate` and consumed by export; the [`customize-animations`](../../workflows/stages/customize-animations.md) stage owns when and why each is written.++| Field | Behavior |+|---|---|+| `defaults.transition` / `slides.<slide>.transition` | Deck-wide or slide-specific page transition object |+| `transition.effect` | One of the 48 canonical native effects, or `none` (removes only the visual effect; timed advance remains) |+| `transition.effect_options` | Only the selected effect's PowerPoint Effect Options (`pptx_animations.py --describe-transition <effect>`); requires an explicit `effect` |+| `transition.duration` | Finite seconds greater than zero |+| `transition.auto_advance` | Optional finite non-negative seconds before automatic advance; click stays enabled; valid with `effect: none` |+| `transition.sound` | Optional project-relative `.wav` cue; valid with `effect: none`; a slide override of `null` clears an inherited default sound |+| `morph.from` | Immediately preceding SVG stem for an explicit deterministic Morph transition |+| `morph.pairs.<key>.from` / `.to` | Unique source/destination direct-root group ids receiving the shared PowerPoint name `!!<key>`; Morph by object only |+| `defaults.animation` / `slides.<slide>.animation` | Deck-wide or slide-specific default object-animation behavior |+| `animation.effect` | Default object effect: one canonical key, `auto`, `mixed`, `random`, or `none` |+| `animation.duration` / `animation.stagger` / `animation.trigger` | Default schedule duration, delay between rows, and Start mode (`after-previous`, `with-previous`, `on-click`) |+| `groups.<id>.effects[]` | Non-empty ordered array for a multi-duty lifecycle; every row names `effect`; cannot coexist with legacy single-effect fields in the same group |+| `groups.<id>.effect` | Backward-compatible single-row form; old short 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 keep SVG group order, 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; scalable native trees keep internal ratios, while `entrance_appear` and instantaneous presets keep their authored duration and use the value for `after-previous` spacing |+| `effect_options` | Effect-specific parameters (`direction`, `amount`, `color`, `font_name`, `relative`, `size`) limited to what the selected effect supports (`pptx_animations.py --describe <effect>`); requires an explicit canonical `effect` in the same block or row; `font_name` is one target-installed face |+| `trigger_shape` | Different top-level group id for native **On Click of**; row-only, not inherited; implies `on-click` and accepts an explicit row `trigger` only when it is 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 ≤ `1`; bounce needs an interpolated effect and cannot combine with deceleration |+| `restart` | `always`, `when-not-active`, or `never` |+| `after_effect` | `none`, `dim` with `color`, `hide`, or `hide-on-next-click` |+| `sound` | Object-animation cue: project-relative or absolute `.m4a` / `.mp3` / `.wav` on low-level inputs; bundled selections use the synced project-relative `.wav` path |++An unlisted SVG inherits the resolved deck-wide settings; a listed slide may contain only the `transition`, `animation`, `groups`, or `morph` fields it overrides; chrome groups (`bg` / `*-header` / `*-footer` / `*-decor` / `nav` / `watermark` / `logo` / `pagenumber`) are pinned to `none` unless explicitly named without a structural marker; a group carrying `data-pptx-layer` or a static role/placeholder marker never animates.diff --git a/skills/ppt-master/scripts/prompt_audit_manifest.json b/skills/ppt-master/scripts/prompt_audit_manifest.jsonindex 660bd8b9..12978495 100644--- a/skills/ppt-master/scripts/prompt_audit_manifest.json+++ b/skills/ppt-master/scripts/prompt_audit_manifest.json@@ -37,8 +37,8 @@"skills/ppt-master/references/strategist.md": 12000,"skills/ppt-master/references/strategist-image.md": 3250,"skills/ppt-master/references/strategist-template.md": 2500,- "skills/ppt-master/templates/design_spec_reference.md": 4000,- "skills/ppt-master/templates/spec_lock_reference.md": 2750,+ "skills/ppt-master/templates/design_spec_reference.md": 3500,+ "skills/ppt-master/templates/spec_lock_reference.md": 2250,"skills/ppt-master/templates/charts/chart-vocabulary.md": 1250,"skills/ppt-master/templates/tables/table-vocabulary.md": 500,"skills/ppt-master/templates/sounds/sound-vocabulary.md": 6250,@@ -70,7 +70,10 @@"skills/ppt-master/workflows/create-template/create-brand.md": 1500,"skills/ppt-master/workflows/create-template/create-style.md": 2000,"skills/ppt-master/workflows/create-template/create-layout.md": 1500,- "skills/ppt-master/workflows/create-template/create-deck.md": 1500+ "skills/ppt-master/workflows/create-template/create-deck.md": 1500,+ "skills/ppt-master/workflows/stages/customize-animations.md": 4250,+ "skills/ppt-master/references/svg-image-embedding.md": 1750,+ "skills/ppt-master/references/image-layout-spec.md": 2250},"load_sets": {"bootstrap.routing": {@@ -1921,7 +1924,7 @@{"path": "skills/ppt-master/templates/spec_lock_reference.md","role": "reference",- "fingerprint": "90feed81f021",+ "fingerprint": "71622518b209","reason": "This reference mirrors the owner field grammar or ownership boundary."},{@@ -1951,7 +1954,7 @@{"path": "skills/ppt-master/templates/spec_lock_reference.md","role": "reference",- "fingerprint": "3d0b27f3d979",+ "fingerprint": "c62e64b4caa3","reason": "This reference mirrors the owner field grammar or ownership boundary."}]@@ -1975,7 +1978,7 @@{"path": "skills/ppt-master/templates/spec_lock_reference.md","role": "compatibility",- "fingerprint": "39d5baf1e189",+ "fingerprint": "732b912206c1","reason": "This site documents a legacy or omission compatibility boundary."}]@@ -1993,7 +1996,7 @@{"path": "skills/ppt-master/templates/spec_lock_reference.md","role": "reference",- "fingerprint": "e5c9c162d0ff",+ "fingerprint": "d0d84801f85a","reason": "This reference mirrors the owner field grammar or ownership boundary."},{@@ -2029,7 +2032,7 @@{"path": "skills/ppt-master/templates/spec_lock_reference.md","role": "reference",- "fingerprint": "a67117d67b3e",+ "fingerprint": "4f6e14881130","reason": "This reference mirrors the owner field grammar or ownership boundary."}]@@ -2053,7 +2056,7 @@{"path": "skills/ppt-master/templates/spec_lock_reference.md","role": "reference",- "fingerprint": "25aabdb0ee04",+ "fingerprint": "9e8775a83943","reason": "This reference mirrors the owner field grammar or ownership boundary."}]@@ -2077,7 +2080,7 @@{"path": "skills/ppt-master/templates/spec_lock_reference.md","role": "reference",- "fingerprint": "f45f26b4d11c",+ "fingerprint": "5cb6f44a3b8d","reason": "This reference mirrors the owner field grammar or ownership boundary."},{@@ -2113,7 +2116,7 @@{"path": "skills/ppt-master/templates/spec_lock_reference.md","role": "reference",- "fingerprint": "0e01eedc2c4b",+ "fingerprint": "50e78b9f1ef4","reason": "This reference mirrors the owner field grammar or ownership boundary."}]@@ -2143,7 +2146,7 @@{"path": "skills/ppt-master/templates/spec_lock_reference.md","role": "reference",- "fingerprint": "89b01fc1b354",+ "fingerprint": "50421ea2bec6","reason": "This reference mirrors the owner field grammar or ownership boundary."}]@@ -2167,7 +2170,7 @@{"path": "skills/ppt-master/templates/spec_lock_reference.md","role": "reference",- "fingerprint": "ebbb28e8b7e7",+ "fingerprint": "dfda31146866","reason": "This reference mirrors the owner field grammar or ownership boundary."}]diff --git a/skills/ppt-master/templates/design_spec_reference.md b/skills/ppt-master/templates/design_spec_reference.mdindex a78aac52..22887a5d 100644--- a/skills/ppt-master/templates/design_spec_reference.md+++ b/skills/ppt-master/templates/design_spec_reference.md@@ -1,29 +1,21 @@# Design Spec Structure-Project-level `design_spec.md` is a human-readable English-heading Markdown artifact. This file owns its normal authoring structure. [`schemas/design_spec.schema.json`](./schemas/design_spec.schema.json) provides structural lint for readable sections and page projection; it is not an execution lock and does not require textual equality with `spec_lock.md`.--Strategist reads the complete final confirmation once, writes this artifact from that retained state plus source analysis, and audits every confirmed field here. Afterward, `spec_lock.md` is authored from the completed Design Spec plus current project/page/template context; normal lock authoring never reopens `result.json`.+Project-level `design_spec.md` is a human-readable English-heading Markdown artifact. This file owns its authoring structure; [`schemas/design_spec.schema.json`](./schemas/design_spec.schema.json) lints readable sections and page projection — it is not an execution lock and requires no textual equality with `spec_lock.md`. Strategist reads the final confirmation once, writes this artifact from that retained state plus source analysis, and audits every confirmed field here; `spec_lock.md` is then authored from the completed Design Spec plus context without reopening `result.json`.## 1. Author the complete artifact-After final confirmation, compose the entire document in active context from the retained final state, source analysis, and project context. Then create `<project_path>/design_spec.md` once, from the first line through §X.--**Depth follows the confirmed `design_spec_depth`** — `brief` (default) or `complete`; both keep every required heading and every machine-read field. `brief` serves a continuous run whose author also draws the pages — §I records production mechanics without restating Stage-1 prose, §VI may leave the scenario column empty, §IX `Content` is a short block list — one bullet per block, each in the phrasing that fits it (a real sentence for prose, `·`-joined parallel fragments, `/`-joined labels) — never full page copy, and `Layout` is one optional line. `complete` writes full wording and layout prose; split mode, `refine_spec: true`, and preservation profiles force it.--**Mandatory — new-project write**: The first non-empty line is exactly `<!-- ppt-master-schema: design-spec/v1 -->`, followed by `# <Project Name> - Design Spec`. Write every required section with final values and the complete page roster; include conditional §VII only when a real catalog reference is selected. Do not create a placeholder-bearing project file, copy example rows, or patch a scaffold field by field.+Compose the entire document in active context, then create `<project_path>/design_spec.md` once, first line through §X. **Depth follows the confirmed `design_spec_depth`** — `brief` (default) or `complete`; both keep every required heading and machine-read field. `brief` serves a continuous run whose author also draws the pages: §I records production mechanics without restating Stage-1 prose, §VI may leave the scenario column empty, §IX `Content` is a short block list (one bullet per block in the phrasing that fits — a sentence for prose, `·`-joined parallel fragments, `/`-joined labels — never full copy), and `Layout` is one optional line. `complete` writes full wording and layout prose; split mode, `refine_spec: true`, and preservation profiles force it.-`project_manager.py scaffold-spec` remains an optional manual convenience and overwrite-safe troubleshooting tool. It is not part of normal Generate authoring. Resume and refine paths edit an existing completed Design Spec rather than replacing it with a scaffold.+**Mandatory — new-project write**: the first non-empty line is exactly `<!-- ppt-master-schema: design-spec/v1 -->`, then `# <Project Name> - Design Spec`; every required section carries final values and the complete roster; conditional §VII appears only with a real catalog reference. Never write a placeholder-bearing file, copy example rows, or patch a scaffold field by field (`project_manager.py scaffold-spec` is an optional manual troubleshooting tool, not part of Generate authoring; resume and refine edit the existing completed Design Spec).---## 2. Exact document contract-Angle-bracketed text below is authoring notation, not project content. Resolve every universal value before writing the file; omit only rows explicitly marked conditional. Keep every required `##` heading; omit §VII when no real catalog reference is selected, while §VIII remains present even with no data rows. Do not copy examples, notation tokens, or a second schema description into the project artifact.+Angle-bracketed text is authoring notation. Resolve every universal value before writing; omit only rows marked conditional; keep every required `##` heading (§VII omitted without a catalog reference; §VIII present even with no data rows); copy no examples, notation, or schema prose into the artifact.### 2.1 Header and project contract-Start with this exact heading order:-```markdown<!-- ppt-master-schema: design-spec/v1 --># <Project Name> - Design Spec@@ -64,12 +56,10 @@ Start with this exact heading order:| Content Area | <usable bounds> |```-When a template workspace is active, append exactly one line after the §I table: `- **Template Application**: <confirmed or Strategist-resolved natural-language plan>`. Omit it for free design. Never replace this prose with internal reuse/adherence ids.+With an active template workspace, append exactly one line after the §I table — `- **Template Application**: <confirmed or Strategist-resolved natural-language plan>` — never internal reuse/adherence ids; omit it for free design.### 2.2 Visual, typography, layout, and icons-Use these exact subsections and field shapes:-```markdown## III. Visual Theme@@ -123,7 +113,7 @@ Use these exact subsections and field shapes:- **Composition tendency**: <non-binding macro direction; no coordinates or authoring method>- **Cross-page continuity**: <what may recur or vary across the roster>- **Spacing posture**: <dense, open, or variable by page rhythm>-- **Spacing anchors**: <five deck-wide px values — page margin, block gap, column gutter, corner radius, body leading — kept stable across pages like the color and type anchors>+- **Spacing anchors**: <five deck-wide px values — page margin, block gap, column gutter, corner radius, body leading — kept stable like the color and type anchors>## VI. Icon Usage Specification@@ -134,9 +124,9 @@ Use these exact subsections and field shapes:| --- | --- |```-Preserve Title/Body characters and resolved stacks; omit blank Typography upgrade and never place it in a stack. For each justified recurring family override, add the role to Font Plan plus `- **<Role> stack**: <complete ordered stack>`. Possible roles are `Annotation`, `Footer`, `Footnote`, `Data`, `Emphasis`, `Quote`, and `Code`; add only recurring, intentional differences. Add non-locked `Role rationale` only for an extra family. Do not collapse distinct Title/Body stacks or discard a declared optional role. Each Font Size Hierarchy value is a role anchor: Executor may vary one occurrence `±2px`; a short non-structural Hero/Display size may stay unlisted only while the same value is planned at most twice, and its third occurrence needs a named row. Add every recurring palette role and typography-size anchor established by the plan; do not enumerate one-off paint or font-family garnish. For confirmed custom directions, add the applicable `Mode References`, `Mode Behavior`, `Visual Style References`, and `Visual Style Behavior` lines under Theme Style. Include `Stroke Width` under §VI only for a stroke library. `simple-icons` may accompany the one primary bundled library and is recorded only when actual content requires real brand marks; it is never a separate confirmation choice. The icon table records the synced SVG pool and, at `complete` depth, broad semantic scenarios — never page placement. User-provided, template-carried, imported, custom, and other prepared SVGs under the project `icons/` directory remain usable without being forced into that bundled selection. Leave the §VI table empty when no bundled or brand SVG icons are prepared. Illustrated icons are AI image resources: their production sheet and placed slice rows belong in §VIII, and only placed slices project to `spec_lock.md images`.+Preserve Title/Body characters and resolved stacks; omit a blank Typography upgrade and never place it in a stack. Each justified recurring family override adds its role to Font Plan plus `- **<Role> stack**: <complete ordered stack>` (roles: `Annotation`, `Footer`, `Footnote`, `Data`, `Emphasis`, `Quote`, `Code` — only recurring, intentional differences; a non-locked `Role rationale` only for an extra family); never collapse distinct Title/Body stacks or drop a declared role. Each Font Size Hierarchy value is a role anchor Executor may vary by `±2px` per occurrence; a short non-structural Hero/Display size may stay unlisted only while planned at most twice — its third occurrence needs a named row. Record every recurring palette role and size anchor the plan establishes, never one-off garnish. For confirmed custom directions add `Mode References`, `Mode Behavior`, `Visual Style References`, and `Visual Style Behavior` under Theme Style as applicable. `Stroke Width` under §VI only for a stroke library. `simple-icons` accompanies the one primary library only when real brand marks are required and is never a separate confirmation choice. The §VI table records the synced SVG pool and, at `complete` depth, broad scenarios — never page placement; leave it empty when no bundled or brand icons are prepared. Other prepared SVGs under the project `icons/` remain usable without entering that selection. Illustrated icons are AI image resources: their sheet and placed slice rows belong in §VIII, and only placed slices project to `spec_lock.md images`.-When §VIII contains any `Acquire Via: ai` row, add this subsection under §III and preserve the complete confirmed AI direction:+When §VIII contains any `Acquire Via: ai` row, add under §III:```markdown### AI Image Strategy@@ -146,12 +136,10 @@ When §VIII contains any `Acquire Via: ai` row, add this subsection under §III- **Mood**: <confirmed mood and analogy>```-For a selected custom rendering, also add `Image Rendering Behavior`; add `Image Rendering References` only when the confirmed custom direction actually uses catalog material. Never add a separate image palette.+A custom rendering adds `Image Rendering Behavior`, and `Image Rendering References` only when catalog material is actually used; never a separate image palette.### 2.3 Visualization and image resources-Use the §VII table only when at least one real Chart/Table catalog reference is selected. Always keep the §VIII table, including when it has no data rows:-```markdown## VII. Visualization Reference List@@ -164,28 +152,13 @@ Use the §VII table only when at least one real Chart/Table catalog reference is| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |```-§VII lists at most one `chart|table` reference per page: canonical Template key-plus semantic Usage. Resolve `family/key`; never derive paths from bare keys.-§IX owns child visuals, unmatched fallbacks, and qualitative relationships as-free `Layout` / `Visualization` prose. Layout/Deck alone owns reusable-PowerPoint structure. Omit empty §VII and recall diagnostics; legacy rows stay-readable, while new specs use four columns.--In §IX `Visualization`, key every independent data chart/pure text-grid table-in `kebab-case` and add one `Native-ready` map: `<key>=yes|no; ...`. Decide-`yes` by default; use `no` only when the native payload cannot express that-object. Qualitative relationships/read order remain unkeyed prose, as do-incidental microvisuals.--In §VIII, author every planned or explicitly required resource from the confirmed source boundary. Write one concise, non-empty `Layout pattern` suggestion in ordinary language; optionally cite hierarchical ids from the layout library when they help recall a technique. An image-led `adaptive` row names the page job the image resolves next to the composition serving it; a `no-crop` or supporting row keeps the concise suggestion alone. Set `Crop Policy` to `adaptive` or `no-crop`; set `Acquire Via` to `ai`, `web`, `user`, `placeholder`, or `slice`. Preserve unresolved required assets as `Pending` or `Needs-Manual` instead of dropping or reclassifying them. Native formulas never enter this table or `spec_lock.md images`.--§VIII `Layout pattern` is a per-resource preference. When a page uses several images, repeats one image in multiple views, or combines an image with native overlays, describe the page-level relationship and participating resources in §IX `Layout` / `Images`; do not duplicate an unchanged resource row merely to encode animation sequencing.+§VII lists at most one `chart|table` reference per page (canonical key plus semantic Usage; resolve `family/key`, never derive paths from bare keys; omit when empty; legacy rows stay readable, new specs use four columns). §IX owns child visuals, unmatched fallbacks, and qualitative relationships as free `Layout` / `Visualization` prose; Layout/Deck alone owns reusable PowerPoint structure. In §IX `Visualization`, key every independent data chart or pure text-grid table in `kebab-case` and add one `Native-ready` map `<key>=yes|no; ...` — `yes` by default, `no` only when the native payload cannot express the object; qualitative relationships and incidental microvisuals stay unkeyed.-Put native paint/overlay intent in §IX `Layout` plus `Images` for imagery—not a new field; state semantic job/layering, while Executor chooses type, stops, opacity, and geometry.+§VIII authors every planned or required resource from the confirmed source boundary: one concise non-empty `Layout pattern` suggestion in ordinary language (optionally citing hierarchical ids from the layout library; an image-led `adaptive` row names the page job the image resolves next to the composition serving it); `Crop Policy` `adaptive` or `no-crop`; `Acquire Via` `ai`, `web`, `user`, `placeholder`, or `slice`; unresolved required assets kept as `Pending` or `Needs-Manual`; native formulas never enter it. `Layout pattern` is per-resource — page-level relationships among several images, repeated views, or native overlays belong in §IX `Layout` / `Images` (no duplicate rows to encode sequencing), and native paint/overlay intent goes there as semantic job/layering while Executor chooses type, stops, opacity, and geometry.### 2.4 Complete page roster and notes-Write one ordered Slide block per page. Slide count and order must equal §I `Page Count`; `Content` is a complete page brief at `complete` depth and a short block list at `brief` depth — neither is a skeleton.+One ordered Slide block per page; count and order equal §I `Page Count`; `Content` is a complete brief at `complete` depth and a short block list at `brief` — never a skeleton.```markdown## IX. Content Outline@@ -211,33 +184,12 @@ Write one ordered Slide block per page. Slide count and order must equal §I `Pa- **Presentation purpose**: <the confirmed communication intent from §I>```-When Speaker Notes is disabled, keep §X with only-`- **Generation**: disabled`; do not write filename, duration, style, or purpose-placeholders. An explicit notes-off/audio-on conflict blocks before authoring.+With Speaker Notes disabled, §X keeps only `- **Generation**: disabled`; an explicit notes-off/audio-on conflict blocks before authoring. When a final/literal narration script will become notes or audio, §X `Content` names the source and says `preserve verbatim`, with the segmented script kept in `notes/total.md`.-When an explicit final/literal narration script will become notes or generated-audio, make §X `Content` name that source and say `preserve verbatim`; keep the-full segmented script in `notes/total.md`, not in §IX or this Design Spec.--Append the optional line only when the capability earns a place; never write an-empty or `none` placeholder:--```markdown-- **Motion suggestion**: <communication job plus desired page-entry or reveal relationship/order>-```--Add `Mathematical content` whenever a Slide needs a mathematical expression preserved exactly. Store the expression body as valid LaTeX without `$...$`, `$$...$$`, `\(...\)`, or `\[...\]` source delimiters; the field does not classify inline versus structural use. This is content authority for [`native-formula.md`](../references/native-formula.md), not a formula policy, marker, or implementation request; Executor chooses ordinary text, inline native math, or block native math. Add `Visualization` / `Images` when a Slide consumes §VII/§VIII or uses a page-local visual model. Name every value-driven geometry, qualitative relationship, cell grid, and child visual here; only independent Chart/Table entries use object keys. Describe qualitative order, linkage, hierarchy, grouping, contrast, overlap, and reading path freely—not as a model name or grammar enum. §IX may choose a custom Chart/Table fallback. Native construction creates no Design Spec field; Executor discovers and selects it independently during realization. Add `Motion suggestion` whenever transition/reveal advice strengthens communication, regardless of the Custom Animations outcome; state purpose and semantic order/relationship, not registry keys, options, timing, ids, or coverage. The suggestion never activates animation execution by itself, creates content, or binds implementation. Describe required visible image states in `Layout` / `Images` only for an explicit motion requirement or an enabled Custom Animations outcome. Add keyed `Native-ready` only for independent data charts or pure text-grid tables, `Fact IDs` for sourced claims, and `Data class: scenario` for invented demo values. Except on preservation paths, `Cover impact` carries a binding hook and adaptable composition; apply the same split to `Closing impact` only when the deck genuinely resolves. Roster/order/content stay authoritative. §V/§IX layout, cover/closing composition, capability, motif, §VIII image-layout, and §VII Chart/Table directions remain References unless an explicit user/template/resource constraint promotes the named property; Executor considers each and may adopt, adapt, or decline it without upstream repair. Executor owns final geometry, hierarchy, treatment, and sparse local garnish.--For free-design pages, describe `Layout` through relationships, hierarchy, visual focus, and optional macro region/span suggestions; do not prescribe element-level `x`, `y`, `width`, or `height`, fixed gaps, or an authoring method. Executor owns the final page composition and may depart from the recommendation while preserving its semantic job. Preserve literal geometry only when the user explicitly requires it or a mirror/template preservation contract owns it.+Optional Slide lines, added only when the capability earns a place (never an empty or `none` placeholder): `Mathematical content` (a valid delimiter-free LaTeX body — content authority for [`native-formula.md`](../references/native-formula.md), not a policy or marker; Executor chooses text, inline, or block); `Visualization` / `Images` when the Slide consumes §VII/§VIII or a page-local visual model, naming every value-driven geometry, qualitative relationship, cell grid, and child visual (only independent Chart/Table entries carry keys; qualitative order, linkage, hierarchy, grouping, contrast, overlap, and reading path are free prose, never a model name or grammar enum; §IX may choose a custom fallback; native construction is discovered by Executor, never a Design Spec field); `Motion suggestion` (purpose and semantic order/relationship, never registry keys, options, timing, ids, or coverage — it never activates execution, creates content, or binds implementation; required visible image states go in `Layout` / `Images` only for an explicit motion requirement or an enabled outcome); keyed `Native-ready`; `Fact IDs` for sourced claims; `Data class: scenario` for invented values. Except on preservation paths, `Cover impact` carries a binding hook and adaptable composition, and `Closing impact` the same split only when the deck genuinely resolves. Roster, order, and content stay authoritative; §V/§IX layout, cover/closing composition, capability, motif, §VIII image-layout, and §VII directions remain References Executor may adopt, adapt, or decline without upstream repair, unless an explicit user/template/resource constraint promotes a named property. For free-design pages, `Layout` describes relationships, hierarchy, focus, and optional macro region/span suggestions — never element-level `x` / `y` / `width` / `height`, fixed gaps, or an authoring method; literal geometry is preserved only when the user requires it or a mirror/template contract owns it.---## 3. Machine validation-```bash-python3 skills/ppt-master/scripts/project_manager.py validate <project_path>-```--Validation reads the Markdown directly. It reports missing or out-of-order I–X sections, unresolved `[fill...]` placeholders, missing per-slide `Audience move`, and a missing §III `AI Image Strategy` when an §VIII table selects `ai` acquisition.--The schema validates structure only. Strategist role modules own field meaning, recommendation logic, page planning, image policy, and template policy. `spec_lock.md` owns stable execution anchors and routing selected in context; it is not an exhaustive value projection. On divergence, repair the Design Spec from the retained final state when Gate 1 fails, then re-author affected lock anchors from the audited Design Spec and current context. Never reopen `result.json` merely to author or validate the lock, and never use the lock to overwrite a valid Design Spec decision.+`python3 skills/ppt-master/scripts/project_manager.py validate <project_path>` reads the Markdown directly and reports missing or out-of-order I–X sections, unresolved `[fill...]` placeholders, missing per-slide `Audience move`, and a missing §III `AI Image Strategy` when §VIII selects `ai`. The schema validates structure only; Strategist modules own meaning, and `spec_lock.md` owns stable anchors and routing, not an exhaustive projection. On divergence, repair the Design Spec from the retained final state when Gate 1 fails, then re-author affected lock anchors; never reopen `result.json` to author the lock or let the lock overwrite a valid Design Spec decision.diff --git a/skills/ppt-master/templates/spec_lock_reference.md b/skills/ppt-master/templates/spec_lock_reference.mdindex 5df95d46..a4525f58 100644--- a/skills/ppt-master/templates/spec_lock_reference.md+++ b/skills/ppt-master/templates/spec_lock_reference.md@@ -1,16 +1,12 @@# Execution Lock Structure-`spec_lock.md` projects cross-page anchors/routes from audited `design_spec.md` and context; it excludes local paint/type. This file owns structure; [`schemas/spec_lock.schema.json`](./schemas/spec_lock.schema.json) owns grammar.+`spec_lock.md` projects cross-page anchors and routes from the audited `design_spec.md` and context; it excludes local paint/type. This file owns structure; [`schemas/spec_lock.schema.json`](./schemas/spec_lock.schema.json) owns grammar.## 1. Author the complete artifact-After Generate Step 4 Gate 1, read the completed Design Spec and current page/resource/template context, compose the entire lock in active context, then create `<project_path>/spec_lock.md` once.+After Generate Step 4 Gate 1, read the completed Design Spec and current page/resource/template context, compose the entire lock in active context, and create `<project_path>/spec_lock.md` once. **Mandatory — new-project write**: the first non-empty line is exactly `<!-- ppt-master-schema: spec-lock/v1 -->`, then `# Execution Lock`; write only final sections and values — no blank lock, inactive optional sections, or scaffold placeholders (`project_manager.py scaffold-lock` is an optional troubleshooting tool); never reopen or reinterpret final confirmation. Repair a credible completed pair by re-projecting only the affected rows after auditing the Design Spec; discard an orphan lock as authority and re-author it completely from the recovered Design Spec.-**Mandatory — new-project write**: The first non-empty line is exactly `<!-- ppt-master-schema: spec-lock/v1 -->`, followed by `# Execution Lock`. Write only final sections and values; do not create a blank lock, copy inactive optional sections, or patch scaffold placeholders. Do not reopen final confirmation or interpret it independently.--`project_manager.py scaffold-lock` remains an optional manual convenience and overwrite-safe troubleshooting tool. It is not part of normal Generate authoring. When a credible completed Design Spec/lock pair needs correction, repair only the affected projection after auditing the Design Spec. When the Design Spec was missing and an orphan lock survived, discard that lock as authority and re-author the complete lock from the recovered, audited Design Spec plus current context.--**Hard rule**: A project lock contains only `##` sections and `- key: value` data lines, except `## forbidden`, whose list items are literal rules. Do not copy guidance paragraphs into the lock.+**Hard rule**: a lock contains only `##` sections and `- key: value` lines, except `## forbidden`, whose items are literal rules; never copy guidance paragraphs into it.---@@ -18,22 +14,18 @@ After Generate Step 4 Gate 1, read the completed Design Spec and current page/re| Section | Required keys | Notes || --- | --- | --- |-| `canvas` | `viewBox`, `format` | `format` is the canonical display name (for example `PPT 16:9`); `viewBox` is the matching exact geometry |-| `communication` | `primary_language`, `audience`, `objective`, `core_message` | New lock: canonical BCP-47; old lock may omit it. Reject `und` and Chinese without script/region. `objective` merges intent/outcome; `consumption_mode` is optional off PPT |+| `canvas` | `viewBox`, `format` | `format` is the canonical display name (e.g. `PPT 16:9`); `viewBox` the exact geometry |+| `communication` | `primary_language`, `audience`, `objective`, `core_message` | Canonical BCP-47 (reject `und` and Chinese without script/region; old locks may omit it); `objective` merges intent/outcome; `consumption_mode` optional off PPT || `mode` | `mode` | Preset or `custom` || `visual_style` | `visual_style` | Preset or `custom` |-| `colors` | Stable semantic color roles | Core identity and recurring roles only, including the standard `secondary_text` and `divider` neutrals; contextual SVG paints need no row; `image_rendering` appears only for AI images |-| `typography` | `font_family`, `body`, `title` | Core family/size anchors; new locks also write explicit `title_family` and `body_family`; size anchors are unitless px numbers |-| `icons` | `library`, `inventory` | `library` is the Strategist's primary bundled style choice or `none`; content-driven `simple-icons/*` may be prepared alone or accompany it; `inventory` indexes the curated synced SVG pool rather than page usage or all usable project-local icons; `stroke_width` is conditional |-| `page_rhythm` | One `P<NN>` row per page | Values: `anchor`, `dense`, `breathing` |-| `pptx_structure` | `mode` | Values: `flat`, `structured` |+| `colors` | Stable semantic color roles | Core identity and recurring roles only, including `secondary_text` and `divider`; contextual paints need no row; `image_rendering` only for AI images |+| `typography` | `font_family`, `body`, `title` | Core family/size anchors; new locks also write `title_family` and `body_family`; sizes are unitless px |+| `icons` | `library`, `inventory` | `library` is the primary bundled style or `none`; `simple-icons/*` may be prepared alone or alongside it; `inventory` indexes the curated synced pool, not page usage or every usable project icon; `stroke_width` conditional |+| `page_rhythm` | One `P<NN>` row per page | `anchor`, `dense`, `breathing` |+| `pptx_structure` | `mode` | `flat`, `structured` || `forbidden` | Literal list items | General standards stay in their owning reference |-Optional data sections: `images`, `page_visualizations` (Chart/Table only). New locks never write-legacy `page_charts`; existing locks may retain it for read-only compatibility.-Never declare the same page in both sections.--The required universal block is:+Optional data sections: `images`, `page_visualizations` (Chart/Table only). New locks never write legacy `page_charts` (existing locks may keep it read-only); never declare one page in both.```markdown## forbidden@@ -47,16 +39,14 @@ The required universal block is:| Trigger | Required addition || --- | --- |-| `mode.mode: custom` | `mode_behavior` in `mode`; optional `mode_references` only when catalog modes are actually used |-| `visual_style.visual_style: custom` | `visual_style_behavior` in `visual_style`; optional `visual_style_references` only when catalog styles are actually used |-| `colors.image_rendering: custom` | `image_rendering_behavior` in `colors`; optional `image_rendering_references` only when catalog renderings are actually used |+| `mode.mode: custom` | `mode_behavior`; optional `mode_references` only when catalog modes are used |+| `visual_style.visual_style: custom` | `visual_style_behavior`; optional `visual_style_references` |+| `colors.image_rendering: custom` | `image_rendering_behavior`; optional `image_rendering_references` || `icons.library: tabler-outline` | `stroke_width: 1.5`, `2`, or `3` |-| `pptx_structure.mode: structured` | `template_reuse_scope: layout\|mirror`, `template_adherence`, plus `pptx_masters`, `pptx_layouts`, `page_pptx_layouts`, and `page_layouts` |-| `pptx_structure.template_reuse_scope: mirror` | `mode: structured` and `template_adherence: strict` |-| `pptx_structure.template_reuse_scope: style` | `mode: flat`; omit structured mapping sections |-| `pptx_structure.mode: flat` | Omit all four structured mapping sections |--Structured section value shapes:+| `pptx_structure.mode: structured` | `template_reuse_scope: layout\|mirror`, `template_adherence`, plus `pptx_masters`, `pptx_layouts`, `page_pptx_layouts`, `page_layouts` |+| `template_reuse_scope: mirror` | `mode: structured` and `template_adherence: strict` |+| `template_reuse_scope: style` | `mode: flat`; omit structured sections |+| `pptx_structure.mode: flat` | Omit all four structured sections |```markdown## pptx_masters@@ -70,61 +60,31 @@ Structured section value shapes:## page_layouts- P01: 03_content-```--Project each §VII Page/Family/Template into at most one-`page_visualizations` `<chart|table>/<key>` row per page; Usage, children,-no-match, and qualitative relationships stay in §IX. Resolve the reference to-one live SVG. It locks neither type, geometry, nor native output.-```markdown## page_visualizations- P03: chart/line_chart- P09: table/record_table```-**Legacy compatibility**: keep existing `page_charts` bare keys. Live-Chart/Table keys resolve unambiguously through two registries; retired Structure-keys are semantic-only, have no SVG, and rely on §IX (repair upstream when-insufficient). New locks write `page_visualizations`; dual page declarations-conflict even when they resolve alike.+Project each §VII row into at most one `page_visualizations` `<chart|table>/<key>` row per page, resolved to one live SVG; Usage, children, no-match, and qualitative relationships stay in §IX; the reference locks neither type, geometry, nor native output. **Legacy compatibility**: existing `page_charts` bare keys resolve uniquely across the two live registries; retired Structure keys are semantic-only with no SVG; dual page declarations conflict even when they resolve alike.-Typography projection excludes Character/upgrade References:--| Design Spec §IV declaration | `spec_lock.md` field |-| --- | --- |-| Title font stack | `title_family` |-| Body font stack | `body_family` and compatibility/default `font_family` |-| Any additional recurring font role `<role>` | `<role>_family` |-| Every Font Size Hierarchy role `<role>` | lowercase `<role>` with its numeric anchor |--New locks always write `title_family` and `body_family`, even when their values happen to match. Every additional recurring family row and every size-anchor row in the Design Spec must appear under the same lowercase snake_case role; omit only family roles that inherit without an explicit override. Existing locks without family-role fields remain readable through `font_family` fallback. Executor may choose the anchor or a value within that role's `±2px` band; the lock does not enumerate intermediate values. A short non-structural Hero/Display size may remain absent only while the same undeclared value appears at most twice across the deck; its third occurrence requires a named role.+Typography projection (excluding Character/upgrade References): Title font stack → `title_family`; Body font stack → `body_family` plus compatibility `font_family`; each additional recurring role `<role>` → `<role>_family`; each Font Size Hierarchy role → lowercase snake_case `<role>` with its numeric anchor. New locks always write `title_family` and `body_family` even when equal; omit only family roles that inherit without an override; old locks fall back to `font_family`. Executor may use the anchor or a value within `±2px`; a short non-structural Hero/Display size may stay absent only while the same undeclared value appears at most twice — its third occurrence needs a named role.---## 4. Field Grammar Index-- `font_family`, `title_family`, `body_family`, and every optional `<role>_family` use one non-empty PPT-safe exported family stack. `font_family` is the body/default compatibility stack, not permission to erase role differences.-- Every non-family `typography` value is a positive finite unitless px anchor. Intermediate values need no lock row when they stay within the mapped role's anchor `±2px`. At most two occurrences of one undeclared short non-structural Hero/Display size may remain sparse; a third occurrence or any structural use requires Design Spec repair and a named anchor.-- `icons.library` records the primary stylistic library selected from `chunk-filled`, `tabler-filled`, `tabler-outline`, or `phosphor-duotone`, or `none` when no generic bundled icons are selected. Content-driven `simple-icons/*` brand marks may appear alone or alongside it in `inventory` without becoming a stylistic library or a separate confirmation choice. The inventory indexes the curated synced SVG pool without assigning page usage; every SVG already under `<project_path>/icons/` remains valid prepared execution material. Illustrated-icon slices create no icon-lock field: their exact paths belong under `images`, and the unplaced parent sheet stays out of the lock.-- `objective` grammar: one concise sentence preserving the deck goal and audience success condition.-- `image_rendering` grammar: one catalog id, or `custom` with `image_rendering_behavior`.-- `images`: `- <key>: <path> | source=<via> | crop=<adaptive|no-crop>`; e.g. `- p04: images/a.png | source=user | crop=no-crop`. Use the canonical `images/<filename>` path; `source` and `crop` exactly project §VIII. The §VIII `Layout pattern` is not projected: Executor reads it from the §VIII row as a recommendation that may be adopted, adapted, or declined. A legacy `pattern=<layout>` segment is still accepted. Omit unplaced sheets.-- Custom reference grammar: comma-separated exact catalog ids with no duplicates. Reference fields are valid only for `custom`; omit them for a genuinely novel direction.-- `stroke_width` grammar: `1.5`, `2`, or `3`; present only for `tabler-outline`.-- `page_rhythm` grammar: `P` + at least two digits (`P01`, `P100`) followed by `anchor|dense|breathing`.-- `page_visualizations` grammar: `P` + at least two digits followed by- `chart|table`, `/`, and one canonical visualization key; the family/key must- resolve to one SVG through the matching live index.-- Legacy `page_charts` grammar: `P` + at least two digits followed by one bare- key. Chart/Table resolves uniquely across two registries; retired Structure- is semantic-only. Never add this section to a new lock.-- `pptx_masters` grammar: `<master_key>: <PowerPoint picker name>`.-- `pptx_layouts` grammar: `<layout_key>: <master_key> | <PowerPoint layout name> | <prototype source>`.-- `page_pptx_layouts` grammar: `P` + at least two digits followed by a declared Layout key.-- `page_layouts` grammar: `P` + at least two digits followed by a complete Slide template SVG basename. Definition-only `layout_<layout_key>` files are obsolete and are also invalid as `pptx_layouts` sources; author a complete Slide prototype for each reusable Layout.--Catalog-based custom example:+- `font_family`, `title_family`, `body_family`, and every `<role>_family`: one non-empty PPT-safe exported family stack; `font_family` is the body/default compatibility stack, not permission to erase role differences.+- Every non-family `typography` value: a positive finite unitless px anchor; intermediate values within `±2px` need no row; a third occurrence of an undeclared Hero/Display size or any structural use requires Design Spec repair and a named anchor.+- `icons.library`: `chunk-filled`, `tabler-filled`, `tabler-outline`, `phosphor-duotone`, or `none`; `simple-icons/*` marks may appear alone or alongside in `inventory` without becoming a library or confirmation choice; every SVG under `<project_path>/icons/` remains valid material; illustrated-icon slices create no icon field — their paths belong under `images`, and the unplaced sheet stays out.+- `objective`: one concise sentence preserving goal and audience success condition.+- `image_rendering`: one catalog id, or `custom` with `image_rendering_behavior`.+- `images`: `- <key>: <path> | source=<via> | crop=<adaptive|no-crop>` (e.g. `- p04: images/a.png | source=user | crop=no-crop`); canonical `images/<filename>` path; `source` and `crop` project §VIII exactly; `Layout pattern` is not projected (Executor reads it from §VIII as a recommendation); a legacy `pattern=<layout>` segment is accepted; omit unplaced sheets.+- Custom reference fields: comma-separated exact catalog ids without duplicates, valid only for `custom`; omit for a genuinely novel direction.+- `stroke_width`: `1.5`, `2`, or `3`, only for `tabler-outline`.+- `page_rhythm`: `P` + at least two digits (`P01`, `P100`) followed by `anchor|dense|breathing`.+- `page_visualizations`: `P` + digits followed by `chart|table`, `/`, and one canonical key resolving to one SVG through the matching live index. Legacy `page_charts`: `P` + digits and one bare key; never added to a new lock.+- `pptx_masters`: `<master_key>: <PowerPoint picker name>`. `pptx_layouts`: `<layout_key>: <master_key> | <PowerPoint layout name> | <prototype source>`. `page_pptx_layouts`: `P` + digits followed by a declared Layout key. `page_layouts`: `P` + digits followed by a complete Slide template SVG basename; definition-only `layout_<layout_key>` files are obsolete and invalid as sources.```markdown## mode@@ -137,18 +97,8 @@ Catalog-based custom example:## 5. Machine Validation-```bash-python3 skills/ppt-master/scripts/project_manager.py validate <project_path>-```--Validation reports unresolved `[fill...]` placeholders, wrong casing, unknown sections or fields, illegal enums, malformed page keys, missing catalog assets, broken structured-layout references, and unmet conditions. It neither rewrites the lock nor checks semantic projection; Generate Step 4 Gate 2 owns that check.--Field meaning and selection logic stay in the owning Strategist modules. Executor branch references own consumption behavior. The schema owns only artifact grammar and structural conditions.+`python3 skills/ppt-master/scripts/project_manager.py validate <project_path>` reports unresolved `[fill...]` placeholders, wrong casing, unknown sections or fields, illegal enums, malformed page keys, missing catalog assets, broken structured-layout references, and unmet conditions; it neither rewrites the lock nor checks semantic projection (Gate 2 does). Field meaning stays in the Strategist modules; Executor branches own consumption; the schema owns grammar and structural conditions only.## 6. Anchor and extension semantics-- Confirmed core palette roles and every declared typography family/size role remain stable cross-page anchors.-- Page-local tints, gradient stops, shadow/glow paints, transparency composites, and one-off export-safe display families may be authored from context without adding a lock row.-- Executor may adjust one occurrence within its declared size role's anchor `±2px` while preserving hierarchy and readability; intermediate values are realization choices, not new lock rows.-- When a contextual value becomes a recurring semantic role, or one undeclared display size reaches its third occurrence, add the descriptive role, read back and validate affected planning fragments, then reuse it. Structural typography outside its applicable anchor band returns upstream immediately.-- Do not expand the lock merely to make an informational checker comparison empty. A lock edit should express reuse or identity, not enumerate incidental literals.+Confirmed core palette roles and every declared typography family/size role are stable cross-page anchors. Page-local tints, gradient stops, shadow/glow paints, transparency composites, and one-off export-safe display families may be authored from context without a row. Executor may adjust one occurrence within its size role's `±2px` band. When a contextual value becomes a recurring semantic role, or an undeclared display size reaches its third occurrence, add the descriptive role, read back and validate affected planning fragments, then reuse it; structural typography outside its band returns upstream immediately. Never expand the lock merely to empty an informational checker comparison — a lock edit expresses reuse or identity, not incidental literals.diff --git a/skills/ppt-master/workflows/stages/customize-animations.md b/skills/ppt-master/workflows/stages/customize-animations.mdindex 5cc9136f..39a105f8 100644--- a/skills/ppt-master/workflows/stages/customize-animations.md+++ b/skills/ppt-master/workflows/stages/customize-animations.md@@ -4,490 +4,118 @@ description: Optional post-processing stage for per-slide and per-object animati# Customize Animations Stage-> Optional Generate-PPTX post-processing stage for per-slide or per-object-> animation control. Run when `<project_path>/animations.json` already exists,-> when the user explicitly asks to customize slide-specific motion, object-> order, effects, timing, or reveals, or when the effective Custom Animations-> outcome in `design_spec.md §I` is enabled. Deck-wide transitions,-> auto-advance, and deck-wide per-element settings without page-specific motion-> or an existing sidecar use [`animations.md`](../../references/animations.md)-> directly and do not activate this stage. In Quick Generate, the current agent-> may activate either path from the request/deck in active context without a-> Design Spec or user interaction.+> Optional Generate-PPTX post-processing stage for per-slide or per-object motion. Run when `<project_path>/animations.json` exists, the user explicitly asks for slide-specific motion, object order, effects, timing, or reveals, or the effective Custom Animations outcome in `design_spec.md §I` is enabled. Deck-wide transitions, auto-advance, and deck-wide per-element settings without page-specific motion or a sidecar use [`animations.md`](../../references/animations.md) directly. Quick may activate either path from the request/deck in active context without a Design Spec or interaction. The sidecar grammar is documented in [`pptx-animations.md`](../../scripts/docs/pptx-animations.md).## When to Run| Condition | Action ||---|---|-| Effective Custom Animations outcome in `design_spec.md §I` is enabled | Run this stage after the final SVG quality gate and any enabled speaker-note pass, before Generate Step 7; use §IX suggestions as advice |-| User asks for per-slide or per-object animation, reveal order, timing, or effect changes | Run this stage |-| `<project_path>/animations.json` already exists | Run this stage to resolve preserve/adjust/replace/suppress intent before export |-| §IX contains `Motion suggestion`, but no trigger above is active | Do not run; retain the suggestion as Strategist advice and keep normal export defaults |-| No motion request, enabled outcome, or existing sidecar; user only wants the default deck | Do not run; normal export keeps page transitions and no element builds |-| No existing sidecar; user only wants deck-wide page transitions, auto-advance, or one per-element object animation policy | Do not run; apply [`animations.md`](../../references/animations.md) with exporter flags such as `-a auto` or `-a emphasis_spin` |-| Only a page-transition sound is requested, with no object-specific motion or existing sidecar | Do not run the full stage solely for sound; resolve a sparse transition sidecar through [`animations.md`](../../references/animations.md) §2.2 at export time |-| An object-animation sound is requested | Run this stage because the cue must bind to a resolved animation row and real object target |-| `svg_output/*.svg` is missing | Complete the main Executor phase first |--**Decision precedence**: latest explicit instruction → final Stage-2 policy →-workflow default `false`; provenance stays in Design Spec §I, never the-lock. Final Stage-2 `false` blocks creation, not an existing sidecar. Existing-sidecars enter this stage; explicit disables follow the table without deletion.+| Effective Custom Animations outcome enabled | Run after the final SVG quality gate and any speaker-note pass, before Generate Step 7; §IX suggestions are advice |+| User asks for per-slide or per-object animation, reveal order, timing, or effect changes | Run |+| `animations.json` already exists | Run to resolve preserve/adjust/replace/suppress intent before export |+| §IX `Motion suggestion` only, no trigger above | Do not run; keep the suggestion as advice and normal export defaults |+| No request, outcome, or sidecar | Do not run; export keeps page transitions and no builds |+| Only deck-wide transitions, auto-advance, or one per-element policy, no sidecar | Do not run; apply `animations.md` with exporter flags such as `-a auto` or `-a emphasis_spin` |+| Only a page-transition sound, no object motion or sidecar | Do not run; resolve a sparse transition sidecar through `animations.md` §2.2 at export |+| An object-animation sound is requested | Run — the cue must bind to a resolved row and real target |+| `svg_output/*.svg` missing | Complete the Executor phase first |++**Decision precedence**: latest explicit instruction → final Stage-2 policy → workflow default `false`; provenance stays in §I, never the lock. A final Stage-2 `false` blocks creation, not an existing sidecar; explicit disables follow the table without deletion.---## 1. Resolve Intent and Read Semantic Context-**Context read**: before editing `animations.json`, read every semantic planning file below that exists.+Before editing `animations.json`, read every semantic file that exists — `design_spec.md` (content intent, narrative role, emphasis), `spec_lock.md` (page rhythm, layout role, chart/template constraints), `notes/total.md` or `notes/*.md` (speaker flow for reveal order, delays, emphasis). They inform but do not gate this stage: state what is missing and proceed with the rest plus visible SVG content; with none of them, use only explicit instructions, visible SVG, and `animations.md`'s resolution rules without inferring choreography beyond what the page expresses.-| File | Use |+| Existing-sidecar intent | Action ||---|---|-| `<project_path>/design_spec.md` | Understand each slide's content intent, narrative role, and visual emphasis |-| `<project_path>/spec_lock.md` | Confirm page rhythm, layout role, chart/template constraints, and execution contract |-| `<project_path>/notes/total.md` or `<project_path>/notes/*.md` | Use speaker flow to tune reveal order, delays, and emphasis |+| Explicit Custom Animations disable | Preserve and validate the sidecar; return `-a none` |+| Explicit all-motion disable | Preserve and bypass it; return `--no-animations` |+| Explicit regeneration / rewrite / replacement | Rebuild the grouping plan and replace `animations.json`; prior choreography is not a constraint |+| Explicit adjustment / tuning / repair | Validate first; preserve valid semantic units; migrate affected references after regrouping |+| Stage activated with a sidecar and new §IX suggestions, no replacement request | Validate first; preserve valid choreography, adjust only affected units |+| Sidecar with no new instruction | Validate and preserve unchanged; repair an invalid sidecar/group reference before export |+| Ambiguous request | Default asks regenerate-or-modify; Quick decides from the request, SVG, and sidecar |-**Existing sidecar intent gate**:+Unless an all-motion disable bypasses it, validate an existing sidecar first: `python3 skills/ppt-master/scripts/animation_config.py validate <project_path>`.-| User intent | Action |-|---|---|-| Explicit Custom Animations disable | Preserve and validate the sidecar; return `-a none` |-| Explicit all-motion disable | Preserve and bypass the sidecar; return `--no-animations` |-| Explicit regeneration / rewrite / replacement | Rebuild the semantic grouping plan and replace `animations.json`; the previous choreography is not a constraint |-| Explicit adjustment / tuning / repair | Validate first, preserve the existing choreography where its semantic units remain valid, and migrate affected group references after any required regrouping |-| Stage activated with an existing sidecar and new §IX suggestions but no user replacement request | Validate first; preserve valid existing choreography and adjust only the affected semantic units |-| Existing sidecar with no new motion instruction | Validate and preserve it unchanged; if invalid, repair the owning sidecar/group reference before export |-| Ambiguous generation request | Default Generate asks whether to regenerate or modify; Quick Generate decides from the request, visible SVG, and existing sidecar, then continues |--Unless explicit all-motion disable bypasses it, validate an existing sidecar-before deciding to preserve, modify, or suppress object motion:--```bash-python3 skills/ppt-master/scripts/animation_config.py validate <project_path>-```--**Hard rule**: semantic files determine both animation intent and animation-unit boundaries. The current `svg_output/*.svg` supplies visible content and-implementation structure, but its existing `<g>` hierarchy is not accepted as-the animation plan merely because it already exists.--**Optional-context fallback**: these semantic files inform this supporting stage but are not its gate artifacts. If any are absent, state what is missing and proceed with every remaining file plus visible SVG content. If all three context inputs are absent, use only explicit user instructions, visible SVG content, and the resolution rules in [`animations.md`](../../references/animations.md); do not infer detailed choreography beyond what the page itself expresses.--**Decision ownership — understand, then design**: A §IX `Motion suggestion`-expresses the Strategist's communication job and semantic relationship; it-neither activates this stage nor locks implementation. Once active, understand-that intent, then develop the motion brief from the final SVG's semantic units,-visible states, composition, and speaker flow. Do not mechanically map it to-groups, effects, order, or timing. Executor may preserve, adapt, simplify,-decline, or choose `none`; an unchanged realization is valid and requires no-novelty. Explicit user motion requirements bind. Never change page-content merely to justify animation.--**Hard rule — existing visible-layer boundary**: This stage may regroup existing content only under §2 visual equivalence; it MUST NOT create or modify a crop, comparison layer, scrim, lens, hotspot, annotation, or other visible image state to satisfy motion intent. When a required state is missing and ordinary Slide-local authoring can supply it, return to Generate Step 6, rerun the final SVG gate and regenerate notes only when speaker notes are enabled, then resume here. If a structural boundary prevents that repair, simplify a non-binding suggestion to legal existing units, a page transition, or `none`; an explicit requirement follows failure recovery instead of changing structure.--**No-op is complete**: Evaluate suggestions before regrouping SVG content. If-no `animations.json` exists, every page should retain the normal `fade`-transition and no object builds, and no explicit user requirement remains-unmet, change no SVG, create no sidecar, and return to Generate Step 7. Never-author motion merely to expose a capability.+**Hard rule**: semantic files determine motion intent and unit boundaries; the current `svg_output/*.svg` supplies visible content and implementation structure, and its existing `<g>` hierarchy is never accepted as the plan merely because it exists.++**Decision ownership — understand, then design**: a §IX `Motion suggestion` states the communication job and relationship; it neither activates this stage nor locks implementation. Understand it, then develop the motion brief from the final SVG's semantic units, visible states, composition, and speaker flow — never a mechanical mapping to groups, effects, order, or timing. Executor may preserve, adapt, simplify, decline, or choose `none`; explicit user requirements bind; never change page content to justify animation.++**Hard rule — existing visible-layer boundary**: regroup only under §2 visual equivalence; never create or modify a crop, comparison layer, scrim, lens, hotspot, annotation, or other visible image state for motion. When a required state is missing and ordinary Slide-local authoring can supply it, return to Generate Step 6, rerun the final gate (and notes when enabled), then resume; when a structural boundary prevents that, simplify a non-binding suggestion to legal units, a page transition, or `none`, and let an explicit requirement follow failure recovery.++**No-op is complete**: if no sidecar exists, every page should keep the normal `fade` transition with no builds, and no explicit requirement is unmet, change no SVG, create no sidecar, and return to Step 7. Never author motion to expose a capability.---## 2. Rebuild Semantic Motion Units When Needed, Then List IDs-**Mandatory when object-targeted motion is in scope — content-first grouping-audit**: inspect each affected slide's visible content against its communication-job and speaker flow before treating any top-level `<g>` as an animation-anchor. The affected set is the page named by an adopted suggestion or explicit-object-motion request, plus both endpoints of each deterministic Morph pair.-Untouched pages need no animation audit. Existing groups are implementation-evidence only. Keep a current group unchanged only after confirming that it-already represents exactly one audience-facing motion unit or one continuing-Morph object. A page-transition-only plan without explicit Morph pairs skips-regrouping and group listing.--| Content condition | Required grouping action |+**Mandatory when object-targeted motion is in scope — content-first grouping audit**: inspect each affected slide's visible content against its communication job and speaker flow before treating any top-level `<g>` as an anchor. The affected set is the page named by an adopted suggestion or explicit request plus both endpoints of each Morph pair; untouched pages need no audit; a page-transition-only plan without Morph pairs skips regrouping and listing. Keep a group unchanged only when it already represents exactly one audience-facing motion unit or one continuing Morph object.++| Content condition | 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 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 |-| Page chrome, structural layers, or static framing | Preserve their structure and exclude them from ordinary animation targets |--**Hard rule — visual equivalence**: regrouping changes object boundaries only.-Preserve all visible content, paint order, coordinates, transforms, inherited-paint, opacity, clipping, filters, references, and native metadata. Keep-rendering-bearing implementation wrappers nested inside the new semantic group-when flattening or distributing their attributes could change appearance.--**Hard rule — structural boundary**: never split or merge across-`data-pptx-layer`, `data-pptx-placeholder`, native chart/table carrier, native-preset, or imported logical-object boundaries. Structural/static objects remain-non-animatable. Ordinary Slide-local content groups follow-[`shared-standards-core.md`](../../references/shared-standards-core.md) §4.3:-every visible direct-root group has a descriptive unique `id` and positive-root-coordinate `data-pptx-bounds`; nested implementation groups carry no-bounds.--**Forbidden — group-list-first choreography**:--- Choosing effects or order from the pre-existing `list-groups` output before the content-first audit-- Keeping a coarse wrapper only because it already has an `id`-- Splitting one semantic idea into individual shapes or text lines to increase animation count-- Merging unrelated ideas to reduce animation count-- Adding animation-specific `data-*` attributes to SVG--There is no target group count. Granularity follows the page's actual claims,-comparisons, sequence, causality, and narration beats.--After any regrouping, rerun the final SVG quality gate because `svg_output/`-changed. Use the owning route's checker form; Quick Generate must add its-lockless profile flag:--```bash-python3 skills/ppt-master/scripts/svg_quality_checker.py <project_path> --canonical-authoring --stage final --json-# Quick Generate: insert --quick-generate before --stage.-```--Then list the **post-regroup** anchors:--```bash-python3 skills/ppt-master/scripts/animation_config.py list-groups <project_path>-```--Output is one line per slide: `<slide_basename>: id1, id2, id3`. Default chrome-groups (`bg` / `*-header` / `*-footer` / `*-decor` / `nav` / `watermark` /-`logo` / `pagenumber`) are excluded. This post-regroup list is the source of-truth when planning §3 and editing §4; never invent a slide or group key.--An explicit sidecar entry may override only the marker-free legacy id-name-heuristic. A group carrying `data-pptx-layer` or an explicit static-role/placeholder marker can never animate, even when it is named explicitly.--If `animations.json` does not exist and a starting file is useful, scaffold-only after semantic regrouping:--```bash-python3 skills/ppt-master/scripts/animation_config.py scaffold <project_path>-```--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.+| One group holds several independently narrated rows, cards, steps, claims, or stages | Split into descriptive direct-root siblings, one per unit |+| One unit is scattered across groups or root primitives | Merge or wrap its background, icon, label, value, and text into one direct-root group |+| A connector or arrow explains entry into a node or stage | Keep it with the relationship or target that makes it intelligible |+| A hero visual, overview graphic, takeaway, or warning has its own role | Its own group |+| The same object continues across adjacent Morph pages | Isolate each endpoint as one direct-root group of compatible kinds |+| Several atoms express one inseparable idea | Keep them together |+| Page chrome, structural layers, static framing | Preserve and exclude from ordinary targets |++**Hard rule — visual equivalence**: regrouping changes object boundaries only — preserve every visible pixel, paint order, coordinate, transform, inherited paint, opacity, clip, filter, reference, and native metadata; keep rendering-bearing wrappers nested when flattening could change appearance. **Hard rule — structural boundary**: never split or merge across `data-pptx-layer`, `data-pptx-placeholder`, native chart/table carrier, native preset, or imported logical-object boundaries; structural/static objects stay non-animatable; ordinary direct-root groups follow [`shared-standards-core.md`](../../references/shared-standards-core.md) §4.3 (descriptive unique `id`, positive root-coordinate `data-pptx-bounds`, no bounds on nested groups).++**Forbidden — group-list-first choreography**: choosing effects or order from `list-groups` before the audit; keeping a coarse wrapper because it has an `id`; splitting one idea into shapes or lines to raise the count; merging unrelated ideas to lower it; adding animation `data-*` attributes to SVG. There is no target group count.++After any regrouping, rerun the final gate (`svg_quality_checker.py <project_path> --canonical-authoring --stage final --json`; Quick inserts `--quick-generate` before `--stage`), then list the post-regroup anchors with `animation_config.py list-groups <project_path>` (one line per slide, chrome groups `bg` / `*-header` / `*-footer` / `*-decor` / `nav` / `watermark` / `logo` / `pagenumber` excluded). That list is the only source of slide and group keys for §3–§4. An explicit sidecar entry overrides only the marker-free legacy id-name heuristic; a group carrying `data-pptx-layer` or a static role/placeholder marker never animates. If a starting file is useful, `animation_config.py scaffold <project_path>` after regrouping creates a neutral scaffold (default object effect `none`, groups as empty `{}` placeholders) — creating it selects nothing, and it need not be read in full.---## 3. Plan Slide and Object Motion-**Mandatory**: plan the requested motion layers for each affected slide before-editing `animations.json`. A local object-animation request does not require a-deck-wide transition review.--| Layer | Config path | Use |-|---|---|---|-| 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 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**: classify the communication job—including-none—and each unit's lifecycle. Choose only the required transition, effect,-order, timing, and one dominant Start rhythm; mix modes or add emphasis and-exit only for a distinct job with a restrained, fitting effect. Read-`design_spec.md`, `spec_lock.md`, speaker notes, and SVG group ids for role,-rhythm, order, and target validity.--**Mandatory — select from meaning, not catalog coverage**: run the-page-relationship and lifecycle selection playbooks in-[`animations.md`](../../references/animations.md) §3 and §4 before choosing any-specific effect. Their candidates are recall aids, not coverage targets; this-stage binds the selected duties to real targets.--**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's-communication job requires it)**: a custom object-animation pass may leave the-page transition and every untouched page on exporter or sidecar defaults. Add a-slide-specific `transition` only when the affected page needs one; never add-variation for coverage.--**Timing guidance**: use shorter motion for dense/repeated scan content and-longer motion for conceptual pivots, hero diagrams, section boundaries, and-final takeaways. Uniform timing is valid when it fits the requested style.--**Reference — not a constraint: motion judgment.** Decide the communication-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 require-special motion; variation follows a real content/tone change, never a quota.--### 3.1 Supported Page Transitions+**Mandatory**: plan the requested layers for each affected slide before editing — page transition (`defaults.transition` / `slides.<slide>.transition`), deterministic Morph pair (`slides.<destination>.morph`), page animation defaults (`defaults.animation` / `slides.<slide>.animation`), object lifecycle (`slides.<slide>.groups.<group_id>` as one legacy row or an ordered `effects[]`). A local object request needs no deck-wide transition review.-Use one of the 48 canonical native effects from the complete shared registry in-[`animations.md`](../../references/animations.md) §3. It covers all current-PowerPoint Subtle, Exciting, and Dynamic Content gallery effects. The eight old-names are readable only as compatibility inputs; do not write them in new-plans or sidecars. They normalize to a canonical effect plus native-`effect_options` before writing. `none` removes the visual page transition-while allowing timed advance to remain.+**Per-affected-page motion brief**: classify the communication job (including none) and each unit's lifecycle; choose only the required transition, effect, order, timing, and one dominant Start rhythm; mix modes or add emphasis/exit only for a distinct job with a restrained effect. **Mandatory — select from meaning, not catalog coverage**: run the page-relationship and lifecycle playbooks in `animations.md` §3–§4 before any specific effect; candidates are recall aids. **Title motion**: classify the lifecycle, then choose immediate, delayed, synchronized, post-hero, or narration-cued timing; use the sidecar override for a marker-free chrome-like id and repair an incorrect structural marker before animating it. **Default — inherit unaffected layers (may override when the page's job requires it)**: leave the transition and untouched pages on defaults; add a slide-specific `transition` only when the page needs one. **Timing**: shorter for dense/repeated scan content, longer for pivots, hero diagrams, section boundaries, and takeaways; uniform timing is valid. **Reference — motion judgment**: decide job, lifecycle, tone, audience order, and whether direction carries meaning before geometry; a unit that gains no clarity or feeling is `static` (`none`, `entrance_appear`, or `entrance_fade` only when that matches the lifecycle); layout direction alone requires no motion; variation follows content or tone, never quota.-**Transition fields**:+### 3.1 Supported Page Transitions-| Field | Behavior |-|---|---|-| `effect` | One supported page transition effect; `none` removes only the visual effect |-| `effect_options` | Optional object containing only the selected native effect's PowerPoint Effect Options; requires an explicit `effect` |-| `duration` | Finite transition duration in seconds; must be greater than zero |-| `auto_advance` | Optional finite non-negative seconds before automatic slide advance; click remains enabled, and this field is valid with `effect: none` |-| `sound` | Optional project-relative `.wav` cue; select and sync it only after the transition solution is resolved |--Run-`python3 skills/ppt-master/scripts/pptx_animations.py --describe-transition <effect>`-before authoring Effect Options. Never infer that one effect accepts another-effect's direction, shape, pattern, or boolean fields.--For a cross-slide object continuation that must not depend on PowerPoint's-automatic matching, put one explicit `morph` block on the destination slide.-Its `from` slide must be the immediately preceding exported SVG; each stable-pair key binds one source direct-root group id to one destination direct-root-group id. The exporter supplies PowerPoint's `!!` prefix. Use Morph by object;-word/character Morph does not accept this object-pair contract.+One of the 48 canonical native effects in `animations.md` §3 (the complete Subtle, Exciting, and Dynamic Content gallery); the eight old names are compatibility inputs only and normalize to a canonical effect plus `effect_options`; `none` removes the visual effect while timed advance remains. Fields: `effect`; `effect_options` (only the selected effect's native options — run `pptx_animations.py --describe-transition <effect>` first and never infer another effect's fields); `duration` (> 0 s); `auto_advance` (non-negative seconds, click still enabled, valid with `effect: none`); `sound` (project-relative `.wav`, selected only after the transition is resolved). For a cross-slide continuation that must not depend on PowerPoint's automatic matching, put one `morph` block on the destination whose `from` is the immediately preceding SVG and whose pair keys bind one source direct-root group to one destination group (the exporter supplies `!!`); Morph by object only.### 3.2 Supported In-Slide Animations-Use the 203 canonical PowerPoint-native keys: 53 `entrance_*`, 33-`emphasis_*`, 64 `path_*`, and 53 `exit_*`. Run-`python3 skills/ppt-master/scripts/pptx_animations.py --list` for the exact-categorized names. Each key preserves PowerPoint's complete authored behavior-tree. Media-only commands remain in the audio/video workflows.--| Choice | Behavior |-|---|---|-| `entrance_*` / `emphasis_*` / `path_*` / `exit_*` | Select one explicit canonical PowerPoint object effect |-| `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-them in new plans or sidecars. All Fly direction names normalize to-`entrance_fly`, all Wipe direction names normalize to `entrance_wipe`, and the-other old names normalize to their matching `entrance_*` preset. `cut`-normalizes to `entrance_appear`. Compatibility Fly/Wipe aliases preserve their-direction as `effect_options.direction`; legacy `wheel` preserves its historical-four-spoke amount.--`auto`, `mixed`, and `random` never choose emphasis, motion-path, or exit-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 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**:--| Trigger | Behavior |-|---|---|-| `after-previous` | Default click-free cascade |-| `with-previous` | One coordinated beat together |-| `on-click` | Controlled semantic reveal |+The 203 canonical keys — 53 `entrance_*`, 33 `emphasis_*`, 64 `path_*`, 53 `exit_*` (`pptx_animations.py --list`), each preserving PowerPoint's complete behavior tree. `auto` / `mixed` / `random` apply to generic `enter` only (`auto` maps roles to canonical entrances with a richer pool for image-like ids; `mixed` cycles 16 presets by group order; `random` selects deterministically from the same pool) and never choose emphasis, path, or exit implicitly; `none` excludes the object or slide. The 29 old short names are compatibility inputs (Fly/Wipe directions → `entrance_fly` / `entrance_wipe` with `effect_options.direction`, `cut` → `entrance_appear`, legacy `wheel` keeps its four-spoke amount). **Hard rule — explicit semantic choreography**: when a plan depends on a specific lifecycle, relationship, or order, target real groups with explicit canonical effects and order; generic modes are valid only when generic entrance treatment suffices. Start modes: `after-previous` (click-free cascade), `with-previous` (one coordinated beat), `on-click` (controlled reveal).### 3.3 Optional Sound Pass-Run this pass only after the visual transition, object lifecycle, effect,-order, and timing decisions above are complete. Sound selection is-post-processing state: do not recover it from or write it back to-`design_spec.md` / `spec_lock.md`, and do not treat it as a pre-SVG resource.--| Need | Action |-|---|---|-| No resolved cue needs sound | Omit every `sound` field; do not create `<project_path>/sounds/` |-| A bundled cue fits one resolved transition or animation row | Read the complete [`sound-vocabulary.md`](../../templates/sounds/sound-vocabulary.md), choose from the resolved auditory job, then sync only the selected namespaced id(s) into the project |-| The project already contains user-provided audio | Use its project-relative path when its format is valid; no library sync is required |--```bash-# Optional exact filtering after reviewing the complete vocabulary-python3 skills/ppt-master/scripts/sound_sync.py list --query <term>-python3 skills/ppt-master/scripts/sound_sync.py \- <project_path> <namespace>/<sound_id> [<namespace>/<sound_id> ...]-```--Use the corresponding `sounds/<namespace>/<file>.wav` path in-`transition.sound`, `animation.sound`, or the selected group/effect row. Never-reference `skills/ppt-master/templates/sounds/` from `animations.json`. The-global library is a selection source, not an exporter fallback.--This pass owns only native PPTX cue selection and configuration. When direct-narrated MP4 delivery is active, leave gain, limiting, and video mixing to-[`generate-audio`](./generate-audio.md) after the final narrated export; do not-write those post-production values into `animations.json`.+Only after visual transition, lifecycle, effect, order, and timing are complete; sound is post-processing state never written to or recovered from the Design Spec or lock. No resolved cue → omit every `sound` field and create no `sounds/`. A bundled cue fits one resolved row → read the complete [`sound-vocabulary.md`](../../templates/sounds/sound-vocabulary.md), choose from the auditory job, then sync only the selected ids (`sound_sync.py list --query <term>` for optional filtering; `sound_sync.py <project_path> <namespace>/<sound_id> ...`) and reference `sounds/<namespace>/<file>.wav` in `transition.sound`, `animation.sound`, or the group/effect row. User-provided audio in the project uses its own path when the format is valid. Never reference `skills/ppt-master/templates/sounds/` from `animations.json`; the global library is a selection source, not an exporter fallback. Gain, limiting, and video mixing belong to [`generate-audio`](./generate-audio.md), never this sidecar.---## 4. Edit `animations.json`-**Hard rule — sparse overrides reference real targets**: write only affected-slides and only fields that differ from exporter or sidecar defaults. An-unlisted SVG inherits the resolved deck-wide settings; a listed slide may-contain only `transition`, `animation`, `groups`, or `morph` fields that it-actually overrides. `defaults` is optional and belongs only to intentional-deck-wide settings. Group-level overrides remain opt-in. Chrome groups stay out-(the exporter pins them to `none` by default). Name a legacy chrome-like id only-when the user explicitly wants that content animated and the SVG has no-explicit structural layer, role, or placeholder marker.--**Forbidden**:--- Referencing a slide that does not exist in `svg_output/`-- Referencing a missing, ambiguous, or structural group-- Enumerating every content group in a slide just to restate the slide-level default effect-- Listing a group with `data-pptx-layer` or an explicit static role/placeholder marker-- Listing a legacy chrome-like id without an explicit, reviewed intent to override the name heuristic--| Field | Behavior |-|---|---|-| `transition.effect` | Slide-specific page transition effect |-| `transition.effect_options` | Effect-specific native PowerPoint options; requires an explicit slide-specific `transition.effect` |-| `transition.duration` | Slide-specific page transition duration |-| `transition.sound` | Optional project-relative `.wav` cue copied during §3.3; valid with `effect: none`; set a slide override to `null` to clear an inherited default sound |-| `morph.from` | Immediately preceding SVG stem for an explicit deterministic Morph transition |-| `morph.pairs.<key>.from` / `.to` | Unique source/destination direct-root group ids that receive the shared PowerPoint name `!!<key>` |-| `animation.effect` | Slide-specific default object animation effect |-| `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>.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 |-| `restart` | `always`, `when-not-active`, or `never` |-| `after_effect` | `none`, `dim` with `color`, `hide`, or `hide-on-next-click` |-| `sound` | Object-animation cue. Existing low-level inputs accept project-relative or absolute `.m4a`, `.mp3`, or `.wav`; bundled selections use the synced project-relative `.wav` path from §3.3 |--**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 the-selected effect. Before writing a parameterized effect, run-`python3 skills/ppt-master/scripts/pptx_animations.py --describe-<canonical_effect>` and use the returned values exactly. `duration` owns-PowerPoint Speed; `accelerate`/`decelerate` own smooth start/end, so do not-invent duplicate fields. Change Font's `font_name` is one concrete-target-installed PowerPoint face, never a CSS font stack.--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-group into the destination slide's `groups` block merely to establish identity.--**Forbidden — SVG pollution**: do not add `data-*` animation attributes to SVG files. Animation customization belongs in `animations.json`.+**Hard rule — sparse overrides reference real targets**: write only affected slides and only fields that differ from exporter or sidecar defaults; an unlisted SVG inherits deck-wide settings; a listed slide carries only the `transition`, `animation`, `groups`, or `morph` fields it overrides; `defaults` is optional and deck-wide only; chrome groups stay out (the exporter pins them to `none`), and a legacy chrome-like id is named only on explicit reviewed intent with no structural marker. **Forbidden**: a slide absent from `svg_output/`; a missing, ambiguous, or structural group; enumerating every group to restate the slide default; listing a group with `data-pptx-layer` or a static role/placeholder marker; animation `data-*` attributes in SVG.++**Hard rule — one group representation**: a populated `groups.<id>` uses either the legacy single-effect fields or `effects[]` (non-empty, every row naming `effect`), never both; an untouched scaffold `{}` is neutral; omitted row duration, Start, timing/completion controls, and sound inherit the resolved slide values. `effect_options` may hold `direction`, `amount`, `color`, `font_name`, `relative`, or `size`, but only fields the selected effect supports — run `pptx_animations.py --describe <canonical_effect>` before writing a parameterized effect; `duration` owns Speed and `accelerate` / `decelerate` own smooth start/end (no duplicate fields); Change Font's `font_name` is one target-installed face, never a CSS stack. The complete field reference — transition, morph, slide animation defaults, per-row trigger, order, delay, duration, `trigger_shape`, repeat, reverse/rewind, timing ratios, restart, after-effect, sound — is [`pptx-animations.md`](../../scripts/docs/pptx-animations.md) §8. Use the multi-category `effects[]` example in `animations.md` §2 and the two-slide Morph example in §2.1 (never copy the source group into the destination `groups` to establish identity); keep the legacy object for one-row overrides and never convert old sidecars mechanically.---## 5. Validate and Return to Generate Export-When `animations.json` was newly created or changed after the §1 validation,-run:--```bash-python3 skills/ppt-master/scripts/animation_config.py validate <project_path>-```--After validation succeeds, return to the owning export path:--- Default Generate → [`generate-pptx.md`](../generate-pptx.md) Step 7.1, which- owns note splitting, `finalize_svg.py`, native export, and the published- postflight receipt.-- Quick Generate → [`quick-generate.md`](../profiles/quick-generate.md) §4,- which skips finalization and exports with `--quick-generate`.--Both exporters read `<project_path>/animations.json` automatically. If §2-changed `svg_output/`, complete the owning route's required final SVG quality-rerun before returning. Do not finalize or export independently from this-stage.--**Validation**: The later native export must reflect the per-slide and-per-object overrides. `--animation none` still disables all per-element-animation and overrides `animations.json`. Unknown animation-effects/modes/triggers; unsupported effect options; incompatible, boolean,-non-finite, or out-of-range timing parameters; non-positive durations; negative-delay/stagger; invalid order; missing slides/groups; and structural-layer-targets fail validation. Transition validation remains strict. None of these-failures substitutes a fallback effect or silently drops a requested target.-Deterministic Morph also rejects non-adjacent source slides, missing or-ambiguous direct-root groups, conflicting or undeclared shared keys, non-object-Morph, and any target that does not remain one compatible Slide-local object-after structure processing.--**Validation boundary**: a passing sidecar, timing-tree read-back, and sound-relationship check proves the PPTX configuration only. It does not prove the-PowerPoint-exported MP4 audio track contains those cues.--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. Narration-preserves these rows. Direct-PPTX routes fingerprint and preserve source object-animation; they never author it. See-[`pptx-animations.md`](../../scripts/docs/pptx-animations.md).+When `animations.json` was created or changed after §1, run `python3 skills/ppt-master/scripts/animation_config.py validate <project_path>`, then return to the owning export path — Default [`generate-pptx.md`](../generate-pptx.md) Step 7.1; Quick [`quick-generate.md`](../profiles/quick-generate.md) §4 — both of which read the sidecar automatically. If §2 changed `svg_output/`, complete the owning route's final SVG rerun before returning; never finalize or export from this stage.++**Validation**: unknown effects/modes/triggers; unsupported options; incompatible, boolean, non-finite, or out-of-range timing; non-positive durations; negative delay/stagger; invalid order; missing slides/groups; structural targets; and Morph pairs with non-adjacent sources, missing or ambiguous groups, conflicting or undeclared keys, non-object Morph, or a target that does not remain one compatible Slide-local object all fail — never replaced by a fallback or silently dropped. `--animation none` still disables all per-element animation. A passing sidecar, timing-tree read-back, and sound relationship check prove the PPTX configuration, not an exported MP4 audio track. Step 7 export reads back row order, trigger, target, effect, duration, offset, placement, IDs, and shape references; narration preserves them; direct-PPTX routes preserve source animation and never author it.### 5.1 Optional Video Motion Handoff-When a downstream video renderer will enhance the deck, have Generate Step 7.3-append `--conversion-trace`. After that final export succeeds, derive the motion-plan from its resolved trace:--```bash-python3 skills/ppt-master/scripts/video_motion_plan.py \- <project_path>/validation/<output_stem>.trace.json \- -o <project_path>/validation/video_motion_plan.json \- --style adaptive \- --force-```--For narrated output, use the final `--recorded-narration` trace. When resolved-sound cues exist and the native-export mix branch is selected, that same final-trace and the final narrated PPTX feed `video_sound_mix.py`; never infer cue-timing from the raw sidecar or filenames. An explicit slideshow capture already-records PowerPoint's native cue playback and does not use the trace for sound-mixing. The video plan locks identity, effect, direction, order, bounds, and-timing; it may refine renderer parameters but cannot replace the source effect.-See-[`video-motion-plan.md`](../../scripts/docs/video-motion-plan.md).+When a downstream renderer will enhance the deck, have Step 7.3 append `--conversion-trace`, then derive the plan from the final resolved trace (the `--recorded-narration` trace for narrated output): `python3 skills/ppt-master/scripts/video_motion_plan.py <project_path>/validation/<output_stem>.trace.json -o <project_path>/validation/video_motion_plan.json --style adaptive --force`. The plan locks identity, effect, direction, order, bounds, and timing and may refine renderer parameters only ([`video-motion-plan.md`](../../scripts/docs/video-motion-plan.md)). With resolved sound cues on the native-export branch, the same final trace and narrated PPTX feed `video_sound_mix.py`; an explicit slideshow capture records native cue playback and uses no trace for mixing.---## ✅ Customize Animations Complete-- [x] Applicable semantic context and motion intent were resolved+- [x] Semantic context and motion intent resolved- [x] Adopted object targets use real post-regroup SVG ids when object motion is in scope-- [x] Sparse `animations.json` overrides are valid when present; a no-op path creates none+- [x] Sparse `animations.json` overrides valid when present; a no-op path creates none- [x] Any regrouped SVG passed the final quality gate-- [x] Control returned to Generate Step 7 for preview, export, read-back, and package validation-- [x] Any requested video plan waits for the final resolved conversion trace+- [x] Control returned to Generate Step 7; any video plan waits for the final resolved trace