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

refactor(prompts): organize visual authoring patterns by responsibility

hugohe30a35788e3543
diff --git a/docs/technical-design.md b/docs/technical-design.md
index 3fbee6cf..90b3acdc 100644
--- a/docs/technical-design.md
+++ b/docs/technical-design.md
@@ -516,20 +516,22 @@ Several architectural decisions shape this phase:
---
-## Image-Text Layout: Primary Structures + Modifier Layers
+## Image-Text Composition: P / M / A / C
-Whenever the image/formula branch is active, its compact placement vocabulary in [`references/image-layout-patterns.md`](../skills/ppt-master/references/image-layout-patterns.md) is read alongside the layout math. It offers 100 stable-id techniques in two freely composable layers:
+Whenever the image/formula branch is active, its compact placement vocabulary in [`references/image-layout-patterns.md`](../skills/ppt-master/references/image-layout-patterns.md) is read alongside the layout math. Its current patterns are organized by composition responsibility:
-- **Primary Structures** (container layouts / image-as-canvas + native overlay / multi-image compositions) — the page's bones. One or more per page; cross-Primary combinations like *side-by-side comparison + image-as-canvas annotation* are legitimate.
-- **Modifier Layers** (non-rectangular clips / overlays & cutouts / texture / special techniques) — finish. Any number per page, stacked on top of the Primary.
+- **P · Primary Structures** — single-visual, image-as-canvas, and multi-visual page skeletons.
+- **M · Modifier Layers** — crop/reveal, tone/focus, and framing/placement/depth treatments applied to an existing skeleton.
+- **A · Asset-Dependent Treatments** — compositions that require a prepared composite or appearance, cutout, or registered derivative.
+- **C · Cross-Page Continuity** — persistent-state, camera, and matched-framing relationships across slides.
-**Why the catalog includes a combination playbook.** Capability discovery alone does not teach repeatable composition. The playbook turns a page job into a compact sequence: select the Primary skeleton, diagnose a concrete integration problem, add the smallest useful Modifier or native overlay, integrate the layers through shared geometry and style, then stop when another layer no longer earns its place. Its high-yield combinations are recall aids, not recipes that every deck must cover.
+**Why the catalog includes a combination playbook.** Capability discovery alone does not teach repeatable composition. The playbook turns a page job into a compact sequence: select the `P` skeleton, name the integration need or stylistic role, add the smallest `M` that serves it, use `A` only when its prepared asset exists, add `C` only for an intentional cross-page relationship, then stop when another layer no longer earns its place. Its high-yield combinations are recall aids, not recipes that every deck must cover.
-**Why always reading the library does not impose a catalog or layer quota.** It expands compositional choice rather than defining legal output. A page may use one or several Primary structures and any useful Modifiers, cite no id at all, or use a free-form composition when that better serves the narrative and hierarchy.
+**Why always reading the library does not impose a catalog or layer quota.** It expands compositional choice rather than defining legal output. A page may use one or several `P` structures and any useful `M`, prepared `A`, or cross-page `C` patterns, cite no id at all, or use a free-form composition when that better serves the narrative and hierarchy.
-**Why the layers are physically separated, not just tagged.** Patterns are organized with Primary structures first and Modifiers second so the active role can navigate by construction role. Numbers remain stable identifiers (`#38` is still image-as-canvas + annotation cards regardless of where it sits in the file), so existing references across `spec_lock.md`, `design_spec.md §VIII`, executor logs, and historical examples keep resolving.
+**Why the catalog uses two-level IDs.** Handles such as `#P2-01` and `#M1-01` expose both composition responsibility and the local family, so combinations remain readable. The final number follows current browse order rather than preserving historical numbering. These are prompt vocabulary, not runtime effect codes: the Executor realizes the accompanying composition guidance, and the exporter does not map an ID to fixed DrawingML.
-**Why composition intent flows through Strategist's resource list.** The `Layout pattern` column in `§VIII Image Resource List` carries one non-empty free-form suggestion and may optionally cite stable ids from the library; `Crop Policy` separately records `adaptive` or `no-crop`. This preserves a useful starting point across session re-entry without making any catalog entry or id mandatory. Executor may resize, reflow, reposition, rebalance, replace the suggestion, or use another composition when that communicates better. Resource identity, must-use/content obligations, `no-crop`, and explicit user/template constraints remain binding; only changing those requires an upstream Design Spec update.
+**Why composition intent flows through Strategist's resource list.** The `Layout pattern` column in `§VIII Image Resource List` carries one non-empty free-form suggestion and may optionally cite hierarchical ids from the library; `Crop Policy` separately records `adaptive` or `no-crop`. This preserves a useful starting point across session re-entry without making any catalog entry or id mandatory. Executor may resize, reflow, reposition, rebalance, replace the suggestion, or use another composition when that communicates better. Resource identity, must-use/content obligations, `no-crop`, and explicit user/template constraints remain binding; only changing those requires an upstream Design Spec update.
**Why true hard constraints stay upstream.** Cross-cutting SVG authoring and PPTX-compatibility exceptions live in the authority set routed by [`shared-standards.md`](../skills/ppt-master/references/shared-standards.md). The layout patterns file points to that router rather than restating the contract, so each rule still has one owning module and no stale duplicate in the pattern catalog.
diff --git a/docs/zh/technical-design.md b/docs/zh/technical-design.md
index 1cad19a5..9b151dfa 100644
--- a/docs/zh/technical-design.md
+++ b/docs/zh/technical-design.md
@@ -486,20 +486,22 @@ Generate 执行以 [`workflows/generate-pptx.md`](../../skills/ppt-master/workfl
---
-## 图文版式:Primary 主结构 + Modifier 修饰层
+## 图文构图:P / M / A / C
-只要图片 / 公式分支被触发,就会把 [`references/image-layout-patterns.md`](../../skills/ppt-master/references/image-layout-patterns.md) 的精简版式词汇与布局计算规范一起读入。词汇库提供 100 条稳定编号技法,分成两层并可自由组合:
+只要图片 / 公式分支被触发,就会把 [`references/image-layout-patterns.md`](../../skills/ppt-master/references/image-layout-patterns.md) 的精简版式词汇与布局计算规范一起读入。当前模式按构图责任组织:
-- **Primary 主结构**(容器布局 / 图作画布 + 原生覆盖 / 多图组合)—— 页面的骨架。一页可一个也可多个;跨 Primary 的组合,如「侧边对比 + 图作画布的注解卡」,是合规的。
-- **Modifier 修饰层**(非矩形裁剪 / 叠加与挖孔 / 纹理 / 特殊技法)—— 装饰层。一页可叠任意多个,附着在 Primary 之上。
+- **P · Primary Structures** —— 单图、图作画布与多图系统构成页面骨架。
+- **M · Modifier Layers** —— 在既有骨架上加入裁切 / 揭示、色调 / 焦点或框饰 / 摆放 / 层次处理。
+- **A · Asset-Dependent Treatments** —— 依赖已准备的合成 / 外观资产、透明主体或配准派生图。
+- **C · Cross-Page Continuity** —— 维持跨页画面、镜头或匹配构图关系。
-**为什么词汇库还需要组合手册。** 只有能力发现,并不足以教会模型稳定构图。组合手册把页面任务压缩成一条决策链:选择 Primary 骨架、识别具体的图文整合问题、加入能解决问题的最小 Modifier 或原生覆盖层、用共享几何与样式整合各层,并在下一层已经不再产生收益时停止。高收益组合只是帮助回忆的范例,不是每份 deck 都必须覆盖的配方。
+**为什么词汇库还需要组合手册。** 只有能力发现,并不足以教会模型稳定构图。组合手册把页面任务压缩成一条决策链:选择 `P` 骨架、明确图文整合需求或风格角色、加入能承担该任务的最小 `M`、仅在准备资产已存在时采用 `A`、仅在有明确跨页关系时加入 `C`,并在下一层已经不再产生收益时停止。高收益组合只是帮助回忆的范例,不是每份 deck 都必须覆盖的配方。
-**为什么常驻读取灵感库仍不设置目录或层数配额。** 它用于扩展构图选择,不定义合法输出。一页可以由一个或多个 Primary 构成,按需叠加 Modifier,也可以完全不引用编号,直接使用更适合叙事和层级的自由构图。
+**为什么常驻读取灵感库仍不设置目录或层数配额。** 它用于扩展构图选择,不定义合法输出。一页可以由一个或多个 `P` 构成,按需叠加 `M`、已有资产支持的 `A` 或跨页 `C`,也可以完全不引用编号,直接使用更适合叙事和层级的自由构图。
-**为什么物理拆分两层,而不是只打标签。** 灵感库按 Primary 在前、Modifier 在后组织,便于按构造角色查找。编号仍是稳定 id(`#38` 永远是「图作画布 + 注解卡」,不论它在文件里的物理位置),因此 `spec_lock.md`、`design_spec.md §VIII`、历史 executor 输出和过往示例里的既有 `#<id>` 引用照样解析。
+**为什么采用两级 id。** `#P2-01`、`#M1-01` 这类编号会同时暴露构图责任与局部家族,让组合一眼可读;末尾序号跟随当前浏览顺序,不承担历史编号兼容。它们只是提示词词汇,不是运行时 effect code:Executor 根据条目里的构图说明自由实现,导出器不会把某个 id 映射成固定 DrawingML。
-**为什么构图意图走 Strategist 资源列表。** `§VIII 图片资源列表` 的 `Layout pattern` 列承载一句非空自由格式建议,也可以按需引用灵感库的稳定编号;`Crop Policy` 独立记录 `adaptive` 或 `no-crop`。这让可用的构图起点通过 lock 投影在 session 重入后继续存在,但不要求使用编号。Executor 可以调整尺寸、位置、流向与权重,也可以替换建议或使用其他构图。资源身份、必用 / 内容义务、`no-crop` 和显式用户 / 模板约束仍具有约束力;只有改变这些边界才需要先更新 Design Spec。
+**为什么构图意图走 Strategist 资源列表。** `§VIII 图片资源列表` 的 `Layout pattern` 列承载一句非空自由格式建议,也可以按需引用灵感库的两级编号;`Crop Policy` 独立记录 `adaptive` 或 `no-crop`。这让可用的构图起点通过 lock 投影在 session 重入后继续存在,但不要求使用编号。Executor 可以调整尺寸、位置、流向与权重,也可以替换建议或使用其他构图。资源身份、必用 / 内容义务、`no-crop` 和显式用户 / 模板约束仍具有约束力;只有改变这些边界才需要先更新 Design Spec。
**为什么真正的硬约束留在上游。** 跨切的 SVG 创作与 PPTX 兼容性例外属于 [`shared-standards.md`](../../skills/ppt-master/references/shared-standards.md) 路由的权威集。版式词表只指向该路由,不再复述合同;每条规则仍只有一个所属模块,词表里也不会留下过期副本。
diff --git a/skills/ppt-master/references/animations.md b/skills/ppt-master/references/animations.md
index 284fba05..701b6aed 100644
--- a/skills/ppt-master/references/animations.md
+++ b/skills/ppt-master/references/animations.md
@@ -322,7 +322,7 @@ Morph tweens objects it can match across consecutive slides. That makes it a gen
| Object rotates | Flip, turn, hinge |
| Image container scales up | Camera push-in |
| Scrim opacity drops, or a cut contour grows | Progressive reveal |
-| Same wide image at two `x` offsets | Camera pan (see image-layout-patterns `#87`) |
+| Same wide image at two `x` offsets | Camera pan (see image-layout-patterns `#C2-01`) |
Chain three or more pages to build a sequence — extend, hold, retract — where each page is still an ordinary editable slide.
@@ -345,7 +345,7 @@ that attribute remains importer metadata for mirror/preserve packages
**Not supported — Slide Zoom / Summary Zoom.** Click-to-jump navigation built on PowerPoint's Zoom objects (the "click a portrait, zoom into that section" pattern) has no exporter path. Build click-driven navigation with `trigger_shape` on ordinary object animations instead, or with plain hyperlinks.
-**No 3D**: perspective rotation, extrusion, and shear are outside the SVG contract — `skewX` / `skewY` and shear matrices fail closed ([`svg-effects.md`](./svg-effects.md) §6.8). Build the same impression with 2D means — offset, scale, overlap, and per-facet lightness (image-layout-patterns `#91`) — rather than attempting a 3D tilt.
+**No 3D**: perspective rotation, extrusion, and shear are outside the SVG contract — `skewX` / `skewY` and shear matrices fail closed ([`svg-effects.md`](./svg-effects.md) §6.8). Build the same impression with 2D means — offset, scale, overlap, and per-facet lightness — rather than attempting a 3D tilt.
---
@@ -451,7 +451,7 @@ context.
Keep a full-bleed moving image covering the canvas at both endpoints; exposing
the slide beneath it is a visible failure.
-It pairs naturally with a fixed foreground: with image-layout-patterns `#90`, the scrim and its cut contour stay locked while the world moves behind the cuts, which reads as looking through windows rather than as a sliding photo. The same logic applies to `#82` and `#12`.
+It pairs naturally with a fixed foreground: with image-layout-patterns `#M1-07`, the scrim and its cut contour stay locked while the world moves behind the cuts, which reads as looking through windows rather than as a sliding photo. The same logic applies to `#M1-10` and `#P1-09`.
Motion remains subordinate: avoid competing ambient paths or movement that
reduces the readability of body copy or data. Multiple coordinated layers are
@@ -464,7 +464,7 @@ mechanisms already defined above — none needs a new capability.
**Carousel** (Morph, §2.1 and §3.1) — hold a fixed row of card frames and rotate the *content* through them: on each page every image advances one position, so the card at centre changes while the frames stay put. Explicitly pair each moving content unit across adjacent pages; the fixed frames stay static and need no pair. Scales to any number of images with one page each.
-**Odometer / counting numerals** (morph or motion path) — build a vertical strip of digits 0–9 and show one through a fixed window formed by background-filled rectangles above and below ([`image-layout-patterns.md`](./image-layout-patterns.md) `#95`). Shift the strip so the target digit lands in the window, then either morph between two pages or run a `path_up` motion on the strip. A small stagger, such as `0.1s`, can make digit columns settle in sequence; synchronized motion is also valid when it fits the intended rhythm.
+**Odometer / counting numerals** (morph or motion path) — build a vertical strip of digits 0–9 and show one through a fixed window formed by background-filled rectangles above and below ([`image-layout-patterns.md`](./image-layout-patterns.md) `#M1-08`). Shift the strip so the target digit lands in the window, then either morph between two pages or run a `path_up` motion on the strip. A small stagger, such as `0.1s`, can make digit columns settle in sequence; synchronized motion is also valid when it fits the intended rhythm.
**Parallax depth** (morph) — move a background layer a *short* distance and a foreground layer a longer one between two pages. The differing travel is read as depth. Keep both layers' z-order identical on both pages; a layer that changes stacking between pages breaks the tween and the transition jumps.
diff --git a/skills/ppt-master/references/executor-image.md b/skills/ppt-master/references/executor-image.md
index cdd8aaf3..a474a8c2 100644
--- a/skills/ppt-master/references/executor-image.md
+++ b/skills/ppt-master/references/executor-image.md
@@ -30,7 +30,7 @@ Handle images by status; enum and lifecycle: [`svg-image-embedding.md`](svg-imag
**Default — active image integration (may override when plain placement is
stronger)**: Treat loaded [`image-layout-patterns.md`](./image-layout-patterns.md)
as vocabulary and [`image-layout-spec.md`](./image-layout-spec.md) as math, not
-a quota or lock. Run the catalog's §5 playbook before drawing; its combinations
+a quota or lock. Run the catalog's §7 playbook before drawing; its combinations
are recall aids, not coverage targets. For every image-bearing page, derive the
image/content or image/shape relationship from the communication job, hierarchy,
copy, asset
@@ -57,9 +57,11 @@ changes need no upstream rewrite.
**Crop policy**: read the §VIII row and matching lock projection. On every slide that uses a `crop=no-crop` source (or a legacy trailing `| no-crop`), retain one visible complete instance using one of the nine legal anchors with `meet`, never `none`, and no `clip-path`, `mask`, clipping overflow, or nested `<svg>` crop viewport. An auxiliary same-slide detail or lens may crop the same source only while that complete instance remains visible. `crop=adaptive` permits but never requires cropping; choose `meet` or focal-safe `slice` from purpose, ratio, focus, and container. A missing or conflicting `source` / `pattern` / `crop` projection returns upstream instead of being inferred during execution; the accurately projected `pattern` remains a preferred expression that may be adapted without rewriting the lock.
**Hard rule — same-source addressable crops, only when adopted**: A layout
-suggestion, including pattern `#100`, never activates this transport. Apply it
-only when the chosen composition uses independent same-source crops or an
-explicit editable/Morph requirement needs them. Once active, reuse one exact
+suggestion, including pattern `#M1-11`, never activates this transport. Pattern
+`#M1-09` is a separate deliberate-offset treatment and never claims registered
+or Morph continuity. Apply this transport only when independent crops must
+preserve one exact scene map or an explicit editable/Morph requirement needs
+them. Once active, reuse one exact
`href` without slice assets. Give every independent/Morph object a stable
page-unique id and a distinct nested crop wrapper under
[`svg-effects.md`](./svg-effects.md) §6.5. Plain rectangles need no crop marker;
@@ -70,7 +72,7 @@ source-to-page transform over the union of the visible containers. Never run
`cover` / focal cropping independently per container: different container
positions and heights must change the source-unit `x`, `y`, `width`, and
`height` by the same union-relative mapping, so the gaps remove pixels without
-rescaling the scene. A compound clip on one `<image>` is pattern `#82`, not a
+rescaling the scene. A compound clip on one `<image>` is pattern `#M1-10`, not a
substitute when the objects must remain independently editable or Morphable.
**Formula images — declared-inference fallback for a missing `no-crop` flag**: rows with `Acquire Via: formula` or `Type: Latex Formula` MUST be treated as no-crop. For a rendered file, use dimensions in this order: current `analysis/image_analysis.csv`, `design_spec.md §VIII`, then `images/formula_manifest.json`. For a `Needs-Manual` row, size the dashed placeholder from the planned dimensions in §VIII, then the manifest; the readiness gate re-analyzes the supplied file and reconciles the container before export. Do not normalize all formulas to one height unless the spec explicitly states that layout choice.
diff --git a/skills/ppt-master/references/image-layout-patterns.md b/skills/ppt-master/references/image-layout-patterns.md
index d50bbbb5..427a8ba0 100644
--- a/skills/ppt-master/references/image-layout-patterns.md
+++ b/skills/ppt-master/references/image-layout-patterns.md
@@ -9,17 +9,27 @@ Compact composition vocabulary for prepared images, illustrations, and rendered
| Boundary | Rule |
|---|---|
| Selection | **Reference — not a constraint**: use any pattern, combine compatible ones, or author a clearer free-form composition; no ID, family, or coverage quota applies |
-| Stable IDs | `#1`–`#100` are stable lookup handles, not a workflow |
-| Primary vs modifier | One or more compatible Primary Structures + `0..n` Modifier Layers |
+| Canonical IDs | Two-level prompt handles such as `#P1-01` and `#M2-01`; the letters expose composition responsibility, the first digit selects a family, and the final number follows current browse order. No legacy aliases or exporter mapping |
+| Composition grammar | Select one or more compatible `P` structures, then add only useful `M`, prepared `A`, or cross-page `C` patterns |
+| Effect options | Direction, side, position, proportion, contour, and intensity are options stated after the ID; they do not create another pattern |
| Asset ownership | Consume prepared project-local assets; no acquisition or processing during SVG realization |
| Exact information | Keep exact or editable text, data, labels, and annotations native |
+| Group | Responsibility | Families | Entries |
+|---|---|---|---:|
+| `P` · Primary Structures | Define the page skeleton | `P1` Single Visual · `P2` Image as Canvas · `P3` Multi-Visual | 46 |
+| `M` · Modifier Layers | Add crop/reveal, tone/focus, or framing/placement/depth treatment to an existing skeleton | `M1` Reveal/Crop/Registration · `M2` Tone/Focus/Contrast · `M3` Framing/Placement/Depth | 27 |
+| `A` · Asset-Dependent Treatments | Require a prepared composite, cutout, or registered derivative | `A1` Composite/Appearance · `A2` Subject Layers · `A3` Registered Derivatives | 10 |
+| `C` · Cross-Page Continuity | Sustain a visual relationship across slides | `C1` Persistent State · `C2` Camera Continuity · `C3` Matched Framing | 4 |
+
| Mechanism, not generic “mask” | Owner |
|---|---|
| Layout geometry | [`image-layout-spec.md`](./image-layout-spec.md) |
| Crop: policy / legality / wrapper | [`svg-image-embedding.md`](./svg-image-embedding.md) / [`shared-standards-core.md`](./shared-standards-core.md) / [`svg-effects.md`](./svg-effects.md) |
-| Scrim / gradient / wash / depth paint | [`svg-effects.md`](./svg-effects.md) |
+| Scrim / gradient / wash | [`svg-effects.md`](./svg-effects.md) |
+| Shadow / glow / overlay-boundary elevation | [`svg-effects.md`](./svg-effects.md) §6.4 |
| Boolean hole / text subtraction | [`native-shape-authoring.md`](./native-shape-authoring.md) |
+| Faceted or folded native form | [`native-shape-authoring.md`](./native-shape-authoring.md) §7.1 / [`svg-effects.md`](./svg-effects.md) §6.11 |
| Per-pixel mask / blend | Prepared / baked asset; [`svg-effects.md`](./svg-effects.md) boundary |
| Chart overlay / motion | [`executor-chart.md`](./executor-chart.md) / [`animations.md`](./animations.md) |
@@ -29,253 +39,210 @@ Compact composition vocabulary for prepared images, illustrations, and rendered
| Page need | Pattern options |
|---|---|
-| Quiet, direct evidence | `#16` negative space, `#19` framed figure, `#47` small multiples, `#48` comparison |
-| One visual should become the page canvas | `#38`–`#46` native overlays |
-| One source should span unusual geometry | `#82` one picture, `#100` addressable pictures, `#89` sharp subject over receded copy |
-| Several visuals should read as one system | `#50` grid, `#77` mosaic with text cell, `#88` tessellation, `#92` split tiling, `#93` curve array, `#94` depth row |
-| A foreground needs an opening or reveal | `#83` true hole, `#90` cut scrim, `#95` background-registered fill, `#68` text subtraction |
-| Text needs contrast without discarding the visual | `#29` directional scrim, `#33` spotlight, `#97` prepared frosted panel, `#98` grid scrim |
-| A cover, divider, or promotional page needs image-led structure | `#73`–`#81` |
-| Consecutive pages should share one visual world | `#87` cross-page pan opportunity |
+| Quiet, direct evidence | `#P1-11` negative space, `#P1-12` framed figure, `#P3-04` small multiples, `#P3-03` comparison |
+| One visual should become the page canvas | `#P2-01`–`#P2-10` native overlays |
+| One source should span unusual geometry | `#M1-10` one picture, `#M1-11` addressable pictures, `#A3-01` sharp subject over receded copy |
+| Several visuals should read as one system | `#P3-05` grid, `#P3-14` mosaic with text cell, `#P3-20` tessellation, `#P3-21` split tiling, `#P3-22` curve array, `#P3-23` depth row |
+| A foreground needs an opening or reveal | `#M1-06` true hole, `#M1-07` cut scrim, `#M1-08` background-registered fill, `#M1-05` text subtraction |
+| Text needs contrast without discarding the visual | `#M2-01` directional scrim, `#M2-05` spotlight, `#A3-02` prepared frosted panel, `#M2-09` grid scrim |
+| A subject should cross or re-layer around native content | `#A2-02` frame breakout or `#A2-03` registered subject/base pair |
+| A cover, divider, or promotional page needs image-led structure | `#P1-01`, `#P1-04`, `#P1-13`, or `#P3-15`–`#P3-19` |
+| Consecutive pages should share one visual world | `#C1-01` persistent state, `#C2-01` pan, `#C2-02` push/pull, or `#C3-01` matched framing |
---
## 3. Primary Structures
-### 3.1 Single-Image Layouts
-
-1 · 73. **Full-bleed title structures** — **#1** floats a title over one canvas-filling image; **#73** uses a poster-like side or lower-corner title stack without a title card.
-
-2–3. **Side image and text** — **#2** places the visual left and copy right; **#3** mirrors that relationship.
-
-4. **Edge-bleed image** — extend the visual beyond one canvas edge so it enters or exits the page instead of sitting in a box.
-
-5–7. **Horizontal split structures** — **#5** uses an upper image band with content columns below; **#6** places the image band below a title/content field; **#7** gives image and content balanced top/bottom fields with a deliberate seam.
-
-9. **Central image in a 3×3 field** — put the visual at the center and use surrounding cells for labels, evidence, or small data.
-
-10. **Centered image with radial callouts** — place one focal visual centrally and route native callouts outward.
-
-11. **Diagonal visual/content transition** — use a diagonal edge or directional fade whose contour supports the page's reading direction.
-
-12. **Receded image with oversized type** — push the image into the background and make typography the dominant foreground.
-
-13 · 18. **Vertical image columns** — **#13** is a slim strip beside giant horizontal type; **#18** is a full-height sidebar beside a general content field.
-
-14 · 76. **Mid-page image bands** — **#14** runs a banner between content above and below; **#76** places native copy in a calm part of a wider image belt while keeping the heading outside.
-
-16. **Negative-space dominant** — keep the visual and copy compact so whitespace carries hierarchy.
-
-19. **Framed image with caption** — float one image in whitespace with a restrained frame and native caption.
-
-81. **Illustration-as-layout field** — let a large illustration or cutout set the page rhythm; place copy in its calm regions.
-
-### 3.2 Image-as-Canvas Layouts with Native Overlay
-
-Use the prepared visual as the spatial field while native SVG carries the information layer.
-
-38. **Annotated evidence** — place compact annotation cards with routed leaders over the visual.
-
-39. **Process through a scene** — connect numbered flow nodes along meaningful geometry in a real or illustrated scene.
-
-40. **Contextual metrics** — place native KPI tiles in calm regions of the visual.
-
-41. **Engineering overlay** — add measurement lines, end ticks, module tags, and exact labels.
-
-42. **Interface overlay** — add translucent UI panels, progress indicators, badges, and native arcs.
-
-43. **Accurate chart over visual context** — draw the chart natively, treat the image as context only, and follow [`executor-chart.md`](./executor-chart.md).
-
-44. **Architecture or network overlay** — draw native nodes, connections, icons, and labels over the scene.
-
-45. **Hotspots with sidebar legend** — pair numbered points on the visual with a matching native legend.
-
-46. **Detail lens** — border one sub-region and place a native caption nearby.
-
-### 3.3 Multi-Image Layouts
-
-8. **Z-pattern serpentine** — alternate image and text positions down successive bands to create a zigzag reading path.
-
-15. **Montage with spanning type** — tile several visuals and run one legible title treatment across the assembled field.
-
-17. **Picture-in-picture inset** — overlay one framed inset image over a larger image; the sources may differ. Use `#62` when an overview and detail must share one source.
-
-47. **Small multiples** — arrange same-kind images in one evenly spaced row with identical containers and caption structures so peers can be compared.
-
-48. **Before/after or A/B comparison** — place two equally sized image containers side by side and label both states explicitly.
-
-49. **Asymmetric collage** — balance one dominant visual with smaller supporting visuals using consistent gaps.
-
-50. **Equal-cell tiled grid** — use equal containers when equality and scanability are the message.
-
-51. **Irregular mosaic** — pack different-sized tiles into one coherent field.
-
-52–53. **Filmstrip and stack** — **#52** aligns a horizontal sequence by height while allowing content-driven widths; **#53** aligns a vertical sequence by width with annotations on a shared side.
-
-54. **Overlapping image stack** — use z-order and restrained offsets to create a layered print or archive feel.
-
-55–56. **Diptych and triptych** — **#55** pairs adjacent images; **#56** aligns three distinct sources, unlike baked **#26**.
-
-74. **Image-navigation table of contents** — turn sections into visual navigation cards with native numbering and summaries.
-
-75. **Asymmetric dual-image chapter banner** — pair a compact image with a wider image and anchor them with a native section marker.
-
-77. **Photo mosaic with a text cell** — reserve one mosaic cell for copy so absence of a photo creates hierarchy.
-
-78. **Ambient image, evidence image, and text panel** — let one visual establish mood and another provide concrete proof.
-
-79. **Ribbon-header image cards** — give peer image columns distinct native ribbon or chevron headings.
-
-80. **Side hero with staggered evidence cards** — pair a full-height hero field with supporting cards that step through the opposite side.
-
-88. **Non-rectangular tessellation** — tile clipped geometric cells and reserve selected cells for native copy or color.
-
-92. **Split tiling** — fragment one parent contour into interlocking cells, each holding a different image as an independent object.
-
-93. **Containers arrayed along a curve** — distribute containers consistently along an arc, wave, or ring; keep image orientation intentional.
-
-94. **Embracing arc row** — create depth with a center-weighted scale and vertical-offset rhythm while keeping the objects two-dimensional.
+### 3.1 P1 · Single-Visual Structures
+
+- **#P1-01 · Full-bleed title field** — float a native title over one canvas-filling image; optionally use a poster-scale side or lower-corner stack directly on the image without a title card.
+- **#P1-02 · Side image with content field** — place one visual beside native copy; let reading direction choose left/right and hierarchy choose partial- or full-height.
+- **#P1-03 · Edge-bleed image** — extend the visual beyond one canvas edge so it enters or exits the page instead of sitting in a box.
+- **#P1-04 · Image band or belt** — use a top band with content columns below, a middle band with content above and below, or a lower band beneath the title/content field; native copy may also occupy a verified calm zone while the heading stays outside.
+- **#P1-05 · Balanced horizontal split** — give image and content balanced top/bottom fields with a deliberate seam.
+- **#P1-06 · Central image in a 3×3 field** — put the visual at the center and use surrounding cells for labels, evidence, or small data.
+- **#P1-07 · Centered image with radial callouts** — place one focal visual centrally and route native callouts outward.
+- **#P1-08 · Diagonal visual/content transition** — use a diagonal image/content boundary whose contour supports the page's reading direction.
+- **#P1-09 · Receded image with oversized type** — push the image into the background and make typography the dominant foreground.
+- **#P1-10 · Slim image strip with large type** — place a narrow image strip beside oversized horizontal type.
+- **#P1-11 · Negative-space dominant** — keep the visual and copy compact so whitespace carries hierarchy.
+- **#P1-12 · Framed figure with caption** — float one image in whitespace with a restrained frame and native caption.
+- **#P1-13 · Illustration as layout field** — let a large illustration or cutout set the page rhythm; place copy in its calm regions.
+
+### 3.2 P2 · Image as Canvas with Native Overlay
+
+**Reference — not a constraint**: use `P2` when native annotations, data, or process nodes bind to locations inside the prepared visual; an ordinary side image or inset remains `P1` / `P3`.
+
+- **#P2-01 · Annotated evidence** — place compact annotation cards with routed leaders over the visual.
+- **#P2-02 · Hotspots with sidebar legend** — pair numbered points on the visual with a matching native legend.
+- **#P2-03 · Detail lens** — outline one sub-region on the existing picture and place a native caption nearby; keep one picture object and do not add a rescaled image inset.
+- **#P2-04 · Overview with zoom callout** — keep the full overview visible, add a second independently cropped picture from the exact same source, and link the selected region to that detail with native annotation; preserve source-region correspondence, not page-space registration.
+- **#P2-05 · Contextual metrics** — place native KPI tiles in calm regions of the visual.
+- **#P2-06 · Process through a scene** — connect numbered flow nodes along meaningful geometry in a real or illustrated scene.
+- **#P2-07 · Engineering overlay** — add measurement lines, end ticks, module tags, and exact labels.
+- **#P2-08 · Architecture or network overlay** — draw native nodes, connections, icons, and labels over the scene.
+- **#P2-09 · Interface overlay** — add translucent UI panels, progress indicators, badges, and native arcs.
+- **#P2-10 · Accurate chart over visual context** — draw the chart natively, treat the image as context only, and follow [`executor-chart.md`](./executor-chart.md).
+
+`#P2-03` and `#P2-04` are not interchangeable: the former annotates one picture; the latter exports an overview plus a second same-source picture object with an independent crop.
+
+### 3.3 P3 · Multi-Visual Structures
+
+- **#P3-01 · Diptych** — pair two adjacent images around one shared visual argument.
+- **#P3-02 · Triptych** — align three distinct sources, unlike a baked multi-scene asset.
+- **#P3-03 · Before/after or A/B comparison** — place two equally sized image containers side by side and label both states explicitly.
+- **#P3-04 · Small multiples** — arrange same-kind images in identical containers and caption structures so peers can be compared.
+- **#P3-05 · Equal-cell tiled grid** — use equal containers when equality and scanability are the message.
+- **#P3-06 · Linear image sequence** — align a horizontal sequence by height with content-driven widths, or a vertical sequence by width with annotations and captions on one shared side.
+- **#P3-07 · Z-pattern serpentine** — alternate image and text positions down successive bands to create a zigzag reading path.
+- **#P3-08 · Ascending or descending picture process** — step image containers progressively upward or downward and use native numbering or connectors to preserve sequence.
+- **#P3-09 · Picture-in-picture inset** — overlay one framed image over a larger source; use `#P2-04` when the inset magnifies a selected region from that exact source.
+- **#P3-10 · Overlapping image stack** — use z-order and restrained offsets to create a layered print or archive feel.
+- **#P3-11 · Asymmetric collage** — balance one dominant visual with smaller supporting visuals using consistent gaps.
+- **#P3-12 · Irregular mosaic** — pack different-sized tiles into one coherent field.
+- **#P3-13 · Montage with spanning type** — tile several visuals and run one legible native title treatment across the assembled field.
+- **#P3-14 · Photo mosaic with a text cell** — reserve one mosaic cell for copy so absence of a photo creates hierarchy.
+- **#P3-15 · Image-navigation table of contents** — turn sections into visual navigation cards with native numbering and summaries.
+- **#P3-16 · Asymmetric dual-image chapter banner** — pair a compact image with a wider image and anchor them with a native section marker.
+- **#P3-17 · Ambient image, evidence image, and text panel** — let one visual establish mood and another provide concrete proof.
+- **#P3-18 · Ribbon-header image cards** — give peer image columns distinct native ribbon or chevron headings.
+- **#P3-19 · Side hero with staggered evidence cards** — pair a full-height hero field with supporting cards that step through the opposite side.
+- **#P3-20 · Non-rectangular tessellation** — tile clipped geometric cells and reserve selected cells for native copy or color.
+- **#P3-21 · Split tiling** — fragment one parent contour into interlocking cells, each holding a different image as an independent object.
+- **#P3-22 · Containers arrayed along a curve** — distribute containers consistently along an arc, wave, or ring; keep image orientation intentional.
+- **#P3-23 · Embracing arc row** — create depth with a center-weighted scale and vertical-offset rhythm while keeping the objects two-dimensional.
---
## 4. Modifier Layers
-### 4.1 Reveal, Crop, and Registration
-
-20–23. **Basic crops** — **#20** is a circle, **#21** a rounded rectangle, **#22** an ellipse, and **#23** a bounded polygon.
-
-24. **Custom-path crop** — use one authored organic or silhouette contour when basic crops cannot express it.
-
-25. **Layered paper-cut stack** — clip image layers independently and draw vector layers in their final geometry.
-
-62. **Full view plus zoom callout** — reuse one source for an overview and a differently cropped detail linked by native annotation.
-
-67. **Painted knock-out** — cover part of an image with the matching background or another prepared visual; use this imitation only when the surrounding field makes it credible.
-
-68. **Text-as-subtraction** — reveal an image or field through glyph-shaped holes; materialize supported text Boolean geometry through [`native-shape-authoring.md`](./native-shape-authoring.md).
-
-83. **Panel with a true hole** — subtract an opening from a foreground panel so changing content behind it remains valid; follow [`native-shape-authoring.md`](./native-shape-authoring.md) §6.
-
-84. **Deliberately misregistered fragments** — separate same-source fragments and break their alignment intentionally for torn, misprint, or glitch language.
-
-85. **Subject breaking out of a container** — layer a registered foreground subject across its frame boundary; use an already prepared cutout when the composition requires one.
-
-90. **Scrim with true cutouts** — subtract image-reveal openings from a full-canvas scrim; lettering and complex cuts follow [`native-shape-authoring.md`](./native-shape-authoring.md) §6.
-
-95. **Background-registered shape fill** — fill a stationary shape with the page background sampled in root coordinates so it impersonates a hole while remaining an object.
+### 4.1 M1 · Reveal, Crop, and Registration
-82. **One image across detached shapes** — export one native picture with disjoint clip subpaths so one continuous scene spans every shape.
-
-100. **Same-source addressable crops** — export several independent native pictures that share an exact source coordinate system; follow [`executor-image.md`](./executor-image.md) §1.
+- **#M1-01 · Geometric crop** — clip the visual to a circle, ellipse, rounded rectangle, or bounded polygon; the contour is an effect option.
+- **#M1-02 · Custom-path crop** — use one authored organic or silhouette contour when a basic geometric crop cannot express it.
+- **#M1-03 · Layered paper-cut stack** — clip image layers independently and draw vector layers in their final geometry.
+- **#M1-04 · Faux painted knock-out** — cover part of an image with the matching background or another prepared visual only when the surrounding field makes the imitation credible.
+- **#M1-05 · Text-as-subtraction** — reveal an image or field through glyph-shaped holes; materialize supported text Boolean geometry through [`native-shape-authoring.md`](./native-shape-authoring.md).
+- **#M1-06 · Panel with a true hole** — subtract an opening from a foreground panel so changing content behind it remains valid; follow [`native-shape-authoring.md`](./native-shape-authoring.md) §6.
+- **#M1-07 · Scrim with true cutouts** — subtract image-reveal openings from a full-canvas scrim; lettering and complex cuts follow [`native-shape-authoring.md`](./native-shape-authoring.md) §6.
+- **#M1-08 · Background-registered shape fill** — fill a stationary shape with the page background sampled in root coordinates so it impersonates a hole while remaining an object.
+- **#M1-09 · Deliberately misregistered fragments** — separate same-source fragments and break their alignment intentionally for torn, misprint, or glitch language.
+- **#M1-10 · One image across detached shapes** — export one native picture with disjoint clip subpaths so one continuous scene spans every shape.
+- **#M1-11 · Same-source addressable crops** — export several independent native pictures that share an exact source coordinate system; follow [`executor-image.md`](./executor-image.md) §1.
The following three patterns are topologically different and are not interchangeable:
| ID | Sources | Exported picture topology | Visual relationship |
|---|---|---|---|
-| One-picture compound crop (`#82`) | One source | One native picture with disjoint clip subpaths | One continuous scene spans detached shapes; fragments are not independent picture objects |
-| Addressable same-source crops (`#100`) | One exact source reference | Several independently addressable native pictures | Crops share one source coordinate system and remain in exact registration; follow [`executor-image.md`](./executor-image.md) §1 |
-| Different-source split tiling (`#92`) | Different sources | Several independent picture objects in interlocking cells | The parent contour unifies peers; scene continuity across cells is not implied |
-
-### 4.2 Tone and Contrast
-
-27. **Linear-gradient scrim** — add directional contrast while retaining image detail.
-
-28. **Radial vignette** — darken the periphery to emphasize the central field.
-
-29. **Opaque-to-transparent directional scrim** — protect copy on one side while keeping the focal side clear.
-
-30–31. **Flat washes** — **#30** uniformly darkens or lightens with a neutral wash; **#31** uses a palette color to integrate a foreign-looking image.
-
-32. **Multi-hue gradient scrim** — shift color temperature or bridge image regions with a multi-stop field.
-
-33. **Radial spotlight** — keep a selected region clear while surrounding content recedes.
-
-57 · 60 · 61. **Receded image fields** — **#57** is a texture wash, **#60** ambient atmosphere, and **#61** a watermark behind body copy.
-
-66. **Fade into a solid background** — match the fade endpoint to the page background so the image edge disappears.
+| One-picture compound crop (`#M1-10`) | One source | One native picture with disjoint clip subpaths | One continuous scene spans detached shapes; fragments are not independent picture objects |
+| Addressable same-source crops (`#M1-11`) | One exact source reference | Several independently addressable native pictures | Crops share one source coordinate system and remain in exact registration; follow [`executor-image.md`](./executor-image.md) §1 |
+| Different-source split tiling (`#P3-21`) | Different sources | Several independent picture objects in interlocking cells | The parent contour unifies peers; scene continuity across cells is not implied |
+
+### 4.2 M2 · Tone, Focus, and Contrast
+
+- **#M2-01 · Directional gradient scrim** — add directional contrast while retaining image detail; when copy overlays the image, protect its side and keep the focal side clear. Direction, protected side, opacity curve, and stops are options.
+- **#M2-02 · Radial vignette** — darken the periphery to emphasize the central field.
+- **#M2-03 · Flat wash** — uniformly darken, lighten, or palette-tint an image to integrate it with the page.
+- **#M2-04 · Multi-hue gradient scrim** — shift color temperature or bridge image regions with a multi-stop field.
+- **#M2-05 · Radial spotlight** — keep a selected region clear while surrounding content recedes.
+- **#M2-06 · Texture or atmospheric wash** — turn an image into a low-contrast supporting texture or atmosphere field rather than presenting it as primary evidence.
+- **#M2-07 · Watermark image field** — place a strongly receded image behind body copy.
+- **#M2-08 · Fade into a solid background** — match the fade endpoint to the page background so the image edge disappears.
+- **#M2-09 · Grid scrim with varied opacity** — modulate one underlying image through a seamless grid of translucent cells.
+
+### 4.3 M3 · Framing, Placement, and Depth Accents
+
+- **#M3-01 · Restrained image frame** — trace the image with one restrained outline.
+- **#M3-02 · Repeated photo-print frames** — repeat nearby outlines for a layered photo-print treatment.
+- **#M3-03 · Editorial rotation** — rotate an image or its container slightly when the style benefits from an informal print gesture.
+- **#M3-04 · Lifted image panel** — separate a standalone image panel from the background with one restrained depth cue; [`svg-effects.md`](./svg-effects.md) owns the legal effect.
+- **#M3-05 · Contour echo** — reuse a non-rectangular clip contour as an offset stroke instead of boxing it in a rectangle.
+- **#M3-06 · Decorative corner fragment** — use a cropped image fragment as a secondary corner accent.
+- **#M3-07 · Image divider band** — replace a line between content regions with a narrow visual strip.
-98. **Grid scrim with varied cell opacity** — modulate one underlying image through a seamless grid of translucent cells.
-
-### 4.3 Placement, Framing, and Depth
-
-58. **Decorative corner fragment** — use a cropped image fragment as a secondary corner accent.
-
-59. **Image divider band** — replace a line between content regions with a narrow visual strip.
-
-36. **Shadow under an image panel** — apply one §6.4 filter directly to a standalone unclipped `<image>`; for a clipped picture, keep `clip-path` on the image and put the filter on its exact single-image outer carrier. When the lifted object includes a frame or caption, shadow that supporting shape instead.
-
-37. **Glow on an overlay shape** — emphasize an overlay boundary within the supported effect contract.
-
-69. **Editorial rotation** — rotate an image or its container slightly when the style benefits from an informal print gesture.
-
-70–71. **Frames** — **#70** traces the image with one restrained outline; **#71** repeats nearby outlines for a layered photo-print treatment.
+---
-86. **Contour echo** — reuse a non-rectangular clip contour as an offset stroke instead of boxing it in a rectangle.
+## 5. Asset-Dependent Treatments
-91. **Faceted gradient form** — build a folded or ribbon-like object from adjacent facets with consistent light logic.
+**Prepared-asset gate**: every treatment below consumes its named project-local asset; it does not authorize creation during SVG realization. Embedded lettering belongs to the artwork only when deliberately fixed; authoritative or editable labels remain native SVG. If a required asset is absent, return to the active workflow's preparation owner or choose a native treatment.
-### 4.4 Prepared-Asset Treatments
+### 5.1 A1 · Prepared Composites and Appearance
-**Prepared-asset gate**: every treatment below consumes its named project-local asset; it does not authorize creation during SVG realization. In particular, `#96`, `#97`, and `#99` require their derivative pairs in advance. If a required asset is absent, return to the active workflow's preparation owner or choose a native treatment.
+- **#A1-01 · Baked multi-scene composite** — use one prepared source containing coordinated internal scenes; distinct from a `P3` structure built from separate images.
+- **#A1-02 · Prepared blurred backdrop** — use a prepared blurred asset; runtime image blur is not the backdrop mechanism.
+- **#A1-03 · Prepared duotone photograph** — use a prepared two-color image treatment.
+- **#A1-04 · Prepared soft image-to-image blend** — use a precomposited or baked-alpha asset when arbitrary images must blend per pixel.
-26. **Baked triptych** — use one prepared wide source containing coordinated internal scenes; distinct from separate-image **#56**.
+### 5.2 A2 · Subject and Cutout Layers
-34. **Blurred-image backdrop** — use a prepared blurred asset; runtime image blur is not the backdrop mechanism.
+- **#A2-01 · Transparent sticker or cutout** — use a prepared RGBA asset and preserve its open silhouette.
+- **#A2-02 · Subject breaking out of a container** — register a prepared foreground subject across its frame boundary.
+- **#A2-03 · Registered subject/base pair** — align a base photo with its prepared transparent subject cutout in one coordinate system; optionally place a native title, panel, or shape between them so the subject crosses that middle layer.
-35. **Duotone photograph** — use a prepared two-color image treatment.
+### 5.3 A3 · Registered Derivatives
-63. **Transparent sticker or cutout** — use a prepared RGBA asset and preserve its open silhouette.
+- **#A3-01 · Sharp subject over receded full-frame derivative** — register a sharp focal crop or prepared cutout subject over a blurred, tinted, or desaturated full-frame derivative; never cover it with an opaque full-frame copy.
+- **#A3-02 · Registered frosted-glass panel** — place a prepared registered blurred crop beneath the native text panel.
+- **#A3-03 · Selective desaturation** — register a prepared color subject layer over a desaturated base.
-64. **Artwork with embedded lettering** — use only for deliberate, fixed lettering that belongs to the artwork.
+---
-65. **Text-free artwork with native labels** — keep authoritative or editable labels outside the asset as native SVG.
+## 6. Cross-Page Continuity
-72. **Soft image-to-image blend** — use a precomposited or baked-alpha asset when arbitrary images must blend per pixel.
+### 6.1 C1 · Persistent Visual State
-89. **Sharp subject over a receded full-frame copy** — register two references to the same source; any blurred or desaturated derivative must already be prepared.
+- **#C1-01 · Persistent visual with progressive overlays** — keep one source, crop, and placement stable while native annotations or claims change, replace, or accumulate across consecutive pages.
-96. **Cutout subject re-laid over its source photo** — use a base photo plus its prepared transparent subject cutout, aligned in one coordinate system.
+### 6.2 C2 · Camera Continuity
-97. **Frosted-glass image panel** — use a base photo plus its prepared registered blurred crop beneath the text panel.
+- **#C2-01 · Cross-page image pan** — show different regions of one wide image across consecutive pages so the audience recognizes one continuous place.
+- **#C2-02 · Cross-page push-in or pull-out** — reuse one source while the crop or scale moves from overview to detail, or detail to overview, across consecutive pages.
-99. **Selective desaturation** — use a prepared desaturated base plus a registered color subject layer.
+If motion is enabled, [`animations.md`](./animations.md) owns its implementation; these patterns only define the static framing relationship.
-### 4.5 Cross-Page Continuity
+### 6.3 C3 · Matched Framing
-87. **Cross-page image pan opportunity** — show different regions of one wide image across consecutive pages so the audience recognizes one continuous place. Keep the source and framing relationship coherent; if motion is enabled, [`animations.md`](./animations.md) owns its implementation.
+- **#C3-01 · Matched framing across sources** — keep the subject anchor, visual scale, horizon, or dominant contour aligned while consecutive pages replace one source with another.
---
-## 5. Composition Playbook
+## 7. Composition Playbook
-**Reference — not a constraint**: build from the page's communication job, not catalog coverage. Choose one or more compatible Primary Structures, then add only Modifier Layers or native overlays that solve an observed page problem.
+**Reference — not a constraint**: build from the page's communication job, not catalog coverage. Choose the smallest combination that resolves the page and any intentional cross-page relationship.
-### 5.1 Combination Procedure
+### 7.1 Combination Procedure
| Pass | Decision |
|---|---|
-| Skeleton | Select the Primary relationship: one visual field, comparison, sequence, evidence view, or multi-image system. Compatible Primaries may share one page. |
-| Diagnose | Name the concrete integration problem: weak text contrast, aspect mismatch, unclear focus, missing reveal/opening, unrelated peers, or exact information needing a native layer. |
-| Repair | Add the smallest legal Modifier or native overlay that solves each chosen problem; add no technique without a job. |
-| Integrate | Reuse contours, baselines, gap rhythm, palette, and required registration so the layers read as one composition. |
-| Stop | Omit or simplify the next layer when it repeats a job, competes with the message, requires an unavailable asset, or weakens legibility/editability. |
+| Skeleton | Select the `P` relationship: one visual field, comparison, sequence, evidence view, or multi-image system. Compatible Primaries may share one page |
+| Job | Name the concrete integration need or stylistic role: contrast, aspect fit, focus, reveal/opening, peer cohesion, exact native information, or a recurring depth/print gesture |
+| Apply | Add the smallest `M` that serves each chosen job; add no technique without a job |
+| Prepared asset | Use `A` only when the named project-local composite, cutout, or derivative already exists |
+| Continuity | Add `C` only when adjacent pages deliberately share a persistent state, camera relationship, or matched framing |
+| Integrate | Reuse contours, baselines, gap rhythm, palette, and required registration so the layers read as one composition |
+| Stop | Omit or simplify the next layer when it repeats a job, competes with the message, requires an unavailable asset, or weakens legibility/editability |
-### 5.2 High-Yield Combinations
+### 7.2 High-Yield Combinations
| Page job | Composition candidates |
|---|---|
-| Atmospheric cover or divider | `#1` / `#73` + `#29`; use `#90` + optional `#86` when an opening should supply the page character |
-| One source does not fit the canvas | `#89` + `#24` or `#82`, with every copy kept in exact registration |
-| Comparison with evidence on both sides | `#48` + `#38`; keep labels, leaders, and exact claims native |
-| Scene-backed evidence or metrics | `#38` / `#40` + `#29` or `#30`; let the image carry context and native SVG carry information |
-| Several sources should read as one object | `#92` + restrained `#70`, or `#88` + a native text/color cell |
-| One continuous scene should span detached shapes | `#82` + optional `#86`; keep one-picture topology |
-| Same-source windows must remain independent | `#100`; add `#87` only when consecutive pages benefit from continuity or motion |
-| A busy visual needs one focal region | `#33`, or prepared-pair `#96` / `#99` when native contrast treatment is insufficient |
-| Formula or technical figure needs explanation | `#19` + `#41` / `#46`; keep explanatory labels native |
-
-**Registration boundary**: registration-dependent effects succeed only when their declared coordinate relationship remains exact. Preserve registration for `#62`, `#82`, `#85`, `#89`, `#95`, `#96`, `#97`, `#99`, and `#100`; `#84` is the intentional exception.
-
-**Formula placement**: treat a rendered formula as a prepared visual asset. Use whitespace patterns such as `#16` or `#19` for isolated derivations, `#10`, `#41`, or `#46` for annotated formulas, and `#47` or `#48` for comparisons; keep editable explanatory text native.
+| Atmospheric cover or divider | `#P1-01` + `#M2-01`; use `#M1-07` + optional `#M3-05` when an opening should supply the page character |
+| One source does not fit the canvas | `#A3-01` + `#M1-02` or `#M1-10`, with every copy kept in exact registration |
+| Comparison with evidence on both sides | `#P3-03` + `#P2-01`; keep labels, leaders, and exact claims native |
+| Scene-backed evidence or metrics | `#P2-01` / `#P2-05` + `#M2-01` or `#M2-03`; let the image carry context and native SVG carry information |
+| One selected region needs explanation | Use `#P2-03` for an outline and caption on one picture; use `#P2-04` when a second same-source picture must magnify the region |
+| Several sources should read as one object | `#P3-21` + restrained `#M3-01`, or `#P3-20` + a native text/color cell |
+| One continuous scene should span detached shapes | `#M1-10` + optional `#M3-05`; keep one-picture topology |
+| Same-source windows must remain independent | `#M1-11`; add `#C2-01` or `#C2-02` only when consecutive pages use the relationship |
+| A prepared subject should re-layer over its source | `#A2-03`; keep the base and cutout registered, and insert a native middle layer only when it has a distinct job |
+| A busy visual needs one focal region | `#M2-05`, or prepared `#A3-01` / `#A3-03` when a native contrast treatment is insufficient |
+| A visual argument should build across pages | `#C1-01` + `#P2-01` or `#P2-05`; keep the underlying source and frame stable |
+| Formula or technical figure needs explanation | `#P1-12` + `#P2-07` / `#P2-03`; use `#P2-04` only when a second cropped detail is useful, and keep explanatory labels native |
+
+**Registration boundary**: registration-dependent effects succeed only when their declared coordinate relationship remains exact. Preserve registration for `#M1-10`, `#A2-02`, `#A3-01`, `#M1-08`, `#A2-03`, `#A3-02`, `#A3-03`, and `#M1-11`; `#M1-09` is the intentional exception.
+
+**Source-correspondence boundary**: `#P2-04` reuses one exact source but intentionally changes the detail crop, scale, and placement; preserve the selected-region correspondence instead of forcing page-space registration.
+
+**Formula placement**: treat a rendered formula as a prepared visual asset. Use whitespace patterns such as `#P1-11` or `#P1-12` for isolated derivations, `#P1-07`, `#P2-07`, `#P2-03`, or `#P2-04` for annotated formulas, and `#P3-04` or `#P3-03` for comparisons; keep editable explanatory text native.
All compatibility details remain owned by [`shared-standards-core.md`](./shared-standards-core.md) and its routed references.
diff --git a/skills/ppt-master/references/image-layout-spec.md b/skills/ppt-master/references/image-layout-spec.md
index fab789a4..526e5116 100644
--- a/skills/ppt-master/references/image-layout-spec.md
+++ b/skills/ppt-master/references/image-layout-spec.md
@@ -17,7 +17,7 @@ Neutral geometry and review rules for every image or rendered-formula placement.
| Default Executor | Final SVG regions and geometry; may adapt the preferred relationship while preserving binding resource, content, and crop constraints |
| Quick Generate main agent | The planning and realization decisions above in one active context |
-This specification and [`image-layout-patterns.md`](./image-layout-patterns.md) are the always-read geometry and composition vocabulary; [`svg-image-embedding.md`](./svg-image-embedding.md) owns embedding. After selecting a construction, conditionally load only its additional technical owner: [`svg-effects.md`](./svg-effects.md) for an adopted effect and [`native-shape-authoring.md`](./native-shape-authoring.md) for adopted preset or Boolean geometry.
+This specification and [`image-layout-patterns.md`](./image-layout-patterns.md) are the always-read geometry and composition vocabulary; [`svg-image-embedding.md`](./svg-image-embedding.md) owns embedding. Default and Quick SVG authoring also load [`svg-effects.md`](./svg-effects.md) and [`native-shape-authoring.md`](./native-shape-authoring.md) before realization, so apply their contracts directly when a selected construction needs effects, preset geometry, or Boolean geometry. Other routes follow their own documented load triggers.
### 1.1 Geometry notation
diff --git a/skills/ppt-master/references/native-shape-authoring.md b/skills/ppt-master/references/native-shape-authoring.md
index d5f05851..e61d9461 100644
--- a/skills/ppt-master/references/native-shape-authoring.md
+++ b/skills/ppt-master/references/native-shape-authoring.md
@@ -259,9 +259,8 @@ reads flat no matter how strong the contrast.
Keep every stop on one hue and vary only lightness, hold one light direction for
the whole page, and remove strokes so adjacent facets meet cleanly. For a
cylinder, apply the alternating ramp across the body and cap it with an ellipse
-carrying its own shallower ramp. This is the shape-level twin of
-[`image-layout-patterns.md`](./image-layout-patterns.md) `#91`, which applies the
-same idea across separate facets of a folded form.
+carrying its own shallower ramp. The same light logic applies across separate
+facets of any folded form.
### 7.2 Reflection without a reflection effect
@@ -302,7 +301,7 @@ but the four jobs they normally do are all reachable with gradients:
| Contact shadow under an object | Ellipse filled with a `radialGradient` from dark-transparent at the centre to fully transparent at the rim |
| Spotlight / stage pool | Cone or ellipse filled with a gradient fading to transparent at its far end, at low opacity over the scene |
| Object dissolving into the page | Overlay a rectangle whose gradient runs from transparent to the exact page background hex |
-| Hiding an object while keeping it live | Full transparency, or a background-registered fill ([`image-layout-patterns.md`](./image-layout-patterns.md) `#95`) |
+| Hiding an object while keeping it live | Full transparency, or a background-registered fill ([`image-layout-patterns.md`](./image-layout-patterns.md) `#M1-08`) |
A radial or linear alpha ramp reads the same as a feathered edge at slide scale
and, unlike a filter, exports intact. Never approximate a soft edge with a stack
diff --git a/skills/ppt-master/references/strategist-image.md b/skills/ppt-master/references/strategist-image.md
index 76dfa76b..e1560bf6 100644
--- a/skills/ppt-master/references/strategist-image.md
+++ b/skills/ppt-master/references/strategist-image.md
@@ -49,13 +49,13 @@ Follow `latex_render.py --help` for the manifest fields. The renderer writes dim
## 4. Image Resource List
-Add §VIII rows for the image resources actually planned from the confirmed source boundary and for every selected formula; a formula-only plan contains only formula rows. A permitted but unused source needs no row. Author each row's filename, dimensions/ratio, preferred layout suggestion, crop policy, purpose/type, acquisition, status, reference, and conditional AI fields as part of the complete Design Spec. `Acquire Via` is `ai`, `web`, `user`, `formula`, `placeholder`, or `slice`; status follows [`svg-image-embedding.md`](./svg-image-embedding.md). When a planned or explicitly required asset is not yet available, retain its row as `Pending` or `Needs-Manual`; never remove the row or change `Acquire Via` to make the Design Spec look complete. After §VIII passes final confirmation, project every placed row into `spec_lock.md images` as `<path> | source=<Acquire Via> | pattern=<Layout pattern> | crop=<adaptive|no-crop>` and omit unplaced Illustration Sheets. `source` and `crop` preserve the exact confirmed §VIII text; `pattern` preserves the non-empty free-form suggestion, including any optional catalog ids, while remaining preferred expression rather than locked geometry.
+Add §VIII rows for the image resources actually planned from the confirmed source boundary and for every selected formula; a formula-only plan contains only formula rows. A permitted but unused source needs no row. Author each row's filename, dimensions/ratio, preferred layout suggestion, crop policy, purpose/type, acquisition, status, reference, and conditional AI fields as part of the complete Design Spec. `Acquire Via` is `ai`, `web`, `user`, `formula`, `placeholder`, or `slice`; status follows [`svg-image-embedding.md`](./svg-image-embedding.md). When a planned or explicitly required asset is not yet available, retain its row as `Pending` or `Needs-Manual`; never remove the row or change `Acquire Via` to make the Design Spec look complete. After §VIII passes final confirmation, project every placed row into `spec_lock.md images` as `<path> | source=<Acquire Via> | pattern=<Layout pattern> | crop=<adaptive|no-crop>` and omit unplaced Illustration Sheets. `source` and `crop` preserve the exact confirmed §VIII text; `pattern` preserves the non-empty free-form suggestion, including any optional hierarchical catalog ids, while remaining preferred expression rather than locked geometry.
References describe visual intent: AI uses subject + intent + composition without repeating rendering or HEX; web records exact subject, view/mood, focal/quiet region, and crop safety with positive quality cues; Image_Searcher later derives a separate short, specific provider query without rewriting this locked intent, while complete entity names or necessary disambiguation may use more words; formula preserves source LaTeX and placement intent. Any subject direction, focal placement, quiet region, or overlay-safety requirement that must affect acquisition/generation belongs in `Reference` or the matching §IX block, not only in `Layout pattern`.
**Prepared-user fast path**: For initial imported or user-supplied assets confirmed as `provided`, copy the exact `Filename` basename and derive `Dimensions` / `Ratio` from that row's EXIF-corrected `Width` / `Height` / native `AspectRatio` in the latest `analysis/image_analysis.csv`; `SourceDisplayRatio` is source-context metadata, not the bitmap crop ratio. Drop source-side directories, set `Acquire Via: user` and `Status: Existing`, and decide the remaining §VIII fields normally. Existing §VIII / lock / provenance-manifest records override this inference. Assets declared as `ai`, `web`, `slice`, `formula`, or manual fulfillment retain that provenance and advance through their own status lifecycle after entering `images/`; location never reclassifies them as `user / Existing`.
-**Mandatory**: each placed row, including formulas, gets one executable `Layout pattern`. It is preferred expression, not locked geometry; optional ids from the already-read [`image-layout-patterns.md`](./image-layout-patterns.md) must be exact. Executor may adapt it while preserving resource identity/source, must-use status, crop/content, and explicit user/template constraints; layout-only changes need no upstream rewrite.
+**Mandatory**: each placed row, including formulas, gets one executable `Layout pattern`. It is preferred expression, not locked geometry; optional hierarchical ids from the already-read [`image-layout-patterns.md`](./image-layout-patterns.md) must be exact. They are prompt lookup handles for Executor, not exporter effect codes. Executor may adapt the suggestion while preserving resource identity/source, must-use status, crop/content, and explicit user/template constraints; layout-only changes need no upstream rewrite.
**Default — action-bearing image plan (may override when restraint better serves the page)**: For a `hero_page` or other image-led row, name an image/content or image/shape action—not position, size, crop, or legibility scrim alone. Plain split and full bleed remain valid when clearest.
diff --git a/skills/ppt-master/references/svg-effects.md b/skills/ppt-master/references/svg-effects.md
index cde99ee6..96fdae9c 100644
--- a/skills/ppt-master/references/svg-effects.md
+++ b/skills/ppt-master/references/svg-effects.md
@@ -769,7 +769,7 @@ remain authoritative in the owning subsection.
| Decision family | Scenario routing | Authority / boundary |
|---|---|---|
| Paint | Directional or continuous value change → linear gradient; center-weighted focus → radial gradient; subordinate layer or overlap depth → channel alpha; short display emphasis → gradient text; hierarchy already clear → solid paint | §6.2 / §6.3; do not use color variation without a semantic or material job |
-| Elevation | Object visibly above another surface → resting/raised shadow; one focal CTA → restrained colored shadow; equal peers/background → flat; luminous short title/metric → glow | §6.4; one light direction; never body-copy glow |
+| Elevation | Object visibly above another surface → resting/raised shadow; overlay boundary against a dark or complex image → restrained glow or hairline; one focal CTA → restrained colored shadow; equal peers/background → flat; luminous short title/metric → glow | §6.4; one light direction; never body-copy glow |
| Image/material | Text over image → directional scrim; bottom title → bottom fade; centered hero → vignette; brand unification → brand wash; foreground panel over image → faux glass | §6.5; validate actual contrast; no backdrop blur |
| Lines | Draft/optional/future → dash; process direction → marker; undirected relationship → solid connector; continuous flow/series → gradient stroke; exact grid → multi-subpath path | §6.6 / §6.3 |
| Text | Removed/former value → line-through; short eyebrow → tracking; display heading needing a distinct silhouette → outline/gradient; luminous focal metric → glow; list → native bullet | §6.7 / §6.4; body copy may keep semantic decoration, but not decorative gradient/outline/glow/tracking |
diff --git a/skills/ppt-master/references/svg-image-embedding.md b/skills/ppt-master/references/svg-image-embedding.md
index 1b11981b..60e32e3a 100644
--- a/skills/ppt-master/references/svg-image-embedding.md
+++ b/skills/ppt-master/references/svg-image-embedding.md
@@ -18,7 +18,7 @@ Each image carries an `Acquire Via` field plus a status annotation. This file is
```markdown
| Filename | Dimensions | Purpose | Type | Layout pattern | Crop Policy | Acquire Via | Status | Reference |
|----------|------------|---------|------|----------------|-------------|-------------|--------|-----------|
-| team.jpg | 800x600 | Team photo | Photography | `#2 left-third` | adaptive | web | Pending | Diverse engineering team in modern office |
+| team.jpg | 800x600 | Team photo | Photography | `#P1-02 image left, copy right` | adaptive | web | Pending | Diverse engineering team in modern office |
| formula_001.png | 736x168 | Page 3 block equation | Latex Formula | formula | no-crop | formula | Rendered | `E = mc^2` |
```
diff --git a/skills/ppt-master/scripts/docs/advanced-image-motion-smoke.md b/skills/ppt-master/scripts/docs/advanced-image-motion-smoke.md
index e2a7cac3..7884115d 100644
--- a/skills/ppt-master/scripts/docs/advanced-image-motion-smoke.md
+++ b/skills/ppt-master/scripts/docs/advanced-image-motion-smoke.md
@@ -12,7 +12,7 @@ The fixture deliberately closes the full planning and execution chain:
- `design_spec.md` carries `Motion suggestion`, `Native shape suggestion`, one
current §VIII image row, and `Crop Policy`;
-- `spec_lock.md` projects that row with optional layout pattern `#100`;
+- `spec_lock.md` projects that row with optional layout pattern `#M1-11`;
- both pages reuse one raster through ordinary, ellipse-preset, and custom-path
independent nested crops;
- `animations.json` pairs the main crop across adjacent Morph pages;
@@ -130,7 +130,7 @@ preset = (
| Filename | Dimensions | Ratio | Purpose | Type | Layout pattern | Crop Policy | Acquire Via | Status | Reference | text_policy | page_role |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
-| scene.png | 1280x720 | 16:9 | Morph crop continuity | Photo | #100 same-source independent crops with a shaped detail | adaptive | user | Existing | Synthetic three-band scene for crop and Morph verification | none | local |
+| scene.png | 1280x720 | 16:9 | Morph crop continuity | Photo | #M1-11 same-source independent crops with a shaped detail | adaptive | user | Existing | Synthetic three-band scene for crop and Morph verification | none | local |
## IX. Content Outline
@@ -194,7 +194,7 @@ preset = (
- library: none
- inventory: none
## images
-- scene: images/scene.png | source=user | pattern=#100 same-source independent crops with a shaped detail | crop=adaptive
+- scene: images/scene.png | source=user | pattern=#M1-11 same-source independent crops with a shaped detail | crop=adaptive
## page_rhythm
- P01: dense
- P02: dense
diff --git a/skills/ppt-master/scripts/prompt_audit.py b/skills/ppt-master/scripts/prompt_audit.py
index 7febce54..e684a2d2 100644
--- a/skills/ppt-master/scripts/prompt_audit.py
+++ b/skills/ppt-master/scripts/prompt_audit.py
@@ -991,28 +991,45 @@ def audit_authority_graph(
return normalized, cycles, findings
-def _parse_numbered_markdown_ids(raw_ids: str) -> list[int]:
- """Expand one numbered-Markdown heading expression into its stable ids."""
- ids: list[int] = []
- for part in re.split(r"\s*·\s*", raw_ids):
- match = re.fullmatch(r"(\d+)(?:\s*[-–]\s*(\d+))?", part)
- if match is None:
- raise AuditError(f"Invalid numbered Markdown id expression: {raw_ids!r}")
- start = int(match.group(1))
- end = int(match.group(2) or start)
- if end < start:
- raise AuditError(f"Descending numbered Markdown id range: {raw_ids!r}")
- ids.extend(range(start, end + 1))
- return ids
-
-
-def _registry_ids(root: Path, config: dict[str, Any]) -> tuple[set[Any], str, list[Any]]:
+def _structured_registry_expected_order(config: dict[str, Any]) -> list[str]:
+ """Build the canonical browse order for one structured registry."""
+ prefix_counts = config.get("prefix_counts")
+ sequence_width = config.get("sequence_width")
+ if (
+ not isinstance(prefix_counts, dict)
+ or not prefix_counts
+ or not all(
+ isinstance(prefix, str)
+ and re.fullmatch(r"[PMAC][1-9]\d*", prefix)
+ and isinstance(count, int)
+ and count > 0
+ for prefix, count in prefix_counts.items()
+ )
+ ):
+ raise AuditError(
+ f"Registry {config.get('name')} needs positive prefix_counts"
+ )
+ if not isinstance(sequence_width, int) or sequence_width < 1:
+ raise AuditError(
+ f"Registry {config.get('name')} needs a positive sequence_width"
+ )
+ return [
+ f"{prefix}-{sequence:0{sequence_width}d}"
+ for prefix, count in prefix_counts.items()
+ for sequence in range(1, count + 1)
+ ]
+
+
+def _registry_ids(
+ root: Path,
+ config: dict[str, Any],
+) -> tuple[set[Any], str, list[Any], list[Any] | None]:
kind = config.get("kind")
source = config.get("source")
if not isinstance(source, str) or not (root / source).is_file():
raise AuditError(f"Registry has missing source: {source}")
- if kind == "numbered_markdown":
+ if kind == "structured_markdown":
pattern = config.get("entry_pattern")
if not isinstance(pattern, str):
raise AuditError(f"Registry {config.get('name')} needs entry_pattern")
@@ -1020,20 +1037,18 @@ def _registry_ids(root: Path, config: dict[str, Any]) -> tuple[set[Any], str, li
regex = re.compile(pattern, re.MULTILINE)
except re.error as exc:
raise AuditError(f"Invalid registry entry_pattern: {exc}") from exc
- id_group = "ids" if "ids" in regex.groupindex else "id"
- if id_group not in regex.groupindex:
+ if "id" not in regex.groupindex:
raise AuditError(
- f"Registry {config.get('name')} entry_pattern needs an id or ids group"
+ f"Registry {config.get('name')} entry_pattern needs an id group"
)
matched_ids = [
- item
+ match.group("id")
for match in regex.finditer(_read_utf8(root / source))
- for item in _parse_numbered_markdown_ids(match.group(id_group))
]
duplicates = sorted(
item for item, count in Counter(matched_ids).items() if count > 1
)
- return set(matched_ids), source, duplicates
+ return set(matched_ids), source, duplicates, matched_ids
if kind == "directory":
pattern = config.get("glob")
@@ -1046,7 +1061,7 @@ def _registry_ids(root: Path, config: dict[str, Any]) -> tuple[set[Any], str, li
for path in paths
if not _matches_any(_relative_path(root, path), excludes)
}
- return ids, source, []
+ return ids, source, [], None
if kind == "json_collection":
key = config.get("key")
@@ -1061,9 +1076,9 @@ def _registry_ids(root: Path, config: dict[str, Any]) -> tuple[set[Any], str, li
raise AuditError(f"Registry key {key} is missing in {source}")
value = value[part]
if isinstance(value, dict):
- return set(value), source, []
+ return set(value), source, [], None
if isinstance(value, list):
- return set(range(len(value))), source, []
+ return set(range(len(value))), source, [], None
raise AuditError(f"Registry key {key} in {source} is not a collection")
raise AuditError(f"Unsupported registry kind: {kind}")
@@ -1085,27 +1100,13 @@ def _registry_count_claims(paragraph: Paragraph, nouns: list[str]) -> list[int]:
return claims
-def _is_comprehensive_registry_reference(paragraph: Paragraph, nouns: list[str]) -> bool:
- """Return whether a block claims complete registry coverage."""
- scope_nouns = sorted(set(nouns + ["catalog", "registry", "file"]))
- scope_pattern = "|".join(re.escape(noun) for noun in scope_nouns)
- return re.search(
- rf"\b(?:all|every|entire|full)\b(?:\W+\w+){{0,4}}\W+"
- rf"(?:{scope_pattern})\b|"
- rf"\b(?:{scope_pattern})\b(?:\W+\w+){{0,4}}\W+"
- rf"\b(?:all|every|entire|full)\b|"
- r"\bfile is split\b",
- paragraph.normalized,
- ) is not None
-
-
def audit_registries(
root: Path,
configs: list[dict[str, Any]],
paragraphs: list[Paragraph],
documents: list[Document],
) -> tuple[list[dict[str, Any]], list[Finding]]:
- """Compare live registry membership with numeric documentation claims."""
+ """Compare live registry membership with documentation claims."""
findings: list[Finding] = []
reports: list[dict[str, Any]] = []
@@ -1113,7 +1114,7 @@ def audit_registries(
name = config.get("name")
if not isinstance(name, str) or not name:
raise AuditError("Every registry requires a name")
- ids, source, duplicate_ids = _registry_ids(root, config)
+ ids, source, duplicate_ids, source_order = _registry_ids(root, config)
if not ids:
raise AuditError(f"Registry {name} has no entries")
for duplicate_id in duplicate_ids:
@@ -1125,6 +1126,62 @@ def audit_registries(
path=source,
)
)
+ expected_order: list[str] | None = None
+ expected_ids: set[str] | None = None
+ if config.get("kind") == "structured_markdown":
+ expected_order = _structured_registry_expected_order(config)
+ expected_ids = set(expected_order)
+ string_ids = {str(item) for item in ids}
+ missing_ids = sorted(expected_ids - string_ids)
+ extra_ids = sorted(string_ids - expected_ids)
+ if missing_ids:
+ findings.append(
+ Finding(
+ severity="error",
+ code="REGISTRY_IDS_MISSING",
+ message=(
+ f"{name} is missing canonical ids: "
+ + ", ".join(missing_ids)
+ ),
+ path=source,
+ )
+ )
+ if (
+ not missing_ids
+ and not extra_ids
+ and not duplicate_ids
+ and source_order != expected_order
+ ):
+ mismatch = next(
+ index
+ for index, (actual, expected) in enumerate(
+ zip(source_order or [], expected_order)
+ )
+ if actual != expected
+ )
+ findings.append(
+ Finding(
+ severity="error",
+ code="REGISTRY_ID_ORDER",
+ message=(
+ f"{name} browse order expects {expected_order[mismatch]} "
+ f"at position {mismatch + 1}; found {source_order[mismatch]}"
+ ),
+ path=source,
+ )
+ )
+ if extra_ids:
+ findings.append(
+ Finding(
+ severity="error",
+ code="REGISTRY_IDS_EXTRA",
+ message=(
+ f"{name} defines unexpected canonical ids: "
+ + ", ".join(extra_ids)
+ ),
+ path=source,
+ )
+ )
index_labels: list[str] | None = None
index_targets: list[str] | None = None
if config.get("validate_index_links") is True:
@@ -1228,54 +1285,63 @@ def audit_registries(
record_count_claim(document.path, line_number, count)
for paragraph in paragraphs:
- if paragraph.path != source and not any(term in paragraph.normalized for term in terms):
- continue
- for count in _registry_count_claims(paragraph, nouns):
- if (paragraph.path, count) not in line_claim_keys:
- record_count_claim(paragraph.path, paragraph.line, count)
- if config.get("kind") != "numbered_markdown":
- continue
- numeric_ids = {int(item) for item in ids}
- id_pattern = re.compile(r"#([1-9]\d*)\b")
- range_pattern = re.compile(r"#([1-9]\d*)\s*[-–]\s*#?([1-9]\d*)\b")
- for match in id_pattern.finditer(paragraph.text):
- claimed_id = int(match.group(1))
- if claimed_id not in numeric_ids:
- findings.append(
- Finding(
- severity="error",
- code="REGISTRY_ID_MISSING",
- message=f"{name} references missing id #{claimed_id}",
- path=paragraph.path,
- line=paragraph.line,
+ registry_context = paragraph.path == source or any(
+ term in paragraph.normalized for term in terms
+ )
+ if registry_context:
+ for count in _registry_count_claims(paragraph, nouns):
+ if (paragraph.path, count) not in line_claim_keys:
+ record_count_claim(paragraph.path, paragraph.line, count)
+ kind = config.get("kind")
+ if kind == "structured_markdown":
+ canonical_ids = {str(item) for item in ids}
+ structured_pattern = re.compile(r"#([PMAC][1-9]\d*-\d+)\b")
+ for match in structured_pattern.finditer(paragraph.text):
+ claimed_id = match.group(1)
+ if claimed_id not in canonical_ids:
+ findings.append(
+ Finding(
+ severity="error",
+ code="REGISTRY_ID_MISSING",
+ message=(
+ f"{name} references missing id #{claimed_id}"
+ ),
+ path=paragraph.path,
+ line=paragraph.line,
+ )
)
- )
-
- ranges = [
- tuple(sorted((int(match.group(1)), int(match.group(2)))))
- for match in range_pattern.finditer(paragraph.text)
- ]
- comprehensive = _is_comprehensive_registry_reference(paragraph, nouns)
- if ranges and comprehensive:
- declared_ids = {
- int(match.group(1))
- for match in id_pattern.finditer(paragraph.text)
- }
- for start, end in ranges:
- declared_ids.update(range(start, end + 1))
- if declared_ids != numeric_ids:
+ legacy_named_pattern = re.compile(
+ r"#(?P<id>"
+ r"(?:single|canvas|multi|reveal|tone|depth|asset|continuity)_\d+"
+ r")\b"
+ )
+ for match in legacy_named_pattern.finditer(paragraph.text):
findings.append(
Finding(
severity="error",
- code="REGISTRY_RANGE_MISMATCH",
+ code="REGISTRY_ID_LEGACY",
message=(
- f"{name} comprehensive ranges cover {len(declared_ids)} ids; "
- f"registry contains {len(numeric_ids)}"
+ f"{name} uses removed id #{match.group('id')}"
),
path=paragraph.path,
line=paragraph.line,
)
)
+ if registry_context:
+ legacy_numeric_pattern = re.compile(r"#(?P<id>[1-9]\d*)\b")
+ for match in legacy_numeric_pattern.finditer(paragraph.text):
+ findings.append(
+ Finding(
+ severity="error",
+ code="REGISTRY_ID_LEGACY",
+ message=(
+ f"{name} uses removed id #{match.group('id')}"
+ ),
+ path=paragraph.path,
+ line=paragraph.line,
+ )
+ )
+ continue
reports.append(
{
@@ -1285,6 +1351,7 @@ def audit_registries(
"duplicate_ids": duplicate_ids,
"minimum_id": min(ids) if all(isinstance(item, int) for item in ids) else None,
"maximum_id": max(ids) if all(isinstance(item, int) for item in ids) else None,
+ "expected_entries": len(expected_ids) if expected_ids is not None else None,
"index_labels": index_labels,
"index_targets": index_targets,
"claims": sorted(claims, key=lambda item: (item["path"], item["line"])),
@@ -1439,7 +1506,7 @@ def run_audit(
raise AuditError("Every registry requires a name")
if registry_name in registry_members:
raise AuditError(f"Duplicate registry name: {registry_name}")
- members, _, _ = _registry_ids(root, registry_config)
+ members, _, _, _ = _registry_ids(root, registry_config)
registry_members[registry_name] = members
load_sets, load_findings, covered_paths = audit_load_sets(
diff --git a/skills/ppt-master/scripts/prompt_audit_manifest.json b/skills/ppt-master/scripts/prompt_audit_manifest.json
index 2ac7a276..70470974 100644
--- a/skills/ppt-master/scripts/prompt_audit_manifest.json
+++ b/skills/ppt-master/scripts/prompt_audit_manifest.json
@@ -12,7 +12,7 @@
"skills/ppt-master/templates/schemas/*.json"
],
"exclude": [],
- "max_tokens": 397343
+ "max_tokens": 398902
},
"file_budgets": {
"AGENTS.md": 2400,
@@ -20,12 +20,12 @@
"skills/ppt-master/references/executor-base.md": 8245,
"skills/ppt-master/references/executor-structured.md": 5300,
"skills/ppt-master/references/executor-chart.md": 3100,
- "skills/ppt-master/references/executor-image.md": 1700,
+ "skills/ppt-master/references/executor-image.md": 1728,
"skills/ppt-master/references/executor-web-image.md": 500,
"skills/ppt-master/references/executor-notes.md": 900,
"skills/ppt-master/references/shared-standards.md": 250,
"skills/ppt-master/references/shared-standards-core.md": 11100,
- "skills/ppt-master/references/svg-effects.md": 12792,
+ "skills/ppt-master/references/svg-effects.md": 12807,
"skills/ppt-master/references/native-data-interface.md": 6200,
"skills/ppt-master/references/pptx-structure-interface.md": 4300,
"skills/ppt-master/references/strategist.md": 14487,
@@ -170,7 +170,7 @@
"registry": "visual-styles"
}
],
- "max_tokens": 63108
+ "max_tokens": 63121
},
"route.generate.quick-generate": {
"description": "Explicit non-interactive Generate path with conditional source/resource preparation and the complete SVG visual-construction authorities.",
@@ -186,7 +186,7 @@
"skills/ppt-master/references/svg-effects.md",
"skills/ppt-master/references/native-shape-authoring.md"
],
- "max_tokens": 54545
+ "max_tokens": 54558
},
"route.generate.quick-generate.topic-research": {
"description": "Quick Generate with gap-targeted factual research before direct resource preparation and SVG authoring.",
@@ -196,7 +196,7 @@
"stage.generate.topic-research"
],
"files": [],
- "max_tokens": 56057
+ "max_tokens": 56070
},
"route.generate.quick-generate.icon": {
"description": "Quick Generate with project-local bundled icon selection and synchronization.",
@@ -207,7 +207,7 @@
"files": [
"skills/ppt-master/templates/icons/README.md"
],
- "max_tokens": 56457
+ "max_tokens": 56470
},
"route.generate.quick-generate.in-hand-image": {
"description": "Quick Generate with supplied, extracted, or placeholder image resources prepared before SVG authoring.",
@@ -217,7 +217,7 @@
"stage.generate.executor.image"
],
"files": [],
- "max_tokens": 64629
+ "max_tokens": 66151
},
"route.generate.quick-generate.formula": {
"description": "Quick Generate with manifest-driven formula rendering and formula-image realization.",
@@ -229,7 +229,7 @@
"files": [
"skills/ppt-master/scripts/docs/image.md"
],
- "max_tokens": 67815
+ "max_tokens": 69337
},
"route.generate.quick-generate.ai-two-types": {
"description": "Quick Generate with AI resource preparation, representative rendering inputs, and two local image types.",
@@ -240,7 +240,7 @@
"stage.generate.executor.image"
],
"files": [],
- "max_tokens": 87734
+ "max_tokens": 89256
},
"route.generate.quick-generate.web-image": {
"description": "Quick Generate with web resource preparation, provenance, attribution, and image execution.",
@@ -251,7 +251,7 @@
"stage.generate.executor.web-image"
],
"files": [],
- "max_tokens": 72382
+ "max_tokens": 73904
},
"route.generate.planning-image": {
"description": "Generate-PPTX planning context after a non-none image source is proposed or confirmed, including the compact layout math and vocabulary.",
@@ -261,7 +261,7 @@
"stage.generate.strategist.image"
],
"files": [],
- "max_tokens": 71429
+ "max_tokens": 72937
},
"route.generate.planning-formula": {
"description": "Formula-only planning context, including the shared image/formula layout math and vocabulary.",
@@ -271,7 +271,7 @@
"stage.generate.strategist.image"
],
"files": [],
- "max_tokens": 71429
+ "max_tokens": 72937
},
"route.generate.planning-ai": {
"description": "Generate-PPTX planning when AI image direction is available, including representative multi-source custom rendering synthesis.",
@@ -291,7 +291,7 @@
"registry": "image-renderings"
}
],
- "max_tokens": 75671
+ "max_tokens": 77179
},
"stage.generate.apply-template-workspace": {
"description": "Conditional Step 3 workspace validation, installation, and fusion framework.",
@@ -702,7 +702,7 @@
"skills/ppt-master/scripts/docs/pptx-transitions.md",
"skills/ppt-master/scripts/docs/svg-pipeline.md"
],
- "max_tokens": 31302
+ "max_tokens": 31324
},
"stage.generate.video-motion-plan": {
"description": "Conditional resolved animation-to-video handoff contract.",
@@ -718,7 +718,7 @@
"files": [
"skills/ppt-master/references/animations.md"
],
- "max_tokens": 8021
+ "max_tokens": 8037
},
"stage.shared.generate-audio": {
"description": "Shared narration-audio stage.",
@@ -768,7 +768,7 @@
"stage.generate.strategist.template"
],
"files": [],
- "max_tokens": 65184
+ "max_tokens": 65197
},
"route.generate.planning-template-ai": {
"description": "Explicit template workspace plus confirmed AI-image planning.",
@@ -796,7 +796,7 @@
"skills/ppt-master/references/image-layout-spec.md",
"skills/ppt-master/references/image-layout-patterns.md"
],
- "max_tokens": 8321
+ "max_tokens": 9828
},
"stage.generate.strategist.template": {
"description": "Conditional Strategist module for an explicitly installed template workspace.",
@@ -823,7 +823,7 @@
"skills/ppt-master/references/image-layout-patterns.md",
"skills/ppt-master/references/svg-image-embedding.md"
],
- "max_tokens": 10084
+ "max_tokens": 11613
},
"stage.generate.executor.web-image": {
"description": "Conditional sourced-image attribution layered on image execution.",
@@ -858,7 +858,7 @@
"files": [
"skills/ppt-master/references/svg-effects.md"
],
- "max_tokens": 12792
+ "max_tokens": 12807
}
},
"duplicates": {
@@ -1006,9 +1006,24 @@
"registries": [
{
"name": "image-layout-patterns",
- "kind": "numbered_markdown",
+ "kind": "structured_markdown",
"source": "skills/ppt-master/references/image-layout-patterns.md",
- "entry_pattern": "^(?:\\|\\s*`#)?(?P<ids>\\d+(?:\\s*(?:[-–]|·)\\s*\\d+)*)(?:`\\s*\\||\\.\\s+\\*\\*)",
+ "entry_pattern": "^-\\s+\\*\\*#(?P<id>[PMAC][1-9][0-9]*-[0-9]+)\\s+·\\s+",
+ "sequence_width": 2,
+ "prefix_counts": {
+ "P1": 13,
+ "P2": 10,
+ "P3": 23,
+ "M1": 11,
+ "M2": 9,
+ "M3": 7,
+ "A1": 4,
+ "A2": 3,
+ "A3": 3,
+ "C1": 1,
+ "C2": 2,
+ "C3": 1
+ },
"reference_terms": [
"image-layout-patterns",
"image-text layout patterns"
diff --git a/skills/ppt-master/templates/design_spec_reference.md b/skills/ppt-master/templates/design_spec_reference.md
index 6409dd89..de77fe01 100644
--- a/skills/ppt-master/templates/design_spec_reference.md
+++ b/skills/ppt-master/templates/design_spec_reference.md
@@ -171,7 +171,7 @@ Use the §VII table only when at least one real catalog reference is selected. A
For every independent data chart or pure text-grid table, add `- **Native-ready**: yes|no` to its §IX Slide block. Choose `yes` only when the confirmed requirement or artifact afterlife benefits from an editable native data object; otherwise use `no`. Conceptual visualizations and incidental sparklines, KPI trends, or insets omit this field and remain ordinary SVG.
-In §VIII, author every planned or explicitly required resource from the confirmed source boundary. Write one concise, non-empty `Layout pattern` suggestion in ordinary language; optionally cite stable ids from the layout library when they help recall a technique. Set `Crop Policy` to `adaptive` or `no-crop`; set `Acquire Via` to `ai`, `web`, `user`, `formula`, `placeholder`, or `slice`. Preserve unresolved required assets as `Pending` or `Needs-Manual` instead of dropping or reclassifying them.
+In §VIII, author every planned or explicitly required resource from the confirmed source boundary. Write one concise, non-empty `Layout pattern` suggestion in ordinary language; optionally cite hierarchical ids from the layout library when they help recall a technique. Set `Crop Policy` to `adaptive` or `no-crop`; set `Acquire Via` to `ai`, `web`, `user`, `formula`, `placeholder`, or `slice`. Preserve unresolved required assets as `Pending` or `Needs-Manual` instead of dropping or reclassifying them.
§VIII `Layout pattern` is a per-resource preference. When a page uses several images, repeats one image in multiple views, or combines an image with native overlays, describe the page-level relationship and participating resources in §IX `Layout` / `Images`; do not duplicate an unchanged resource row merely to encode animation sequencing.
diff --git a/skills/ppt-master/templates/spec_lock_reference.md b/skills/ppt-master/templates/spec_lock_reference.md
index c72b7b4c..709d6991 100644
--- a/skills/ppt-master/templates/spec_lock_reference.md
+++ b/skills/ppt-master/templates/spec_lock_reference.md
@@ -92,7 +92,7 @@ New locks always write `title_family` and `body_family`, even when their values
- `icons.library` records the primary stylistic library selected from `chunk-filled`, `tabler-filled`, `tabler-outline`, or `phosphor-duotone`, or `none` when no generic bundled icons are selected. Selected `simple-icons/*` brand marks may appear alone or alongside it in `inventory` without becoming a stylistic library. The inventory records planned bundled choices, while every SVG already under `<project_path>/icons/` remains valid prepared execution material.
- `objective` grammar: one concise sentence preserving the deck goal and audience success condition.
- `image_rendering` grammar: one catalog id, or `custom` with `image_rendering_behavior`.
-- `images`: `- <key>: <path> | source=<via> | pattern=<layout> | crop=<adaptive|no-crop>`; e.g. `- p04: images/a.png | source=user | pattern=full-height image beside the evidence | crop=no-crop`. Use the canonical `images/<filename>` path; `source` and `crop` exactly project §VIII, while `pattern` preserves its non-empty normalized free-form suggestion and any optional catalog ids. The pattern remains a recommendation for Executor recall, not a geometry or realization lock. Omit unplaced sheets.
+- `images`: `- <key>: <path> | source=<via> | pattern=<layout> | crop=<adaptive|no-crop>`; e.g. `- p04: images/a.png | source=user | pattern=full-height image beside the evidence | crop=no-crop`. Use the canonical `images/<filename>` path; `source` and `crop` exactly project §VIII, while `pattern` preserves its non-empty normalized free-form suggestion and any optional hierarchical catalog ids. The pattern remains a recommendation for Executor recall, not a geometry or realization lock. Omit unplaced sheets.
- Custom reference grammar: comma-separated exact catalog ids with no duplicates. Reference fields are valid only for `custom`; omit them for a genuinely novel direction.
- `stroke_width` grammar: `1.5`, `2`, or `3`; present only for `tabler-outline`.
- `page_rhythm` grammar: `P` + at least two digits (`P01`, `P100`) followed by `anchor|dense|breathing`.