# tracyhe/ppt-master architecture

> Architecture diagram of the GitHub repository tracyhe/ppt-master, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/tracyhe/ppt-master
- Repository: https://github.com/tracyhe/ppt-master

## Overview

PPT Master is an agent-driven system for turning a topic or source material into an editable, native PowerPoint deck on the user’s machine. The principal workflow is source intake, narrative and design planning, confirmation, slide authoring, validation, and PPTX export. The repository also includes template management, image and audio generation, and media/animation support. The README documents the product workflow; source excerpts and the index show selected implementation relationships, so uncertain links are omitted or marked dashed.

Main entry points: [`skills/ppt-master/scripts/svg_editor/server.py`](https://github.com/tracyhe/ppt-master/blob/main/skills/ppt-master/scripts/svg_editor/server.py) (Slide SVGs), [`skills/ppt-master/scripts/svg_to_pptx/pptx_package/builder.py`](https://github.com/tracyhe/ppt-master/blob/main/skills/ppt-master/scripts/svg_to_pptx/pptx_package/builder.py) (PPTX assembly), [`skills/ppt-master/scripts/project_management`](https://github.com/tracyhe/ppt-master/tree/main/skills/ppt-master/scripts/project_management) (Project management), [`skills/ppt-master/scripts/template_import`](https://github.com/tracyhe/ppt-master/tree/main/skills/ppt-master/scripts/template_import) (Template management)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_intake["Source intake"]
  node_conversion["Document conversion"]
end

subgraph group_planning["Planning and templates"]
  node_project["Project management"]
  node_context["Page context<br/>[page_context.py]"]
  node_confirm["Strategist confirmation<br/>[server.py]"]
  node_templates["Template management"]
  node_template_preview["Template preview"]
end

subgraph group_authoring["Slide authoring"]
  node_slides["Slide SVGs<br/>[server.py]"]
  node_preset["Preset authoring"]
  node_quality["SVG quality checks<br/>[checker.py]"]
  node_roster["Slide roster<br/>[slide_roster.py]"]
  node_reviews["Visual review<br/>[visual_review.py]"]
end

subgraph group_export["PowerPoint output"]
  node_exporter["PPTX assembly<br/>[builder.py]"]
  node_drawingml["SVG to DrawingML<br/>[converter.py]"]
  node_context_state["Conversion context<br/>[context.py]"]
  node_structure["Template structure"]
end

subgraph group_media["Media capabilities"]
  node_image_generation["Image generation<br/>[image_gen.py]"]
  node_image_search["Image search<br/>[image_search.py]"]
  node_audio["Narration and audio<br/>[notes_to_audio.py]"]
  node_video["Video output"]
end

node_user(("User / agent"))
node_sources["Source material"]
node_pptx["Editable PPTX"]

node_user -->|"provides material"| node_sources
node_user -->|"initiates workflow"| node_project
node_sources -.->|"converts documents"| node_conversion
node_project -->|"builds page context"| node_context
node_user -->|"confirms choices"| node_confirm
node_user -.->|"selects template"| node_templates
node_templates -.->|"previews template"| node_template_preview
node_user -->|"authors slides"| node_slides
node_slides -.->|"uses authored presets"| node_preset
node_slides -->|"validates slides"| node_quality
node_slides -->|"orders slides"| node_roster
node_user -->|"exports deck"| node_exporter
node_exporter -->|"converts SVG"| node_drawingml
node_exporter -->|"reads structure"| node_structure
node_drawingml -->|"uses conversion state"| node_context_state
node_exporter -->|"assembles PPTX"| node_pptx
node_user -.->|"requests imagery"| node_image_generation
node_user -.->|"searches imagery"| node_image_search
node_user -.->|"adds narration"| node_audio
node_pptx -.->|"renders video"| node_video
node_user -.->|"reviews slides"| node_reviews

click node_conversion "https://github.com/tracyhe/ppt-master/tree/main/skills/ppt-master/scripts/source_to_md"
click node_project "https://github.com/tracyhe/ppt-master/tree/main/skills/ppt-master/scripts/project_management"
click node_context "https://github.com/tracyhe/ppt-master/blob/main/skills/ppt-master/scripts/project_management/page_context.py"
click node_confirm "https://github.com/tracyhe/ppt-master/blob/main/skills/ppt-master/scripts/confirm_ui/server.py"
click node_templates "https://github.com/tracyhe/ppt-master/tree/main/skills/ppt-master/scripts/template_import"
click node_template_preview "https://github.com/tracyhe/ppt-master/blob/main/skills/ppt-master/scripts/template_preview_pptx.py"
click node_slides "https://github.com/tracyhe/ppt-master/blob/main/skills/ppt-master/scripts/svg_editor/server.py"
click node_preset "https://github.com/tracyhe/ppt-master/blob/main/skills/ppt-master/scripts/pptx_to_svg/preset_authoring.py"
click node_quality "https://github.com/tracyhe/ppt-master/blob/main/skills/ppt-master/scripts/svg_quality/checker.py"
click node_roster "https://github.com/tracyhe/ppt-master/blob/main/skills/ppt-master/scripts/slide_roster.py"
click node_exporter "https://github.com/tracyhe/ppt-master/blob/main/skills/ppt-master/scripts/svg_to_pptx/pptx_package/builder.py"
click node_drawingml "https://github.com/tracyhe/ppt-master/blob/main/skills/ppt-master/scripts/svg_to_pptx/drawingml/converter.py"
click node_context_state "https://github.com/tracyhe/ppt-master/blob/main/skills/ppt-master/scripts/svg_to_pptx/drawingml/context.py"
click node_structure "https://github.com/tracyhe/ppt-master/blob/main/skills/ppt-master/scripts/svg_to_pptx/pptx_package/template_structure.py"
click node_image_generation "https://github.com/tracyhe/ppt-master/blob/main/skills/ppt-master/scripts/image_gen.py"
click node_image_search "https://github.com/tracyhe/ppt-master/blob/main/skills/ppt-master/scripts/image_search.py"
click node_audio "https://github.com/tracyhe/ppt-master/blob/main/skills/ppt-master/scripts/notes_to_audio.py"
click node_video "https://github.com/tracyhe/ppt-master/blob/main/skills/ppt-master/scripts/powerpoint_video.py"
click node_reviews "https://github.com/tracyhe/ppt-master/blob/main/skills/ppt-master/scripts/visual_review.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_conversion,node_user toneBlue
class node_project,node_context,node_confirm,node_templates,node_template_preview toneAmber
class node_slides,node_preset,node_quality,node_roster,node_reviews toneMint
class node_exporter,node_drawingml,node_context_state,node_structure toneRose
class node_image_generation,node_image_search,node_audio,node_video,node_sources,node_pptx toneIndigo
```

## Components

### Source intake

- [Document conversion](https://github.com/tracyhe/ppt-master/tree/main/skills/ppt-master/scripts/source_to_md): `skills/ppt-master/scripts/source_to_md`

### Planning and templates

- [Project management](https://github.com/tracyhe/ppt-master/tree/main/skills/ppt-master/scripts/project_management): `skills/ppt-master/scripts/project_management`
- [Page context](https://github.com/tracyhe/ppt-master/blob/main/skills/ppt-master/scripts/project_management/page_context.py): `skills/ppt-master/scripts/project_management/page_context.py`
- [Strategist confirmation](https://github.com/tracyhe/ppt-master/blob/main/skills/ppt-master/scripts/confirm_ui/server.py): `skills/ppt-master/scripts/confirm_ui/server.py`
- [Template management](https://github.com/tracyhe/ppt-master/tree/main/skills/ppt-master/scripts/template_import): `skills/ppt-master/scripts/template_import`
- [Template preview](https://github.com/tracyhe/ppt-master/blob/main/skills/ppt-master/scripts/template_preview_pptx.py): `skills/ppt-master/scripts/template_preview_pptx.py`

### Slide authoring

- [Slide SVGs](https://github.com/tracyhe/ppt-master/blob/main/skills/ppt-master/scripts/svg_editor/server.py): `skills/ppt-master/scripts/svg_editor/server.py`
- [Preset authoring](https://github.com/tracyhe/ppt-master/blob/main/skills/ppt-master/scripts/pptx_to_svg/preset_authoring.py): `skills/ppt-master/scripts/pptx_to_svg/preset_authoring.py`
- [SVG quality checks](https://github.com/tracyhe/ppt-master/blob/main/skills/ppt-master/scripts/svg_quality/checker.py): `skills/ppt-master/scripts/svg_quality/checker.py`
- [Slide roster](https://github.com/tracyhe/ppt-master/blob/main/skills/ppt-master/scripts/slide_roster.py): `skills/ppt-master/scripts/slide_roster.py`
- [Visual review](https://github.com/tracyhe/ppt-master/blob/main/skills/ppt-master/scripts/visual_review.py): `skills/ppt-master/scripts/visual_review.py`

### PowerPoint output

- [PPTX assembly](https://github.com/tracyhe/ppt-master/blob/main/skills/ppt-master/scripts/svg_to_pptx/pptx_package/builder.py): `skills/ppt-master/scripts/svg_to_pptx/pptx_package/builder.py`
- [SVG to DrawingML](https://github.com/tracyhe/ppt-master/blob/main/skills/ppt-master/scripts/svg_to_pptx/drawingml/converter.py): `skills/ppt-master/scripts/svg_to_pptx/drawingml/converter.py`
- [Conversion context](https://github.com/tracyhe/ppt-master/blob/main/skills/ppt-master/scripts/svg_to_pptx/drawingml/context.py): `skills/ppt-master/scripts/svg_to_pptx/drawingml/context.py`
- [Template structure](https://github.com/tracyhe/ppt-master/blob/main/skills/ppt-master/scripts/svg_to_pptx/pptx_package/template_structure.py): `skills/ppt-master/scripts/svg_to_pptx/pptx_package/template_structure.py`

### Media capabilities

- [Image generation](https://github.com/tracyhe/ppt-master/blob/main/skills/ppt-master/scripts/image_gen.py): `skills/ppt-master/scripts/image_gen.py`
- [Image search](https://github.com/tracyhe/ppt-master/blob/main/skills/ppt-master/scripts/image_search.py): `skills/ppt-master/scripts/image_search.py`
- [Narration and audio](https://github.com/tracyhe/ppt-master/blob/main/skills/ppt-master/scripts/notes_to_audio.py): `skills/ppt-master/scripts/notes_to_audio.py`
- [Video output](https://github.com/tracyhe/ppt-master/blob/main/skills/ppt-master/scripts/powerpoint_video.py): `skills/ppt-master/scripts/powerpoint_video.py`

### Other components

- **User / agent**
- **Source material**
- **Editable PPTX**

## Connections

- User / agent → Source material: provides material (evidence: `README.md`)
- User / agent → Project management: initiates workflow (evidence: `README.md`)
- Source material → Document conversion: converts documents
- Project management → Page context: builds page context (evidence: `skills/ppt-master/scripts/project_management/page_context.py`)
- User / agent → Strategist confirmation: confirms choices (evidence: `README.md`)
- User / agent → Template management: selects template
- Template management → Template preview: previews template
- User / agent → Slide SVGs: authors slides (evidence: `README.md`)
- Slide SVGs → Preset authoring: uses authored presets
- Slide SVGs → SVG quality checks: validates slides (evidence: `skills/ppt-master/scripts/svg_quality/checker.py`)
- Slide SVGs → Slide roster: orders slides (evidence: `skills/ppt-master/scripts/slide_roster.py`)
- User / agent → PPTX assembly: exports deck (evidence: `README.md`)
- PPTX assembly → SVG to DrawingML: converts SVG (evidence: `skills/ppt-master/scripts/svg_to_pptx/pptx_package/builder.py`)
- PPTX assembly → Template structure: reads structure (evidence: `skills/ppt-master/scripts/svg_to_pptx/pptx_package/builder.py`)
- SVG to DrawingML → Conversion context: uses conversion state (evidence: `skills/ppt-master/scripts/svg_to_pptx/drawingml/context.py`)
- PPTX assembly → Editable PPTX: assembles PPTX (evidence: `README.md`)
- User / agent → Image generation: requests imagery
- User / agent → Image search: searches imagery
- User / agent → Narration and audio: adds narration
- Editable PPTX → Video output: renders video
- User / agent → Visual review: reviews slides
