AI turns documents or topics into real, native PowerPoint decks—with native shapes, transitions and animations, data-backed charts and tables on demand, audio narration from speaker notes, and support for your own .pptx templates. · by Hugo He
feat(planning): derive three directions from complete design catalogs
hugohe34d57e987bae6
diff --git a/docs/technical-design.md b/docs/technical-design.mdindex b785f974..ed8499e4 100644--- a/docs/technical-design.md+++ b/docs/technical-design.md@@ -478,7 +478,7 @@ without interaction, while the Stage-1 communication recommendation is authoredwithout reading those candidates or any template content. The UI confirms thatcommunication contract and the switchable free-design/template choice together;only afterward does the agent install/fuse a non-free selection. Strategist uses-one dependency-ordered two-stage gate. Its `delivery_context` recommendation distinguishes presenter-led, reader-led, hybrid, and recorded/self-running use in one prose field, names the primary context, and records any secondary use; hybrid never stands alone without its lead mode. The prose boxes remain editable and none requires a non-empty answer: confirmation persists the current text exactly, and a cleared value stays empty instead of falling back to the recommendation. Final Stage 2 is authored once from that contract and confirms both the complete deck solution and its production mechanics: reading mode, narrative mode, page count, coordinated visual system, image sources, generated-image rendering, conditional AI acquisition, formula policy, generation mode, the Design Spec review toggle, and whether the agent should proactively generate speaker notes, custom animations, or narration audio. Only after Stage 1 is confirmed, when a template is installed, does Strategist read the project-local workspace and current content, derive **how to apply it**, and expose that plan as editable `template_application` prose; Stage 2 never reselects a template, and the internal reuse/adherence modes stay hidden. Reading mode decides how meaning is carried by page, visuals, presenter, and notes; its cards do not present px values. The browser may apply the deterministic `reading mode → body baseline → unpinned role sizes` dependency locally, while manual size edits pin visible values. It never regenerates Stage 2. The three proactive values are fallback policies, not capability bans: the latest explicit user instruction wins, then final Stage 2, then the fixed defaults `true / false / false`. Strategist still records non-binding Motion suggestions when useful; a suggestion alone does not activate custom-animation execution. Generated images inherit the selected deck color anchors directly; there is no independent image-palette choice. Final state has two equivalent carriers: the default UI path reads `confirm_ui/result.json` exactly once after the final wait, while an explicit chat-only or delegated path retains an equivalent final confirmation summary and may produce no `result.json`. Both paths first resolve and persist every effective production outcome into one `design_spec.md` and complete Gate 1 fidelity. With refinement off, lock authoring proceeds immediately. With `refine_spec: true`, the pipeline stops before `spec_lock.md`; the user may revise any part of that same Design Spec through normal chat for any number of rounds, and explicit approval then releases Gate 2 lock authoring. No second Design Spec or parallel lock is maintained. Normal lock authoring and downstream execution do not reread either confirmation channel. Required manual assets may still introduce their own conditional blocking points, so this is not an exclusive claim over every runtime gate. Project validation requires the compact `audience` / `objective` / `core_message` anchor set under `spec_lock.md ## communication` plus an `Audience move` in every §IX Slide block.+one dependency-ordered two-stage gate. Its `delivery_context` recommendation distinguishes presenter-led, reader-led, hybrid, and recorded/self-running use in one prose field, names the primary context, and records any secondary use; hybrid never stands alone without its lead mode. The prose boxes remain editable and none requires a non-empty answer: confirmation persists the current text exactly, and a cleared value stays empty instead of falling back to the recommendation. Final Stage 2 is authored once from that contract. Strategist first creates exactly three complete, viable, project-fit solutions, then projects each into the lower mode, visual style, color, typography, icon, and generated-image-rendering controls; it does not assemble the three solutions afterward from independent component picks or force them into safe / shifted / bold archetypes. Image source remains an independent judgment, so every solution already has a rendering candidate even when AI imagery is initially not recommended. A top card applies its immutable bundle, lower controls may diverge, and clicking a card again restores that bundle; final state stores only the current flattened components. The same stage confirms reading mode, page count, conditional AI acquisition, formula policy, generation mode, the Design Spec review toggle, and whether the agent should proactively generate speaker notes, custom animations, or narration audio. Only after Stage 1 is confirmed, when a template is installed, does Strategist read the project-local workspace and current content, derive **how to apply it**, and expose that plan as editable `template_application` prose; Stage 2 never reselects a template, and the internal reuse/adherence modes stay hidden. Reading mode decides how meaning is carried by page, visuals, presenter, and notes; its cards do not present px values. The browser may apply the deterministic `reading mode → body baseline → unpinned role sizes` dependency locally, while manual size edits pin visible values. It never regenerates Stage 2. The three proactive values are fallback policies, not capability bans: the latest explicit user instruction wins, then final Stage 2, then the fixed defaults `true / false / false`. Strategist still records non-binding Motion suggestions when useful; a suggestion alone does not activate custom-animation execution. Generated images inherit the selected deck color anchors directly; there is no independent image-palette choice. Final state has two equivalent carriers: the default UI path reads `confirm_ui/result.json` exactly once after the final wait, while an explicit chat-only or delegated path retains an equivalent final confirmation summary and may produce no `result.json`. Both paths first resolve and persist every effective production outcome into one `design_spec.md` and complete Gate 1 fidelity. With refinement off, lock authoring proceeds immediately. With `refine_spec: true`, the pipeline stops before `spec_lock.md`; the user may revise any part of that same Design Spec through normal chat for any number of rounds, and explicit approval then releases Gate 2 lock authoring. No second Design Spec or parallel lock is maintained. Normal lock authoring and downstream execution do not reread either confirmation channel. Required manual assets may still introduce their own conditional blocking points, so this is not an exclusive claim over every runtime gate. Project validation requires the compact `audience` / `objective` / `core_message` anchor set under `spec_lock.md ## communication` plus an `Audience move` in every §IX Slide block.The three proactive values confirmed in final Stage 2 remain independent rawevidence. In particular, enabling narration may enable the effective Speaker@@ -514,7 +514,7 @@ Why both? `design_spec.md` preserves the complete confirmed solution and rationaThe view omits universal SVG/icon prohibitions already owned by the always-loaded Executor core and retains only project-specific forbidden rows. It selects images from the current page brief, explicit image-resource page assignments, and mirror prototype references. Images assigned elsewhere are excluded; any unresolved legacy image remains in a compatibility subset, and `confirmed-none` appears only when every locked image has a deterministic assignment elsewhere.-The lock is also the per-page routing table. Beyond global colors and typography, it carries `page_rhythm` (`anchor` / `dense` / `breathing`), `page_visualizations` (the selected page-local `chart|table/<key>` reference, which triggers reading the corresponding family SVG and §VII Usage but does not lock the final information model, type, or geometry), image rows with placement/cropping contracts, and the locked `mode` / `visual_style` values that decide which execution rule files are loaded. Qualitative Structure is described directly in §IX and generated from those relationships; it has no §VII row, `page_visualizations` key, or catalog SVG. Legacy `page_charts` remains readable but is not written by new planning; a historical Structure bare key is retained only as semantic intent without an SVG reference. A selected custom direction also carries its resolved `mode_behavior` / `visual_style_behavior`. When it actually combines or borrows catalog entries, the lock records their exact ids in optional `mode_references` / `visual_style_references` / `image_rendering_references`, and execution reads every listed file before synthesis; a genuinely novel custom omits the corresponding reference field. `template_reuse_scope: mirror|layout` locks additionally carry `page_layouts` (which input template SVG each page inherits), unique `pptx_masters` / `pptx_layouts` definitions, and `page_pptx_layouts` assignments. `template_reuse_scope: style`, free-design, and brand-only projects use `pptx_structure.mode: flat` and omit those sections entirely rather than writing empty values. Empty entries elsewhere are meaningful signals: no catalog reference or no image is often a design decision rather than missing data.+The lock is also the per-page routing table. Beyond global colors and typography, it carries `page_rhythm` (`anchor` / `dense` / `breathing`), `page_visualizations` (the selected page-local `chart|table/<key>` reference, which triggers reading the corresponding family SVG and §VII Usage but does not lock the final information model, type, or geometry), image rows with placement/cropping contracts, and the locked `mode` / `visual_style` values that select which rules are applied from the complete catalogs already loaded for each valid Executor context. Qualitative Structure is described directly in §IX and generated from those relationships; it has no §VII row, `page_visualizations` key, or catalog SVG. Legacy `page_charts` remains readable but is not written by new planning; a historical Structure bare key is retained only as semantic intent without an SVG reference. A selected custom direction also carries its resolved `mode_behavior` / `visual_style_behavior`. When it actually combines or borrows catalog entries, the lock records their exact ids in optional `mode_references` / `visual_style_references` / `image_rendering_references`; those ids preserve provenance and constrain synthesis to the declared bases rather than triggering broad or additional reads. A genuinely novel custom omits the corresponding reference field. `template_reuse_scope: mirror|layout` locks additionally carry `page_layouts` (which input template SVG each page inherits), unique `pptx_masters` / `pptx_layouts` definitions, and `page_pptx_layouts` assignments. `template_reuse_scope: style`, free-design, and brand-only projects use `pptx_structure.mode: flat` and omit those sections entirely rather than writing empty values. Empty entries elsewhere are meaningful signals: no catalog reference or no image is often a design decision rather than missing data.`page-context v2` remains an on-demand projector. Each invocation emits a compact global anchor set bound to `lock_source.sha256`, the current §IX/resource/routing delta, and scoped path/SHA fingerprints for large references; the projection is not a color/font allowlist or a replacement authority. It is used only for explicit diagnostics/telemetry or an unresolved page/template/visualization path-SHA question. A bounded exact repair in a valid uncompacted context may use targeted fragment readback plus validation; fresh, compacted, external, unknown, structural, or mismatched changes require one complete Design Spec and lock read. Flat pages have no prototype reference; structured pages use the authoritative complete SVG. Manifests and text-slot sidecars remain derived tool diagnostics and are never injected into page authoring.@@ -587,7 +587,7 @@ Several architectural decisions shape this phase:**External refs during development, two divergent embedding strategies for downstream outputs.** While editing in `svg_output/`, images are external file references for fast iteration and single-point replacement. `svg_final/` then Base64-inlines ordinary bitmaps and supported SVG resources, while retaining external EMF/WMF references for native PPTX passthrough; an individual inline failure increments the processing-error count, but it does not rewrite authored source or fail the finalizer as a whole. Native PPTX instead copies bitmaps or Office vectors into the package media folder and uses `<a:srcRect>` for supported bitmap cropping. The split exists because the preview and compiler serve different responsibilities: one is a derived visual reference, while the other produces editable DrawingML through the project converter. `svg_final/` is not an unconditionally portable no-external-dependency interchange format or a compatibility source for PowerPoint Convert to Shape.-**One rendering lock, inherited deck anchors, and per-image composition.** When a deck includes AI-generated images, Stage 2 confirms the deck-wide `rendering` inside each coordinated design direction. Image colors are not a second user decision: Image_Generator starts from the core HEX roles in `spec_lock.md colors`, then interprets them with the completed Design Spec and each resource's `type` or hero-page composition. Rendering may derive coherent tints, material colors, lighting transitions, and atmospheric hues while preserving the core role meanings; it must not replace the deck identity with an unrelated image-only palette. A repeated derived tone may be promoted into a named lock role.+**One rendering lock, inherited deck anchors, and per-image composition.** Before deciding whether to recommend AI imagery, Stage 2 authors one complete deck-wide rendering candidate inside each of its three coordinated design directions. The source decision is separate: the UI hides rendering controls until AI is selected, then reveals those existing candidates without another recommendation pass. Only confirmed AI usage promotes the selected candidate into the execution contract. Image colors are not a second user decision: Image_Generator starts from the core HEX roles in `spec_lock.md colors`, reads only the selected rendering entry or exact custom bases, then interprets them with the completed Design Spec and each resource's `type` or hero-page composition. Rendering may derive coherent tints, material colors, lighting transitions, and atmospheric hues while preserving the core role meanings; it must not replace the deck identity with an unrelated image-only palette. A repeated derived tone may be promoted into a named lock role.---diff --git a/skills/ppt-master/references/executor-base.md b/skills/ppt-master/references/executor-base.mdindex 41816ab0..027aa301 100644--- a/skills/ppt-master/references/executor-base.md+++ b/skills/ppt-master/references/executor-base.md@@ -18,7 +18,7 @@ Always-loaded Executor authority for flat SVG page authoring and behavior sharedEvaluate branches from each object's actual information model, not only from a Chart/Table reference. A catalog family selects construction guidance but never native readiness; `Native-ready` is an independent object-level decision. Page-local qualitative geometry also never implies package-level `pptx_structure.mode: structured`.-> Narrative skeleton and visual aesthetic come from this deck's locked files under [`modes/`](./modes/_index.md) and [`visual-styles/`](./visual-styles/_index.md). [`shared-standards-core.md`](./shared-standards-core.md) supplies the technical boundary plus the fallback visual-quality and leading defaults when those authorities are silent.+> Narrative skeleton and visual aesthetic come from the locked values applied against the complete [`modes/`](./modes/_index.md) and [`visual-styles/`](./visual-styles/_index.md) catalogs already loaded for this Executor context. Optional `*_references` identify actual custom synthesis bases; they are not load triggers. [`shared-standards-core.md`](./shared-standards-core.md) supplies the technical boundary plus the fallback visual-quality and leading defaults when those authorities are silent.**Hard rule — Shape-first page authority**: Every visible object intended for the exported slide MUST exist in the final page SVG or be explicitly referenced by it. Templates and `spec_lock.md` guide construction; they are not export-time overlays for missing visible content. Optional native Chart/Table metadata belongs to an independently selected object and never replaces this visible fallback during authoring; [`native-data-interface.md`](./native-data-interface.md) alone defines that metadata and its export activation.diff --git a/skills/ppt-master/references/image-renderings/_index.md b/skills/ppt-master/references/image-renderings/_index.mdindex 4e4cbe99..5c412536 100644--- a/skills/ppt-master/references/image-renderings/_index.md+++ b/skills/ppt-master/references/image-renderings/_index.md@@ -10,7 +10,7 @@ A **rendering** is a visual style family: line quality, texture, depth, material## 1. Catalog (20 renderings)-Each rendering has its own file with: style paragraph, line / texture / depth notes, deck HEX usage, and a fewshot prompt snippet. A preset lock reads that one file. A catalog-based `custom` reads every preset named in `image_rendering_references`; a novel `custom` may omit references. Never glob the directory.+Each rendering keeps its own authoritative file with: style paragraph, line / texture / depth notes, deck HEX usage, and a fewshot prompt snippet. Before Default Stage 2 or Quick resolves image usage, the design-decision owner reads this index plus all 20 sibling rendering files once as one deterministic batch and prepares three project-relevant rendering candidates. Whether AI imagery is recommended remains a separate source decision. Image_Generator later reads this index plus only the confirmed preset entry or exact `image_rendering_references`; a novel `custom` may omit references.### 1.1 Modern / commercial (the corporate-PPT main field)@@ -54,7 +54,7 @@ Each rendering has its own file with: style paragraph, line / texture / depth no### 1.5 Escape hatch — `custom`-Whenever proposed image usage includes `ai`, Stage 2 authors one separate, visible custom rendering proposal in addition to the preset cards. It uses `rendering: custom` plus a complete behavior paragraph, remains initially unselected, and enters the confirmed contract only when the user chooses it. A template-backed proposal must honor inherited identity and the confirmed template-application plan.+Every coordinated Stage-2 direction carries one complete image-rendering candidate even when `recommend.image_usage` does not include `ai`. The UI keeps rendering controls hidden until the current source selection includes AI, then exposes the three already-authored project candidates without another backend recommendation. A candidate may use `rendering: custom` plus a complete behavior paragraph. A template-backed proposal must honor inherited identity and the confirmed template-application plan.**Hard rule — `rendering_behavior` prose**:@@ -69,9 +69,9 @@ Whenever proposed image usage includes `ai`, Stage 2 authors one separate, visib- image_rendering_behavior: "Hand-screened poster aesthetic — slightly misregistered halftone overlays, 3 flat ink colors with visible dot pattern at 12% opacity, no gradients, no anti-aliased edges; reads as silkscreen print."```-**Hard rule**: the custom candidate is mandatory when AI images are proposed; selecting `custom` is a tail-case, not the default. See [`strategist-image.md`](../strategist-image.md) for the Stage-2 carrier and downstream lock behavior.+**Hard rule**: three complete rendering candidates are mandatory in every fresh Stage-2 direction set; AI source recommendation remains independent. See [`strategist-image.md`](../strategist-image.md) for the Stage-2 carrier and downstream lock behavior.-Write `image_rendering_references` only when the custom direction actually uses catalog material. Keep the list exact: a blend of `screen-print` and `watercolor` reads both files and lists both ids. A genuinely new rendering with no catalog source omits the field and proceeds from its standalone behavior; never invent a reference merely to legitimize `custom`.+Write `image_rendering_references` only when the confirmed custom direction actually uses catalog material. Keep the list exact: a blend of `screen-print` and `watercolor` lists both ids. A genuinely new rendering with no catalog source omits the field and proceeds from its standalone behavior; never invent a reference merely to legitimize `custom`.---diff --git a/skills/ppt-master/references/modes/_index.md b/skills/ppt-master/references/modes/_index.mdindex 34026dd7..5040f90e 100644--- a/skills/ppt-master/references/modes/_index.md+++ b/skills/ppt-master/references/modes/_index.md@@ -8,7 +8,7 @@ A **mode** is the deck's **narrative + persuasion skeleton** — how the argumen## 1. Catalog (5 modes)-Each mode has its own file with: narrative skeleton, page-structure tendencies, speaker-notes register, and a page skeleton example. Default reads the locked preset file; Quick reads the preset it resolves in active context. A catalog-based `custom` reads every preset actually used as a basis; a novel `custom` reads none. Never glob the directory.+Each mode keeps its own authoritative file with: narrative skeleton, page-structure tendencies, speaker-notes register, and a page skeleton example. Every Default and Quick Generate run reads this index plus all five sibling mode files once as one deterministic batch before choosing or realizing a direction. Keep the files separate and preserve their boundaries in the batch; exact `mode_references` identify the sources actually used by a custom direction, not which files enter context.| Mode | Narrative skeleton | Best for ||---|---|---|@@ -53,8 +53,8 @@ Each mode has its own file with: narrative skeleton, page-structure tendencies,| Active profile | Use ||---|---|-| Default Generate | Strategist reads this index at confirmation `d. Layer 1`, authors the required candidate set, records the confirmed mode in `design_spec.md`, and projects it to `spec_lock.md`; Executor reads the locked preset or exact custom references |-| Quick Generate | The current main agent reads this index, resolves the best-fit preset or one warranted custom behavior without interaction, reads only the exact preset source(s) actually used, and keeps the result in active context without Design Spec/lock |+| Default Generate | Strategist and Executor each read this index plus every sibling mode file once per valid role context. Strategist authors the candidate directions, records the confirmed mode in `design_spec.md`, and projects it to `spec_lock.md`; Executor applies that selected value from the already-loaded catalog. |+| Quick Generate | The current main agent reads this index plus every sibling mode file once, resolves the best-fit preset or one warranted custom behavior without interaction, and retains the full catalog in active context without Design Spec/lock. |**Resolution scope**: deck-wide (one mode per deck). The five are the catalog you select from; if the structure is genuinely mixed, pick the mode of the body pages and let pages vary within it, or use a warranted `custom` blend (§4). Default recommends and confirms; Quick decides directly.@@ -64,11 +64,11 @@ Each mode has its own file with: narrative skeleton, page-structure tendencies,`custom` holds **any bespoke narrative direction the five don't give as-is** — and what *kind* of thing it is doesn't matter. It might be a nameable cadence (dialectic 正反合, myth-vs-reality, countdown / Top-N, Socratic), a deliberate multi-act fusion of several modes, or the user's own feel for how the deck should carry (confrontational here, detached there). Don't try to taxonomize it.-**Default candidate**: Stage 2 includes one visible, non-empty AI custom proposal beside the five presets, spelling out the cadence / fusion / posture in plain language. It is initially unselected and does not replace the best-fit preset recommendation unless the user already supplied that exact custom direction; with a template, it must fit available prototype capacity. When the user selects it, the editable prose is saved as `mode: custom` plus `mode_behavior`; otherwise it remains recommendation-only. The Strategist crystallizes a selected custom direction in the Design Spec first, then projects the behavior and any actual catalog basis to `spec_lock.md`. The Executor reads every listed basis file before following that prose, or follows it directly when the direction is novel.+**Default candidate**: Each coordinated Stage-2 direction may use one preset or one visible, non-empty `custom` cadence / fusion / posture. A custom direction carries editable `mode_behavior` and fits any installed template capacity. The Strategist crystallizes the confirmed current value in the Design Spec first, then projects its behavior and actual catalog basis to `spec_lock.md`. The full catalog is already loaded; references preserve provenance and synthesis intent rather than trigger extra reads.-**Quick custom**: do not author or display a candidate set. Use `custom` only when no single preset supplies the dominant spine, resolve its behavior directly in active context, and read every catalog source actually used as a basis. Persist nothing.+**Quick custom**: do not display a candidate set. Use `custom` only when no single preset supplies the dominant spine, resolve its behavior from the fully loaded catalog in active context, and persist nothing.-**Mandatory — read every catalog source actually used**: If a custom direction combines or borrows an existing mode, name its exact catalog id and read that mode file before writing the synthesis. A `pyramid` + `narrative` fusion therefore reads both [`pyramid.md`](./pyramid.md) and [`narrative.md`](./narrative.md). Default writes `mode_references: pyramid, narrative` beside `mode_behavior`; Quick retains those bases only in active context. Do not add loosely related references after the fact. A genuinely new cadence reads no catalog source.+**Mandatory — name every catalog source actually used**: If a custom direction combines or borrows existing modes, name their exact ids after comparing the complete catalog. A `pyramid` + `narrative` fusion therefore writes `mode_references: pyramid, narrative` beside `mode_behavior`; Quick retains those bases only in active context. Do not add loosely related references after the fact. A genuinely new cadence names no catalog source.> **One value per deck — fusion is *one* `custom`, not several modes.** A deck always resolves a single `mode`. A multi-mode blend is expressed as **one** custom behavior whose paragraph describes the acts — never as several simultaneous modes.>diff --git a/skills/ppt-master/references/strategist-image.md b/skills/ppt-master/references/strategist-image.mdindex 8b726bcb..64b82596 100644--- a/skills/ppt-master/references/strategist-image.md+++ b/skills/ppt-master/references/strategist-image.md@@ -2,15 +2,15 @@# Strategist Image Planning-Conditional extension for formula assets, proposed / confirmed image elaboration, AI rendering selection, and `design_spec.md §VIII` resource planning.+Always-on Stage-2 rendering-candidate extension plus conditional formula assets, confirmed image elaboration, and `design_spec.md §VIII` resource planning.-**Trigger**: Load before Stage-2 directions for a proposed non-`none` source, an explicit non-`none` constraint, or formulas. If confirmed `none` becomes non-`none`, load after Stage 2 without backfilling candidates. Confirmed `none` without formulas stops before resources. A formula-only path reads §3 and §4 formula rows only. [`strategist.md`](./strategist.md) owns source recommendation; this module owns image-dependent candidates, production detail, and §VIII rows.+**Trigger**: Load before every fresh Stage-2 direction set and apply §2 after reading the complete image-rendering catalog. [`strategist.md`](./strategist.md) independently owns source recommendation. A confirmed non-`none` source activates the applicable resource-planning sections; confirmed `none` without formulas stops before resources, while a formula-only path applies §3 and §4 formula rows only. Rendering candidates are authored once before confirmation and never backfilled from a later source toggle.---## 1. Proposed and Confirmed Image Plan-Before Stage 2, use proposed sources only for candidate construction. After confirmation, discard candidate-only sources, map the confirmed set through [`strategist.md`](./strategist.md) §h, and honor explicit `image_notes` roles; this module never adds a source. The confirmed non-`none` set is an allowed acquisition boundary, not coverage: use a suitable subset and leave irrelevant sources unused. Explicit must-use sources, assets, or page roles remain required. Asset inventory and judgment determine unconfirmed count, subject, placement, and composition without substituting an unconfirmed source.+Before Stage 2, construct rendering candidates independently of the proposed source set. After confirmation, map the confirmed source set through [`strategist.md`](./strategist.md) §h and honor explicit `image_notes` roles; this module never adds a source. The confirmed non-`none` set is an allowed acquisition boundary, not coverage: use a suitable subset and leave irrelevant sources unused. Explicit must-use sources, assets, or page roles remain required. Asset inventory and judgment determine unconfirmed count, subject, placement, and composition without substituting an unconfirmed source.For illustration, apply this precedence: confirmed `none` → explicit user intent → the locked visual style's `Illus.` propensity (`core` / `supportive` / `sparse`) → none. Propensity controls the lean, not the source or a page quota. When illustration is active, prefer one coherent motif family across hero/section anchors and local spots, but only when the confirmed assets can form that family.@@ -18,13 +18,13 @@ For illustration, apply this precedence: confirmed `none` → explicit user inte**Default — one coherent sheet for compatible same-family spots (may override when aspect, detail, quality, or semantic needs differ)**: prefer one Illustration Sheet when several AI-generated spots can share a useful cell shape and production treatment; generate them independently when forcing one sheet would weaken a planned element. When a sheet is chosen, plan one unplaced `ai` Illustration Sheet row plus one placed `slice` row per used element; only slice rows enter `spec_lock.md images`. State the intended placement shape family in the sheet reference and use separate sheets for incompatible shapes. [`image-generator.md`](./image-generator.md) §4.3 owns grid, ratio, slicing, and execution details. Final Stage 2 chooses the AI execution path under `image-generator.md` §7; do not pre-empt or re-pick it here.-## 2. AI Image Strategy — propose only for recommended `ai`; lock any confirmed `ai`+## 2. AI Image Strategy — always propose three; lock only for confirmed `ai`-When proposed sources include `ai`, read [`image-renderings/_index.md`](./image-renderings/_index.md) before constructing Stage 2. Unless the user or active template already names a rendering, place at least three credible, distinct preset renderings across the coordinated safe/shifted/bold directions; a genuine compatibility shortfall may return fewer with a reason. Each preset `image_strategy` carries localized `rendering`, `visual`, and `mood` only. Mood includes a recognizable real-world analogy. Image colors always inherit that direction's deck HEX roles; never add an image palette or alter deck colors to rescue a rendering.+Read [`image-renderings/_index.md`](./image-renderings/_index.md) plus all 20 sibling rendering files once as one deterministic, boundary-preserving batch before constructing Stage 2. First author exactly three complete, project-fit solution directions, then project one complete `image_strategy` into each direction regardless of `recommend.image_usage`. Each candidate carries localized `name`, `rendering`, `visual`, and `mood`; `custom` also carries non-empty localized `behavior`. Mood includes a recognizable real-world analogy. All three must credibly serve their owning whole solution, but they need not use different rendering ids or span artificial safe / shifted / bold extremes. Image colors always inherit that direction's deck HEX roles; never add an image palette or alter deck colors to rescue a rendering.-Also write one `custom_candidates.image_strategy` under the Confirm UI contract: localized `name` / `visual` / `mood`, `rendering: custom`, and non-empty localized `behavior` satisfying the catalog grammar. If it combines or borrows existing renderings, name every exact id in the visible proposal and read every corresponding `image-renderings/<id>.md` before writing the synthesis. If it is genuinely novel, read no preset file and name no catalog basis. Keep it unselected unless the user supplied it (`recommend.image_strategy: custom`); under a template it obeys inherited identity and application. Only a selected custom locks its edited behavior as `image_rendering_behavior`; when catalog material is actually used, also project the exact ids as `image_rendering_references`, otherwise omit that field. Discard an unselected candidate downstream. Ignore legacy `image_palette`.+A direction may use a preset or a `custom` synthesis. If a custom candidate combines or borrows existing renderings, name every exact id in its visible behavior after comparing the complete catalog; if it is genuinely novel, name no catalog basis. Under a template it obeys inherited identity and application. Only a confirmed custom locks its edited behavior as `image_rendering_behavior`; when catalog material is actually used, also project the exact ids as `image_rendering_references`, otherwise omit that field. Unselected candidates remain recommendation-only. Do not write a separate fourth `custom_candidates.image_strategy`; ignore legacy `image_palette`.-Post-confirmation AI activation creates no candidates: read the selected preset, or consume custom behavior/references.+The UI hides these candidates while AI is not selected. If the user adds AI, it reveals the already-authored three without another backend recommendation; source selection never creates or rewrites rendering candidates. After confirmation, Image_Generator reads only the selected preset or exact custom references and must not blend unselected candidate identities.For specialized or regulated paper-figure subjects, preserve the prompt depth required by [`image-generator.md`](./image-generator.md) §4.2 rather than shortening to a generic brief. Scan the outline for genuine image-led pages, list the proposed hero pages in Stage-2 `image_notes` so the user can retain, edit, or remove them in the same confirmation, then mark only the confirmed pages' AI rows `page_role: hero_page`; local is the default. `text_policy: embedded` is reserved for stable figure-internal identifiers or lettering deliberately fused into the artwork; page titles, editable data values/labels, and prose remain SVG. Resolve confirmed provided assets through the context-first boundary above before writing §VIII.diff --git a/skills/ppt-master/references/strategist-template.md b/skills/ppt-master/references/strategist-template.mdindex 63f55291..127971af 100644--- a/skills/ppt-master/references/strategist-template.md+++ b/skills/ppt-master/references/strategist-template.md@@ -68,7 +68,7 @@ When the communication contract conflicts with the workspace, choose and state t> Internal note: `content_divergence` controls source reorganization; the AI-derived `template_reuse_scope` records the reused layer; `template_adherence` records whether a structured plan keeps or extends existing Layout identities.-**Template design precedence**: Explicit current user instructions and final confirmation win. Brand identity overrides Deck identity, Layout structure overrides Deck structure, and Deck retains only its non-overridden integrated segments plus reusable application context. Style owns Direction / method only: its color, typography, icon, and image values are candidate defaults and never override resolved Brand/Deck identity or become official facts. Preferred Mode / Visual Style values seed Stage 2; the Style overlay must resolve into the final single `mode` and `visual_style` lock rather than create a parallel narrative or aesthetic authority. Style takes this segment ahead of ordinary Stage-2 defaults; actual Deck prototypes and Signature facts remain compatibility constraints, not a second method owner. Library/explicit provenance never changes this order. Each of ≥3 directions still carries six palette roles and complete fonts: repeat fixed Brand/Deck values with `typography.fixed: true`; adapt Style candidates to that identity and vary only open roles. Keep resolved icon and image constraints. Style Review Focus never activates [`visual-review`](../workflows/stages/visual-review.md); only an explicit user request does.+**Template design precedence**: Explicit current user instructions and final confirmation win. Brand identity overrides Deck identity, Layout structure overrides Deck structure, and Deck retains only its non-overridden integrated segments plus reusable application context. Style owns Direction / method only: its color, typography, icon, and image values are candidate defaults and never override resolved Brand/Deck identity or become official facts. Preferred Mode / Visual Style values seed Stage 2; the Style overlay must resolve into the final single `mode` and `visual_style` lock rather than create a parallel narrative or aesthetic authority. Style takes this segment ahead of ordinary Stage-2 defaults; actual Deck prototypes and Signature facts remain compatibility constraints, not a second method owner. Library/explicit provenance never changes this order. Each of the three directions still carries six palette roles and complete fonts: repeat fixed Brand/Deck values with `typography.fixed: true`; adapt Style candidates to that identity and vary only open roles. Keep resolved icon and image constraints. Style Review Focus never activates [`visual-review`](../workflows/stages/visual-review.md); only an explicit user request does.---diff --git a/skills/ppt-master/references/strategist.md b/skills/ppt-master/references/strategist.mdindex 3a0088c7..59f0a62c 100644--- a/skills/ppt-master/references/strategist.md+++ b/skills/ppt-master/references/strategist.md@@ -36,7 +36,7 @@ solution + production gate:| **1 — communication contract + template choice** | `primary_language` · `c` audience · open-ended communication intent · audience outcome · core message / delivery context (primary + optional secondary) / artifact afterlife · `content_divergence` (all prose fields may be blank) · `a` canvas · explicit `free_design` or `templates` choice and selected roots | confirmed together; candidate workspaces do not influence the communication recommendation || **2 — final solution + production** (authored once from the user's *actual* Stage 1) | reading mode (`delivery_purpose`, PPT only) · `d` mode + visual style · `b` page count · `e` color · `f` icon · `g` typography · `h` image source + generated-image rendering · conditional natural-language template application · formula policy · conditional AI-image acquisition path · generation mode · refine-spec toggle · proactive speaker notes / custom animations / narration audio | derived as one coherent plan from the confirmed contract; internal template exporter modes remain hidden |-Do not force communication intent into one catalog label; Stage 1 records composite intent in prose. Editable prose fields are recommendation drafts, not required inputs: confirmation preserves current text and blanks; never repopulate a cleared field. Stage 2 confirms narrative spine, reading density, page budget, visual system, image direction, production mechanics, and how any installed template should be used. It never chooses or installs a template. Inspect only project-local template spec/prototypes, present one editable application plan, and keep exporter reuse/adherence internal. Present ≥3 coordinated safe / shifted / bold directions so color, type, icons, and generated-image rendering begin coherent; the user may override each component. Generated images inherit deck colors—there is no second image palette. Proactive defaults are speaker notes `true`, custom animations `false`, and narration audio `false`; a prior explicit user instruction overrides the matching recommendation, and effective narration audio requires effective speaker notes. Author each stage once; same-stage edits update only visible browser state through documented deterministic dependencies, without another AI/backend recommendation. Launch/derive/wait mechanics live in [`generate-pptx.md`](../workflows/generate-pptx.md) Step 4; item specs keep `a`–`h`.+Do not force communication intent into one catalog label; Stage 1 records composite intent in prose. Editable prose fields are recommendation drafts, not required inputs: confirmation preserves current text and blanks; never repopulate a cleared field. Stage 2 confirms narrative spine, reading density, page budget, visual system, image direction, production mechanics, and how any installed template should be used. It never chooses or installs a template. Inspect only project-local template spec/prototypes, present one editable application plan, and keep exporter reuse/adherence internal. First author exactly three complete, project-fit solution directions from the confirmed contract and source; only then project each direction into mode, visual style, color, type, icons, and generated-image rendering for lower-level adjustment. All three must be viable and meaningfully distinguishable as whole solutions, but do not force safe / shifted / bold archetypes, different catalog ids, or artificial extremes. Every direction carries a complete generated-image rendering candidate even when AI imagery is not recommended; `recommend.image_usage` independently decides whether AI is proposed. Generated images inherit deck colors—there is no second image palette. Proactive defaults are speaker notes `true`, custom animations `false`, and narration audio `false`; a prior explicit user instruction overrides the matching recommendation, and effective narration audio requires effective speaker notes. Author each stage once; same-stage edits update only visible browser state through documented deterministic dependencies, without another AI/backend recommendation. Launch/derive/wait mechanics live in [`generate-pptx.md`](../workflows/generate-pptx.md) Step 4; item specs keep `a`–`h`.**Hard rule — Stage-1 source boundary**: Build the communication recommendation only from the current user request, source facts, conversation constraints, and project-initialization state. Author it before loading index summaries for a chat listing, and do not read any candidate spec, prototype, asset, or template-owned canvas. The same Stage-1 surface may display template controls, but their values are confirmation state, not recommendation evidence. Do not load or apply [`strategist-template.md`](./strategist-template.md) until Stage 1 is confirmed and the selected workspace has been installed for Stage 2.@@ -44,7 +44,7 @@ Do not force communication intent into one catalog label; Stage 1 records compos>> **One opt-in exception**: present the refinement line with the split-mode note ([`generate-pptx.md`](../workflows/generate-pptx.md) Step 4). Only explicit opt-in runs [`refine-spec`](../workflows/stages/refine-spec.md): write the Design Spec once, pass Gate 1, then stop before the lock for unrestricted chat revision. Never enter it unprompted.-> **Default presentation surface — Confirm UI.** Before the first actual confirmation phase, apply [`confirm_ui.md`](../scripts/docs/confirm_ui.md)'s sticky per-run surface decision; its explicit chat branch skips every UI command, and a chat selection after UI launch follows its in-run switch procedure. Chat-question tools alone do not select a branch. In the UI branch, `template_options.json` and `recommendations.stage1.json` open one Stage-1 page; its single submission writes the pure Strategist `result.json` plus the sidecar `template_selection.json`. After installation/free-design closure, `template_handoff.json` gates `.stage2.json`. The chat/delegated branch keeps equivalent state without fabricating those receipts. Replace only the active unconfirmed stage and print the URL plus combined Stage-1 summary/fallback without treating that handoff as confirmation. Stage 1 writes canonical BCP-47 `primary_language` apart from UI `lang`; Strategist projects it through Design Spec §I to lock communication. Stage 2 carries ≥3 safe / shifted / bold `design_directions`, each bundling visual style, a six-role HEX palette, primary-language heading/body typography plus an English companion only for non-English decks, icons, and conditional image rendering, plus the production fields above. Step 4 retains final confirmation from the selected channel for Design Spec authoring. `confirm_ui.md` owns selection-surface and staged-confirmation lifecycle.+> **Default presentation surface — Confirm UI.** Before the first actual confirmation phase, apply [`confirm_ui.md`](../scripts/docs/confirm_ui.md)'s sticky per-run surface decision; its explicit chat branch skips every UI command, and a chat selection after UI launch follows its in-run switch procedure. Chat-question tools alone do not select a branch. In the UI branch, `template_options.json` and `recommendations.stage1.json` open one Stage-1 page; its single submission writes the pure Strategist `result.json` plus the sidecar `template_selection.json`. After installation/free-design closure, `template_handoff.json` gates `.stage2.json`. The chat/delegated branch keeps equivalent state without fabricating those receipts. Replace only the active unconfirmed stage and print the URL plus combined Stage-1 summary/fallback without treating that handoff as confirmation. Stage 1 writes canonical BCP-47 `primary_language` apart from UI `lang`; Strategist projects it through Design Spec §I to lock communication. Stage 2 carries exactly three immutable `design_directions`, each with a unique stable id and complete mode, visual style, six-role HEX palette, primary-language heading/body typography plus an English companion only for non-English decks, icons, and generated-image rendering. A direction card applies its whole bundle; lower controls may then diverge, and clicking that card again restores the authored bundle. The final result stores only the current component values, never the direction id as execution authority. Step 4 retains final confirmation from the selected channel for Design Spec authoring. `confirm_ui.md` owns selection-surface and staged-confirmation lifecycle.**Confirmed-value semantics**: confirmation preserves both the value and the owning field's semantic type. Apply the type to the affected property, not automatically to the whole object:@@ -123,37 +123,37 @@ When authoring §IX, translate every purpose named in `communication_intent` intTwo independent layers, each locks one preset or `custom`. Output: `d. Mode: <mode> + Visual style: <visual_style>`.-> **Mandatory AI custom candidates.** Every `recommendations.stage2.json` carries visible, non-empty `custom_candidates.mode` and `.visual_style`, initially unselected unless the user supplied that exact direction. If a proposal combines or borrows catalog entries, read every named entry file before authoring the synthesis and name those exact ids in the visible proposal; a genuinely novel proposal needs no catalog reference. If selected, spell the proposal out in plain language and save literal `custom` plus the edited `mode_behavior` / `visual_style_behavior`; otherwise it remains recommendation-only. Never write bespoke prose as the enum value.+> **Top-down direction construction.** Author the three complete solution directions before selecting their component values; do not assemble three apparent solutions afterward from independent mode/style/color recommendations. Each direction may use presets, `custom`, or repeated fixed values. A `custom` component carries visible, non-empty behavior prose and exact references only when it actually synthesizes catalog material. The three direction projections are the project-specific component candidates shown above the complete base catalogs; they are not a separate fourth Custom proposal. Never write bespoke prose as the enum value.#### Layer 1 — Communication mode-🚧 **GATE**: read [`modes/_index.md`](./modes/_index.md) before recommending.+🚧 **GATE**: read [`modes/_index.md`](./modes/_index.md) plus all five sibling mode files once as one deterministic, boundary-preserving batch before authoring the three directions.The deck's **narrative + persuasion skeleton** — how the argument is organized and advanced. Lock one preset from `pyramid` / `narrative` / `instructional` / `showcase` / `briefing`, or `custom` with behavior.**Source**:- User supplied their own outline / structure → preserve its facts and intended relationships, then apply the confirmed `content_divergence`. Treat an ordinary source outline as a Reference: regroup, reorder, or retitle when the communication contract benefits. Treat it as authoritative only when the user presents it as the final page plan or explicitly asks to preserve page order, titles, or wording; record that promoted boundary in `design_spec.md`. Still lock a mode for register, voice, and any permitted reshaping. `briefing` imposes the least if no particular "讲法" is intended.- Beautify / re-layout profile ([`beautify-pptx.md`](../workflows/profiles/beautify-pptx.md)) → the extracted source content is authoritative and **verbatim**, one step stricter than the user-outline case above. Each source slide becomes exactly one `§IX` page in source order; transcribe every content block word-for-word — never reshape / re-primary / condense / merge / split / reword. Lock `mode: briefing`; color (e) and typography (g) are whatever the user confirmed in the beautify plan — the source identity (theme or observed) by default, or a content / brand-aware alternative the beautify plan offered and the user picked — locked as truth (the beautify plan already ran the recommendation through the confirm UI, so do not re-recommend here). Charts / tables / images are regenerated from their extracted data in the inherited style: record only selected catalog references in §VII, keep unmatched chart/table plans in their §IX page blocks, and route pictures to §VIII. Data values stay frozen and the rendering is the deck's own; visuals are never carried over verbatim. Layout, hierarchy, rhythm, and visual rendering are what gets redesigned.-- A bespoke direction the five don't give — a nameable cadence (dialectic 正反合, myth-vs-reality, countdown, Socratic), a multi-act fusion of modes, or the user's own feel (confrontational here, detached there). Either the user asks, **or you recommend it** when a fusion / bespoke direction genuinely serves the deck better than a single preset (a recommendation the user confirms, like every lock). The *kind* doesn't matter → `mode: custom` + a `mode_behavior:` paragraph that **crystallizes the intent** (act sequence or posture shifts, title voice, page rhythm, register) concretely enough for the Executor to follow per page; it reads only `spec_lock.md`, never the chat. If the direction uses existing modes, read every corresponding `modes/<id>.md` before synthesis and retain those exact ids as its catalog basis; if it is genuinely new, do not invent a basis. One deck locks **one** value — a fusion is one `custom` describing the acts, never several modes. Avoid only the *dodge*: don't default to `custom` when a preset genuinely fits, and prefer a dominant mode + page-level variation when one mode leads.-- No user structure or cadence → recommend from the confirmed `communication_intent`, `audience_outcome`, source texture, and delivery context using the index's auto-selection table. Composite intent does not automatically require `custom`: choose the dominant spine of the body pages when one exists; use a concrete `custom` act sequence only when no single spine can serve the stated priority / sequence. Present as a recommendation; the user may override.+- A bespoke direction the five don't give — a nameable cadence (dialectic 正反合, myth-vs-reality, countdown, Socratic), a multi-act fusion of modes, or the user's own feel (confrontational here, detached there). Either the user asks, **or you recommend it** when a fusion / bespoke direction genuinely serves the deck better than a single preset (a recommendation the user confirms, like every lock). The *kind* doesn't matter → `mode: custom` + a `mode_behavior:` paragraph that **crystallizes the intent** (act sequence or posture shifts, title voice, page rhythm, register) concretely enough for the Executor to follow per page; it reads only `spec_lock.md`, never the chat. If the direction uses existing modes, retain those exact ids as its catalog basis; if it is genuinely new, do not invent a basis. One deck locks **one** value — a fusion is one `custom` describing the acts, never several modes. Avoid only the *dodge*: don't default to `custom` when a preset genuinely fits, and prefer a dominant mode + page-level variation when one mode leads.+- No user structure or cadence → derive each whole solution from the confirmed `communication_intent`, `audience_outcome`, source texture, and delivery context, then project its mode. Composite intent does not automatically require `custom`: choose the dominant spine of the body pages when one exists; use a concrete `custom` act sequence only when no single spine can serve the stated priority / sequence. The three whole solutions may share a mode when that is honestly best; distinguish them through the fields that materially change the outcome instead of forcing different mode ids.-Record the confirmed mode and rationale in `design_spec.md` first, including the exact catalog basis when a selected custom uses one. Then project `- mode:` to `spec_lock.md`; for `custom`, also project `- mode_behavior:` and, only when catalog material is actually used, `- mode_references: <id>, <id>`. Executor reads one file for a preset. For `custom`, it reads every listed reference before applying the behavior; an unreferenced novel custom follows the behavior directly.+Record the confirmed mode and rationale in `design_spec.md` first, including the exact catalog basis when a selected custom uses one. Then project `- mode:` to `spec_lock.md`; for `custom`, also project `- mode_behavior:` and, only when catalog material is actually used, `- mode_references: <id>, <id>`. Executor has the complete mode catalog in its execution context; references preserve provenance and synthesis intent, while an unreferenced novel custom follows the behavior directly.#### Layer 2 — Visual style-🚧 **GATE**: read [`visual-styles/_index.md`](./visual-styles/_index.md) before recommending.+🚧 **GATE**: read [`visual-styles/_index.md`](./visual-styles/_index.md) plus all 18 sibling style files once as one deterministic, boundary-preserving batch before authoring the three directions.The deck's **visual aesthetic** — shape language, decoration density, whitespace rhythm, typographic character, texture. Anchors downstream fields e (Color), f (Icon), g (Typography), h (Image). Lock one preset from the catalog, or `custom`.**Source**:-- User named a style (chat / template / beautify) → it is truth: map to the closest preset (or `custom` with a `visual_style_behavior` paragraph) and lock directly. **Skip the spectrum below** — do not re-offer choice they already made.-- No user description → **present a personality spectrum, not one safe pick** (this is the lever against "every deck looks the same" — the visual style is what most determines a deck's character, so it gets real choice, like the alternative-set rule used for image rendering). Author **≥3 distinct styles** from the index's auto-selection table spanning *safe* (the industry-norm recommendation) → *shifted* (an alternate one tick more expressive) → *bold* (a characterful style that challenges the default — `brutalist` / `zine` / `memphis` / `ink-wash` / `vintage-poster` etc., whenever the content can carry it). Give each a one-line **temperament tag + real-world analogy** (for example, "like an Economist feature"). Write the three to `recommendations.stage2.json` `visual_style_spectrum` (each `{id, tag_zh/en/ja, note_zh/en/ja}` — include the `_ja` variants whenever the page `lang` is `ja`) **and present the same three in chat** as the always-valid fallback; set `recommend.visual_style` to the *safe* pick as the pre-selected default. The user may pick any of the three or the separate full-copy Custom proposal. Honest-shortfall may reduce the preset set, never remove Custom.+- User named a style (chat / template / beautify) → it is truth: map to the closest preset (or `custom` with a `visual_style_behavior` paragraph) and repeat that fixed value across all three directions. Keep the three whole solutions meaningful by varying only fields the user left open.+- No user description → author three project-fit whole solutions first, then project each solution's complete visual aesthetic. A projected value may be one preset or a `custom` synthesis; the directions may share catalog bases when their overall systems still differ meaningfully. Do not force different style ids, a safe-to-bold ladder, or one deliberately extreme option merely to manufacture variety. Give each direction a localized name and concise real-world outcome note; the Confirm UI derives three project-specific style candidates from those directions and then exposes all 18 base styles for manual selection.-**Forbidden — a non-catalog name as `visual_style`**: the value MUST be an `id` from the visual-styles catalog or literal `custom`; bespoke prose belongs only in `visual_style_behavior`. A name that is **not** in that catalog is not a visual style — most often it is an image-rendering name from the `_index` "Paired rendering" column (`flat`, `vector-illustration`, `digital-dashboard`, `3d-isometric`, `corporate-photo`, …), which names the §h *illustration* family, not the deck's layout aesthetic. Do not borrow it. (Names that are intentionally **both** a style and its paired rendering — `glassmorphism`, `blueprint`, `editorial`, `dark-tech` — are valid styles because they *are* in the catalog.) Generic baseline words — `flat` / flat-design / 扁平 / modern / clean / simple / minimal — are **not** custom-worthy either: the whole system is flat by default (shadows discouraged), so map them to the closest preset (flat + grid → `swiss-minimal`; flat + rounded → `soft-rounded`; flat + dense → `brutalist`). Reserve a custom lock for an aesthetic no preset covers; the mandatory candidate does not make it the default.+**Forbidden — a non-catalog name as `visual_style`**: the value MUST be an `id` from the visual-styles catalog or literal `custom`; bespoke prose belongs only in `visual_style_behavior`. A name that is **not** in that catalog is not a visual style — most often it is an image-rendering name from the `_index` "Paired rendering" column (`flat`, `vector-illustration`, `digital-dashboard`, `3d-isometric`, `corporate-photo`, …), which names the §h *illustration* family, not the deck's layout aesthetic. Do not borrow it. (Names that are intentionally **both** a style and its paired rendering — `glassmorphism`, `blueprint`, `editorial`, `dark-tech` — are valid styles because they *are* in the catalog.) Generic baseline words — `flat` / flat-design / 扁平 / modern / clean / simple / minimal — are **not** custom-worthy either: the whole system is flat by default (shadows discouraged), so map them to the closest preset (flat + grid → `swiss-minimal`; flat + rounded → `soft-rounded`; flat + dense → `brutalist`). Reserve a custom lock for an aesthetic no preset covers.**Carries no color.** A visual style governs how the deck's HEX (locked at `e`) is *used* — never which colors, same discipline as [`image-renderings`](./image-renderings/_index.md). When the deck has AI images, prefer the style's paired rendering so layout and illustration share one aesthetic.-Record the confirmed visual style and rationale in `design_spec.md` first, including the exact catalog basis when a selected custom uses one. Then project `- visual_style:` to `spec_lock.md`; for `custom`, also project `- visual_style_behavior:` and, only when catalog material is actually used, `- visual_style_references: <id>, <id>`. Executor reads one file for a preset. For `custom`, it reads every listed reference before applying the behavior; an unreferenced novel custom follows the behavior directly.+Record the confirmed visual style and rationale in `design_spec.md` first, including the exact catalog basis when a selected custom uses one. Then project `- visual_style:` to `spec_lock.md`; for `custom`, also project `- visual_style_behavior:` and, only when catalog material is actually used, `- visual_style_references: <id>, <id>`. Executor has the complete style catalog in its execution context; references preserve provenance and synthesis intent, while an unreferenced novel custom follows the behavior directly.**Conditional template workspace**: When the Stage-1 template choice has been installed into `<project_path>/templates/`, read [`strategist-template.md`](./strategist-template.md) before completing Stage 2. Read the installed project-local spec and prototypes only; never reopen the library/external source root. The module owns the editable natural-language application plan, confirmed-value consumption, AI-authored prototype selection, internal reuse/adherence derivation, inherited design precedence, and structured-lock planning. This plan decides how to use the installed template, never which template to select. Bare names, style words, and free-design projects do not trigger it.@@ -161,7 +161,7 @@ Record the confirmed visual style and rationale in `design_spec.md` first, inclu### e. Color Scheme Recommendation-**Hard rule**: User-specified colors are truth. Lock supplied HEX, brand colors, or natural-language directives; templates follow inherited-design precedence. Even direct locks fill all six roles (`background`, `secondary_bg`, `primary`, `accent`, `secondary_accent`, `body_text`) in each of ≥3 directions: repeat fixed roles and vary only open ones. Never emit an empty palette. Keep body-text contrast at least 4.5:1 and preserve confirmed/brand semantic roles.+**Hard rule**: User-specified colors are truth. Lock supplied HEX, brand colors, or natural-language directives; templates follow inherited-design precedence. Even direct locks fill all six roles (`background`, `secondary_bg`, `primary`, `accent`, `secondary_accent`, `body_text`) in each of the three directions: repeat fixed roles and vary only open ones. Never emit an empty palette. Keep body-text contrast at least 4.5:1 and preserve confirmed/brand semantic roles.**Reference — not a constraint**: Without user/template colors, propose project-specific directions from content and style. `scripts/config.py` industry colors and dominant/support/accent hierarchy are recall aids, never default locks, ratios, or color-count quotas.@@ -214,11 +214,11 @@ See [`../templates/icons/README.md`](../templates/icons/README.md) for the curre### g. Typography Plan Confirmation (Font + Size)-🚧 **GATE**: Read the locked preset visual-style file's §2 Typography character before recommending type. For a custom style, first read every file in `visual_style_references` when present, then resolve their typography character under `visual_style_behavior`; a novel custom uses the behavior directly. The title carries the character; the body may remain neutral.+🚧 **GATE**: The complete visual-style catalog is already loaded. Apply the projected preset's §2 Typography character, or resolve a custom synthesis under `visual_style_behavior` and its exact `visual_style_references`. The title carries the character; the body may remain neutral.**Family selection**:-- User/template typography is authoritative. Repeat fixed stacks with `typography.fixed: true` in every direction; never vary them for diversity. Keep ≥3 directions distinct as full bundles; reasonable font repetition is non-blocking, with no extra font round.+- User/template typography is authoritative. Repeat fixed stacks with `typography.fixed: true` in every direction; never vary them for diversity. Keep the three directions distinguishable as full bundles; reasonable font repetition is non-blocking, with no extra font round.- Every Stage-2 direction carries `heading` / `body` `primary`, `css`, and positive `body_size`; add `english` only when the deck's main language is not English.- Use concrete, target-installed PowerPoint faces. The Confirm UI font catalog supplies additional manual dropdown choices, not a recommendation whitelist.- Keep stacks to four families or fewer. A brand/web face may lead only after user-confirmed target installation/approved install; PPT Master does not embed fonts. Otherwise export a safe face and keep the unavailable face as Design Spec reference.@@ -251,7 +251,7 @@ Other canvases use the body baseline in [`canvas-formats.md`](canvas-formats.md)Scan §IX before locking. Declare every recurring role, including `lead`, `footnote`, and chart annotations when used; a lead is always at least body size. Give each role one deck-wide anchor and snap derived anchors to clean even px (for body 24, a sound set is title 42, subtitle 32, lead 30, annotation 18, footnote 16). Executor may vary one occurrence within that role's anchor ±2px while preserving hierarchy and readability. A short non-structural Hero/Display size planned for at most two occurrences may remain undeclared; the third planned occurrence makes it recurring and requires an explicit named slot. Structural text never uses this sparse exception.#### Formula Planning Trigger-Formula policy and formula-asset planning are conditional. If the source contains formula-worthy expressions, or the user explicitly requests formula handling, read [`strategist-image.md`](./strategist-image.md) §3 before confirming the production policy or writing formula rows. Load it even when `image_usage` is `none`; otherwise omit formula planning from the core path.+Formula policy and formula-asset planning are conditional. [`strategist-image.md`](./strategist-image.md) is already loaded for Stage-2 rendering candidates; if the source contains formula-worthy expressions, or the user explicitly requests formula handling, apply its §3 before confirming the production policy or writing formula rows. Otherwise omit formula planning from the core path.### h. Image Source Recommendation@@ -267,12 +267,12 @@ Formula policy and formula-asset planning are conditional. If the source contain**Recommendation output**: Write `recommend.image_usage` as one source id or an array for mixed sources. Put page roles, authoritative assets, preferred/avoided imagery, and placeholder tolerance in `image_notes.value`. `none` is exclusive. Human-scale topics such as family life, education, wellness, or children lean `ai` when no supplied asset carries the story; regulated investor decks, B2B finance reports, and data-only dashboards remain eligible for `none` by judgment.-**Confirmed value wins**: Accept the confirmed legacy string or multi-select array. Map `ai→ai`, `web→web`, `provided→user`, and `placeholder→placeholder` into §VIII `Acquire Via`. Until confirmation, a coordinated direction that proposes AI may use the visual style's paired rendering; generated images inherit the deck colors and never introduce a second image-palette choice.+**Confirmed value wins**: Accept the confirmed legacy string or multi-select array. Map `ai→ai`, `web→web`, `provided→user`, and `placeholder→placeholder` into §VIII `Acquire Via`. Every direction already carries a rendering candidate whether or not AI is proposed; generated images inherit the deck colors and never introduce a second image-palette choice.-**Conditional module — two-stage trigger**:+**Always-on decision module; conditional resource extension**:-1. First derive the proposed `recommend.image_usage` in core. If it contains any non-`none` source—especially `ai`—read [`strategist-image.md`](./strategist-image.md) **before authoring the Stage-2 design directions** so rendering and other image-dependent candidate details are real, not backfilled after confirmation. An explicit non-`none` image constraint or the formula trigger from §g activates the module at the same point.-2. Confirmed sources bound production. Non-`none` loads or retains [`strategist-image.md`](./strategist-image.md) for resource planning without backfilling candidates; `none` without formulas writes no image rows.+1. Before authoring Stage-2 directions, read [`strategist-image.md`](./strategist-image.md) plus [`image-renderings/_index.md`](./image-renderings/_index.md) and all 20 sibling rendering files once as one deterministic, boundary-preserving batch. Author one complete rendering candidate inside each direction before deciding whether `recommend.image_usage` includes AI.+2. Independently derive `recommend.image_usage` from source needs. Confirmed non-`none` sources activate the module's resource-planning sections and the image layout references; formulas activate the formula sections even when usage is `none`. Confirmed `none` without formulas writes no image rows, but does not erase the three recommendation-only rendering candidates.The module owns formula policy, AI rendering alternatives, acquisition paths, resource rows, prompt depth, page roles, and placement intent.@@ -286,7 +286,7 @@ user/template requirements bind.| Capability | Opportunity signal | Design Spec handoff ||---|---|---|-| Image composition | Image-as-canvas, editorial crop, collage, cutout, or meaningful focus / comparison / evidence units carry the page better than an adjacent rectangle | Propose a permitted source; when selected, load [`strategist-image.md`](./strategist-image.md), record a concise §VIII `Layout pattern` suggestion, and describe page-level image/overlay relationships in §IX `Layout` / `Images` |+| Image composition | Image-as-canvas, editorial crop, collage, cutout, or meaningful focus / comparison / evidence units carry the page better than an adjacent rectangle | Propose a permitted source; when selected, apply the already-loaded [`strategist-image.md`](./strategist-image.md) resource contract plus the conditional image-layout references, record a concise §VIII `Layout pattern` suggestion, and describe page-level image/overlay relationships in §IX `Layout` / `Images` || Native paint / overlay | Gradient, translucency, scrim, vignette, or wash supports focus, hierarchy, depth, legibility, or image integration | Record purpose/layering in §IX `Layout`, plus `Images` when imagery participates; no new field or type/stops/opacity/coordinates—Executor chooses realization || Native shape / Merge Shapes | A literal Office symbol, a stock bent/curved relationship contour, or a compound silhouette, negative-space cutout, overlap-only region, or meaningful fragmentation strengthens the visual idea | Add an optional §IX `Native shape suggestion` with the semantic result plus a candidate preset/Connector family or Boolean operation/operands || Page transition | A section/state change, spatial continuity, recorded/self-running flow, or the same semantic object changing position, scale, crop, or state across adjacent pages benefits from motion | Add an optional §IX `Motion suggestion` describing the communication job and any continuing object's initial state → action → end state; leave effect, ids, pairing names, and timing to Executor |@@ -393,7 +393,7 @@ Confirmation `d` locks two independent catalog items:- **Mode** — narrative skeleton: [`modes/_index.md`](./modes/_index.md) → `pyramid` / `narrative` / `instructional` / `showcase` / `briefing`.- **Visual style** — aesthetic: [`visual-styles/_index.md`](./visual-styles/_index.md) → presets + `custom`.-Read the relevant `_index.md` at confirmation `d` (Layer 1 / Layer 2) for its catalog table and auto-selection. Executor loads one locked file per preset, or every exact custom reference before applying its behavior (see [`generate-pptx`](../workflows/generate-pptx.md) Step 6).+Strategist reads each index plus every sibling entry once as a deterministic batch before authoring the three complete directions. Executor independently reads both complete catalogs once in its execution context, then applies the confirmed value; `*_references` record only the actual basis of a custom synthesis (see [`generate-pptx`](../workflows/generate-pptx.md) Step 6).---diff --git a/skills/ppt-master/references/visual-styles/_index.md b/skills/ppt-master/references/visual-styles/_index.mdindex b837ec1d..664a5d8e 100644--- a/skills/ppt-master/references/visual-styles/_index.md+++ b/skills/ppt-master/references/visual-styles/_index.md@@ -10,7 +10,7 @@ A **visual style** is how the deck **looks** — shape language, decoration dens## 1. Catalog-Each style has its own file with: shape & decoration, typography character, color-usage discipline (no HEX), texture / elevation, and the paired image-rendering. Default reads the locked preset file; Quick reads the preset it resolves in active context. A catalog-based `custom` reads every preset actually used as a basis; a novel `custom` reads none. Never glob the directory. The catalog mirrors [`image-renderings`](../image-renderings/_index.md): each style's "Paired rendering" names the illustration family that shares its aesthetic.+Each style keeps its own authoritative file with: shape & decoration, typography character, color-usage discipline (no HEX), texture / elevation, and the paired image-rendering. Every Default and Quick Generate run reads this index plus all 18 sibling style files once as one deterministic batch before choosing or realizing a direction. Keep the files separate and preserve their boundaries in the batch; exact `visual_style_references` identify the sources actually used by a custom direction, not which files enter context. The catalog mirrors [`image-renderings`](../image-renderings/_index.md): each style's "Paired rendering" names the illustration family that shares its aesthetic.> The **`visual_style` value is only ever a first-column `id`** (`swiss-minimal`, `editorial`, …). The "Paired rendering" column lists **image-rendering** names (`flat`, `minimalist-swiss`, `digital-dashboard`, …) — never treat one of those as the `visual_style`. Default records rendering under confirmation h; Quick keeps the selected rendering only in active context and any required image manifest.>@@ -92,11 +92,11 @@ Each style has its own file with: shape & decoration, typography character, colo## 3. Escape hatch — `custom`-Default Stage 2 always authors one visible, non-empty AI custom proposal beside the preset spectrum. Its paragraph names shape language, composition geometry (page-scale moves), decoration density, whitespace, typographic character, and texture — **no HEX, no color names as values**. The proposal is initially unselected and remains recommendation-only unless the user chooses it; a template-backed proposal must stay inside the inherited identity and confirmed application plan. When selected, record the edited aesthetic in the Design Spec first, then project `- visual_style: custom` plus `- visual_style_behavior:` to `spec_lock.md`. The candidate is mandatory; selecting `custom` remains a tail-case, not the default.+Each coordinated Default Stage-2 direction authors one complete visual aesthetic after comparing the full catalog. It may resolve to a preset or to a visible, non-empty `custom` synthesis whose paragraph names shape language, composition geometry, decoration density, whitespace, typographic character, and texture — **no HEX, no color names as values**. A template-backed synthesis stays inside the inherited identity and confirmed application plan. Record the confirmed current aesthetic in the Design Spec first, then project `- visual_style: custom` plus `- visual_style_behavior:` when applicable. Do not create a separate fourth AI-custom proposal beside the three coordinated directions.-Quick does not author or display a candidate spectrum. It resolves the best-fit preset directly, or one custom behavior only when no preset fits, reads every catalog source actually used as a basis, and persists nothing.+Quick does not display a candidate spectrum. It compares the fully loaded catalog, resolves the best-fit preset or one warranted custom behavior directly, and persists nothing.-**Mandatory — read every catalog source actually used**: If a custom direction combines or borrows existing styles, name their exact ids and read each corresponding file before synthesizing its shape, composition, typography, whitespace, and texture rules. Default persists those ids as `visual_style_references`; Quick retains them only in active context. Do not attach references merely because they are adjacent in the catalog. A genuinely new aesthetic reads no catalog source.+**Mandatory — name every catalog source actually used**: If a custom direction combines or borrows existing styles, name their exact ids after comparing the complete catalog. Default persists those ids as `visual_style_references`; Quick retains them only in active context. Do not attach references merely because they are adjacent in the catalog. A genuinely new aesthetic names no catalog source.---@@ -104,7 +104,7 @@ Quick does not author or display a candidate spectrum. It resolves the best-fit| Active profile | Use ||---|---|-| Default Generate | Strategist reads this index at confirmation `d. Layer 2`, authors the required spectrum/custom candidate, records the confirmed style in `design_spec.md`, and projects it to `spec_lock.md`; Executor reads the locked preset or exact custom references |-| Quick Generate | The current main agent reads this index, resolves the best-fit preset or one warranted custom behavior without interaction, reads only the exact preset source(s) actually used, and keeps the result in active context without Design Spec/lock |+| Default Generate | Strategist and Executor each read this index plus every sibling style file once per valid role context. Strategist authors three coordinated project directions, records the confirmed current style in `design_spec.md`, and projects it to `spec_lock.md`; Executor applies that selected value from the already-loaded catalog. |+| Quick Generate | The current main agent reads this index plus every sibling style file once, resolves one project-specific direction without interaction, and retains the full catalog in active context without Design Spec/lock. |**Resolution scope**: deck-wide (one style per deck). It anchors taste as a **reference**, not a whitelist — pages may deviate with reason.diff --git a/skills/ppt-master/scripts/confirm_ui/server.py b/skills/ppt-master/scripts/confirm_ui/server.pyindex 1824473d..78ec11f9 100644--- a/skills/ppt-master/scripts/confirm_ui/server.py+++ b/skills/ppt-master/scripts/confirm_ui/server.py@@ -1520,23 +1520,41 @@ def _stage2_design_directions_error(*,main_language: object = '',) -> Optional[str]:- """Require three complete coordinated Stage 2 design systems."""+ """Require exactly three complete top-down Stage 2 design systems."""main_language = main_language or _recommendation_language(recommendations)directions = recommendations.get('design_directions')if isinstance(directions, dict):candidates = _candidate_list(directions)- if len(candidates) < 3:- return 'Stage 2 design_directions must include at least 3 candidates'+ if len(candidates) != 3:+ return 'Stage 2 design_directions must include exactly 3 candidates'typography_candidates = []+ direction_ids = set()for index, candidate in enumerate(candidates, start=1):label = f'design_directions.candidates[{index - 1}]'if not isinstance(candidate, dict):return f'{label} must be an object'+ direction_id = str(candidate.get('id') or '').strip()+ if not direction_id:+ return f'{label}.id must be non-empty'+ if direction_id in direction_ids:+ return f'{label}.id must be unique'+ direction_ids.add(direction_id)if not _localized_text_present(candidate, 'name'):return f'{label} requires a non-empty localized name'- for field in ('visual_style', 'icons'):+ for field in ('mode', 'visual_style', 'icons'):if not isinstance(candidate.get(field), str) or not candidate[field].strip():return f'{label}.{field} must be non-empty'+ if candidate['mode'] == 'custom' and not _localized_text_present(+ candidate, 'mode_behavior'+ ):+ return f'{label}.mode=custom requires non-empty localized mode_behavior'+ if candidate['visual_style'] == 'custom' and not _localized_text_present(+ candidate, 'visual_style_behavior'+ ):+ return (+ f'{label}.visual_style=custom requires non-empty localized '+ 'visual_style_behavior'+ )error = _palette_error(candidate.get('color'), f'{label}.color')if error:return error@@ -1549,12 +1567,27 @@ def _stage2_design_directions_error(if error:return errortypography_candidates.append(candidate['typography'])- if _uses_ai_images(recommendations):- image_strategy = candidate.get('image_strategy')- if not isinstance(image_strategy, dict) or not str(- image_strategy.get('rendering') or ''- ).strip():- return f'{label}.image_strategy.rendering must be non-empty'+ image_strategy = candidate.get('image_strategy')+ if not isinstance(image_strategy, dict):+ return f'{label}.image_strategy must be an object'+ rendering = str(image_strategy.get('rendering') or '').strip()+ if not rendering:+ return f'{label}.image_strategy.rendering must be non-empty'+ if rendering != 'custom' and rendering not in _ai_rendering_ids():+ return f'{label}.image_strategy.rendering is not a known preset: {rendering}'+ for prose_field in ('name', 'visual', 'mood'):+ if not _localized_text_present(image_strategy, prose_field):+ return (+ f'{label}.image_strategy requires non-empty localized '+ f'{prose_field}'+ )+ if rendering == 'custom' and not _localized_text_present(+ image_strategy, 'behavior'+ ):+ return (+ f'{label}.image_strategy.rendering=custom requires non-empty '+ 'localized behavior'+ )return _typography_candidates_fixed_error(typography_candidates,main_language=main_language,@@ -1592,13 +1625,17 @@ def _stage2_design_directions_error(def _stage2_custom_candidates_error(recommendations: dict) -> Optional[str]:- """Require visible AI-authored custom alternatives in new Stage 2 files."""+ """Validate optional legacy standalone custom alternatives."""candidates = recommendations.get('custom_candidates')+ if candidates is None:+ return Noneif not isinstance(candidates, dict):- return 'Stage 2 recommendations must include custom_candidates'+ return 'custom_candidates must be an object when present'for field in ('mode', 'visual_style'):candidate = candidates.get(field)+ if candidate is None:+ continueif not isinstance(candidate, dict):return f'custom_candidates.{field} must be an object'for prose_field in ('name', 'behavior'):@@ -1608,12 +1645,11 @@ def _stage2_custom_candidates_error(recommendations: dict) -> Optional[str]:f'{prose_field}')- if not _uses_ai_images(recommendations):- return None-image_candidate = candidates.get('image_strategy')+ if image_candidate is None:+ return Noneif not isinstance(image_candidate, dict):- return 'custom_candidates.image_strategy must be an object when image_usage includes ai'+ return 'custom_candidates.image_strategy must be an object'if image_candidate.get('rendering') != 'custom':return 'custom_candidates.image_strategy.rendering must be custom'for prose_field in ('name', 'visual', 'mood', 'behavior'):diff --git a/skills/ppt-master/scripts/docs/confirm_ui.md b/skills/ppt-master/scripts/docs/confirm_ui.mdindex 94052888..0f467f35 100644--- a/skills/ppt-master/scripts/docs/confirm_ui.md+++ b/skills/ppt-master/scripts/docs/confirm_ui.md@@ -307,15 +307,15 @@ its file time is newer than the handoff.The following fields belong to the Strategist stages, not to thetemplate-selection receipt.-- **Enumerable + custom** — canvas / icons retain blank manual inputs; mode / visual_style instead show a mandatory AI-authored proposal in full, initially unselected and editable after selection. Selected mode / style writes literal `custom` plus its behavior sibling.+- **Enumerable + custom** — canvas / icons retain blank manual inputs. Mode and visual style first show the three project-specific values projected from the complete directions, then the full base catalog. Any projected `custom` variant keeps its own visible identity and behavior even though a selected result writes literal `custom` plus its behavior sibling.- **Visual examples for hard-to-name choices** — the full-screen confirmation page loads real SVG page samples from `static/style_previews/` for `visual_style`, and renders real sample SVGs from `templates/icons` for `icons`. These thumbnails make style and icon-library choices visually comparable before the user locks them. Preview copy is fixed role text (big title / section title / body / points), not project content from recommendation files, so users compare visual treatment rather than copywriting. These previews are a confirmation aid only: they do not add fields to recommendation stage files or `result.json`, and they do not replace the later Step 6 live preview.- **Image usage multi-select** — image sources are selected as one or more catalog ids: `ai` = AI-generated, `web` = Web-sourced, `provided` = User-provided, `placeholder` = Placeholder, `none` = No images. `none` is exclusive. A confirmed non-`none` set is the allowed acquisition-source boundary, not a requirement to use every selected source; only explicit `image_notes` wording can require a source, asset, or page role. Recommendation and result values may be a legacy single string, but new files should use an array. When several sources are recommended, write the source ids to `recommend.image_usage` and write the actual usage strategy to `image_notes`, not a custom prose value.- **Closed enumerable** — PPT reading mode (`delivery_purpose` compatibility key), formula policy / generation mode / refine spec, plus AI source only when image usage includes `ai`. These have no Custom box; out-of-catalog values snap back to the recommended option.- **Proactive execution booleans** — Final Stage 2 carries top-level `proactive_speaker_notes`, `proactive_custom_animations`, and `proactive_narration_audio` values. Defaults are `true`, `false`, and `false`, respectively. They control what the Agent does proactively only when the user has not explicitly instructed otherwise; the latest explicit user instruction always wins. These three values are raw confirmation evidence: the UI and server neither couple nor rewrite them, and every boolean combination is valid. When narration audio is enabled, Strategist later resolves the effective Speaker Notes outcome to enabled and records `Narration Audio dependency` as its Design Spec provenance. Disabling proactive custom animation does not suppress the Strategist's advisory motion recommendations.- **Open prose** — `audience`, `communication_intent`, `audience_outcome`, `core_message`, `delivery_context`, `artifact_afterlife`, `content_divergence`, and `page_count`. `communication_intent` may carry several purposes plus priority / sequence; common paths appear only as help text. `delivery_context` states one primary presenter-led / reader-led / hybrid / recorded-self-running context plus optional secondary use; a hybrid recommendation names which context leads. `content_divergence` is the source-treatment axis. `page_count` may be a range here; Strategist resolves the exact §IX roster, leaving Executor no pagination latitude.-- **Coordinated generative directions** — `design_directions` carries ≥3 safe / shifted / bold candidates. Each candidate bundles visual style, color, typography, icon id, and conditional generated-image rendering. The page can still render legacy top-level `color`, `typography`, and `image_strategy` candidates, but new staged recommendations use the coordinated bundle.+- **Coordinated generative directions** — `design_directions` carries exactly three complete candidates authored top-down from the project contract. Each has a unique stable id and bundles mode, visual style, color, typography, icon id, and generated-image rendering regardless of recommended image source. All three must be viable and meaningfully distinguishable as whole solutions; they do not need different catalog ids or forced safe / shifted / bold archetypes. The page can still render legacy top-level `color`, `typography`, and `image_strategy` candidates, but new staged recommendations use the coordinated bundle.-AI-authored custom proposals apply only to mode, visual style, and conditional AI-image rendering; a selected proposal cannot be blank. Color / typography keep their existing manual Custom cards. Image usage uses source ids plus `image_notes`; closed sets have no Custom path.+Direction-local custom projections apply to mode, visual style, and generated-image rendering; a selected custom value cannot be blank. Legacy standalone `custom_candidates` remain readable but are optional and are not authored in new files. Color / typography keep their existing manual Custom cards. Image usage uses source ids plus `image_notes`; closed sets have no Custom path.**Stage-1 current-value contract.** Each editable prose box starts with the Strategist's recommendation, if one exists. The user may retain, revise, or clear it; no Stage-1 prose field has a non-empty validation gate. On confirmation, the browser submits the current strings and the server preserves them through every later stage and the final `result.json`, including `""`. Blank means no explicit user constraint and may cause downstream default judgment, but it never causes the initial recommendation to be restored. A profile-declared `locked: true` field is read-only and remains the sole exception.@@ -459,29 +459,14 @@ corresponding direct values (`formula_policy`, `generation_mode`, boolean"proactive_custom_animations": { "value": false },"proactive_narration_audio": { "value": false },"refine_spec": { "value": false },- "custom_candidates": {- "mode": {- "name_zh": "冲突到决策",- "behavior_zh": "先建立业务冲突,再用结论先行结构推动决策。"- },- "visual_style": {- "name_zh": "编辑批注风",- "behavior_zh": "严格栅格配合边注和证据强调。"- },- "image_strategy": {- "name_zh": "证据拼贴",- "rendering": "custom",- "visual_zh": "纸面证据拼贴",- "mood_zh": "审慎可信",- "behavior_zh": "裁切纸面配少量批注,保持平面深度并继承演示色板。"- }- },"design_directions": {"selected": 0,"candidates": [{+ "id": "executive-clarity","name_zh": "稳妥专业","note_zh": "像成熟咨询简报",+ "mode": "pyramid","visual_style": "swiss-minimal","icons": "tabler-outline","color": { "name_zh": "冷静专业", "palette": {@@ -507,11 +492,11 @@ corresponding direct values (`formula_policy`, `generation_mode`, boolean}```-The example abbreviates the required ≥3 directions. Custom mode/style candidates remain mandatory; only a recommendation containing AI requires the custom image candidate. Final Stage 2 rejects fewer than three bundles, incomplete six-role palettes, or incomplete heading/body stacks. Legacy grids remain readable only with three complete palettes and complete typography.+The example shows one candidate's complete shape; the actual array repeats that shape for exactly three candidates. Every candidate requires a unique stable `id`, mode, visual style, icon value, complete six-role palette, complete heading/body stack, and complete image strategy even when `recommend.image_usage` excludes AI. Custom mode/style/rendering values require their localized behavior sibling. Legacy grids remain readable only with three complete palettes and complete typography.- `recommend.*` names each recommended id. New mode / style values use a catalog id or literal `custom`; arbitrary prose values are legacy-only. Use `recommend.image_strategy: "custom"` only when an explicit user-supplied image direction should start selected. Missing recommendations fall back to the normal preset. Legacy aliases remain accepted; new files write canonical ids.- The three proactive-execution fields are top-level boolean `{ "value": ... }` objects, not catalog ids. Omitted fields use `true / false / false` for notes / custom animation / narration audio. These are absence-of-instruction defaults, not permission to override the user's latest explicit request. Preserve all three raw values independently through `result.json`; do not couple or rewrite them. Strategist derives effective Speaker Notes as enabled when audio is `true` and records `Narration Audio dependency` as provenance in the Design Spec. `proactive_custom_animations: false` leaves Strategist animation suggestions unchanged; it only prevents unrequested custom-animation execution.-- `custom_candidates` is recommendation-only. Mode / style carry localized `name` + `behavior`; conditional image strategy also carries `rendering: "custom"`, `visual`, and `mood`. When a proposal combines or borrows existing catalog entries, the visible behavior names every exact id and Strategist reads every corresponding file before authoring it; a genuinely novel proposal names none. The server rejects missing required candidates; the UI shows full copy, edits it only after selection, rejects a selected blank, and omits unselected candidates from `result.json`. Template-backed proposals obey inherited identity, prototype capacity, and `template_application`.+- `custom_candidates` is an optional legacy recommendation-only shape. New files place every project-specific preset or custom variant inside one of the three `design_directions`; this preserves three distinct UI identities even when several variants serialize as `custom`. A custom behavior names exact catalog ids only when it actually uses them as synthesis bases. The UI rejects a selected blank and omits unselected candidates from `result.json`. Template-backed variants obey inherited identity, prototype capacity, and `template_application`.- Seed `audience`, `communication_intent`, `audience_outcome`, and `delivery_context` when evidence supports them; users need not supply them, and every Stage-1 prose field may end blank. The contract and `primary_language` stay in `result.json` and `design_spec.md`; `spec_lock.md communication` receives `primary_language`, compact `audience` / `objective` / `core_message`, and reading mode. `communication_intent` may preserve multiple purposes and priority/sequence; never add a `primary_job` enum.- Do not write `recommend.template_reuse_scope` or `recommend.template_adherence`. Strategist records those internal exporter values later in `spec_lock.md` after inspecting the actual template and current content.- For a confirmed templates-mode handoff, write one editable prose field as top-level `template_application.value`. It summarizes **how to use** the already selected project-local template: actual page/prototype use and preservation/reorganization decisions. It never chooses, changes, or reinstalls a workspace. Omit it for free design. The UI returns the current string through final Stage 2; Strategist then persists the final effective plan as `- **Template Application**: ...` in `design_spec.md §I`, which Executor reads from the retained Design Spec. Never replace it with internal reuse/adherence ids or a fixed option menu.@@ -532,11 +517,11 @@ Template-mode-only Stage-2 fragment:- **Color candidates carry the user-facing core `palette`**: `background`, `secondary_bg`, `primary`, `accent`, `secondary_accent`, and `body_text`. The page renders every role as a labelled swatch with its HEX value visible, and offers per-role override inputs for precise single-role edits, plus a **Custom color card with a free-text box** — the user can describe the palette in words or paste HEX values instead of filling each role; this writes `color: { "name": "custom", "custom": "<text>" }` to `result.json` for the AI to interpret. Legacy `text` is accepted as an alias for `body_text`, but new files should write `body_text`. Strategist derives secondary text, borders, state colors, and visual-style neutral tiers while writing `design_spec.md`, then projects the machine values to `spec_lock.md`; those are not user-facing confirmation choices.- **Candidate display text may be multilingual**: color / typography candidates can provide `name_zh` / `name_en` / `name_ja` and `note_zh` / `note_en` / `note_ja`; the page falls back to legacy `name` / `note`. Labels resolve in the page language first, then fall back across the others (a `ja` page: ja → en → zh; zh/en pages keep their zh↔en fallback and try `_ja` last), so when `lang` is `ja` always include the `_ja` variants — otherwise the candidate labels render in English.- **Typography candidates** use concrete heading/body `primary`; non-English decks also use `english`, while English-primary decks omit it. `cjk` / `latin` remain legacy aliases. Localized `name` labels the pair and `css` only previews. Bundles differ overall; font pairs may repeat without blocking. Fixed pairs require `fixed: true`. Catalog `fonts` supplies language-filtered dropdowns plus Other without limiting recommendations; edits mark Custom and refresh the preview. Include topic samples. PPT baselines are `text` 20 · `balanced` 24 · `presentation` 32 px; cards preserve sizes and submit px.-- **Per-role size override** (parallel to color's per-role HEX override): besides `body_size`, the page exposes editable inputs for `title` / `subtitle` / `annotation`. The browser applies one documented deterministic dependency chain: `reading mode → body baseline → unpinned role sizes` (role ramp: `body ×` the §g ratios). Changing reading mode updates the body and all unpinned roles locally; changing body updates unpinned roles locally. Editing body or a role pins that value, so later reading-mode changes do not overwrite it. Font / direction-card selection preserves all current sizes. This is a browser-only state update: it performs no fetch, asks the backend to author no new recommendations, and a re-render preserves exactly what the user sees. Each role input is labelled as px and shows an approximate pt equivalent (`1px = 0.75pt`) for orientation. The final values are written to `result.json` as `typography.sizes: { "title", "subtitle", "annotation" }` in **px** — every canvas, no pt and no `sizes_pt` provenance. These confirmed values are Strategist input anchors: the completed page plan may add recurring roles, and downstream execution owns bounded per-occurrence treatment. Candidate `sizes` remain accepted for compatibility, but the fresh Stage-2 baseline is normalized through the same local ramp before first render.+- **Per-role size override** (parallel to color's per-role HEX override): besides `body_size`, the page exposes editable inputs for `title` / `subtitle` / `annotation`. The browser applies one documented deterministic dependency chain: `reading mode → body baseline → unpinned role sizes` (role ramp: `body ×` the §g ratios). Changing reading mode updates the body and all unpinned roles locally; changing body updates unpinned roles locally. Editing body or a role pins that value, so later reading-mode changes do not overwrite it. A font-only selection preserves current sizes; applying a complete direction restores that direction's typography baseline and derived unpinned sizes, because the top card is an explicit reset action. This is a browser-only state update: it performs no fetch and asks the backend to author no new recommendations. Each role input is labelled as px and shows an approximate pt equivalent (`1px = 0.75pt`) for orientation. The final values are written to `result.json` as `typography.sizes: { "title", "subtitle", "annotation" }` in **px** — every canvas, no pt and no `sizes_pt` provenance. These confirmed values are Strategist input anchors: the completed page plan may add recurring roles, and downstream execution owns bounded per-occurrence treatment. Candidate `sizes` remain accepted for compatibility, but the fresh Stage-2 baseline is normalized through the same local ramp before first render.- **`delivery_purpose` compatibility key / Reading mode** (enumerable, PPT only) decides where meaning is carried, not merely how large type is: `text` makes pages self-contained with complete sentences, short prose, captions, tables, and necessary detail; `balanced` shares explanation between page and presenter; `presentation` uses one idea, concise claims, and visual evidence while speech / notes carry the detail. It therefore governs page grammar, granularity, density / rhythm, and note burden. Reading-mode cards intentionally show **no px value**; the typography section owns the separately visible body / role sizes and applies any local default. It is surfaced in Stage 2 beside the visual system, separate from communication intent. `recommend.delivery_purpose` pre-selects one; `result.json` retains the key, while `spec_lock.md` uses canonical `consumption_mode`. Non-PPT canvases omit it.- **Combined style preview** — a compact live "overall impression" strip sits just above the color section and is **sticky**: it pins under the topbar so it stays visible while the user scrolls through the color / icon / typography sections, keeping the picking controls and their combined effect on screen together. It applies the currently selected color palette **and** typography (heading sample in `primary` over `background`, body sample in `body_text`, an `accent` bar, a `secondary_bg` chip) and repaints on every color / HEX-override / font / `body_size` change. It does not replace the per-candidate swatches or font samples (those stay for picking); it is deliberately an abstract style chip, **not** a slide-layout preview — page layout preview remains the live-preview server's job (Step 6). No schema field; it derives entirely from the existing color + typography selections.-- **Generated-image direction** appears only for `image_usage: ai`. One preset dropdown contains project recommendations when present plus the 20 system styles; Custom remains a separate card and is blank when AI was added manually. A preset submits its id; Custom submits `rendering: "custom"` + non-empty `behavior`; closing AI omits `image_strategy`. Catalog-based custom behavior names exact ids for optional `image_rendering_references`; a novel behavior has none. The left preview follows selection. No image palette is written; deck colors remain authoritative, and legacy `image_strategy.palette` is ignored.-- **`design_directions`** is the canonical Stage-2 spectrum: ≥3 meaningfully different safe / shifted / bold bundles with localized copy, style, icons, conditional image strategy, complete language-aware typography, and HEX `background`, `secondary_bg`, `primary`, `accent`, `secondary_accent`, `body_text`. Selection applies the bundle; component controls override it. `result.json` stores components, not a direction id.+- **Generated-image direction** appears only for current `image_usage: ai`, but all three project candidates already exist in `design_directions` before that toggle. Turning AI on reveals those candidates immediately without a backend rerun, followed by the 20 system preset styles. Direction-local custom variants remain separately identifiable and editable; a preset submits its id, while Custom submits `rendering: "custom"` + non-empty `behavior`. Turning AI off omits `image_strategy` from the final result without deleting the authored recommendation candidates. Catalog-based custom behavior names exact ids for optional `image_rendering_references`; a novel behavior has none. The left preview follows selection. No image palette is written; deck colors remain authoritative, and legacy `image_strategy.palette` is ignored.+- **`design_directions`** is the canonical Stage-2 starting set: exactly three top-down, project-fit bundles with stable ids, localized copy, mode, style, icons, always-present image strategy, complete language-aware typography, and HEX `background`, `secondary_bg`, `primary`, `accent`, `secondary_accent`, `body_text`. Clicking a card applies every field it owns; lower controls may then diverge and the card shows an adjusted state. Clicking the same or another card reapplies that immutable bundle. `result.json` stores the current flattened components, never a direction id.- `recommend.generation_mode` and `refine_spec` mirror [`generate-pptx`](../../workflows/generate-pptx.md) Step 4. `split` / `true` are explicit opt-ins. Refinement adds no UI stage: after Gate 1 it stops before the lock for unrestricted chat revision until approval.- `content_divergence` is a **free-text** Stage-1 source-treatment field. Blank means a balanced default; facts stay sourced at every level. Strategist consumes it while authoring §IX and records it in `design_spec.md §I`; it is not written to `spec_lock.md`. Beautify sends `{ "value": "keep source wording and page structure verbatim", "locked": true }`, so the UI displays it read-only and the server restores it on every staged submit. Template-fill does not use this confirmation flow and does not surface it.- `lang` is the soft UI-language default (`zh` / `en` / `ja`); the persisted user choice wins. It never sets `primary_language`.diff --git a/skills/ppt-master/scripts/prompt_audit_manifest.json b/skills/ppt-master/scripts/prompt_audit_manifest.jsonindex d28d20f4..8dcf060f 100644--- a/skills/ppt-master/scripts/prompt_audit_manifest.json+++ b/skills/ppt-master/scripts/prompt_audit_manifest.json@@ -154,7 +154,7 @@"max_tokens": 13000},"route.generate.planning": {- "description": "Generate-PPTX planning through Strategist, including reference-first whole-document authoring and representative multi-source custom mode/style synthesis; schemas and optional scaffolds are tool-consumed.",+ "description": "Generate-PPTX planning through Strategist, including reference-first whole-document authoring and complete mode, visual-style, and image-rendering decision catalogs; schemas and optional scaffolds are tool-consumed.","scope": "cumulative","include": ["bootstrap.routing"@@ -163,10 +163,12 @@"skills/ppt-master/workflows/generate-pptx.md","skills/ppt-master/references/artifact-ownership.md","skills/ppt-master/references/strategist.md",+ "skills/ppt-master/references/strategist-image.md","skills/ppt-master/templates/design_spec_reference.md","skills/ppt-master/templates/spec_lock_reference.md","skills/ppt-master/references/modes/_index.md","skills/ppt-master/references/visual-styles/_index.md",+ "skills/ppt-master/references/image-renderings/_index.md","skills/ppt-master/scripts/docs/confirm_ui.md","skills/ppt-master/templates/icons/README.md",{@@ -174,8 +176,8 @@"exclude": ["*/_index.md"],- "select": 3,- "load_event": "strategist-custom",+ "select": 5,+ "load_event": "strategist-mode-catalog","registry": "modes"},{@@ -183,15 +185,24 @@"exclude": ["*/_index.md"],- "select": 3,- "load_event": "strategist-custom",+ "select": 18,+ "load_event": "strategist-visual-style-catalog","registry": "visual-styles"+ },+ {+ "glob": "skills/ppt-master/references/image-renderings/*.md",+ "exclude": [+ "*/_index.md"+ ],+ "select": 20,+ "load_event": "strategist-image-rendering-catalog",+ "registry": "image-renderings"}],- "max_tokens": 70000+ "max_tokens": 110000},"route.generate.quick-generate": {- "description": "Self-contained one-pass Generate profile with source intake, active-context mode/style selection, conditional resource preparation, and complete flat SVG visual-construction authorities.",+ "description": "Self-contained one-pass Generate profile with source intake, complete design-decision catalogs, conditional resource preparation, and complete flat SVG visual-construction authorities.","scope": "cumulative","include": ["bootstrap.routing"@@ -206,13 +217,14 @@"skills/ppt-master/references/executor-structure.md","skills/ppt-master/references/modes/_index.md","skills/ppt-master/references/visual-styles/_index.md",+ "skills/ppt-master/references/image-renderings/_index.md",{"glob": "skills/ppt-master/references/modes/*.md","exclude": ["*/_index.md"],- "select": 3,- "load_event": "quick-mode",+ "select": 5,+ "load_event": "quick-mode-catalog","registry": "modes"},{@@ -220,12 +232,21 @@"exclude": ["*/_index.md"],- "select": 3,- "load_event": "quick-visual-style",+ "select": 18,+ "load_event": "quick-visual-style-catalog","registry": "visual-styles"+ },+ {+ "glob": "skills/ppt-master/references/image-renderings/*.md",+ "exclude": [+ "*/_index.md"+ ],+ "select": 20,+ "load_event": "quick-image-rendering-catalog",+ "registry": "image-renderings"}],- "max_tokens": 80000+ "max_tokens": 92000},"route.generate.quick-generate.beautify": {"description": "Quick Generate with the shared strict 1:1 Beautify profile.",@@ -235,7 +256,7 @@"profile.generate.beautify-pptx"],"files": [],- "max_tokens": 70000+ "max_tokens": 100000},"route.generate.quick-generate.template-fusion": {"description": "Quick Generate with the maximum Brand, Style, Layout, and Deck exact-root fusion loaded for flat authoring.",@@ -245,7 +266,7 @@"stage.generate.template.fusion-brand-style-layout-deck"],"files": [],- "max_tokens": 88000+ "max_tokens": 115000},"route.generate.quick-generate.topic-research": {"description": "Quick Generate with gap-targeted factual research before direct resource preparation and SVG authoring.",@@ -255,7 +276,7 @@"stage.generate.topic-research"],"files": [],- "max_tokens": 74000+ "max_tokens": 94000},"route.generate.quick-generate.icon": {"description": "Quick Generate with project-local bundled icon selection and synchronization.",@@ -266,7 +287,7 @@"files": ["skills/ppt-master/templates/icons/README.md"],- "max_tokens": 74000+ "max_tokens": 94000},"route.generate.quick-generate.in-hand-image": {"description": "Quick Generate with supplied, extracted, or placeholder image resources prepared before SVG authoring.",@@ -276,7 +297,7 @@"stage.generate.executor.image"],"files": [],- "max_tokens": 84000+ "max_tokens": 110000},"route.generate.quick-generate.formula": {"description": "Quick Generate with manifest-driven formula rendering and formula-image realization.",@@ -288,7 +309,7 @@"files": ["skills/ppt-master/scripts/docs/image.md"],- "max_tokens": 87000+ "max_tokens": 110000},"route.generate.quick-generate.ai-two-types": {"description": "Quick Generate with AI resource preparation, representative rendering inputs, and two local image types.",@@ -299,7 +320,7 @@"stage.generate.executor.image"],"files": [],- "max_tokens": 110000+ "max_tokens": 135000},"route.generate.quick-generate.web-image": {"description": "Quick Generate with web resource preparation, provenance, attribution, and image execution.",@@ -310,7 +331,7 @@"stage.generate.executor.web-image"],"files": [],- "max_tokens": 92000+ "max_tokens": 115000},"route.generate.quick-generate.visualization": {"description": "Quick Generate with bounded Chart/Table recall, their data-object branches, optional native-data metadata, and chart-coordinate verification before the final checker; the fixed Quick context already carries Shape Composition Grammar.",@@ -336,7 +357,7 @@"stage.generate.strategist.image"],"files": [],- "max_tokens": 81000+ "max_tokens": 115000},"route.generate.planning-formula": {"description": "Formula-only planning context, including the shared image/formula layout math and vocabulary.",@@ -346,27 +367,16 @@"stage.generate.strategist.image"],"files": [],- "max_tokens": 81000+ "max_tokens": 115000},"route.generate.planning-ai": {- "description": "Generate-PPTX planning when AI image direction is available, including representative multi-source custom rendering synthesis.",+ "description": "Generate-PPTX planning after AI imagery is confirmed, adding image-layout and resource-planning authorities to the already-loaded rendering decision catalog.","scope": "cumulative","include": ["route.generate.planning-image"],- "files": [- "skills/ppt-master/references/image-renderings/_index.md",- {- "glob": "skills/ppt-master/references/image-renderings/*.md",- "exclude": [- "*/_index.md"- ],- "select": 3,- "load_event": "strategist-image-custom",- "registry": "image-renderings"- }- ],- "max_tokens": 86000+ "files": [],+ "max_tokens": 115000},"stage.generate.apply-template-workspace": {"description": "Post-Stage-1 Default or Quick exact-root workspace validation, installation, and fusion framework.",@@ -500,10 +510,10 @@"stage.generate.executor.notes"],"files": [],- "max_tokens": 120000+ "max_tokens": 165000},"route.generate.flat-ai-two-types": {- "description": "Generate-PPTX context with AI images, representative multi-source custom rendering, and two local types.",+ "description": "Generate-PPTX context with AI images, the selected preset or exact custom rendering bases, and two local types.","scope": "cumulative","include": ["route.generate.planning-ai",@@ -513,7 +523,7 @@"stage.generate.image.ai-two-types"],"files": [],- "max_tokens": 165000+ "max_tokens": 205000},"route.generate.flat-in-hand-image": {"description": "Generate-PPTX context with provided, placeholder, or formula images and no acquisition role.",@@ -525,7 +535,7 @@"stage.generate.executor.notes"],"files": [],- "max_tokens": 135000+ "max_tokens": 180000},"route.generate.flat-web-image": {"description": "Generate-PPTX context with web image acquisition.",@@ -538,7 +548,7 @@"stage.generate.image.web"],"files": [],- "max_tokens": 145000+ "max_tokens": 190000},"route.enhance-native-pptx.audio": {"description": "Enhance Native PPTX with the shared narration-audio stage.",@@ -558,7 +568,7 @@"profile.generate.beautify-pptx"],"files": [],- "max_tokens": 130000+ "max_tokens": 175000},"route.generate.flat-no-image-visualization": {"description": "Default flat Generate-PPTX path with visualization-reference consumption, all three information-model branches, optional native-data replacement, and chart verification.",@@ -573,7 +583,7 @@"stage.generate.verify-charts"],"files": [],- "max_tokens": 145000+ "max_tokens": 185000},"route.generate.brand-flat-no-image": {"description": "Brand-preset flat Generate-PPTX path without image acquisition.",@@ -585,7 +595,7 @@"stage.generate.template.brand"],"files": [],- "max_tokens": 130000+ "max_tokens": 180000},"route.generate.style-flat-no-image": {"description": "Style-workspace flat Generate-PPTX path without image acquisition.",@@ -597,7 +607,7 @@"stage.generate.template.style"],"files": [],- "max_tokens": 130000+ "max_tokens": 180000},"route.generate.deck-structured-no-image": {"description": "Deck-preset structured Generate-PPTX path without image acquisition.",@@ -609,7 +619,7 @@"stage.generate.template.deck"],"files": [],- "max_tokens": 140000+ "max_tokens": 190000},"route.generate.layout-structured-no-image": {"description": "Layout-preset structured Generate-PPTX path without image acquisition.",@@ -621,7 +631,7 @@"stage.generate.template.layout"],"files": [],- "max_tokens": 140000+ "max_tokens": 190000},"route.generate.topic-only-flat-no-image": {"description": "Topic research followed by the default flat no-image Generate-PPTX path.",@@ -631,10 +641,10 @@"route.generate.flat-no-image"],"files": [],- "max_tokens": 120000+ "max_tokens": 170000},"stage.generate.executor.flat": {- "description": "Incremental flat Executor core with complete visual-construction authorities and representative multi-source custom mode/style execution.",+ "description": "Incremental flat Executor core with complete visual-construction authorities and complete mode/visual-style execution catalogs.","scope": "incremental","files": ["skills/ppt-master/references/executor-base.md",@@ -642,12 +652,14 @@"skills/ppt-master/references/svg-effects.md","skills/ppt-master/references/native-shape-authoring.md","skills/ppt-master/references/semantic-svg.md",+ "skills/ppt-master/references/modes/_index.md",+ "skills/ppt-master/references/visual-styles/_index.md",{"glob": "skills/ppt-master/references/modes/*.md","exclude": ["*/_index.md"],- "select": 3,+ "select": 5,"load_event": "executor","registry": "modes","allow_repeat": true@@ -657,13 +669,13 @@"exclude": ["*/_index.md"],- "select": 3,+ "select": 18,"load_event": "executor","registry": "visual-styles","allow_repeat": true}],- "max_tokens": 48000+ "max_tokens": 64000},"stage.generate.executor.structured": {"description": "Structured template execution layered on the flat/shared core.",@@ -675,10 +687,10 @@"skills/ppt-master/references/executor-structured.md","skills/ppt-master/references/pptx-structure-interface.md"],- "max_tokens": 58000+ "max_tokens": 74000},"stage.generate.image.ai-two-types": {- "description": "Incremental AI-image role with representative multi-source custom rendering and two selected local types.",+ "description": "Incremental AI-image role with the selected preset or exact custom rendering bases and two selected local types.","scope": "incremental","files": ["skills/ppt-master/references/image-base.md",@@ -733,7 +745,7 @@"skills/ppt-master/workflows/stages/resume-execute.md","skills/ppt-master/references/artifact-ownership.md"],- "max_tokens": 77000+ "max_tokens": 97000},"stage.generate.resume-execute-image": {"description": "Fresh-session resume when the locked resource plan contains image rows.",@@ -743,7 +755,7 @@"stage.generate.executor.image"],"files": [],- "max_tokens": 89000+ "max_tokens": 115000},"stage.generate.topic-research": {"description": "Gap-targeted factual intake stage.",@@ -880,7 +892,7 @@"stage.generate.strategist.template"],"files": [],- "max_tokens": 73000+ "max_tokens": 110000},"route.generate.planning-template-ai": {"description": "Explicit template workspace plus confirmed AI-image planning.",@@ -890,7 +902,7 @@"route.generate.planning-ai"],"files": [],- "max_tokens": 88000+ "max_tokens": 120000},"stage.generate.executor.chart": {"description": "Conditional value-driven chart execution rules.",@@ -925,10 +937,9 @@"max_tokens": 1000},"stage.generate.strategist.image": {- "description": "Conditional Strategist image/formula policy with the always-read layout math and compact composition vocabulary.",+ "description": "Conditional Strategist image/formula layout math and compact composition vocabulary; the rendering decision core is already in base planning.","scope": "incremental","files": [- "skills/ppt-master/references/strategist-image.md","skills/ppt-master/references/image-layout-spec.md","skills/ppt-master/references/image-layout-patterns.md"],diff --git a/skills/ppt-master/workflows/generate-pptx.md b/skills/ppt-master/workflows/generate-pptx.mdindex 0baceae1..b19d906c 100644--- a/skills/ppt-master/workflows/generate-pptx.md+++ b/skills/ppt-master/workflows/generate-pptx.md@@ -238,15 +238,21 @@ both the communication contract and template/free-design choice and any selectedworkspace has been installed.At Step-4 entry, load the always-required planning context directly in one-batch: the role core, every canonical content-type source file defined below,-and the compact structured analysis facts already present. These inputs are-known required reads; do not route or rediscover them one file at a time. For a-multi-deck `source_profile.json`, read its compact `decks[]` digests in that-batch and open a deck's larger identity/slide-library files only when the-specific need below arises.+batch: the role cores, every canonical content-type source file defined below,+the compact structured analysis facts already present, and the three complete+design-decision catalogs. Preserve the boundary of every catalog file inside+the batch; do not concatenate them into a new artifact, route them one at a+time, or let later `*_references` decide what enters context. For a multi-deck+`source_profile.json`, read its compact `decks[]` digests in that batch and open+a deck's larger identity/slide-library files only when the specific need below+arises.```Read references/strategist.md+Read references/strategist-image.md+Read references/modes/_index.md + all 5 sibling entry files+Read references/visual-styles/_index.md + all 18 sibling entry files+Read references/image-renderings/_index.md + all 20 sibling entry files```Then load only the extra role modules triggered by the current plan:@@ -254,9 +260,15 @@ Then load only the extra role modules triggered by the current plan:| Deterministic trigger | Additional Strategist reference ||---|---|| Stage 1 is confirmed and its template choice installed a selected Brand/Style/Layout/Deck workspace into this project | `references/strategist-template.md` before Stage 2 |-| The core's proposed Stage 2 `image_usage` contains a source other than `none`, the user supplied an explicit non-`none` image constraint, or formula-worthy content activates formula planning | `references/strategist-image.md` + `references/image-layout-spec.md` + `references/image-layout-patterns.md` before authoring image renderings, production detail, formula resources, or §VIII |+| The confirmed Stage 2 `image_usage` contains a source other than `none`, the user supplied an explicit non-`none` image constraint, or formula-worthy content activates formula planning | `references/image-layout-spec.md` + `references/image-layout-patterns.md` before production detail, formula resources, or §VIII |-Core chooses Stage-2 sources. Load it before Stage 2 for non-`none`, or after confirmation if `none` changes; do not backfill candidates. Retain for confirmed non-`none` or formulas; otherwise write no image rows. Only an installed project-local template state loads the template module, and only after Stage 1 is confirmed; a bare template/style name does not.+The image decision core and complete rendering catalog are already loaded before+Stage 2 so every direction carries a real rendering candidate. Core chooses+Stage-2 sources independently. Confirmed non-`none` or formulas load the layout+references and continue into resource planning; confirmed `none` without+formulas writes no image rows while retaining recommendation-only rendering+candidates. Only an installed project-local template state loads the template+module, and only after Stage 1 is confirmed; a bare template/style name does not.> ⚠️ **Mandatory artifact gates**: after final confirmation, author complete `design_spec.md` from `${SKILL_DIR}/templates/design_spec_reference.md`. After Gate 1 and any refinement approval, author `spec_lock.md` from `${SKILL_DIR}/templates/spec_lock_reference.md` plus approved Design Spec/context. Author each new artifact once without placeholders or `scaffold-*` (manual-only). Schema validity does not prove semantic fidelity.@@ -394,7 +406,7 @@ For the normal/default `continuous` path, print no split-mode reminder and proce**Mandatory — spec-refinement note** (not another Confirm UI stage): after confirmation details and any split-mode line, append one localized 💡 line offering review of the complete Design Spec before the lock; any part may be revised in chat until explicit approval. Default OFF; only explicit chat opt-in or `refine_spec: true` runs [`refine-spec`](stages/refine-spec.md) after Gate 1. Confirm UI records the toggle; chat fallback prints the same line.-**Formula policy**: Final Stage 2 confirms `mixed`, `render-all`, or `text-only`. When rendering is required, load the image-planning bundle even if `image_usage` is `none`, then follow [`strategist-image.md`](../references/strategist-image.md)'s formula-resource contract. `text-only` creates no formula image rows.+**Formula policy**: Final Stage 2 confirms `mixed`, `render-all`, or `text-only`. The image-decision core is already loaded; when rendering is required, load the conditional image-layout references even if `image_usage` is `none`, then follow [`strategist-image.md`](../references/strategist-image.md)'s formula-resource contract. `text-only` creates no formula image rows.**Proactive production decisions**: Final Stage 2 records`proactive_speaker_notes`, `proactive_custom_animations`, and@@ -515,20 +527,21 @@ Workflow:Read the execution references for this deck's locked `mode` + `visual_style`(from `spec_lock.md`). Load this fixed required block directly as one batch;-do not route among its files one at a time:+preserve every file boundary and do not route among catalog entries one at a+time:```Read references/executor-base.md # REQUIRED: flat/shared execution coreRead references/shared-standards-core.md # REQUIRED: SVG compatibility + shared aesthetic/leading baselineRead references/svg-effects.md # REQUIRED: Visual Job Router + effects/construction vocabularyRead references/native-shape-authoring.md # REQUIRED: native-shape selection and Boolean constructionRead references/semantic-svg.md # REQUIRED: semantic metadata boundary-Read references/modes/<resolved-id>.md # one preset id, or each `mode_references` id-Read references/visual-styles/<resolved-id>.md # one preset id, or each `visual_style_references` id+Read references/modes/_index.md + all 5 sibling entry files+Read references/visual-styles/_index.md + all 18 sibling entry files```Keep the core's shared visual-quality defaults and `svg-effects.md` §6.1 Visual Job Router active during page authoring; they are not passive compatibility reading. Explicit user/template requirements and the locked style override compatible aesthetic defaults, never technical Required / Forbidden boundaries.-> Read only the always-on references above plus the conditionally triggered modules below. A preset reads its one locked file. For `mode: custom` or `visual_style: custom`, read every exact file named by the optional `mode_references` / `visual_style_references`, then synthesize those sources under the corresponding behavior. If the reference field is absent, the direction is genuinely novel: read no preset file and follow the behavior directly. Never infer adjacent references or glob `modes/` / `visual-styles/`.+> Read only the always-on references above plus the conditionally triggered modules below. The complete mode and visual-style catalogs are already present once per valid Executor context. Apply the locked preset directly; for `custom`, synthesize only the exact bases named by optional `mode_references` / `visual_style_references` under the corresponding behavior. References express provenance and synthesis intent, not additional load triggers. If absent, treat the direction as genuinely novel. Do not infer adjacent bases or blend unselected catalog identities.| Deterministic trigger | Additional references ||---|---|diff --git a/skills/ppt-master/workflows/profiles/quick-generate.md b/skills/ppt-master/workflows/profiles/quick-generate.mdindex 5cb3d161..59ed4cdc 100644--- a/skills/ppt-master/workflows/profiles/quick-generate.md+++ b/skills/ppt-master/workflows/profiles/quick-generate.md@@ -203,6 +203,25 @@ use; otherwise decide which prototypes to use, skip, repeat, reorder, or adaptwhile authoring. Persist no separate template-application artifact. If notemplate was installed, make the same design choices freely.+Before resolving the one-pass design, read these three complete catalogs in one+deterministic, boundary-preserving batch:++```+Read references/modes/_index.md + all 5 sibling entry files+Read references/visual-styles/_index.md + all 18 sibling entry files+Read references/image-renderings/_index.md + all 20 sibling entry files+```++Do not concatenate the files into a generated bundle or rediscover them one at+a time. Compare three complete, project-fit solution directions internally,+including one rendering candidate for each, and then choose the best whole+solution for direct execution. The three internal directions must all be viable+and meaningfully distinguishable, but need not use different catalog ids or fit+safe / shifted / bold archetypes. Decide whether AI images are useful as a+separate source judgment; even when the answer is no, the rendering comparison+still informs visual coherence. Keep the chosen mode, style, rendering, and any+exact custom bases in active context only.+**One-pass decision boundary**: resolve only what is needed to author this deckin the current context. Do not print a strategy summary, create a planningcheckpoint, or persist a page/resource plan.@@ -294,7 +313,7 @@ Prepare only the resource paths needed by the decided pages:| Supplied/extracted image | Copy the selected file into `images/`; preserve its factual/provenance context and use the measured file rather than an invented substitute || Bundled/custom icon | Follow the [icon library contract](../../templates/icons/README.md), choose one coherent primary library, sync a useful project pool covering recurring semantics and likely page-local needs without assigning icons to pages, and choose from that prepared pool during SVG authoring || Formula | Follow the [`latex_render.py` contract](../../scripts/docs/image.md), write `images/formula_manifest.json`, run the renderer, and keep the rendered PNG under `images/` |-| AI image | Follow `image-base.md` + `image-generator.md`; keep `image_prompts.json` and its human-readable sidecar |+| AI image | Follow `image-base.md` + `image-generator.md`; apply only the chosen rendering preset or exact custom bases, never blend unselected catalog identities, and keep `image_prompts.json` plus its human-readable sidecar || Web image | Follow `image-base.md` + `image-searcher.md`; keep query/status data and `image_sources.json`, including any required on-slide attribution || Illustration slice | Generate or obtain the parent sheet, run `slice_images.py`, and place only the resulting element files || Visualization | Keep Chart values, Table cell topology, and chosen treatment in active context; load the applicable Chart/Table authority in §3 and write native replacement metadata only for an independently selected native-ready object |@@ -327,13 +346,12 @@ not route among them one file at a time:[`svg-effects.md`](../../references/svg-effects.md),[`native-shape-authoring.md`](../../references/native-shape-authoring.md),[`semantic-svg.md`](../../references/semantic-svg.md),-[`executor-structure.md`](../../references/executor-structure.md),-[`modes/_index.md`](../../references/modes/_index.md), and-[`visual-styles/_index.md`](../../references/visual-styles/_index.md). Resolve-one narrative mode and one visual style from explicit user/template requirements-or the current content, keep that choice only in active context, and read every-exact preset source actually used once. A genuinely novel custom direction-follows its resolved behavior without inventing a nearby preset.+and [`executor-structure.md`](../../references/executor-structure.md). Retain the+complete mode and visual-style catalogs already read during one-pass design+resolution, and realize only the chosen direction. Exact `*_references` preserve+the basis of a custom synthesis; they do not trigger another catalog read. A+genuinely novel custom direction follows its resolved behavior without inventing+a nearby preset.Do not load `executor-base.md`: it owns Default's persisted-plan handoff,first-page gate, and completion routing. Excluding that file is not a capabilitydiff --git a/skills/ppt-master/workflows/stages/resume-execute.md b/skills/ppt-master/workflows/stages/resume-execute.mdindex e3e711f6..e2c2ca92 100644--- a/skills/ppt-master/workflows/stages/resume-execute.md+++ b/skills/ppt-master/workflows/stages/resume-execute.md@@ -81,7 +81,7 @@ Then jump to `### Step 6: Executor Phase` and run the documented pipeline:`enabled` / `disabled` / `disabled`; these production decisions never comefrom `spec_lock.md`- If resuming mid-deck, read the latest completed SVG and current image metadata when images are used-- Read the complete Step 6 always-on core exactly as listed in [`generate-pptx.md`](../generate-pptx.md); for custom directions, reload every optional `*_references` file from `spec_lock.md` before applying the behavior, then only the branches selected by the condition table+- Read the complete Step 6 always-on core exactly as listed in [`generate-pptx.md`](../generate-pptx.md), including the full mode and visual-style catalogs as one boundary-preserving batch; apply optional `*_references` only as the declared basis of a custom synthesis, then load only the branches selected by the condition table- For each page, make the mandatory Structure decision from retained §IX after its content/communication move is established and before any geometry; a `yes` result loads `executor-structure.md` before realization and creates no artifact or lock row- Design Parameter Confirmation- When structured, read the template Design Spec and each selected prototype once; retain unchanged references in the fresh context. A later bounded repair follows [`executor-base.md`](../../references/executor-base.md) §2.1 only while that context remains valid and uncompacted