Skip to content
Subscribe

Deck Architect Architecture

Status: v2 production, v3 experimental

  • python-pptx based, programmatic slide generation
  • Quality: poor — retired and removed from git
  • Engine: Node.js pptxgenjs (JavaScript)
  • Architecture: LLM generates full JavaScript code per slide batch
  • Quality: Production-grade
  • Speed: ~200s for 11 slides
  • Cost: ~$0.60 per deck
FilePurpose
orchestrator.pyPipeline: plan, generate, QA, export
code_generator.pyFeeds design system + prompt to LLM, gets JS back
visual_qa.pyScreenshot slides, LLM scores each (threshold: 8.0)
design-system.mjs9 golden layout patterns + helper functions
generator-system.mdLayout rules, design constraints
  1. Anchor Left — key stat left, supporting content right
  2. Split Contrast — two-panel comparison
  3. Card Grid — 2x2 or 3-column cards
  4. Stat Spotlight — large number with context
  5. Three Columns — parallel content streams
  6. Table — structured data display
  7. Hero Statement — opening slide with title
  8. Timeline Rail — chronological progression
  9. Closing — call-to-action with contact info
  • Engine: Python python-pptx with pre-built .pptx templates
  • Architecture: LLM outputs structured JSON content only (never layout code)
  • Speed: 66-76s (2.6x faster than v2)
  • Cost: ~$0.15 (4x cheaper than v2)
  • Quality: 5-6/10 (needs template refinement)

hero, section_break, anchor_left, split_contrast, stat_spotlight, three_columns, card_grid_2x2, table_slide, timeline, closing, blank_content

Terminal window
# v2 (recommended for quality)
python3.12 -m agents.deck_architect_v2 "Brief or topic description" --palette midnight_navy
# v3 (recommended for speed/cost)
python3.12 -m agents.deck_architect_v3 "Brief or topic description"

A curated design skill provides:

  • Design intent first, layout variety, 4-tier visual hierarchy
  • 10 curated color palettes for different content types
  • McKinsey-style takeaway titles
  • Reference deck for quality benchmarking