Skip to content

AI turns documents or topics into real, native PowerPoint decks—with native shapes, transitions and animations, data-backed charts and tables on demand, audio narration from speaker notes, and support for your own .pptx templates. · by Hugo He

feat(strategist): lock image rendering+palette in h.5, hand off to Image_Generator

hugohe384bd272d4af2
diff --git a/skills/ppt-master/references/image-generator.md b/skills/ppt-master/references/image-generator.md
index 9a4919e3..ae1cbb2f 100644
--- a/skills/ppt-master/references/image-generator.md
+++ b/skills/ppt-master/references/image-generator.md
@@ -66,19 +66,30 @@ read_file references/image-palettes/_index.md
read_file references/image-type-templates/_index.md
```
-### Step 2 — Lock deck-wide rendering + palette
+### Step 2 — Resolve deck-wide rendering + palette
-From `design_spec.md`:
+**Primary path — Strategist already locked these in `spec_lock.md colors`**:
+
+```
+image_rendering: vector-illustration
+image_palette: cool-corporate
+```
+
+If both fields are present, use them directly — Strategist made the decision in h.5 with full d-e-f-g-h linkage context. Do NOT re-decide.
+
+**Fallback path — when `spec_lock.md` lacks both fields** (legacy decks or pipelines that skipped h.5):
| Signal | Maps to |
|---|---|
-| `d. Style` mode + descriptor (e.g. "Top Consulting + minimal") | Rendering (consult renderings `_index.md` auto-selection table) |
-| `e. Color Scheme` (HEX) + content vibe | Palette (consult palettes `_index.md` auto-selection table) |
-| `f. Icon library` | Sanity check: chosen rendering should be compatible with the icon library's visual weight |
+| `design_spec.md d. Style` mode + descriptor | Rendering (consult renderings `_index.md` auto-selection table) |
+| `design_spec.md e. Color Scheme` (HEX) + content vibe | Palette (consult palettes `_index.md` auto-selection table) |
+| `design_spec.md f. Icon library` | Sanity check: chosen rendering should be compatible with the icon library's visual weight |
+
+If the auto-selection table surfaces multiple candidates, pick the first; do not present a choice to the user.
-If the auto-selection table surfaces multiple candidates, pick the first; do not present a choice to the user (Strategist already locked downstream style).
+> **Tell the user**: when falling back, print one line "spec_lock.md missing `image_rendering`/`image_palette` — inferring `<X>` / `<Y>` from design_spec. For optimal deck consistency, lock these in Strategist h.5." Then proceed.
-Then `read_file` the **single chosen** rendering file and the **single chosen** palette file. These two files give you:
+Then `read_file` the **single resolved** rendering file and the **single resolved** palette file. These two files give you:
- The 80-120 word style paragraph (rendering)
- The proportion / role / temperament rules for the deck's three HEX values (palette)
@@ -88,10 +99,11 @@ Then `read_file` the **single chosen** rendering file and the **single chosen**
For each `Acquire Via: ai` row in `design_spec.md §VIII`:
-1. **Determine type** by matching the row's `Purpose` against types `_index.md` auto-selection table (cover background → `background`; product launch hero → `hero`; methodology visualization → `framework`; etc.)
-2. **Determine `text_policy`** — `none` if the image is a backdrop under SVG text (the default for `background` type, and the safest choice for most images). `embedded` if the image is meant to carry visible keywords/labels itself (rare; typical for sketch-notes / ink-notes hand-lettered blocks).
-3. `read_file references/image-type-templates/<type>.md` (only if not already read — types are commonly reused across images in one deck)
-4. **Assemble the prompt** by combining:
+1. **Determine type** by matching the row's `Purpose` against types `_index.md` auto-selection table (cover background → `background`; product launch hero → `hero`; methodology visualization → `framework`; etc.) The narrative-shorthand `Type` column in §VIII (Background/Photography/Illustration/Diagram/Decorative) is a hint, not the type's final value — `Purpose` is authoritative for picking among the 9 internal-composition types.
+2. **Determine `text_policy`** — read from the row directly if Strategist filled it; otherwise default by type: `background` → `none`; `typography` → `embedded`; everything else → `none` unless the deck rendering is `sketch-notes` / `ink-notes` and Purpose explicitly calls for hand-lettered keywords. The Strategist-supplied value (when present) always wins.
+3. **Determine `page_role`** — read from the row directly; default `local`. Only `full_page` if explicitly set.
+4. `read_file references/image-type-templates/<type>.md` (only if not already read — types are commonly reused across images in one deck)
+5. **Assemble the prompt** by combining:
- The rendering's style paragraph (from Step 2)
- The palette's proportion + role rules applied to the deck's HEX values (from Step 2)
- The type's structural layout (from Step 3)
diff --git a/skills/ppt-master/references/strategist.md b/skills/ppt-master/references/strategist.md
index b3dbb612..fc7876d4 100644
--- a/skills/ppt-master/references/strategist.md
+++ b/skills/ppt-master/references/strategist.md
@@ -241,6 +241,74 @@ Selection is automatic in Step 5 (A → B → Manual). Detailed contract: [`imag
Selections may be mixed at the row level — e.g. a deck can use C for hero illustrations while sourcing D for supporting team photos.
+#### h.5 AI Image Strategy — lock rendering + palette (only when C is selected)
+
+When the deck includes any `ai` rows, Strategist locks a **deck-wide rendering** and **deck-wide palette** here. These two values are written into `design_spec.md §III` and `spec_lock.md colors` / `images` sections, then consumed by Image_Generator. Every AI image in the deck shares them — this is what makes multiple AI images feel like one deck.
+
+🚧 **GATE — before recommending values**: `read_file references/image-renderings/_index.md` and `read_file references/image-palettes/_index.md`. They contain the catalog, auto-selection tables, and a rendering × palette compatibility matrix.
+
+**Rendering recommendation** (soft — user may override with any other rendering from the catalog):
+
+| `d. Style` signal | Recommended rendering | Alternates |
+|---|---|---|
+| Top Consulting / strategic / MBB | `editorial` or `vector-illustration` | `blueprint` |
+| General Consulting / corporate report / 学术答辩 | `vector-illustration` | `flat`, `editorial` |
+| Tech / SaaS / AI / 架构 | `3d-isometric`, `blueprint`, `digital-dashboard` | `flat` |
+| Product launch / brand / marketing | `flat`, `3d-isometric`, `corporate-photo` | `vector-illustration` |
+| Education / training / 教学 / 培训 | `sketch-notes` | `vector-illustration` |
+| Methodology / Before-After / 方法论 / manifesto | `ink-notes` | `editorial` |
+| Government / formal / 政务 | `editorial` or `corporate-photo` | `vector-illustration` |
+| Finance / journalism / 财经 | `editorial`, `digital-dashboard` | `vector-illustration` |
+| Personal story / 个人成长 / lifestyle | `watercolor`, `warm-scene` | `corporate-photo` |
+| Cultural / media / opinion / cinematic | `screen-print` | `editorial`, `warm-scene` |
+| Children / storybook / 儿童 / 治愈 | `fantasy-animation` | `watercolor`, `sketch-notes` |
+| Gaming / retro / 复古 / 像素 | `pixel-art` | — |
+| Environment / wellness / 环保 | `nature` | `watercolor` |
+| Classroom / blackboard / 课堂 | `chalkboard` | `sketch-notes` |
+| Team / company / product photo | `corporate-photo` | — |
+
+**Palette recommendation** (soft — user may override):
+
+| Content vibe / industry | Recommended palette | Alternates |
+|---|---|---|
+| Consulting / finance / B2B / corporate / 学术答辩 | `cool-corporate` | `editorial-classic` |
+| Tech / SaaS / AI | `tech-neon` | `cool-corporate`, `dark-cinematic` |
+| Education / training | `macaron` | `warm-earth` |
+| Methodology / Before-After | `mono-ink` | `editorial-classic` |
+| Personal / lifestyle / brand story | `warm-earth` | `nature-organic` |
+| Product launch / marketing | `vivid-launch` | `tech-neon` |
+| Children / storybook | `macaron` | `warm-earth` |
+| Premium / film / entertainment | `dark-cinematic` | `duotone` |
+| Cultural / media / cover-art | `duotone` | `editorial-classic` |
+| Environment / wellness | `nature-organic` | `warm-earth` |
+| Finance / journalism | `editorial-classic` | `cool-corporate` |
+
+After auto-selecting, cross-check `image-palettes/_index.md` compatibility matrix — if rendering × palette is `✗`, swap to the alternate palette.
+
+**d-e-f-g linkage sanity check** (do this after picking rendering + palette):
+
+| Linkage | What to verify |
+|---|---|
+| **d. Style ↔ rendering** | Rendering family should match the Style descriptor's temperament (corporate ≠ sketch-notes; tech ≠ watercolor). Already enforced by the recommendation table above. |
+| **e. Color HEX ↔ palette** | The deck's primary HEX should fit the palette's role expectation. E.g. cool-corporate expects primary to feel deep and restrained; tech-neon expects it saturated. Mismatch → either adjust e. HEX, or pick a different palette. |
+| **f. Icon library ↔ rendering** | `tabler-outline` pairs well with all renderings (most versatile). `chunk-filled` / `tabler-filled` pair better with `vector-illustration` / `flat` / `editorial`. `phosphor-duotone` pairs with `flat` / `digital-dashboard`. Mismatch is not fatal but worth flagging. |
+| **g. Typography ↔ rendering** | Serif title → pairs well with `editorial`, `corporate-photo`, `screen-print`. Hand-lettered direction → already implied by `sketch-notes` / `ink-notes` (the rendering carries the lettering, no separate font requirement). Display font → `vivid-launch` / `screen-print`. Mismatch is rarely fatal; note in conversation if it feels off. |
+
+**Recording the lock** — after picking, write to:
+
+- `design_spec.md §III Visual Theme` — add two lines under the color table:
+ ```
+ - **Image Rendering**: vector-illustration
+ - **Image Palette**: cool-corporate
+ ```
+- `spec_lock.md colors` section — add two extra rows at the bottom:
+ ```
+ - image_rendering: vector-illustration
+ - image_palette: cool-corporate
+ ```
+
+Image_Generator reads these two fields and applies them deck-wide. If both are absent (legacy decks), Image_Generator falls back to inferring them from `d. Style` and `e. Color` — quality is acceptable but not optimal. Always lock both when C is selected.
+
**When selection includes B**, you must run `python3 scripts/analyze_images.py <project_path>/images` before outputting the spec, and integrate scan results into the image resource list.
**When B / C / D / E is selected**, add an image resource list to the spec:
@@ -252,10 +320,12 @@ Selections may be mixed at the row level — e.g. a deck can use C for hero illu
| Ratio | e.g., `1.78` |
| Layout suggestion | e.g., `Wide landscape (suitable for full-screen/illustration)` |
| Purpose | e.g., `Cover background` |
-| Type | Background / Photography / Illustration / Diagram / Decorative pattern |
+| Type | Narrative shorthand: Background / Photography / Illustration / Diagram / Decorative pattern. (The internal-composition type used by Image_Generator — one of `background / hero / typography / infographic / flowchart / framework / comparison / timeline / scene` — is inferred from `Purpose` per [`image-type-templates/_index.md`](./image-type-templates/_index.md); no need to label every row.) |
| **Acquire Via** | `ai` / `web` / `user` / `placeholder` — drives Step 5 dispatch |
| Status | Initial status must be `Pending`, `Existing`, or `Placeholder`; see [`svg-image-embedding.md`](svg-image-embedding.md) for the full status enum |
| **Reference** | Free-form **intent description** (NOT a search query); feeds Image_Generator (ai) or Image_Searcher (web) |
+| `text_policy` (optional, `ai` rows only) | `none` (default — image carries no text, SVG overlays labels) or `embedded` (rare — image contains 1-5 short English keywords as part of the artwork; sketch-notes / ink-notes / typography type only). Leave blank for default. |
+| `page_role` (optional, `ai` rows only) | `local` (default — image is a block embedded in an SVG page) or `full_page` (escape hatch — image fills the whole slide, no SVG overlay). Only set `full_page` when the user explicitly requests it. Use sparingly (≤5% of pages) — mixing PNG-pages with SVG-pages causes visual drift. |
**No-crop flag (exception only)**: most images are croppable — Executor defaults to `preserveAspectRatio="xMidYMid slice"`. When an image must NOT lose pixels (data screenshots, charts, certificates, contracts, dense diagrams), append `no-crop` to its `spec_lock.md images` entry. Executor will then size the container to the native ratio and use `meet`. Don't tag the rest.
@@ -264,14 +334,14 @@ Selections may be mixed at the row level — e.g. a deck can use C for hero illu
| ✅ Intent description | ❌ Avoid |
|---|---|
| "Diverse engineering team collaborating around a laptop, modern office, natural light" | "team laptop office" |
-| "Abstract flowing digital waves in deep navy (#1E3A5F) to midnight blue gradient, subtle particle effects, clean center area for text overlay" | "use openverse, search 'office'" |
+| "Abstract atmospheric backdrop for academic-defense cover, calm center for text overlay, hint of campus skyline" | "use openverse, search 'office'" |
| "Sunlit forest path in autumn" | "team photo" |
**Per-row Reference grammar**:
| Acquire Via | Reference pattern |
|---|---|
-| `ai` | Subject + style + colors (HEX) + composition |
+| `ai` | **Subject + intent + composition** only. Do NOT repeat style words ("flat design", "modern", "vector") or HEX values — both are already locked deck-wide by h.5 (rendering + palette) and `design_spec §III` (colors). Image_Generator's prompt assembler injects them automatically. |
| `web` | Concrete subject/place/object first, then 1-3 quality descriptors |
**Allowed web quality descriptors**:
@@ -288,8 +358,8 @@ Selections may be mixed at the row level — e.g. a deck can use C for hero illu
| Mode | Good Reference |
|---|---|
| `web` | "Diverse team collaborating at a modern office desk, professional editorial photography, natural light, laptop visible" |
-| `ai` | "Abstract flowing digital waves in deep navy (#1E3A5F) to midnight blue gradient, subtle particle effects, clean center area for text overlay" |
-| `ai` | "Clean flowchart showing 4 sequential steps connected by arrows, flat design, light gray background, blue accent nodes" |
+| `ai` | "Atmospheric backdrop suggesting digital innovation; calm central area reserved for slide title overlay; light geometric anchor at one edge" |
+| `ai` | "Four-stage value chain from raw input to R&D output; icons should suggest tax-form → cost-reduction → equipment-upgrade → innovation; no text labels (SVG overlays them)" |
**Image type descriptions**:
diff --git a/skills/ppt-master/templates/design_spec_reference.md b/skills/ppt-master/templates/design_spec_reference.md
index b3627835..e87baa54 100644
--- a/skills/ppt-master/templates/design_spec_reference.md
+++ b/skills/ppt-master/templates/design_spec_reference.md
@@ -58,6 +58,13 @@
> **Reference**: Industry colors in `references/strategist.md` or `scripts/config.py` under `INDUSTRY_COLORS`
+### AI Image Strategy (fill only when §VIII has `ai` rows)
+
+- **Image Rendering**: [one of the 16 names in `references/image-renderings/_index.md`, e.g. `vector-illustration`]
+- **Image Palette**: [one of the 10 names in `references/image-palettes/_index.md`, e.g. `cool-corporate`]
+
+> Strategist: lock these once per deck in h.5; every AI image inherits them. Cross-check the rendering × palette compatibility matrix in `image-palettes/_index.md` — avoid `✗` combinations. Leave the section out entirely if §VIII has no `ai` rows.
+
### Gradient Scheme (if needed, using SVG syntax)
```xml
@@ -233,17 +240,17 @@ Catalog read: 71 templates
## VIII. Image Resource List (if needed)
-| Filename | Dimensions | Ratio | Purpose | Type | Status | Generation Description |
-| -------- | --------- | ----- | ------- | ---- | ------ | --------------------- |
-| cover_bg.png | {canvas_info['dimensions']} | [ratio] | Cover background | [Background/Photography/Illustration/Diagram/Decorative] | [Pending/Existing/Placeholder] | [AI generation prompt] |
+| Filename | Dimensions | Ratio | Purpose | Type | Acquire Via | Status | Reference | text_policy | page_role |
+| -------- | --------- | ----- | ------- | ---- | ----------- | ------ | --------- | ----------- | --------- |
+| cover_bg.png | {canvas_info['dimensions']} | [ratio] | Cover background | Background | ai | Pending | [subject + intent + composition, no style/HEX] | | |
**Status**:
-- **Pending** — needs AI generation, provide description
+- **Pending** — needs AI generation or web sourcing
- **Existing** — user-supplied, place in `images/`
- **Placeholder** — not yet processed, use dashed border in SVG
-**Type** (used by Image_Generator for prompt strategy):
+**Type** (narrative shorthand — kept for backward compatibility; Image_Generator infers its 9-way internal-composition type from `Purpose`):
- **Background** — full-page (covers / chapters); reserve text area
- **Photography** — real scenes, people, products, architecture
@@ -251,6 +258,18 @@ Catalog read: 71 templates
- **Diagram** — flowcharts, architecture diagrams, concept maps
- **Decorative** — partial decorations, textures, borders, dividers
+**text_policy** (`ai` rows only; leave blank for default):
+
+- *blank / `none`* — image carries no text; SVG overlays labels (recommended default for most rows)
+- `embedded` — image contains 1-5 short English keywords as part of the artwork (rare; sketch-notes / ink-notes / typography only; CJK characters fail in most models)
+
+**page_role** (`ai` rows only; leave blank for default):
+
+- *blank / `local`* — image is a block embedded in an SVG page (the universal default)
+- `full_page` — escape hatch: image fills the entire slide with no SVG overlay. Only when user explicitly requests this; use sparingly (≤5% of pages) — PNG-pages mixed with SVG-pages cause style drift
+
+**Reference grammar** (`ai` rows): write **subject + intent + composition** only. Do NOT repeat style words ("flat design", "modern") or HEX values — both are already locked deck-wide by `design_spec §III AI Image Strategy` (rendering + palette) and `§III Color Scheme` (HEX triplet). Image_Generator's prompt assembler injects them.
+
---
## IX. Content Outline
diff --git a/skills/ppt-master/templates/spec_lock_reference.md b/skills/ppt-master/templates/spec_lock_reference.md
index 5f4a8923..e5528c04 100644
--- a/skills/ppt-master/templates/spec_lock_reference.md
+++ b/skills/ppt-master/templates/spec_lock_reference.md
@@ -20,8 +20,12 @@
- text: #......
- text_secondary: #......
- border: #......
+- image_rendering: vector-illustration
+- image_palette: cool-corporate
> Strategist: fill only colors actually used. Add extra rows as needed; delete unused rows rather than leave as `#......`.
+>
+> **`image_rendering` and `image_palette`** — required only when `images` section below contains `ai`-sourced files. Values MUST be valid names from `references/image-renderings/_index.md` and `references/image-palettes/_index.md`. Image_Generator reads these and applies them deck-wide. Omit both rows when the deck has no AI-generated images.
## typography
- font_family: "Microsoft YaHei", Arial, sans-serif