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(template-workflow): enforce reference SVG review before template generation

hugohe3d6b14d76eb33
diff --git a/skills/ppt-master/references/template-designer.md b/skills/ppt-master/references/template-designer.md
index cf5d716b..9bb96416 100644
--- a/skills/ppt-master/references/template-designer.md
+++ b/skills/ppt-master/references/template-designer.md
@@ -93,6 +93,11 @@ If PPTX import output exists:
- Reuse canonical backgrounds and logos from `normalized_assets.json` where they are globally meaningful to the template
- Treat page-type candidates from `analysis.md` as hints, not guarantees
+**Precondition**:
+
+- If `reference_svg_selection.json` is provided, do not generate any template SVG or `design_spec.md` until all selected reference SVG files have been read
+- Before template generation begins, explicitly report the read slide indexes
+
### 2.1 PPTX Import Simplification Rule
The imported PPTX is a **reference source**, not a direct conversion target.
diff --git a/skills/ppt-master/workflows/create-template.md b/skills/ppt-master/workflows/create-template.md
index 09af8e0d..7bea3f31 100644
--- a/skills/ppt-master/workflows/create-template.md
+++ b/skills/ppt-master/workflows/create-template.md
@@ -102,6 +102,11 @@ Interpretation rule:
- if the remaining cleaned SVG reference pages are `<= 10`, read all of them; if they are `> 10`, read only `10` representative pages
- screenshots remain useful for judging composition and style, but should not override extracted factual metadata unless the import result is clearly incomplete
+**Hard gate**:
+
+- Before creating any template file, the agent MUST finish reading all SVG files listed in `reference_svg_selection.json`
+- The agent MUST explicitly report the read slide indexes before starting template generation
+
Do **not** treat the imported PPTX or exported slide SVGs as direct final template assets. The goal is to reconstruct a clean, maintainable PPT Master template package, not to perform 1:1 shape translation.
---