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(guides): align user docs with current route contracts
hugohe389289cd98810
diff --git a/docs/README.md b/docs/README.mdindex 1803507b..cc81d7c0 100644--- a/docs/README.md+++ b/docs/README.md@@ -42,4 +42,4 @@ User-facing documentation lives in this directory: English files are the canonic| Document | Description ||---|---|-| [Style Rules](./rules/README.md) | Repo-wide style rules for prompt files, Python, and prose |+| [Style Rules](./rules/README.md) | Contributor style rules for prompt references and Python scripts |diff --git a/docs/audio-narration.md b/docs/audio-narration.mdindex ad06c29e..590872e5 100644--- a/docs/audio-narration.md+++ b/docs/audio-narration.md@@ -1,5 +1,9 @@# Audio Narration & Video Export+[English](./audio-narration.md) | [Chinese](./zh/audio-narration.md)++---+PPT Master can turn the speaker notes into per-slide narration via [`edge-tts`](https://github.com/rany2/edge-tts) (Microsoft Edge's online neural voices) by default, or via ElevenLabs, MiniMax, Qwen TTS, and CosyVoice when you need higher-quality cloud narration or a cloned voice. It can then embed the audio back into the PPTX and let PowerPoint export the deck as an MP4 video — with synced narration and slide transitions, no extra tools.## What you get@@ -102,6 +106,8 @@ python3 skills/ppt-master/scripts/notes_to_audio.py --provider elevenlabs --listFor MiniMax, Qwen, and CosyVoice, pass the provider-specific system voice or cloned voice ID/name with `--voice-id`. Voice cloning itself is performed in the provider's console/API first; `notes_to_audio.py` uses the resulting voice ID to generate per-slide narration.+Audio embedded into PPTX must use a PowerPoint-reliable format: `m4a` (AAC), `mp3`, or `wav`. Built-in generation defaults to `mp3`; transcode provider output such as `pcm`, `opus`, or `flac` before embedding.+## Use a cloned voiceFour cloud providers — **ElevenLabs**, **MiniMax**, **Qwen**, **CosyVoice** — let you clone a voice from a short sample and then synthesize new speech in that voice. PPT Master narrates the entire deck in your cloned voice as long as you can hand it a `voice_id`. (`edge` does not support cloning.)@@ -136,7 +142,7 @@ Replace `--provider minimax` with `elevenlabs` / `qwen` / `cosyvoice` as needed;- **Authorization** — only clone voices you own or have explicit permission to use. Each provider's terms forbid impersonation.- **Language coverage** — the cloned voice inherits the speaker's accent. For multilingual decks (e.g. Chinese with English terms), pick a provider whose model handles your sample's language mix; ElevenLabs `eleven_multilingual_v2` and CosyVoice tend to be the most forgiving.-- **One-time setup, reusable forever** — the `voice_id` doesn't expire. Clone once, narrate any number of decks.+- **Provider retention** — reuse the `voice_id` while that voice remains available in your provider account. Retention, deletion, and expiration policies are provider-specific.## Dependencydiff --git a/docs/faq.md b/docs/faq.mdindex 564475af..118ee3dc 100644--- a/docs/faq.md+++ b/docs/faq.md@@ -30,7 +30,7 @@ Just specify the format when starting a project (e.g., `--format xhs`). The outp## Q: What AI tools work with PPT Master?-PPT Master works with any AI coding agent that can read files and run shell commands — **Claude Code** (CLI / VS Code / JetBrains / Web), **VS Code Copilot**, **Codex**, and others. See the cost comparison below for pricing differences.+PPT Master works inside any agent-capable AI tool that can read files and run shell commands — **Claude Code** (CLI / VS Code / JetBrains / Web), **VS Code Copilot**, **Codex**, and others. See the cost comparison below for pricing differences.## Q: I downloaded an old version. How do I update to the latest?@@ -160,7 +160,7 @@ Other models (Gemini, GLM, MiniMax, etc.) vary in quality. In general, models wi## Q: Someone said PPT Master is "just a toy" — is that fair?-No. PPT Master is a **harness**, not a complete agent — `harness + model = agent`, and the output ceiling is set entirely by the model, not the harness. Evaluating PPT Master with a weak or small-context model is like test-driving a sports car in first gear and concluding it's slow.+No. PPT Master is a presentation workflow, not a model or a complete agent. It supplies presentation-specific reasoning, contracts, project state, deterministic conversion, and quality gates; the selected model still sets the quality ceiling. Evaluating the workflow with a weak or small-context model is like test-driving a sports car in first gear and concluding it is slow.**The full-power combination:**@@ -175,13 +175,13 @@ One last thing: this is a free, solo-maintained open-source project. If it fits## Q: Text overflows or elements are misaligned — what can I do?-This is almost always a model capability issue, not a bug in PPT Master. SVG layout is essentially manual absolute positioning — the model must calculate coordinates, font metrics, and container sizes correctly.+The cause depends on where the mismatch appears. If the source SVG already overflows or is misaligned, it is usually an authoring/layout problem: the model must calculate coordinates, font metrics, and container sizes correctly. If the SVG preview is correct but the exported PPTX differs, that may be a converter or renderer bug and should be reported with both artifacts.**Fixes to try**:-1. Switch to **Claude** (Opus or Sonnet) if you're using another model+1. Compare the page in `svg_output/` with the exported PPTX to isolate authoring from conversion2. Tell the AI which specific page has the problem and describe the issue — it can regenerate individual pages-3. Open the SVG source file directly and ask the AI to fix coordinates-4. Remember: the generated PPTX is a **high-quality starting point**, not a final deliverable — minor adjustments in PowerPoint are expected+3. If the SVG itself is repeatedly wrong, use a stronger model or ask the AI to fix its coordinates directly+4. Remember: the generated PPTX is a **high-quality editable draft**, not a sealed final deliverable — minor finishing adjustments in PowerPoint are expected## Q: How long does a presentation take to generate?@@ -205,13 +205,13 @@ For post-generation fixes, simply tell the AI: "Page 3 has a layout issue — th## Q: I have an existing PPT and want to build on it — which route should I use?-Think of "using an existing PPT" as two questions: **keep its content or not**, and **keep its design (layout + visuals) or not**. The four combinations map to four routes:+Think of "using an existing PPT" as two questions: **keep its content or not**, and **keep its design (layout + visuals) or not**. The four combinations map to three generation paths plus the option to keep the original unchanged:| Intent | Route | What stays fixed ||---|---|---|-| Keep content + redo layout | **beautify (re-layout)** | Page count, page order, per-slide wording, chart/table data |-| Replace content + keep design | **template-fill** | Native source slide design; selected pages may be reused/reordered |-| Keep only content, redo design and pagination | **main pipeline** | Source facts; story structure and page count may change |+| Keep content + redo layout | **Generate PPTX + beautify profile** | Page count, page order, per-slide wording, chart/table data |+| Replace content + keep design | **Fill Native PPTX** | Native source slide design; selected pages may be reused/reordered |+| Keep only content, redo design and pagination | **Generate PPTX** | Source facts; story structure and page count may change || Keep content + keep design | No generation needed | Use the original file |Use the **beautify profile** when the source deck's page split is part of the requested output: text stays verbatim, page count and order are preserved 1:1, only layout / hierarchy / whitespace are redone while inheriting the original palette/fonts. Say "make this deck look better" / "re-layout this, keep the wording". See the [beautify profile](../skills/ppt-master/workflows/profiles/beautify-pptx.md).@@ -248,7 +248,7 @@ If no source PPTX exists, screenshots of the key page types still work — cover**Step 2 — Let AI Create the Template**-Use an AI coding agent (Claude Code, Codex, etc.) and ask it to use the **PPT Master `/create-template` workflow** to convert your reference material into a template. The more context you give, the better the result — for example:+Use an agent-capable AI tool (Claude Code, Codex, etc.) and ask it to use the **PPT Master `/create-template` workflow** to convert your reference material into a template. The more context you give, the better the result — for example:- Template name and intended use case (e.g., government reports, premium consulting)- Desired tone and color palette (e.g., "modern and restrained, dark blue primary")diff --git a/docs/getting-started.md b/docs/getting-started.mdindex 35fd90e7..fa6ada53 100644--- a/docs/getting-started.md+++ b/docs/getting-started.md@@ -1,5 +1,9 @@# Getting Started+[English](./getting-started.md) | [Chinese](./zh/getting-started.md)++---+The short path to your first deck, how to use everything around it — templates, live preview, animations, narration, voice cloning — and where to look when something goes wrong. Sections follow roughly the order you meet them in a real run. Each is the quick version; follow the **Full guide →** link for depth.- [Start from a template](#start-from-a-template)@@ -20,18 +24,18 @@ The short path to your first deck, how to use everything around it — templates| You want… | Route | What happens ||---|---|---|-| **This exact deck, with new content** | Template fill | Picks the pages that fit (a page can be reused for several output slides), swaps text / table / chart data straight in the original file. Design, layouts, images, animations preserved; output is the same deck, natively editable. Fastest; bound to the existing layouts. |-| **A new deck in this deck's style** | create-template | Parses the `.pptx` into a reusable style bundle, then generates a fresh deck through the SVG pipeline — new structure, any page count. More flexible; full regeneration. |+| **Use this deck's native slide shells with new content** | Fill Native PPTX | Clones the selected source slides and patches text / table / chart data directly in OOXML. The source design remains native; output is a new filled deck bound to the available slide shells. |+| **Build a reusable design system, then generate a new deck** | Create Template → Generate PPTX | Creates a validated Brand, Layout, or Deck workspace from the reference, then authors a fresh deck. The new story, structure, and page count can differ from the source. |For the first, give the AI your `.pptx` plus your material (or a topic) and ask it to "fill this deck with the new content" — see the [template-fill workflow](../skills/ppt-master/workflows/template-fill-pptx.md). The rest of this section covers create-template.-**To generate a new deck in an existing PowerPoint's style, you must explicitly run the create-template flow — don't just hand over a `.pptx` and expect the AI to handle it.** The AI defaults to free design and won't switch into the template flow on its own; without an explicit trigger, generation easily goes off the rails. First turn that `.pptx` into a PPT Master template via create-template:+**To build a reusable workspace from an existing PowerPoint, explicitly request the Create Template route.** A raw `.pptx` plus new material otherwise belongs to Fill Native PPTX; it is not a Generate PPTX Step 3 template. Create the workspace first:```-You: Replicate this as a template via /create-template: projects/brand/our_deck.pptx+You: Create a reusable Deck template from projects/brand/our_deck.pptx via /create-template```-That runs `pptx_template_import.py` and rebuilds the file into a reusable workspace — layout SVGs + `design_spec.md` + extracted theme colors, fonts, and images. If you want a PowerPoint review file, run the optional preview export; it creates `exports/<id>_template_preview.pptx` on demand. The workspace root is what you point to at generation time.+Create Template analyzes the reference, confirms whether the result is a Brand, Layout, or Deck, and then authors or materializes a new validated workspace. The importer supplies source evidence; the final workspace owns `templates/design_spec.md`, any required SVG prototypes, and matching assets. If you want a PowerPoint review file, run the optional preview export; it creates `exports/<id>_template_preview.pptx` on demand. The workspace root is what you point to at generation time.During the create-template brief, choose `library` (the existing default) or `project`. Both require `templates/` and use optional `images/`, `icons/`, and on-demand `exports/`; empty optional directories are omitted. Project scope requires an initialized target project; library scope alone adds global registration.@@ -42,7 +46,7 @@ A created template lives in one of two places:| **Registered in the skill library** | `skills/ppt-master/templates/<kind>/<id>/` | Portable workspace plus global registration, so it appears when you ask "what templates are available?" || **Under projects** | `projects/<name>/` | The same portable workspace without global registration |-Invoke either result by giving its **workspace-root path** in chat. Step 3 resolves `templates/design_spec.md`; for compatibility it also accepts older flat packages whose `design_spec.md` is directly at the supplied root. A create-template run may hand its exact validated workspace root directly to Step 3 in the same conversation. Both cases stay path-based; a bare template name never triggers. The complete workspace can be copied or migrated between the library and `projects/` without restructuring it; only library registration changes.+Invoke either result by giving its **workspace-root path** in chat. Step 3 resolves `templates/design_spec.md`; for directory-shape compatibility it also accepts a flat root whose direct `design_spec.md` and SVGs already satisfy the current contract. A create-template run may hand its exact validated workspace root directly to Step 3 in the same conversation. Both cases stay path-based; a bare template name never triggers. The complete workspace can be copied or migrated between the library and `projects/` without restructuring it; only library registration changes.```You: Make a deck from sources/report.pdf with template skills/ppt-master/templates/layouts/presentation_core/diff --git a/docs/powerpoint-svg-mapping.md b/docs/powerpoint-svg-mapping.mdindex 50172479..1cbf8dee 100644--- a/docs/powerpoint-svg-mapping.md+++ b/docs/powerpoint-svg-mapping.md@@ -1,6 +1,8 @@# PowerPoint Feature ↔ Project SVG Mapping Guide-[中文版](./zh/powerpoint-svg-mapping.md)+[English](./powerpoint-svg-mapping.md) | [Chinese](./zh/powerpoint-svg-mapping.md)++---## Purpose and authoritydiff --git a/docs/roadmap.md b/docs/roadmap.mdindex 4fa60683..c9e9b1b3 100644--- a/docs/roadmap.md+++ b/docs/roadmap.md@@ -6,13 +6,13 @@> PPT Master is a solo-maintained open source project, driven by **priority rather than fixed timelines**. This roadmap is here to align expectations: what's already shipped, what's under ongoing maintenance and evolution, and what's intentionally out of scope. Priorities shift with user feedback and real usage signals — no committed delivery windows.>-> **Where we are**: AI generates SVG from scratch → converts to DrawingML for natively editable PPTX. The core axis is **going ever deeper into PowerPoint's native object model** — real native shapes, masters/layouts via templates, data-backed charts and tables — while holding pixel-fidelity across four renderers (PowerPoint / Keynote / LibreOffice / WPS). Every direction below serves that axis.+> **Where we are**: PPT Master has four explicit artifact routes. Generate PPTX uses constrained SVG → DrawingML to author newly designed slides; Create Template produces reusable Brand / Layout / Deck workspaces; Fill Native PPTX and Enhance Native PPTX preserve existing packages through scoped OOXML operations. Across all four, the core axis is **going ever deeper into PowerPoint's native object model** while keeping each route's editability, fidelity, and preservation trade-offs explicit.---## Recent capability evolution-The past two months' structural capability growth. Single flags / incremental polish go to the commit log.+Structural capability growth since March 2026. Single flags and incremental polish stay in the commit log.### 2026-03 — Native PPTX route takes shape@@ -30,7 +30,7 @@ The past two months' structural capability growth. Single flags / incremental po### 2026-05 — Visual editing + AI image systematization- **Live Preview enters the main pipeline** ([`workflows/stages/live-preview.md`](../skills/ppt-master/workflows/stages/live-preview.md)) — browser preview, click elements to write annotations, say "apply my annotations" and the AI rewrites that region (built on [@WodenJay](https://github.com/WodenJay)'s [PR #85](https://github.com/hugohe3/ppt-master/pull/85))-- **Replicate any PPTX as a template** ([`workflows/create-template.md`](../skills/ppt-master/workflows/create-template.md)) — PPTX → SVG reverse + OOXML theme / master / layout / asset extraction+- **Create a reusable template workspace from a PPTX** ([`workflows/create-template.md`](../skills/ppt-master/workflows/create-template.md)) — read the supported theme / Master / Layout / asset facts that still exist in the package, then author or materialize a new validated Brand / Layout / Deck workspace without modifying the source PPTX- **AI image three-dimension system** rendering × palette × type + Strategist h.5 lock, downstream consumes a fixed contract- **AI image `hero_page` dual-track** — local insert + full-canvas hero image coexist- **Brand identity preset subsystem** ([`workflows/create-template/create-brand.md`](../skills/ppt-master/workflows/create-template/create-brand.md)) — the Create Brand child workflow extracts and reuses brand palette / typography / logo / voice under the fixed Create Template entry@@ -46,7 +46,7 @@ The past two months' structural capability growth. Single flags / incremental po### 2026-06 — Mode & visual-style dual catalogs + PPTX intake & content-strategy expansion-- **Replicate any PPTX's design → refill content route** ([`workflows/template-fill-pptx.md`](../skills/ppt-master/workflows/template-fill-pptx.md)) — when a user supplies an existing `.pptx` plus new material / a topic and asks to "reuse this deck's design / fill the content back in", the Fill Native PPTX route edits the PPTX directly and never enters the SVG generation pipeline. Output stays natively editable (it reuses the original slides' shapes / layouts, not a screenshot refill); it isolates private parts on reuse, exposes chart data, and runs capacity checks. Trigger follows the template rule — only on an explicit ask to reuse an existing deck — and it deliberately does not reflow / add pages / swap images (that's the Generate PPTX route). Distinguished from Non-goals #53 below+- **Reuse a native PPTX's design → refill content route** ([`workflows/template-fill-pptx.md`](../skills/ppt-master/workflows/template-fill-pptx.md)) — when a user supplies an existing `.pptx` plus new material / a topic and asks to "reuse this deck's design / fill the content back in", the Fill Native PPTX route edits the PPTX directly and never enters the SVG generation pipeline. Output stays natively editable (it reuses the original slides' shapes / layouts, not a screenshot refill); it isolates private parts on reuse, exposes chart data, and runs capacity checks. Trigger follows the template rule — only on an explicit ask to reuse an existing deck — and it deliberately does not reflow / add pages / swap images (that's the Generate PPTX route). Distinguished from Non-goals #53 below- **Three executors retired → mode + visual-style dual catalogs** ([`references/modes/`](../skills/ppt-master/references/modes/) + [`references/visual-styles/`](../skills/ppt-master/references/visual-styles/)) — the old three `executor-*.md` (general / consultant / consultant-top) entangled domain · audience · persuasion · narrative on one axis; split into two orthogonal catalogs (following the `image-renderings` pattern: flat dir + `_index` + on-demand read + Strategist locks one). **mode** = narrative skeleton (`pyramid` / `narrative` / `instructional` / `showcase`; consultant + top merge into pyramid since their narrative core is identical); **visual-style** = SVG layout aesthetic (`swiss-minimal` / `editorial` / `soft-rounded` / `dark-tech`, each paired with an image-rendering, **zero HEX** — color truth stays in confirmation e + image-palettes). Strategist `§d` locks `mode` + `visual_style` independently into `spec_lock`; Executor loads the two locked files; any mode × any style. Render coordinates stay in `templates/charts/`- **Prompt constraint-strength decoupling** ([`docs/rules/prompt-style.md`](rules/prompt-style.md) §4) — three explicit strength tiers — rule (`Hard rule` / `Forbidden`) / default (`Default — … may override`) / reference (`Reference — not a constraint`) — plus an "objective failure vs taste" test and a checker boundary, so the model can tell "must keep vs may deviate" at a glance; the visual-style catalog is Reference-strength throughout- **visual-style catalog grows to 18, aligned with image-renderings + examples reclaimed** — first four distilled from the [examples library](../examples/) (`brutalist` / `blueprint` / `memphis` / `zine`), then six filling in the hand-drawn / textured renderings that have a layout twin (`sketch-notes` / `ink-notes` / `chalkboard` / `paper-cut` / `vintage-poster` / `pixel-art`), then four more reclaimed from still-uncovered example aesthetics: `ink-wash` (rice-paper whitespace, from Cangzhuo / Li Ziqi) · `glassmorphism` (dark frosted-glass + gradient light, from glassmorphism_demo, split out of soft-rounded) · `photo-editorial` (full-bleed photography dominates, text captions, from Pritzker / fashion_weekly) · `data-journalism` (Bloomberg/Economist multi-column micro-charts + sidebars, from global_ai_capital). The catalog is regrouped into five families (corporate-product / editorial-publication / expressive-print / hand-drawn-brush / specialty). **The test**: a rendering earns a visual-style twin only when it defines a whole-page layout language, not merely how an inserted image looks — so photo-*led composition* gets `photo-editorial` (paired with corporate-photo), while purely atmospheric renderings (nature / warm-scene / fantasy-animation) stay imagery-only and just pair with a layout style. Zero HEX, Reference strength throughout@@ -111,19 +111,19 @@ Long-running improvements with no committed timeline. Only real directions are l## Non-goals-The directions below come up repeatedly and have been evaluated as **not on the path**. Listing them is not a value judgment on the underlying need — they simply don't fit this project's main route. If you specifically need these capabilities, consider other tools or forking.+The directions below come up repeatedly and have been evaluated as **not on the path**. Listing them is not a value judgment on the underlying need — they simply do not fit this project's product direction. If you specifically need these capabilities, consider other tools or forking.-### Read arbitrary PPTX templates → fill text only+### Blindly refill arbitrary PPTX placeholder systems**Issues**: [#53](https://github.com/hugohe3/ppt-master/issues/53), [#118](https://github.com/hugohe3/ppt-master/issues/118)-PPT Master's main route is "AI generates SVG from scratch → DrawingML", with the whole pipeline built around full control of every shape / text / layout. A structured PPTX can inform a reviewed reusable package in two explicit ways: `standard` / `fidelity` author a new SVG and Master/Layout system from visual evidence, while `mirror` materializes a new workspace from the complete set of supported source facts actually present, including unused Layout definitions. Neither path modifies the source PPTX or recovers absent design intent. Generic "open any PPTX and blindly refill every placeholder" remains a different product shape.+The Generate PPTX route is built around full control of newly authored shapes, text, and layout. A structured PPTX can inform a reviewed reusable package in two explicit ways: `standard` / `fidelity` author a new SVG and Master/Layout system from visual evidence, while `mirror` materializes a new workspace from the complete set of supported source facts actually present, including unused Layout definitions. Neither path modifies the source PPTX or recovers absent design intent. Generic "open any PPTX and blindly refill every placeholder" remains a different product shape.**The basic need is actually simple**: if you just need "replace Excel data into fixed positions in a PPT template", have the AI write a few lines of `python-pptx`. You don't need this pipeline.> **Supported boundaries**: Fill Native PPTX (`template-fill-pptx`) directly refills selected source slides. Create Template (`create-template`) either authors a new explicit SVG contract (`standard` / `fidelity`) or maps validated facts from a supported source contract into a new workspace without semantic synthesis (`mirror`). Strict and adaptive downstream compile the resulting declared contract into native structure. What remains out of scope is unreviewed, schema-free substitution against arbitrary third-party placeholder systems.-### Switch to native PowerPoint charts (Excel-native chart)+### Make native PowerPoint charts the default**Issues**: [#99](https://github.com/hugohe3/ppt-master/issues/99), [#100](https://github.com/hugohe3/ppt-master/issues/100)-class@@ -148,9 +148,9 @@ Won't do: trading quality for "throw a few pages together" speed.If speed-sensitive and quality-tolerant, a zero-setup browser SaaS tool is a better fit.-### CLI / SaaS / desktop app form factors+### Standalone CLI / hosted SaaS / desktop app form factors-The product form is firmly **chat-driven AI IDE skill** (Claude Code / Cursor / VS Code + Copilot / Codebuddy).+The product form is a **chat-driven workflow / skill inside an agent-capable AI tool** (Claude Code, Codex, Cursor, VS Code agents, and others).Won't do: standalone CLI (`ppm`-style), SaaS web service, Electron shell. Any "make it run independently of chat" proposal will be declined. Chat is the interaction core, not a wrapper.diff --git a/docs/technical-design.md b/docs/technical-design.mdindex 11b48dc0..8f611622 100644--- a/docs/technical-design.md+++ b/docs/technical-design.md@@ -4,11 +4,11 @@----## Design Philosophy — AI as Your Designer, Not Your Finisher+## Design Philosophy — AI-Directed Workflow, Human-Controlled Draft-The generated PPTX is a **design draft**, not a finished product. Think of it like an architect's rendering: the AI handles visual design, layout, and content structure — delivering a high-quality starting point. For truly polished results, **expect to do your own finishing work** in PowerPoint: swapping shapes, refining charts, adjusting colors, replacing placeholder graphics with native objects. The goal is to eliminate 90% of the blank-page work, not to replace human judgment in the final mile. Don't expect one AI pass to do everything — that's not how good presentations are made.+PPT Master produces a **high-quality editable PowerPoint draft**, not a sealed final deck. The workflow reasons about the message, designs the pages, and authors or preserves native PowerPoint objects under an explicit route contract. The user reviews the direction and owns the final-mile judgment in PowerPoint. Remaining work should be refinement of a real deck, not reconstruction from slide images or a thin editable skin.-**A tool's ceiling is your ceiling.** PPT Master amplifies the skills you already have — if you have a strong sense of design and content, it helps you execute faster. If you don't know what a great presentation looks like, the tool won't know either. The output quality is ultimately a reflection of your own taste and judgment.+The workflow supplies presentation-specific reasoning, state, contracts, and quality gates; deterministic tools handle conversion, validation, packaging, and repeatable file operations. **The selected model still sets the quality ceiling**, while the user's taste and judgment guide review and finishing.### SVG Is a Project-Specific Intermediate Language@@ -34,7 +34,9 @@ The three layers have separate responsibilities and cannot substitute for one an----## System Architecture+## Generate PPTX Architecture++The diagram below covers the Generate PPTX route, including its `beautify-pptx` profile. Create Template has its own workspace lifecycle, while Fill Native PPTX and Enhance Native PPTX operate directly on OOXML; the route table later in this document covers all four.```User Input (PDF/DOCX/XLSX/PPTX/URL/Markdown/topic text)@@ -46,7 +48,7 @@ User Input (PDF/DOCX/XLSX/PPTX/URL/Markdown/topic text)[Create Project] → project_manager.py init <project_name> --format <format>↓[Template / Brand / Layout (optional)] — default: skip, proceed with free design- Trigger only on an explicit Layout/Deck workspace root or direct Brand/legacy package path+ Trigger only on an explicit current-contract Brand/Layout/Deck workspace rootRaw PPTX template requests route to template-fill; reusable SVG templates are created by create-template first↓[Strategist] - three-stage Strategist confirmation stage & Design Specifications → design_spec.md + spec_lock.md@@ -96,7 +98,7 @@ Minimal semantic markers do not weaken that closure. Free-design and brand-onlyThis is a page-design closure rule, not a claim that SVG describes the entire PPTX package. Rebuilding the visible slide from its completed SVG is the relevant invariant; reconstructing notes, audio, timing, relationships, or direct native edits from SVG alone is not.-Direct PPTX workflows intentionally bypass the SVG authoring route and remain separate by design:+Existing-PPTX requests split by mutation model: the two native workflows bypass SVG, while `beautify-pptx` remains a Generate PPTX profile that regenerates the visible design:| Workflow | Input role | Output mechanics | Why it is separate ||---|---|---|---|diff --git a/docs/templates-architecture.md b/docs/templates-architecture.mdindex 6fa01929..9914ccc4 100644--- a/docs/templates-architecture.md+++ b/docs/templates-architecture.md@@ -1,5 +1,9 @@# Template Architecture: Brand / Layout / Deck+[English](./templates-architecture.md) | [Chinese](./zh/templates-architecture.md)++---+> This is the **architecture alignment document**. It defines the three template kinds at the data-model layer, the field sets of each `design_spec.md`, and the multi-path fusion + conflict resolution rules. Audience: contributors and AI workflows; answers "what should / shouldn't a template directory contain; how do they combine when multiple are supplied".>> For user-facing usage (how to trigger, how to pick), see [`templates-guide.md`](./templates-guide.md); not repeated here.@@ -18,6 +22,8 @@ Every newly created Layout/Deck SVG is a complete preview with root Master/LayouThe three are **parallel reference bundles**. In library scope, the physical directory and the frontmatter `kind` field correspond one-to-one:+The fused project-level `design_spec.md` must also retain an accurate `kind`: `deck` when both identity and structure are present, `layout` when only structure is present, and `brand` when only identity is present. The Strategist confirmation page uses this field to show `adaptive / strict` only for Deck/Layout bundles that actually own page structure.+```yaml# templates/brands/anthropic/templates/design_spec.md---@@ -32,7 +38,7 @@ native_structure_mode: structured...----# templates/decks/china_merchants_bank/templates/design_spec.md+# templates/decks/中国电信/templates/design_spec.md---kind: decknative_structure_mode: structured@@ -209,7 +215,7 @@ this segment”.## 3. The three index files-Each index maps one-to-one with its physical directory; fields are trimmed to what Strategist actually needs to pick (following the "meta + summary" pattern from `charts_index.json`, but preserving structured metadata that helps selection).+Each index maps one-to-one with its physical directory; fields are trimmed to what Strategist actually needs to pick, following the compact "meta + summary" pattern used by [`charts_index.json`](../skills/ppt-master/templates/charts/charts_index.json) while preserving structured metadata that helps selection.These indexes cover library scope only. A project-root workspace is intentionally absent from all three indexes and remains usable through its explicit `projects/<name>/` path. Because both scopes use the same workspace shape, moving or copying the complete core workspace between them does not require asset-path rewriting; only library registration changes.@@ -312,7 +318,7 @@ When fusion happens (any multi-path case), the resulting `<project>/templates/de```markdown> **Fused from:**-> - deck: `templates/decks/china_merchants_bank/` (base)+> - deck: `templates/decks/中国电信/` (base)> - brand: `templates/brands/anthropic/` (identity override)> - layout: `templates/layouts/presentation_core/` (structure override)> - conflicts resolved: Color Scheme from anthropic (user picked a)@@ -324,7 +330,7 @@ This lets both AI and humans trace which segment came from where.## 5. Relationship with SKILL.md Step 3-**Trigger rule stays path-based** — an explicit workspace-root path is still required (see [[feedback-template-explicit-path-only]]), and bare names never trigger. Step 3 first resolves `<workspace>/templates/design_spec.md`; for directory-shape compatibility, it also accepts a flat root containing `<workspace>/design_spec.md` when the SVGs already satisfy the current contract. Packages using legacy semantics such as `native_structure_mode: template`, missing Master identity, direct atomic placeholders, or distillation-era markers are rejected; `create-template` must produce a new workspace before generation continues. The only narrow handoff exception is a `create-template` run in the current conversation: after validation, it may pass its exact workspace root directly into Step 3. The `kind` field decides **how AI handles the path after triggering**:+**Trigger rule stays path-based** — an explicit workspace-root path is still required ([SKILL.md Step 3](../skills/ppt-master/SKILL.md#step-3-template-option)), and bare names never trigger. Step 3 first resolves `<workspace>/templates/design_spec.md`; for directory-shape compatibility, it also accepts a flat root containing `<workspace>/design_spec.md` when the SVGs already satisfy the current contract. Packages using legacy semantics such as `native_structure_mode: template`, missing Master identity, direct atomic placeholders, or distillation-era markers are rejected; `create-template` must produce a new workspace before generation continues. The only narrow handoff exception is a `create-template` run in the current conversation: after validation, it may pass its exact workspace root directly into Step 3. The `kind` field decides **how AI handles the path after triggering**:| User path's `kind` | Step 3 action (per-kind branch) ||---|---|diff --git a/docs/templates-guide.md b/docs/templates-guide.mdindex e97b1cc3..c4c479d0 100644--- a/docs/templates-guide.md+++ b/docs/templates-guide.md@@ -1,6 +1,10 @@# Templates Guide: Use, Derive, and Boundaries-A PPT Master "template" is a **structure + style** preset bundle: complete standalone SVG pages whose metadata explicitly identifies one Master and Layout, atomic fixed-layer objects, and grouped content slots, plus `design_spec.md` and matching assets. Export deterministically compiles that declared contract into native PowerPoint structure.+[English](./templates-guide.md) | [Chinese](./zh/templates-guide.md)++---++A PPT Master template is a reusable workspace with one of three explicit kinds: **Brand** owns identity, **Layout** owns reusable page structure, and **Deck** owns both plus deck-specific overview context. Layout and Deck workspaces include complete SVG prototypes with declared Master / Layout / slot contracts; Brand workspaces intentionally have no SVG roster. Each workspace's `design_spec.md` and matching assets declare exactly what that kind contributes.This guide answers three questions:@@ -46,64 +50,35 @@ Templates are organized into three kinds, each in its own directory:- [`templates/layouts/README.md`](../skills/ppt-master/templates/layouts/README.md) — structure-only patterns (canvas / page structure / page types / SVG roster), no identity; presentation_core- [`templates/decks/README.md`](../skills/ppt-master/templates/decks/README.md) — full identity + structure references (including the middle segment); CATARC and China Telecom-Full data model + fusion / conflict-resolution rules: [`docs/zh/templates-architecture.md`](./zh/templates-architecture.md) (Chinese only for now).+Full data model + fusion / conflict-resolution rules: [`templates-architecture.md`](./templates-architecture.md).### Free design vs template-Free design is **not** "no structure" or "no style" — the AI plans a fresh Master/Layout system and visual language **for that specific deck** before drawing the SVG pages. A template reuses an already-defined structure and style. Both use the same structured output contract; the difference is where the structure originates.+Free design is **not** "no structure" or "no style" — the Strategist still plans the narrative, hierarchy, and visual system for that specific deck. Its generated pages use `pptx_structure.mode: flat`, so every visible object remains Slide-local. A Brand-only workspace also stays `flat` while supplying identity constraints. Layout and Deck workspaces use `pptx_structure.mode: structured`, because they contribute an explicit reusable Master / Layout / slot contract.-> Rule of thumb: clear content direction + strong brand or scenario constraints (consulting reports, government briefings, defenses) → use a template. Essay-like content where atmosphere matters more (magazine, documentary narrative) → free design usually works better.+> Rule of thumb: use a Brand workspace when identity must be fixed, a Layout workspace when page structure must be reused, and a Deck workspace when both must travel together. Use free design when the deck should develop its own composition from the content.### Styles are not templates-A **style** is a description ("minimalist" / "Keynote-style" / "editorial") — a few words you type in chat. A **template** is a copy-and-paste asset bundle (SVGs + design_spec + assets) the workflow installs into your project when you give it an explicit directory path.+A **style brief** is interpretive language ("minimalist" / "Keynote-style" / "editorial") that the Strategist turns into concrete design choices. A **template** is a real Brand / Layout / Deck workspace that the workflow consumes only when you provide its explicit directory path.| | Template | Style ||---|---|---|| How invoked | Explicit directory path in your message | Free-form description in your message |-| What happens | Files copied into project; layouts inherit from template SVGs | Words flow to Strategist; color / typography / tone proposed in Strategist confirmation stage |-| Locked values | Yes — values come from the template's `design_spec.md` | No — Strategist invents values that fit the deck |-| Best for | Brand-locked decks; scenarios with strong visual conventions | When you have a feel in mind but no specific brand commitment |+| What it supplies | The segments declared by its kind: identity, structure, or both | Intent that the Strategist interprets into mode, visual style, color, typography, icons, and imagery |+| Confirmation | Template-owned values become the starting contract; user-confirmed choices remain authoritative | No pre-authored values; the Strategist proposes concrete candidates and the user confirms them |+| Best for | Reusing an existing identity and/or page system | Expressing a desired feel without adopting a stored workspace |A style description and a template name still go through different machinery: "minimalist" is interpretive language, while `presentation_core/` is a real template directory that requires an explicit path.-### Common styles you can describe--Three axes, freely combinable ("dark tech + minimalist" or "magazine + neo-Chinese"):--**Aesthetic direction**--| Style | One-line characterization |-|---|---|-| **Minimalist** | High whitespace, 2-3 colors, single focal point per page |-| **Information-dense** | McKinsey-style structured tables, high density, conclusion-first |-| **Keynote-style** | Single-page hero text, premium whitespace, Apple-feel |-| **Editorial** | Large hero images, asymmetric layouts, strong typography contrast |-| **Editorial illustration** | Warm tones, hand-drawn feel, zine-like |--**Scenario / Industry**--| Style | One-line characterization |-|---|---|-| **Business consulting** | Data-driven, restrained, blue / grey palette |-| **Academic defense** | Strict hierarchy, citation-heavy, clean |-| **Government briefing** | Red / blue, formal, symmetric |-| **Product launch** | Visually bold, marketing-driven, single hero per page |-| **Education / training** | Clear hierarchy, friendly tone, bright palette |-| **Pitch deck / BP** | Narrative-driven, conclusion-bold |+### How style briefs are interpreted-**Visual character / atmosphere**+The Strategist separates two independent choices:-| Style | One-line characterization |-|---|---|-| **Dark tech** | Dark backgrounds, neon accents, futuristic |-| **Pixel retro** | 8-bit, scanlines, gaming aesthetic |-| **Neo-Chinese** | Restrained traditional motifs, ink / vermilion |-| **Scandinavian** | Light, natural, restrained |-| **Memphis / pop** | High-saturation blocks, geometric, 80s |-| **Cyberpunk / vaporwave** | Neon purple-pink, grids, dreamlike |+- **Mode** controls how the deck communicates: `pyramid`, `narrative`, `instructional`, `showcase`, `briefing`, or a confirmed `custom` direction.+- **Visual style** controls how the pages look: built-ins such as `swiss-minimal`, `editorial`, `dark-tech`, `data-journalism`, `ink-wash`, and others, plus `custom`.-When you describe a style, the AI doesn't pick a template — it interprets the words and lands them in Layer 2 of confirmation `d` (Style Objective) inside Strategist's confirmation stage, which then drives e (color), f (icon), g (typography), and h (image). You confirm or refine. To use the built-in `presentation_core` structure, send its workspace path; to keep structure free, describe only the style and let the AI adapt it to the deck content.+Any mode can pair with any visual style. Terms such as "Keynote-style product launch" may influence both axes — for example, a `showcase` narrative with a restrained high-whitespace visual system — but they are never a template lookup token. The user confirms the resulting choices before generation. The canonical catalogs live under [`references/modes/`](../skills/ppt-master/references/modes/) and [`references/visual-styles/`](../skills/ppt-master/references/visual-styles/).---@@ -257,8 +232,8 @@ The result is not a private or reduced project-only format. You can point Step 3Common misconceptions to avoid:-- **A reusable template is an explicit SVG contract, not a packaged source PPTX.** Authored modes create that contract; mirror maps validated source ownership facts into it. Every page previews independently, and export compiles only declared Master/Layout/Slide structure-- **A template is not a "style skin".** It bundles structure (which blocks per page, how information is hierarchized) with style (colors, fonts, decoration). Trying to swap "skin" without structure tends to put the information architecture and the visuals at odds+- **A reusable template is an explicit workspace, not a packaged source PPTX.** Brand workspaces may contain identity only; Layout and Deck workspaces add the structured SVG contract. Authored modes create that contract, while mirror maps validated source ownership facts into it. Export compiles only declared structure+- **A template is not one undifferentiated "style skin".** Brand, Layout, and Deck deliberately separate identity from structure so each segment can be reused or fused under an explicit ownership rule- **A template does not make content decisions for you.** The Strategist still decides per-page which layout to use and whether to extend a variant. Templates offer candidates, not predetermined results- **`fidelity` mode is not pixel-perfect copying.** Even with `literal` fidelity, the AI still strips noise and unnecessary repetition — geometry stays, redundancy goes- **`mirror` targets literal supported appearance and source topology, not byte-identical OOXML.** It inherits source import limitations and permits only mechanical normalization such as fixed-layer group expansion. Unsupported native objects keep their available SVG fallback or are reported; mirror never synthesizes replacement ownership.diff --git a/docs/windows-installation.md b/docs/windows-installation.mdindex de020b92..e4760d29 100644--- a/docs/windows-installation.md+++ b/docs/windows-installation.md@@ -1,5 +1,9 @@# Windows Installation Guide+[English](./windows-installation.md) | [Chinese](./zh/windows-installation.md)++---+This guide walks you through installing PPT Master on Windows step by step. Follow along and you'll have a working setup in under 10 minutes.---@@ -12,8 +16,6 @@ Python is the only hard requirement.2. **⚠️ CRITICAL: Check "Add python.exe to PATH"** during installation — this is the single most common mistake on Windows. Skipping this will break every step that follows.- -3. After installation, open **PowerShell** (search "PowerShell" in Start menu) and verify:```powershell@@ -70,13 +72,18 @@ python -c "import pptx; import fitz; print('All core dependencies OK')"## Step 5 — Run a Minimal Example-Open your AI editor (Cursor, VS Code + Copilot, etc.), open the `ppt-master` folder, and type in the chat:+Open the `ppt-master` folder in an agent-capable AI tool (Claude Code, Codex, Cursor, a VS Code agent, etc.) and type in the chat:```Please create a simple 3-page test PPT with a cover, one content page, and a closing page. Topic: "Hello World".```-If a `.pptx` file appears in `exports/` that opens in PowerPoint — **you're done.**+After the standard flow finishes, you should see:++- A native DrawingML `.pptx` under `exports/`, generated from `svg_output/`, that opens in PowerPoint and remains editable element by element.+- A `svg_final/` directory containing self-contained visual-preview SVGs. They may be inserted manually as SVG pictures, but manual "Convert to Shape" is outside the supported contract.++If both are present, **you're done.**---diff --git a/docs/zh/README.md b/docs/zh/README.mdindex 6238c963..2d6913fc 100644--- a/docs/zh/README.md+++ b/docs/zh/README.md@@ -42,4 +42,4 @@| 文档 | 说明 ||---|---|-| [风格规则](../rules/README.md)(英文) | 提示词文件、Python 与文档散文的仓库级风格规则 |+| [风格规则](../rules/README.md)(英文) | 面向提示词参考文件与 Python 脚本的贡献者风格规则 |diff --git a/docs/zh/audio-narration.md b/docs/zh/audio-narration.mdindex 480d381e..1cac3a8f 100644--- a/docs/zh/audio-narration.md+++ b/docs/zh/audio-narration.md@@ -1,5 +1,9 @@# 音频旁白与视频导出+[English](../audio-narration.md) | [Chinese](./audio-narration.md)++---+PPT Master 可以把演讲者备注转成逐页音频旁白(默认基于 [`edge-tts`](https://github.com/rany2/edge-tts) —— 微软 Edge 的在线神经网络语音;也可配置 ElevenLabs、MiniMax、Qwen TTS、CosyVoice 使用高质量或复刻音色),再把音频嵌入回 PPTX,由 PowerPoint 自带的"导出视频"一键产出带旁白和转场的 MP4,全程无需第三方工具。## 你会得到什么@@ -56,7 +60,14 @@ python3 skills/ppt-master/scripts/total_md_split.py <project_path>python3 skills/ppt-master/scripts/notes_to_audio.py <project_path> \--voice zh-CN-YunjianNeural --rate +0%-# 2B. 用 MiniMax 生成 MP3(支持系统音色或复刻 voice_id)+# 2B. 用 ElevenLabs 生成 MP3(需要 ELEVENLABS_API_KEY)+export ELEVENLABS_API_KEY="your-elevenlabs-api-key"+python3 skills/ppt-master/scripts/notes_to_audio.py <project_path> \+ --provider elevenlabs \+ --voice-id <elevenlabs-voice-id> \+ --elevenlabs-model eleven_multilingual_v2++# 2C. 用 MiniMax 生成 MP3(支持系统音色或复刻 voice_id)export MINIMAX_API_KEY="your-minimax-api-key"# 默认使用国内地址;海外访问可设置 MINIMAX_TTS_BASE_URL=https://api.minimax.io/v1/t2a_v2python3 skills/ppt-master/scripts/notes_to_audio.py <project_path> \@@ -64,7 +75,7 @@ python3 skills/ppt-master/scripts/notes_to_audio.py <project_path> \--voice-id <minimax-voice-id> \--minimax-model speech-2.8-hd-# 2C. 用 Qwen TTS 生成音频(系统音色或复刻音色)+# 2D. 用 Qwen TTS 生成音频(系统音色或复刻音色)export DASHSCOPE_API_KEY="your-dashscope-api-key"python3 skills/ppt-master/scripts/notes_to_audio.py <project_path> \--provider qwen \@@ -72,7 +83,7 @@ python3 skills/ppt-master/scripts/notes_to_audio.py <project_path> \--qwen-model qwen3-tts-flash \--qwen-language-type Chinese-# 2D. 用 CosyVoice 生成 MP3(系统音色或复刻/设计音色)+# 2E. 用 CosyVoice 生成 MP3(系统音色或复刻/设计音色)export COSYVOICE_API_KEY="your-dashscope-api-key"python3 skills/ppt-master/scripts/notes_to_audio.py <project_path> \--provider cosyvoice \@@ -84,7 +95,16 @@ python3 skills/ppt-master/scripts/svg_to_pptx.py <project_path> \--recorded-narration audio```-edge 模式下 `--voice` 是必填项。云端 provider 使用 `--voice-id` 传入对应平台的系统音色或复刻音色 ID。声音复刻本身先在对应平台控制台/API 中完成,`notes_to_audio.py` 使用得到的 voice ID 生成逐页旁白。+edge 模式下 `--voice` 是必填项,可用 `--list-voices --locale <locale>` 查看音色。++ElevenLabs 模式下 `--voice-id` 是必填项,可从账户中列出音色:++```bash+export ELEVENLABS_API_KEY="your-elevenlabs-api-key"+python3 skills/ppt-master/scripts/notes_to_audio.py --provider elevenlabs --list-voices+```++MiniMax、Qwen 与 CosyVoice 使用 `--voice-id` 传入对应平台的系统音色或复刻音色 ID。声音复刻本身先在对应平台控制台 / API 中完成,`notes_to_audio.py` 使用得到的 voice ID 生成逐页旁白。进入 PPTX 的旁白音频必须是 PowerPoint 可靠格式:`m4a`(AAC)、`mp3` 或 `wav`。内置生成路径默认使用 `mp3`;如果 provider 产出 `pcm`、`opus` 或 `flac`,需要先转码再嵌入。@@ -122,7 +142,7 @@ python3 skills/ppt-master/scripts/notes_to_audio.py <project_path> \- **授权** —— 只复刻你自己拥有的、或拿到了明确授权的声音。每个 provider 的服务条款都禁止冒用他人声音。- **语言覆盖** —— 复刻出来的音色会继承说话人的口音。对中英混合等多语 deck,建议挑一个对你样本语言组合处理较好的 provider;ElevenLabs `eleven_multilingual_v2` 和 CosyVoice 通常最宽容。-- **一次复刻、长期复用** —— `voice_id` 不过期。复刻一次,可以给任意多份 deck 配旁白。+- **Provider 保留策略** —— 只要该音色仍存在于你的 provider 账户中,就可以继续复用对应 `voice_id`;保留、删除与过期规则以各平台政策为准。## 依赖diff --git a/docs/zh/faq.md b/docs/zh/faq.mdindex d33f35f4..9a1ad8c5 100644--- a/docs/zh/faq.md+++ b/docs/zh/faq.md@@ -30,7 +30,7 @@## Q: PPT Master 支持哪些 AI 工具?-PPT Master 可以在任何能读取文件和执行命令的 AI 编程代理中运行——**Claude Code**(CLI / VS Code / JetBrains / Web)、**VS Code Copilot**、**Codex** 等均可使用。不同工具的使用成本可参考下方的费用对比。+PPT Master 可以在任何能读取文件和执行命令、支持 Agent 的 AI 工具中运行——**Claude Code**(CLI / VS Code / JetBrains / Web)、**VS Code Copilot**、**Codex** 等均可使用。不同工具的使用成本可参考下方的费用对比。## Q: 我下载过旧版本,怎么更新到最新版?@@ -162,7 +162,7 @@ python3 skills/ppt-master/scripts/svg_to_pptx.py <project> -a auto --animation-t## Q: 有人说 PPT Master "只是个玩具"——这个评价准确吗?-不准确。PPT Master 是一个 **harness**,不是完整的 agent——`harness + model = agent`,输出上限完全由模型决定,而不是由 harness 本身决定。用弱模型或小上下文窗口来评价 PPT Master,就好比挂着一档开跑车然后说它跑不快。+不准确。PPT Master 是演示文稿工作流,不是模型,也不是完整 agent。它提供演示文稿专用的推理、合同、项目状态、确定性转换与质量门;最终质量上限仍由所选模型决定。用弱模型或小上下文窗口来评价这套工作流,就好比挂着一档开跑车然后说它跑不快。**发挥完整实力的组合:**@@ -171,21 +171,19 @@ python3 skills/ppt-master/scripts/svg_to_pptx.py <project> -a auto --animation-t如果你看到的效果差强人意,先对照以下几点检查你的配置,再下结论:用的什么模型?上下文开了多大?有没有接入图片生成 API?同样的工作流,Claude Opus 配 100 万 token 上下文配 `gpt-image-2` 的结果,和小参数开源模型配零配置的结果,是截然不同的体验。-**harness 决定工作流上限,model 决定质量上限。** 如果 agent 能力不达预期,请先升级模型,再来评价 harness。-> **没有 Claude 渠道?** 本项目赞助商 [PackyCode](https://www.packyapi.com/register?aff=ppt-master) 提供 Claude 及其他主流模型的按量付费接入——无需订阅,无需境外信用卡,支持国内支付,开箱即用。充值时填写优惠码 **`ppt-master`** 享 9 折。最后再说一句:这是一个免费、个人维护的开源项目。合用就用,能帮到你我很高兴;不合用,换个工具就好。真诚的反馈与建议始终欢迎——这也是项目一点点变好的方式。## Q: 文字超出边框 / 元素错位怎么办?-这几乎都是模型能力问题,不是 PPT Master 的 bug。SVG 排版是纯手动绝对定位——模型必须准确计算坐标、字体度量和容器尺寸。+原因取决于偏差出现在哪一层。如果源 SVG 本身已经溢出或错位,通常属于创作 / 排版问题:模型需要准确计算坐标、字体度量和容器尺寸。如果 SVG 预览正确、导出的 PPTX 却不同,则可能是转换器或渲染器问题,应连同两份产物一起反馈。**解决办法**:-1. 切换到 **Claude**(Opus 或 Sonnet),如果你用的是其他模型+1. 对比 `svg_output/` 中的页面与导出 PPTX,先区分创作问题和转换问题2. 告诉 AI 哪一页有问题、具体是什么问题——它可以单独重新生成某一页-3. 直接打开 SVG 源文件,让 AI 修正坐标-4. 记住:生成的 PPTX 是**高质量起点**,不是最终成品——在 PowerPoint 中做少量调整是正常的+3. 如果 SVG 本身持续出错,换更强的模型,或让 AI 直接修正坐标+4. 记住:生成的 PPTX 是**高质量、可编辑的草稿**,不是封闭的最终成品——在 PowerPoint 中做少量收尾是正常的## Q: 生成一份 PPT 要多久?@@ -209,13 +207,13 @@ python3 skills/ppt-master/scripts/svg_to_pptx.py <project> -a auto --animation-t## Q: 我手上有一份现成的 PPT,想基于它做东西,该走哪条路?-把「用一份已有 PPT」拆成两个问题:**留不留它的内容**、**留不留它的设计(版式 + 视觉)**。四种组合对应四条路:+把「用一份已有 PPT」拆成两个问题:**留不留它的内容**、**留不留它的设计(版式 + 视觉)**。四种组合对应三种生成路径,以及直接保留原文件这一种无需生成的结果:| 意图 | 路线 | 固定不变的东西 ||---|---|---|-| 留内容 + 重做版式 | **beautify(美化 / 重排)** | 页数、页序、每页文字、图表/表格数据 |-| 换内容 + 留设计 | **template-fill(套模板)** | 原生页面设计;可选择、乱序、复用源页 |-| 只留内容,设计与分页都重来 | **主管线** | 源事实;故事结构和页数都可重构 |+| 留内容 + 重做版式 | **Generate PPTX + beautify profile** | 页数、页序、每页文字、图表/表格数据 |+| 换内容 + 留设计 | **Fill Native PPTX** | 原生页面设计;可选择、乱序、复用源页 |+| 只留内容,设计与分页都重来 | **Generate PPTX** | 源事实;故事结构和页数都可重构 || 留内容 + 留设计 | 不必生成 | 直接用原文件 |使用 **beautify profile** 的前提是:原 PPT 的分页本身就是输出要求的一部分。文字逐字不动、页数页序 1:1 保留,只重排版式、层级和留白,并继承原配色字体。典型说法是「把这份 PPT 美化一下 / 重新排版,内容别动」。见 [beautify profile](../../skills/ppt-master/workflows/profiles/beautify-pptx.md)。@@ -252,7 +250,7 @@ beautify 和主管线的一句话判别:**原来的分页是要保留的信息**第二步 — 让 AI 创建模板**-使用 AI 编程代理(Claude Code、Codex 等),要求它使用 **PPT Master 的 `/create-template` 工作流**,将这些参考材料转换成模板。提供的信息越详细,效果越好,例如:+使用支持 Agent 的 AI 工具(Claude Code、Codex 等),要求它使用 **PPT Master 的 `/create-template` 工作流**,将这些参考材料转换成模板。提供的信息越详细,效果越好,例如:- 模板名称和适用场景(如政府汇报、高端咨询、产品宣讲等)- 期望的风格基调和配色(如"现代克制、深蓝主色调")diff --git a/docs/zh/getting-started.md b/docs/zh/getting-started.mdindex 3f260928..44be5551 100644--- a/docs/zh/getting-started.md+++ b/docs/zh/getting-started.md@@ -1,5 +1,9 @@# 快速入门+[English](../getting-started.md) | [Chinese](./getting-started.md)++---+最快做出第一份 deck 的路径、围绕它的各项能力——模板、实时预览、动画、旁白、声音复刻——以及出问题时去哪里查。章节大致按你真实使用时遇到它们的顺序排列。每节都是精简版,需要细节就点 **完整说明 →** 链接。- [用模板](#用模板)@@ -20,18 +24,18 @@| 你想要… | 路径 | 会发生什么 ||---|---|---|-| **就要这份 deck,换成新内容** | 套模板(template fill) | 挑出合适的页面,把文字 / 表格 / 图表数据直接写回原文件。设计、版式、图片、动画都保留;输出就是同一份 deck,原生可编辑。最快;但受限于现有页面。 |-| **基于这份 deck 的风格生成新 deck** | create-template | 把 `.pptx` 解析成可复用的风格资产包,再走 SVG 管线**重新生成**——结构自由、页数任意。更灵活;完整重建。 |+| **用这份 deck 的原生页面壳承载新内容** | Fill Native PPTX | 克隆选中的源页面,并在 OOXML 中直接改写文字 / 表格 / 图表数据。来源设计保持原生;输出是受现有页面壳约束的新回填 deck。 |+| **先建立可复用设计系统,再生成新 deck** | Create Template → Generate PPTX | 从参考材料创建经过验证的 Brand、Layout 或 Deck 工作区,再创作一份新 deck。新故事、结构与页数都可以不同于来源。 |前者:把 `.pptx` 连同素材(或一个主题)给 AI,说「套模板」——见 [套模板工作流](../../skills/ppt-master/workflows/template-fill-pptx.md)。本节其余部分讲 create-template。-**想基于某份现成 PPT 的风格重新生成 deck,必须显式走 create-template 流程——别直接丢个 `.pptx` 指望 AI 自动处理。** AI 默认走自由设计,不会主动切进创建模板的流程;不显式启动它,生成过程就容易错乱。先用 create-template 把那份 `.pptx` 复刻成 PPT Master 模板:+**想把某份现成 PowerPoint 做成可复用工作区,必须显式请求 Create Template 路线。** 原生 `.pptx` 加新材料默认属于 Fill Native PPTX,并不是 Generate PPTX Step 3 可以直接消费的模板。先创建工作区:```-你:用 /create-template 把这个复刻成模板:projects/brand/our_deck.pptx+你:用 /create-template 从 projects/brand/our_deck.pptx 创建一个可复用 Deck 模板```-这会跑 `pptx_template_import.py`,把文件重建成可复用工作区——版式 SVG + `design_spec.md` + 抽取出的主题色、字体、图片。如果需要 PowerPoint 评审文件,再显式运行可选预览导出;它会按需创建 `exports/<id>_template_preview.pptx`。生成时引用的是工作区根目录。+Create Template 会分析参考材料,确认结果属于 Brand、Layout 还是 Deck,再创作或物化一个经过验证的新工作区。导入器只提供来源证据;最终工作区拥有 `templates/design_spec.md`、所需 SVG 原型与配套素材。如果需要 PowerPoint 评审文件,再显式运行可选预览导出;它会按需创建 `exports/<id>_template_preview.pptx`。生成时引用的是工作区根目录。在 create-template 简报中选择 `library`(沿用原默认)或 `project`。两种范围都要求 `templates/`,并使用可选的 `images/`、`icons/` 和按需生成的 `exports/`;空的可选目录直接省略。项目范围要求给出已初始化的目标项目;只有全局库范围会执行注册。@@ -42,7 +46,7 @@| **注册进 skill 库** | `skills/ppt-master/templates/<kind>/<id>/` | 可移植工作区并执行全局注册;问“有哪些模板”时会被列出来 || **放在 projects 下** | `projects/<name>/` | 相同的可移植工作区,不执行全局注册 |-两种结果都通过对话里给出**工作区根目录路径**来引用。Step 3 会解析 `templates/design_spec.md`;为兼容旧包,也接受 `design_spec.md` 直接位于所给根目录的平铺形态。create-template 可在同一对话里把已验证的精确工作区根目录直接交给 Step 3。两种情况都以路径为准,绝不认裸模板名。完整工作区可以在全局库与 `projects/` 之间复制或迁移,无需调整目录结构;只有全局库注册不同。+两种结果都通过对话里给出**工作区根目录路径**来引用。Step 3 会解析 `templates/design_spec.md`;为兼容目录形态,也接受 `design_spec.md` 直接位于所给根目录、且 SVG 已满足当前合同的平铺工作区。create-template 可在同一对话里把已验证的精确工作区根目录直接交给 Step 3。两种情况都以路径为准,绝不认裸模板名。完整工作区可以在全局库与 `projects/` 之间复制或迁移,无需调整目录结构;只有全局库注册不同。```你:用 sources/report.pdf 做 deck,模板用 skills/ppt-master/templates/layouts/presentation_core/diff --git a/docs/zh/powerpoint-svg-mapping.md b/docs/zh/powerpoint-svg-mapping.mdindex 8f200b43..e216da64 100644--- a/docs/zh/powerpoint-svg-mapping.md+++ b/docs/zh/powerpoint-svg-mapping.md@@ -1,6 +1,8 @@# PowerPoint 功能 ↔ 项目 SVG 映射指南-[English](../powerpoint-svg-mapping.md)+[English](../powerpoint-svg-mapping.md) | [Chinese](./powerpoint-svg-mapping.md)++---## 目的与权威边界diff --git a/docs/zh/roadmap.md b/docs/zh/roadmap.mdindex bf37779c..90b25cf2 100644--- a/docs/zh/roadmap.md+++ b/docs/zh/roadmap.md@@ -6,13 +6,13 @@> PPT Master 是单人维护的开源项目,按**优先级**而非时间表推进。这份 roadmap 用来统一对外预期:已经做了什么、在持续维护演进什么、暂时不打算做什么。优先级会随用户反馈和实际使用信号调整,不承诺时间窗口。>-> 项目当前定位:**AI 从零生成 SVG → DrawingML 原生可编辑 PPTX**。核心主轴是**不断深化对 PowerPoint 原生对象模型的支持**——真原生形状、走模板路线的母版/版式、数据驱动的图表与表格——同时守住跨四渲染器(PowerPoint / Keynote / LibreOffice / WPS)的位置保真。所有方向都围绕这条主轴展开。+> 项目当前有四条显式产物路线:Generate PPTX 通过受约束的 SVG → DrawingML 创作新页面;Create Template 产出可复用 Brand / Layout / Deck 工作区;Fill Native PPTX 与 Enhance Native PPTX 则通过受控 OOXML 操作保留既有包结构。四条路线共同围绕一个主轴:**不断深化对 PowerPoint 原生对象模型的支持**,同时把每条路线的可编辑性、保真度与保留边界说清楚。---## 近期能力演进-近两个月的能力面扩张。只列结构性的,单 flag / 增量优化看 commit log。+这里记录自 2026 年 3 月以来的结构性能力演进;单 flag 与增量优化看 commit log。### 2026-03(真原生 PPTX 路线成型)@@ -46,7 +46,7 @@### 2026-06(mode/视觉风格双 catalog + PPTX 入口与内容策略扩展)-- **任意 PPTX 复刻设计 → 内容回填路线**([`workflows/template-fill-pptx.md`](../../skills/ppt-master/workflows/template-fill-pptx.md)) — 用户给一份现成 `.pptx` 加新材料 / 主题、要求「复用这套 deck 的设计 / 把内容填回去」时,Fill Native PPTX 路线直接编辑 PPTX,不进 SVG 生成管线。输出仍是原生可编辑 PPTX(复用原 slide 的形状 / 版式而非截图回填),过程做私有部件隔离、暴露图表数据、容量校验;触发同模板规则——显式要求复用既有 deck 才进,刻意不做改版式 / 加页 / 换图(那是 Generate PPTX 路线的职责)。与下文 Non-goals 的 #53 区分见该节+- **复用原生 PPTX 设计 → 内容回填路线**([`workflows/template-fill-pptx.md`](../../skills/ppt-master/workflows/template-fill-pptx.md)) — 用户给一份现成 `.pptx` 加新材料 / 主题、要求「复用这套 deck 的设计 / 把内容填回去」时,Fill Native PPTX 路线直接编辑 PPTX,不进 SVG 生成管线。输出仍是原生可编辑 PPTX(复用原 slide 的形状 / 版式而非截图回填),过程做私有部件隔离、暴露图表数据、容量校验;触发同模板规则——显式要求复用既有 deck 才进,刻意不做改版式 / 加页 / 换图(那是 Generate PPTX 路线的职责)。与下文 Non-goals 的 #53 区分见该节- **三个 executor 退役 → mode + visual-style 双 catalog**([`references/modes/`](../../skills/ppt-master/references/modes/) + [`references/visual-styles/`](../../skills/ppt-master/references/visual-styles/)) — 原三个 `executor-*.md`(general / consultant / consultant-top)把「领域 · 受众 · 说服 · 叙事」捆在一条线;拆成两个正交 catalog(照 `image-renderings` 范式:扁平目录 + `_index` + 按需读 + Strategist 锁一个)。**mode** = 讲解骨架(`pyramid` / `narrative` / `instructional` / `showcase`,consultant + top 因叙事内核相同合并为 pyramid);**visual-style** = SVG 排版美学(`swiss-minimal` / `editorial` / `soft-rounded` / `dark-tech`,各 paired 一个 image-rendering,**零 HEX**——颜色真值守在 confirmation e + image-palettes)。Strategist `§d` 双层独立锁定 `mode` + `visual_style` 进 `spec_lock`,Executor 加载两个 locked 文件;任意 mode × 任意 style 自由组合,渲染坐标仍留 `templates/charts/`- **提示词约束强度三档解耦**([`docs/rules/prompt-style.md`](../rules/prompt-style.md) §4) — 规则(`Hard rule` / `Forbidden`)/ 默认(`Default — … may override`)/ 参考(`Reference — not a constraint`)三档显式化 + 「客观失败 vs 品味」判据 + checker 边界,让模型对「该守 vs 可破」一目了然;visual-style catalog 全程用 Reference 强度- **visual-style catalog 扩充至 18 个,与 image-renderings 对齐 + 示例库回收** — 先从[示例库](../../examples/)提炼 4 个(`brutalist` / `blueprint` / `memphis` / `zine`),再补齐 [`image-renderings`](../../skills/ppt-master/references/image-renderings/) 里有排版对应物的手绘 / 纹理风格 6 个(`sketch-notes` / `ink-notes` / `chalkboard` / `paper-cut` / `vintage-poster` / `pixel-art`),再回收示例库里仍未覆盖的独立气质:`ink-wash`(新中式水墨留白,源 藏拙 / 李子柒)· `glassmorphism`(深底磨砂玻璃 + 流光,源 glassmorphism_demo,从 soft-rounded 独立)· `photo-editorial`(满版摄影主导、文字点题,源 Pritzker / fashion_weekly)· `data-journalism`(Bloomberg/Economist 新闻信息图,多栏微图表 + 数据侧栏,源 global_ai_capital)。catalog 重组为 5 组(企业产品 / 编辑出版 / 表现印刷 / 手绘笔触 / 特殊)。**关键判据**:一个 rendering 升 visual-style 的前提是它定义「整页版面语言」而非「插入图的样子」——故 corporate-photo「摄影主导版面」该建(photo-editorial),而 nature / warm-scene / fantasy-animation 等纯氛围 rendering 仍只配对、不单建。全程零 HEX、Reference 强度@@ -111,19 +111,19 @@## 明确不做(Non-goals)-下面这些方向被多次提过,已经评估并决定**不做**。列出来不是否定需求价值,而是说明它们与本项目主路线不匹配;如果你刚好需要这些能力,建议看其他工具或 fork 本项目走自己的路。+下面这些方向被多次提过,已经评估并决定**不做**。列出来不是否定需求价值,而是说明它们与本项目产品方向不匹配;如果你刚好需要这些能力,建议看其他工具或 fork 本项目走自己的路。-### 读取任意 PPTX 模板 → 仅填充文字+### 对任意 PPTX placeholder 系统做无契约盲填**对应 Issue**:[#53](https://github.com/hugohe3/ppt-master/issues/53)、[#118](https://github.com/hugohe3/ppt-master/issues/118)-PPT Master 主路线是「AI 从零生成 SVG → DrawingML」,整条管线围绕完全可控的形状/文字/版式构建。结构完整的 PPTX 可以通过两种显式方式为经过确认的可复用模板包提供依据:`standard` / `fidelity` 以视觉证据为参考,创作新的 SVG 与 Master/Layout 系统;`mirror` 把来源包内实际存在的全部受支持事实物化到新工作区,包括未使用的 Layout 定义。两者都不修改来源 PPTX,也不补造缺失的设计意图。但「打开任意 PPTX 后不经规范化就盲填所有占位框」仍是另一种产品形态。+Generate PPTX 路线围绕完全可控的新形状、文字与版式创作。结构完整的 PPTX 可以通过两种显式方式为经过确认的可复用模板包提供依据:`standard` / `fidelity` 以视觉证据为参考,创作新的 SVG 与 Master/Layout 系统;`mirror` 把来源包内实际存在的全部受支持事实物化到新工作区,包括未使用的 Layout 定义。两者都不修改来源 PPTX,也不补造缺失的设计意图。但「打开任意 PPTX 后不经规范化就盲填所有占位框」仍是另一种产品形态。**基础诉求其实很简单**:如果只是「固定位置替换 Excel 数据到 PPT 模板」,直接让 AI 写一段 `python-pptx` 脚本即可,几行代码搞定,不需要本项目这套管线。> **已支持边界**:Fill Native PPTX(`template-fill-pptx`)直接回填选中的源页面;Create Template(`create-template`)或者创作新的显式 SVG 契约(`standard` / `fidelity`),或者在不做语义归纳的前提下把受支持来源契约中的已验证事实映射进新工作区(`mirror`)。下游 `strict` / `adaptive` 都把这份已声明契约编译成原生结构。仍不做未经审查、没有契约的任意第三方 placeholder 全自动替换。-### 改用原生 PowerPoint 图表(Excel-native chart)+### 把原生 PowerPoint 图表设为默认路线**对应 Issue**:[#99](https://github.com/hugohe3/ppt-master/issues/99)、[#100](https://github.com/hugohe3/ppt-master/issues/100) 类@@ -148,9 +148,9 @@ PPT Master 主路线是「AI 从零生成 SVG → DrawingML」,整条管线围如果对速度敏感且能接受质量下降,零配置的浏览器 SaaS 工具更合适。-### CLI / SaaS / 桌面 App 形态+### 独立 CLI / 托管 SaaS / 桌面 App 形态-产品形态明确为 **chat-driven AI IDE skill**(Claude Code / Cursor / VS Code + Copilot / Codebuddy)。+产品形态明确为**运行在支持 Agent 的 AI 工具中的对话式工作流 / skill**(Claude Code、Codex、Cursor、VS Code agents 等)。不会做:独立 CLI(`ppm` 之类)、SaaS Web 服务、Electron 桌面壳。所有「让它脱离 chat 独立运行」的提案都会被拒。chat 是交互核心,不是包装层。diff --git a/docs/zh/technical-design.md b/docs/zh/technical-design.mdindex 0b9be61a..2b3eaaba 100644--- a/docs/zh/technical-design.md+++ b/docs/zh/technical-design.md@@ -4,11 +4,11 @@----## 设计哲学 —— AI 是你的设计师,不是完工师+## 设计哲学 —— AI 驱动工作流,人掌握最终判断-生成的 PPTX 是一份**设计稿**,而非成品。把它理解成建筑师的效果图:AI 负责视觉设计、排版布局和内容结构,交付给你一个高质量的起点。要想获得真正精良的成品,**需要你自己在 PowerPoint 里做精装修**:换掉形状、细化图表、调整配色、把占位图形替换成原生对象。这个工具的目标是消除 90% 的从零开始的工作量,而不是替代人在最后一公里的判断。不要指望 AI 一遍搞定所有——好的演示文稿从来不是这样做出来的。+PPT Master 交付的是一份**高质量、可继续编辑的 PowerPoint 草稿**,而不是封闭的最终成品。工作流先推理信息与论证,再设计页面,并按照明确的路线合同创作或保留 PowerPoint 原生对象。用户负责确认方向,并在 PowerPoint 中掌握最后一公里的判断。后续工作应当是对真实 deck 的精修,而不是从整页图片或浅层可编辑外壳重新搭建。-**工具的上限是你的上限。** PPT Master 放大的是你已有的能力——你有设计感和内容判断力,它帮你快速落地;你不知道一个好的演示文稿应该长什么样,它也没法替你知道。输出的质量,归根结底是你自身品味与判断力的映射。+工作流提供演示文稿专用的推理、状态、合同与质量门;确定性工具负责转换、校验、打包和可重复文件操作。**最终质量上限仍由所选模型决定**,用户的审美与判断则负责评审和收尾。### SVG 是项目的规范中间语言@@ -34,7 +34,9 @@ PPT Master 不以“任意 SVG 都能转成 PPTX”为目标。`svg_output/` 使----## 系统架构+## Generate PPTX 路线架构++下图描述 Generate PPTX 路线,也包含其 `beautify-pptx` profile。Create Template 有独立的工作区生命周期;Fill Native PPTX 与 Enhance Native PPTX 直接操作 OOXML。本文后续路线表会覆盖全部四条顶层路线。```用户输入 (PDF/DOCX/XLSX/PPTX/URL/Markdown/主题文本)@@ -46,7 +48,7 @@ PPT Master 不以“任意 SVG 都能转成 PPTX”为目标。`svg_output/` 使[创建项目] → project_manager.py init <项目名> --format <格式>↓[模板 / 品牌 / 布局(可选)] — 默认跳过,直接自由设计- 仅在用户提供明确的 Layout/Deck 工作区根目录或直接 Brand/旧包路径时触发+ 仅在用户提供符合当前合同的明确 Brand/Layout/Deck 工作区根目录时触发原生 PPTX 模板请求进入 template-fill;可复用 SVG 模板需先通过 create-template 创建↓[Strategist] 策略师 - 三阶段策略师确认与设计规范 → design_spec.md + spec_lock.md@@ -97,7 +99,7 @@ PPT Master 不以“任意 SVG 都能转成 PPTX”为目标。`svg_output/` 使`svg_final/` 不改变这条边界。Step 7 必须从 `svg_output/` 派生这组自包含视觉预览,供 IDE、浏览器查看,也可由用户手动作为 SVG 图片插入 PowerPoint;它不是第二条 PPTX 导出路线,也不承担 PowerPoint 手工“转换为形状”的兼容性。需要可编辑形状时,唯一受支持的路径是项目转换器把 `svg_output/` 翻译为原生 DrawingML PPTX。-以下直接 PPTX 工作流会有意绕过 SVG 创作路线,并继续保持独立:+已有 PPTX 请求按修改模型分流:两条原生工作流绕过 SVG,`beautify-pptx` 则仍是 Generate PPTX 内部通过 SVG 重做可见设计的 profile:| 工作流 | 输入角色 | 输出机制 | 为什么独立 ||---|---|---|---|diff --git a/docs/zh/templates-architecture.md b/docs/zh/templates-architecture.mdindex bbeaf743..d05897f3 100644--- a/docs/zh/templates-architecture.md+++ b/docs/zh/templates-architecture.md@@ -1,5 +1,9 @@# 模板架构:Brand / Layout / Deck 三分类+[English](../templates-architecture.md) | [Chinese](./templates-architecture.md)++---+> 本文是**架构对齐文档**,定义"模板"在数据模型层面的三种身份、各自的 `design_spec.md` 字段集、以及多路径合成与冲突解决规则。面向贡献者与 AI 工作流,回答"一个模板目录里应该写什么、不写什么;多个模板同时给时怎么合成"。>> 用户视角的用法(怎么触发、怎么选)见 [`templates-guide.md`](./templates-guide.md);本文不重复。@@ -203,7 +207,7 @@ primary_color: "<HEX>"## 三、三套 index 文件-每个 index 跟物理目录一一对应,字段按需精简(参照 [[project-charts-index-full-read-intentional]] 的"meta + summary"模式,但保留对 Strategist 选型有用的结构化元数据)。+每个 index 跟物理目录一一对应,字段按需精简,沿用 [`charts_index.json`](../../skills/ppt-master/templates/charts/charts_index.json) 的紧凑“meta + summary”模式,同时保留对 Strategist 选型有用的结构化元数据。三套索引只覆盖全局库范围。项目根工作区有意不进入任何索引,仍可通过显式 `projects/<name>/` 路径使用。因为两种范围采用相同工作区形态,完整核心工作区可在两者之间移动或复制,不需要重写素材路径;只有全局库注册不同。@@ -316,7 +320,7 @@ AI: 你给了两个 brand,检测到段级冲突:## 五、与 SKILL.md Step 3 的关系-**触发规则仍以路径为准**——仍需显式工作区根目录路径(见 [[feedback-template-explicit-path-only]]),裸名称绝不触发。Step 3 先解析 `<workspace>/templates/design_spec.md`;为兼容目录形态,也接受根目录直接包含 `<workspace>/design_spec.md` 的平铺工作区,但其中 SVG 必须已经满足当前合同。若包仍使用 `native_structure_mode: template`、缺 Master 身份、原子 placeholder 或蒸馏时代标记等旧语义,Step 3 必须拒绝;先由 `create-template` 产出新工作区,再继续生成。唯一的窄例外是当前对话刚完成 `create-template`:验证通过后可把精确的工作区根目录直接交给 Step 3。`kind` 字段决定**触发后 AI 怎么处理**:+**触发规则仍以路径为准**——仍需显式工作区根目录路径(见 [SKILL.md Step 3](../../skills/ppt-master/SKILL.md#step-3-template-option)),裸名称绝不触发。Step 3 先解析 `<workspace>/templates/design_spec.md`;为兼容目录形态,也接受根目录直接包含 `<workspace>/design_spec.md` 的平铺工作区,但其中 SVG 必须已经满足当前合同。若包仍使用 `native_structure_mode: template`、缺 Master 身份、原子 placeholder 或蒸馏时代标记等旧语义,Step 3 必须拒绝;先由 `create-template` 产出新工作区,再继续生成。唯一的窄例外是当前对话刚完成 `create-template`:验证通过后可把精确的工作区根目录直接交给 Step 3。`kind` 字段决定**触发后 AI 怎么处理**:| 用户路径指向 | Step 3 行为(按 kind 分支)||---|---|diff --git a/docs/zh/templates-guide.md b/docs/zh/templates-guide.mdindex 0a750e6b..598904e2 100644--- a/docs/zh/templates-guide.md+++ b/docs/zh/templates-guide.md@@ -1,6 +1,10 @@# 模板指南:选用、派生与边界-PPT Master 的“模板”是一份**结构 + 风格**的预设包:每张 SVG 都能独立完整预览,并用 metadata 显式标出 Master、Layout、Slide 与 placeholder;同时包含 `design_spec.md` 和配套素材。导出器据此把已声明合同确定性编译成 PowerPoint 原生结构。+[English](../templates-guide.md) | [Chinese](./templates-guide.md)++---++PPT Master 模板是一种可复用工作区,明确分为三类:**Brand** 只拥有身份系统,**Layout** 只拥有可复用页面结构,**Deck** 同时拥有两者及 deck 专属概览信息。Layout 与 Deck 工作区包含声明 Master / Layout / slot 合同的完整 SVG 原型;Brand 工作区则有意不包含 SVG roster。每个工作区的 `design_spec.md` 与配套素材共同声明该 kind 实际提供什么。本文回答三个问题:@@ -44,66 +48,37 @@ PPT Master 的“模板”是一份**结构 + 风格**的预设包:每张 SVG- [`templates/brands/README.md`](../../skills/ppt-master/templates/brands/README.md) — 仅身份预设(color / typography / logo / voice / icon style),无 SVG 页面;Anthropic、Google- [`templates/layouts/README.md`](../../skills/ppt-master/templates/layouts/README.md) — 仅结构样板(canvas / page structure / page types / SVG roster),无身份;presentation_core-- [`templates/decks/README.md`](../../skills/ppt-master/templates/decks/README.md) — 完整 PPT 复刻(身份 + 结构 + 中间段);中汽研、中国电信+- [`templates/decks/README.md`](../../skills/ppt-master/templates/decks/README.md) — 完整身份 + 结构参考(含中间段);中汽研、中国电信完整数据模型与三类的合成 / 冲突解决规则见 [`templates-architecture.md`](./templates-architecture.md)。### 自由设计 vs 模板-自由设计不是"没有风格",而是 AI 根据你的内容**为这一份 deck 现场设计**视觉系统;模板则是**沿用一套已经定型的结构和风格**。两条路都不会少做"设计",区别只在于风格是即兴还是预设。+自由设计不是“没有结构”或“没有风格”——Strategist 仍会为这份 deck 规划叙事、层级与视觉系统,但生成页面使用 `pptx_structure.mode: flat`,所有可见对象都保留在 Slide 本地。仅使用 Brand 工作区时同样保持 `flat`,只是由 Brand 提供身份约束。Layout 与 Deck 工作区使用 `pptx_structure.mode: structured`,因为它们提供显式可复用的 Master / Layout / slot 合同。-> 经验:内容方向明确、品牌或场景有强约束(咨询报告、政府汇报、答辩)→ 用模板。内容偏散文式、视觉氛围更重要(杂志风、纪录式叙事)→ 自由设计往往效果更好。+> 经验:需要锁定身份系统时用 Brand,需要复用页面结构时用 Layout,两者都要一起复用时用 Deck;希望版式从内容出发重新生长时走自由设计。### 风格不是模板-**风格**是一种描述("极简风" / "Keynote 风" / "杂志风")——你在对话里打几个字。**模板**是一份要复制粘贴的资产包(SVG + design_spec + 素材),只在你给出**显式目录路径**时由工作流安装到项目里。+**风格说明**是解释性语言(“极简风” / “Keynote 风” / “杂志风”),由 Strategist 转化为具体设计选择。**模板**则是真实存在的 Brand / Layout / Deck 工作区,只有在你给出**显式目录路径**时才会被工作流消费。| | 模板 | 风格 ||---|---|---|| 怎么触发 | 消息里给出明确的目录路径 | 消息里写自由描述 |-| 发生什么 | 文件复制到项目;layouts 继承自模板 SVG | 描述流到 Strategist;色彩 / 字体 / 调性在策略师确认阶段里推荐 |-| 数值锁定 | 是 — 来源于模板的 `design_spec.md` | 否 — Strategist 现场推适合 deck 的具体值 |-| 适用场景 | 品牌锁定的 deck;强视觉约定的场景 | 心里有感觉但没有具体品牌承诺 |+| 提供什么 | 由 kind 声明的身份段、结构段或两者 | 由 Strategist 解释为 mode、visual style、色彩、字体、图标与图片方向 |+| 如何确认 | 模板拥有的值构成起始合同;用户最终确认的选择仍然权威 | 没有预写数值;Strategist 给出具体候选,由用户确认 |+| 适用场景 | 复用已有身份系统和 / 或页面系统 | 只表达想要的感觉,不采用已存工作区 |风格描述和模板名仍走**两套机制**:“极简风”是解释性语言,`presentation_core/` 则是真实模板目录,必须提供显式路径。-### 常见风格描述--三条轴自由组合("暗色科技 + 极简" 或 "杂志风 + 新中式" 都行):--**美学路线**--| 风格 | 一句话特征 |-|---|---|-| **极简风 / Minimalist** | 高留白、2-3 色、单焦点、几乎零装饰 |-| **信息密集 / Information-dense** | 麦肯锡派结构化表格、密度高、conclusion-first |-| **Keynote 风** | 单页 Hero 文字、premium 留白、Apple 感 |-| **杂志风 / Editorial** | 大图当主体、不对称版式、字体反差强 |-| **文艺手绘** | 暖色、手绘质感、像 zine |--**行业 / 场景**--| 风格 | 一句话特征 |-|---|---|-| **商务咨询风** | 数据驱动、专业克制、蓝/灰主调 |-| **学术答辩风** | 严谨层级、citation-heavy、清晰朴素 |-| **政府汇报风** | 红/蓝、庄重对称、标题加粗 |-| **产品发布风** | 视觉冲击、营销大胆、Hero 单图 |-| **教学课件风** | 清晰层级、友好亲和、配色明亮 |-| **路演/BP 风** | 叙事驱动、金句配图、conclusion-bold |+### 风格说明如何被解释-**视觉调性**+Strategist 会把方向拆成两个彼此独立的选择:-| 风格 | 一句话特征 |-|---|---|-| **暗色科技风** | 深蓝/黑底、霓虹强调、未来感 |-| **像素复古** | 8-bit、扫描线、游戏机美学 |-| **新中式** | 留白、传统纹样克制使用、墨色/朱砂 |-| **北欧极简** | 浅色、原木自然、字号克制 |-| **孟菲斯/波普风** | 高饱和大色块、几何图形、80 年代 |-| **赛博朋克/蒸汽波** | 霓虹紫粉、网格、迷幻 |+- **Mode** 决定 deck 怎么表达:`pyramid`、`narrative`、`instructional`、`showcase`、`briefing`,或经过确认的 `custom`。+- **Visual style** 决定页面怎么呈现:内置方向包括 `swiss-minimal`、`editorial`、`dark-tech`、`data-journalism`、`ink-wash` 等,也支持 `custom`。-你描述风格时,AI **不会基于这些词去挑模板**——它把这些词解释为对应的色彩 / 字体 / 版式建议,放到 策略师确认阶段里 `d` 项的第二层(视觉风格),然后驱动 e/f/g/h(色彩 / 图标 / 字体 / 图片)。你可以确认或调整。要使用内置 `presentation_core` 结构,就发送其工作区路径;要保持结构自由,则只描述风格,让 AI 现场适配内容。+任意 mode 都可以搭配任意 visual style。“Keynote 风产品发布”这类描述可能同时影响两条轴,例如形成 `showcase` 叙事与高留白视觉系统,但它永远不是模板查找词。生成前,用户会确认最终组合。规范目录位于 [`references/modes/`](../../skills/ppt-master/references/modes/) 与 [`references/visual-styles/`](../../skills/ppt-master/references/visual-styles/)。---@@ -252,8 +227,8 @@ python3 skills/ppt-master/scripts/mirror_template_materialize.py \避免常见误解:-- **可复用模板是一份显式 SVG 契约,不是打包后的源 PPTX**。创作模式新建该合同,mirror 把已验证的来源归属事实映射进该合同;每页都能独立预览,导出只编译已声明的 Master/Layout/Slide 结构-- **模板不是"风格皮肤"**。它包含结构(页面有几块、信息层级如何分布)+ 风格(配色、字体、装饰),两者不可分割。试图只换"皮肤"不换结构,往往会让信息架构和视觉打架+- **可复用模板是一份显式工作区,不是打包后的源 PPTX。** Brand 可以只有身份系统;Layout 与 Deck 才增加 structured SVG 合同。创作模式建立这份合同,mirror 则把经过验证的来源归属事实映射进去;导出只编译已声明的结构+- **模板不是一张不可拆分的“风格皮肤”。** Brand、Layout 与 Deck 有意把身份和结构拆开,使每一段都能按明确所有权单独复用或参与合成- **模板不会替你做内容决策**。策略师仍然会按内容判断每页用哪个版式、要不要扩展为变体,模板提供候选,不预设结果- **`fidelity` 模式不等于像素级搬运**。即便是 `literal` 保真,AI 仍会把杂质和不必要的重复结构清理掉——载体保留几何,但不照抄冗余- **`mirror` 的目标是受支持范围内的视觉与来源拓扑忠实,不是字节级 OOXML**。它继承源 PPT 的导入限制,只允许固定结构层 group 展开等机械归一化。不支持的原生对象保留可用 SVG fallback 或明确报告;mirror 不归纳替代 ownership。diff --git a/docs/zh/windows-installation.md b/docs/zh/windows-installation.mdindex f9cdc83c..f0cb7977 100644--- a/docs/zh/windows-installation.md+++ b/docs/zh/windows-installation.md@@ -1,5 +1,9 @@# Windows 安装指南+[English](../windows-installation.md) | [Chinese](./windows-installation.md)++---+本指南将手把手教你在 Windows 上安装 PPT Master。按顺序操作,10 分钟内即可跑通第一份 PPT。---@@ -12,8 +16,6 @@ Python 是唯一的硬性要求。2. **⚠️ 关键步骤:安装时务必勾选 "Add python.exe to PATH"** — 这是 Windows 上最常见的安装失误,不勾的话后面每一步都会出问题。- -3. 安装完成后,打开 **PowerShell**(在开始菜单搜索「PowerShell」)并验证:```powershell@@ -73,7 +75,7 @@ python -c "import pptx; import fitz; print('All core dependencies OK')"## Step 5 — 跑一个最小示例-打开你的 AI 编辑器(Cursor、VS Code + Copilot 等),打开 `ppt-master` 目录,在聊天面板输入:+在支持 Agent 的 AI 工具(Claude Code、Codex、Cursor、VS Code agent 等)中打开 `ppt-master` 目录,在聊天面板输入:```请创建一个 3 页测试 PPT,封面 + 内容页 + 封底,主题"Hello World"