How 0xyaoyun/ppt-kit works
ppt-kit is a Claude Code skill paired with a Python slide-generation engine. Its main workflow is: a user supplies reference material and presentation content; the skill guides style extraction and deck planning; the engine combines a skin, deck plan, page archetypes, and image slots into fixed-canvas HTML; Chromium renders PDF output with a 1:1 size check. Separate capabilities include reusable reference-library ingestion and search, skin validation, freeform pages, and decorative overlays. The README documents broader reference inputs; the sampled extractor and library code establish only an HTML extraction path, so those capabilities are not linked as implemented here.
Main entry points: assemble.py HTML assembler · skin.py Skin validation · pptkit.py Python CLI · SKILL.md Claude Code skill
Components 17
Authoring workflow
- Claude Code skill
skill/SKILL.md - Document blueprints
structures - Deck plan
decks
Style assets
- HTML style extractor
pptkit/extract_html.py - Skin validation
pptkit/skin.py - Token resolver
pptkit/tokens.py - Controlled vocabulary
pptkit/vocab.py - Reference library
pptkit/library.py
Deck composition
- Page archetypes
pptkit/archetypes.py - Page templates
layouts - HTML assembler
pptkit/assemble.py - Image slots
pptkit/images.py
Assembly and output
- Canvas dimensions
pptkit/canvas.py - PDF renderer
pptkit/render.py - Python CLI
bin/pptkit.py - HTML and PDF output
Other components
- Presentation author
Connections 23
- Presentation author → Claude Code skill: describes deck
README.md - Claude Code skill → HTML style extractor: extracts style
README.md - Claude Code skill → Deck plan: plans slides
README.md - Document blueprints → Deck plan: guides planning
README.md - Claude Code skill → Skin validation: validates skin
- Reference library → HTML style extractor: extracts profile
pptkit/library.py - Skin validation → Token resolver: resolves tokens
pptkit/skin.py - Skin validation → Controlled vocabulary: checks tags
pptkit/skin.py - Python CLI → Reference library: ingests references
bin/pptkit.py - Python CLI → Skin validation: validates skin
bin/pptkit.py - Python CLI → HTML assembler: assembles deck
bin/pptkit.py - HTML assembler → Page archetypes: validates content
pptkit/assemble.py - HTML assembler → Page templates: renders templates
pptkit/assemble.py - HTML assembler → Token resolver: resolves CSS
pptkit/assemble.py - HTML assembler → Image slots: resolves slots
pptkit/assemble.py - HTML assembler → Canvas dimensions: sets dimensions
pptkit/assemble.py - Deck plan → HTML assembler: supplies slides
README.md - Skin validation → HTML assembler: supplies style
README.md - Python CLI → PDF renderer: renders PDF
bin/pptkit.py - PDF renderer → Canvas dimensions: checks dimensions
pptkit/render.py - HTML assembler → PDF renderer: provides HTML
README.md - PDF renderer → HTML and PDF output: produces PDF
README.md - HTML assembler → HTML and PDF output: produces HTML
README.md