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
docs(generate): separate design narrative from execution lock
hugohe361d33d33d6c8
diff --git a/skills/ppt-master/references/strategist.md b/skills/ppt-master/references/strategist.mdindex c399a209..63d4942e 100644--- a/skills/ppt-master/references/strategist.md+++ b/skills/ppt-master/references/strategist.md@@ -379,11 +379,11 @@ This is what makes the axis meaningful: a `presentation` deck and a `text` deck### 6.2 Planning Artifact Content-Generate Step 4 creates `design_spec.md` and `spec_lock.md` from their versioned scaffolds. The machine schemas own section names, order, grammar, enums, and conditional structure; do not restate or improvise that grammar here. The Strategist owns what the confirmed values mean and what content fills those structures.+Generate Step 4 scaffolds both artifacts. `design_spec.md` is the human-readable page narrative; `spec_lock.md` is the exact machine contract. Their schemas own their separate structures. Do not duplicate the lock in prose or require cross-file textual equality.Fill the scaffolded artifacts from the confirmed state and analysis. In §IX, each page carries layout, title, one core message, an **Audience move**, final content wording, applicable visualization/image references, `Fact IDs` for sourced claims, and `Data class: scenario` for invented demonstration data. Run `project_manager.py validate` after both artifacts are filled.-**Execution lock content**: `spec_lock.md` is the compact communication and execution contract for colors, typography, icons, images, page rhythm, chart choices, and route-specific PowerPoint structure. Do not copy `content_divergence` into the lock; its effect is already authored into §IX. Free-design, brand-only, and `template_reuse_scope: style` routes write `pptx_structure.mode: flat`; the conditional template module owns every structured mapping. Executor rebuilds the lock's current-page projection before every page (see [executor-base.md](executor-base.md) §2.1). Values must match `design_spec.md`; on divergence, `spec_lock.md` wins and the design spec is historical narrative.+**Execution lock content**: `spec_lock.md` is the compact communication and execution contract for colors, typography, icons, images, page rhythm, chart choices, and route-specific PowerPoint structure. Do not copy `content_divergence` into the lock; its effect is already authored into §IX. Free-design, brand-only, and `template_reuse_scope: style` routes write `pptx_structure.mode: flat`; the conditional template module owns every structured mapping. Executor rebuilds the lock's current-page projection before every page (see [executor-base.md](executor-base.md) §2.1). The design brief may summarize choices, but exact values come only from the lock; never repair it from prose or rewrite the brief solely for equality.- **Communication trace is mandatory**: Copy `audience`, `communication_intent`, `audience_outcome`, `core_message`, `delivery_context`, `artifact_afterlife`, and canonical `consumption_mode` into `spec_lock.md communication`. Before finalizing §IX, check that every named purpose has at least one outline obligation and **every Slide block**, including cover / divider / closing pages, has an `Audience move` that advances the global outcome. A page that advances no purpose or outcome should be merged, rewritten, or cut. `project_manager.py validate` and `svg_quality_checker.py` enforce the section / field presence, not the subjective quality of the move.- **page_rhythm is mandatory**: Based on the page list in §IX Content Outline, assign each page one of `anchor` / `dense` / `breathing`. This is what breaks the uniform "every page is a card grid" feel. New locks may not omit the section; consumer omission behavior is owned by [`executor-base.md`](executor-base.md) §2.1.diff --git a/skills/ppt-master/scripts/docs/project.md b/skills/ppt-master/scripts/docs/project.mdindex b7cc33dc..bae9ceff 100644--- a/skills/ppt-master/scripts/docs/project.md+++ b/skills/ppt-master/scripts/docs/project.md@@ -40,9 +40,13 @@ Notes:`templates/schemas/design_spec.schema.json` and`templates/schemas/spec_lock.schema.json`. It reports missing sections andfields, illegal enums, malformed page keys, and unmet conditional sections;- it does not rewrite either artifact. Versioned scaffolds carry the schema- marker. Markerless legacy artifacts are left on their prior validation path- with a warning; malformed or unsupported markers are errors.+ it does not rewrite either artifact or compare their values for textual+ equality. The design schema is structural lint for the human-readable brief;+ the lock schema owns machine execution values. For structured template use,+ validation also compares the lock's Master/Layout identities with the actual+ template SVG roots. Versioned scaffolds carry the schema marker. Markerless+ legacy artifacts are left on their prior validation path with a warning;+ malformed or unsupported markers are errors.- PPTX-family inputs are enriched automatically under `analysis/` withper-deck `<stem>.identity.json` / `<stem>.slide_library.json` plus the sharedmulti-deck index `source_profile.json` (`decks[]`).@@ -53,7 +57,10 @@ Notes:`page-context` projects `design_spec.md` and `spec_lock.md` into one current-pageview on stdout. The default command is read-only; `--pretty` changes JSON-formatting only. `--bundle` appends only the route-selected authoring payloads:+formatting only. Before projection it revalidates only the machine lock and any+selected template-root identities; design-brief values are not treated as a+second lock. Slide headings at H3–H6 remain readable by the projector.+`--bundle` appends only the route-selected authoring payloads:| Project mode | Bundle contents ||---|---|diff --git a/skills/ppt-master/scripts/docs/svg-pipeline.md b/skills/ppt-master/scripts/docs/svg-pipeline.mdindex c95b9918..707dc007 100644--- a/skills/ppt-master/scripts/docs/svg-pipeline.md+++ b/skills/ppt-master/scripts/docs/svg-pipeline.md@@ -338,7 +338,7 @@ Behavior:- Native output uses content-hash media filenames, so identical images are reused and different images cannot overwrite each other by sharing a basename.- `[Content_Types].xml` is generated from the actual media extensions written into the PPTX. Unknown media extensions fail unless Python's `mimetypes` can identify them.- Native export writes to a temporary file first and publishes the requested PPTX only after conversion succeeds. A failed conversion does not replace the main output file.-- After publication, native export writes `validation/<output_stem>.report.json`. The report distinguishes authored Slides from internal Layout definitions, reruns ZIP integrity and published Slide-count checks, records slide/layout/master/notes part counts, labels relationship/structured/transition/animation validation as enforced at build time, links the final SVG quality report only when its SHA-256 source fingerprint matches the exact export inputs, and surfaces stale/unverified gates, unresolved template tokens, generic-only font stacks, and external image references.+- After publication, native export writes `validation/<output_stem>.report.json`. The report distinguishes authored Slides from internal Layout definitions, reruns ZIP integrity and published Slide-count checks, records slide/layout/master/notes part counts, labels relationship/structured/transition/animation validation as enforced at build time, links the final SVG quality report only when its SHA-256 source fingerprint matches the exact export inputs, and surfaces stale/unverified gates, unresolved template tokens, generic-only font stacks, and external image references. A matching final quality report with introduced warnings yields `passed-with-warnings` and a `quality_introduced_warnings=<N>` receipt instead of a clean `passed` claim.- By default, a successful command also prints a compact receipt instead of requiring a report read: `[POSTFLIGHT] status=<...> quality_gate=<...> slides=<N> warning_categories=<N>`, followed by one compact line per warning category and the `[PPTX]` / `[REPORT]` paths. Resource-warning lines carry counts; a non-passing quality gate carries its status. Routine agents use this receipt and do not load either complete validation JSON into model context. Full reports remain cold audit artifacts; failure investigation and explicit audits extract only the required fields. `--quiet` keeps suppressing successful-run output.- Before publishing structured template output, export reopens the temporary PPTX and validates the Slide → Layout → Master graph and registrations, Layout identity, placeholder identity, reusable bounds, and prompt/level-one sizes. A mismatch aborts publication. Flat release instead validates its single referenced Master/Layout shell and exact date/footer/slide-number hook roster before packaging.- SVG clip paths are still restricted for authored SVGs, but nested crop wrappers generated by PPTX import are mapped back to native picture crop / geometry when possible.diff --git a/skills/ppt-master/templates/design_spec_reference.md b/skills/ppt-master/templates/design_spec_reference.mdindex 5f1ca760..74258f47 100644--- a/skills/ppt-master/templates/design_spec_reference.md+++ b/skills/ppt-master/templates/design_spec_reference.md@@ -1,6 +1,6 @@# Design Spec Structure-Project-level `design_spec.md` is an English-heading Markdown artifact. Its machine contract is [`schemas/design_spec.schema.json`](./schemas/design_spec.schema.json); authoring starts from [`scaffolds/design_spec.md`](./scaffolds/design_spec.md).+Project-level `design_spec.md` is a human-readable English-heading Markdown artifact. [`schemas/design_spec.schema.json`](./schemas/design_spec.schema.json) provides structural lint for readable sections and page projection; it is not an execution lock and does not require textual equality with `spec_lock.md`. Authoring starts from [`scaffolds/design_spec.md`](./scaffolds/design_spec.md).## 1. Create the artifactdiff --git a/skills/ppt-master/workflows/generate-pptx.md b/skills/ppt-master/workflows/generate-pptx.mdindex d5804192..82e6fc82 100644--- a/skills/ppt-master/workflows/generate-pptx.md+++ b/skills/ppt-master/workflows/generate-pptx.md@@ -152,7 +152,7 @@ Read references/strategist.mdThe core first chooses the proposed Stage 2 source ids. Load the image module before writing Stage 2 whenever that proposal is non-`none`; after confirmation, keep it active only for confirmed non-`none` sources or an active formula plan. A confirmed `none` path with no formula work writes no image rows. Bare template names and style language do not load the template module.-> ⚠️ **Mandatory structure gate**: for new planning artifacts, create the versioned I–X and lock skeletons with `project_manager.py scaffold-spec` / `scaffold-lock`; do not reconstruct their grammar from memory. The commands and validator consume the machine contracts under `templates/schemas/`. The compact reference indexes are only for schema/scaffold troubleshooting, not the normal generation load.+> ⚠️ **Mandatory artifact gate**: scaffold the human-readable `design_spec.md` and machine-readable `spec_lock.md`; do not reconstruct lock grammar from memory. The design schema only keeps the brief readable and page-projectable—it is not a second execution lock, and cross-file textual equality is not required. Reference indexes are for troubleshooting, not normal generation load.**Artifact ownership**: fact-channel and source/derived artifact boundaries are defined in [`references/artifact-ownership.md`](../references/artifact-ownership.md). This Step uses those ownership rules; it does not redefine them.