# icip-cas/pptagent architecture

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

- Interactive diagram: https://gitdiagram.com/icip-cas/pptagent
- Repository: https://github.com/icip-cas/pptagent

## Overview

PPTAgent is a coding-agent skill for creating, revising, visually reviewing, and exporting editable PowerPoint decks. The primary workflow is agent-authored HTML slides in a task workspace, slide rendering and review, PPTX build, deck review, then delivery. The sampled runtime centers on a CLI orchestrating workspace operations and a core module; configuration and visual-model review are supporting layers. README-documented authoring capabilities are included, but their implementation is described by skill instructions rather than sampled runtime code.

Main entry points: [`skills/pptagent/scripts/pptagent.py`](https://github.com/icip-cas/pptagent/blob/main/skills/pptagent/scripts/pptagent.py) (Workflow CLI), [`skills/pptagent/scripts/pptagent_runtime/core.py`](https://github.com/icip-cas/pptagent/blob/main/skills/pptagent/scripts/pptagent_runtime/core.py) (Workflow engine), [`skills/pptagent/scripts/pptagent_runtime/visual.py`](https://github.com/icip-cas/pptagent/blob/main/skills/pptagent/scripts/pptagent_runtime/visual.py) (Visual model client), [`skills/pptagent/SKILL.md`](https://github.com/icip-cas/pptagent/blob/main/skills/pptagent/SKILL.md) (PPTAgent skill)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_authoring["Agent authoring"]
  node_skill["PPTAgent skill<br/>[SKILL.md]"]
  node_workspace["Task workspace"]
  node_htmlslides["HTML slide sources"]
end

subgraph group_workflow["Workflow runtime"]
  node_cli["Workflow CLI<br/>[pptagent.py]"]
  node_config["Runtime configuration<br/>[config.py]"]
  node_core["Workflow engine<br/>[core.py]"]
  node_state[("Workflow state")]
end

subgraph group_review["Visual review"]
  node_slide_render["Slide rendering<br/>[core.py]"]
  node_slide_review["Slide review<br/>[pptagent.py]"]
  node_visual_client["Visual model client<br/>[visual.py]"]
  node_deck_render["Deck rendering<br/>[core.py]"]
  node_visual_mcp["Visual review MCP<br/>[visual_mcp.py]"]
end

subgraph group_delivery["Deck delivery"]
  node_build["PPTX build<br/>[core.py]"]
  node_answer["Editable PPTX"]
  node_finalize["Delivery checks<br/>[core.py]"]
end

node_coder(("Coding agent"))
node_visual_model(("External vision model"))
node_libreoffice["LibreOffice"]

node_coder -->|"invokes"| node_skill
node_skill -->|"guides authoring"| node_coder
node_coder -->|"creates task"| node_workspace
node_coder -->|"authors and revises"| node_htmlslides
node_cli -->|"loads settings"| node_config
node_cli -->|"dispatches workflow"| node_core
node_core -->|"reads and writes"| node_state
node_core -->|"renders slides"| node_slide_render
node_cli -->|"runs review"| node_slide_review
node_slide_review -->|"requests assessment"| node_visual_client
node_visual_client -->|"gets review settings"| node_config
node_visual_client -->|"sends images"| node_visual_model
node_cli -->|"renders deck"| node_deck_render
node_deck_render -->|"converts to PDF"| node_libreoffice
node_visual_mcp -->|"dispatches review"| node_cli
node_cli -->|"builds deck"| node_build
node_build -->|"converts sources"| node_htmlslides
node_build -->|"produces"| node_answer
node_cli -->|"checks delivery"| node_finalize
node_finalize -->|"validates artifact"| node_answer

click node_skill "https://github.com/icip-cas/pptagent/blob/main/skills/pptagent/SKILL.md"
click node_cli "https://github.com/icip-cas/pptagent/blob/main/skills/pptagent/scripts/pptagent.py"
click node_config "https://github.com/icip-cas/pptagent/blob/main/skills/pptagent/scripts/pptagent_runtime/config.py"
click node_core "https://github.com/icip-cas/pptagent/blob/main/skills/pptagent/scripts/pptagent_runtime/core.py"
click node_slide_render "https://github.com/icip-cas/pptagent/blob/main/skills/pptagent/scripts/pptagent_runtime/core.py"
click node_slide_review "https://github.com/icip-cas/pptagent/blob/main/skills/pptagent/scripts/pptagent.py"
click node_visual_client "https://github.com/icip-cas/pptagent/blob/main/skills/pptagent/scripts/pptagent_runtime/visual.py"
click node_deck_render "https://github.com/icip-cas/pptagent/blob/main/skills/pptagent/scripts/pptagent_runtime/core.py"
click node_visual_mcp "https://github.com/icip-cas/pptagent/blob/main/skills/pptagent/scripts/visual_mcp.py"
click node_build "https://github.com/icip-cas/pptagent/blob/main/skills/pptagent/scripts/pptagent_runtime/core.py"
click node_finalize "https://github.com/icip-cas/pptagent/blob/main/skills/pptagent/scripts/pptagent_runtime/core.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_skill,node_workspace,node_htmlslides toneBlue
class node_cli,node_config,node_core,node_state toneAmber
class node_slide_render,node_slide_review,node_visual_client,node_deck_render,node_visual_mcp toneMint
class node_build,node_answer,node_finalize toneRose
class node_coder,node_visual_model,node_libreoffice toneIndigo
```

## Components

### Agent authoring

- [PPTAgent skill](https://github.com/icip-cas/pptagent/blob/main/skills/pptagent/SKILL.md): `skills/pptagent/SKILL.md`
- **Task workspace**
- **HTML slide sources**

### Workflow runtime

- [Workflow CLI](https://github.com/icip-cas/pptagent/blob/main/skills/pptagent/scripts/pptagent.py): `skills/pptagent/scripts/pptagent.py`
- [Runtime configuration](https://github.com/icip-cas/pptagent/blob/main/skills/pptagent/scripts/pptagent_runtime/config.py): `skills/pptagent/scripts/pptagent_runtime/config.py`
- [Workflow engine](https://github.com/icip-cas/pptagent/blob/main/skills/pptagent/scripts/pptagent_runtime/core.py): `skills/pptagent/scripts/pptagent_runtime/core.py`
- **Workflow state**

### Visual review

- [Slide rendering](https://github.com/icip-cas/pptagent/blob/main/skills/pptagent/scripts/pptagent_runtime/core.py): `skills/pptagent/scripts/pptagent_runtime/core.py`
- [Slide review](https://github.com/icip-cas/pptagent/blob/main/skills/pptagent/scripts/pptagent.py): `skills/pptagent/scripts/pptagent.py`
- [Visual model client](https://github.com/icip-cas/pptagent/blob/main/skills/pptagent/scripts/pptagent_runtime/visual.py): `skills/pptagent/scripts/pptagent_runtime/visual.py`
- [Deck rendering](https://github.com/icip-cas/pptagent/blob/main/skills/pptagent/scripts/pptagent_runtime/core.py): `skills/pptagent/scripts/pptagent_runtime/core.py`
- [Visual review MCP](https://github.com/icip-cas/pptagent/blob/main/skills/pptagent/scripts/visual_mcp.py): `skills/pptagent/scripts/visual_mcp.py`

### Deck delivery

- [PPTX build](https://github.com/icip-cas/pptagent/blob/main/skills/pptagent/scripts/pptagent_runtime/core.py): `skills/pptagent/scripts/pptagent_runtime/core.py`
- **Editable PPTX**
- [Delivery checks](https://github.com/icip-cas/pptagent/blob/main/skills/pptagent/scripts/pptagent_runtime/core.py): `skills/pptagent/scripts/pptagent_runtime/core.py`

### Other components

- **Coding agent**
- **External vision model**
- **LibreOffice**

## Connections

- Coding agent → PPTAgent skill: invokes (evidence: `README.md`)
- PPTAgent skill → Coding agent: guides authoring (evidence: `README.md`)
- Coding agent → Task workspace: creates task (evidence: `README.md`)
- Coding agent → HTML slide sources: authors and revises (evidence: `README.md`)
- Workflow CLI → Runtime configuration: loads settings (evidence: `skills/pptagent/scripts/pptagent.py`)
- Workflow CLI → Workflow engine: dispatches workflow (evidence: `skills/pptagent/scripts/pptagent.py`)
- Workflow engine → Workflow state: reads and writes (evidence: `skills/pptagent/scripts/pptagent_runtime/core.py`)
- Workflow engine → Slide rendering: renders slides (evidence: `skills/pptagent/scripts/pptagent_runtime/core.py`)
- Workflow CLI → Slide review: runs review (evidence: `skills/pptagent/scripts/pptagent.py`)
- Slide review → Visual model client: requests assessment (evidence: `skills/pptagent/scripts/pptagent.py`)
- Visual model client → Runtime configuration: gets review settings (evidence: `skills/pptagent/scripts/pptagent_runtime/visual.py`)
- Visual model client → External vision model: sends images (evidence: `skills/pptagent/scripts/pptagent_runtime/visual.py`)
- Workflow CLI → Deck rendering: renders deck (evidence: `skills/pptagent/scripts/pptagent.py`)
- Deck rendering → LibreOffice: converts to PDF (evidence: `skills/pptagent/scripts/pptagent_runtime/core.py`)
- Visual review MCP → Workflow CLI: dispatches review (evidence: `skills/pptagent/scripts/visual_mcp.py`)
- Workflow CLI → PPTX build: builds deck (evidence: `skills/pptagent/scripts/pptagent.py`)
- PPTX build → HTML slide sources: converts sources (evidence: `skills/pptagent/scripts/pptagent_runtime/core.py`)
- PPTX build → Editable PPTX: produces (evidence: `skills/pptagent/scripts/pptagent_runtime/core.py`)
- Workflow CLI → Delivery checks: checks delivery (evidence: `skills/pptagent/scripts/pptagent.py`)
- Delivery checks → Editable PPTX: validates artifact (evidence: `skills/pptagent/scripts/pptagent_runtime/core.py`)
