presentations
Installation
SKILL.md
Presentations
Two paths, one skill:
- HTML deck (default) — build slides as 1920×1080 HTML (Inter font, D3.js, Chart.js pre-loaded), preview them in a browser, then export to PDF or PPTX. This is the preferred path: richer layouts, easier iteration, nicer visual output. Use this unless the user specifically needs a plain, natively-editable PowerPoint file.
- Plain PowerPoint (.pptx) — generate a deck from scratch with
pptxgenjs, or edit/repair an existing.pptxtemplate directly via its XML. Use this path when the user explicitly asks for a.pptx/PowerPoint file to open and edit in PowerPoint/Keynote/Google Slides, or hands you an existing.pptxtemplate to modify. See PPTX-CREATING.md and PPTX-EDITING.md.
Both paths share the design guidelines below.
SCRIPT=~/.opencode/skills/presentations/presentation.ts
Commands (HTML deck path)
# Create a slide (content = HTML body only, no html/head/body tags)
bun run "$SCRIPT" create_slide '{"presentation_name":"my-deck","slide_number":1,"slide_title":"Intro","content":"<div style=\"...\">...</div>","presentation_title":"My Deck"}'