powerpoint
Installation
SKILL.md
PowerPoint
Use this skill whenever a PowerPoint deck is involved. For new decks, pass a trusted PptxGenJS build script directly to the pptx_write tool. For filling or editing an existing template, call pptx_template_analyze first and then pptx_template_fill with the exact IDs returned by analysis.
Workflow
- Decide the deck outline and choose a visual system: palette, typography, repeated motif, and slide rhythm.
- Write JavaScript module content that exports
default async function build(pptx, ctx)or namedbuild(pptx, ctx). - In the script, add slides directly with PptxGenJS. Do not generate HTML for this workflow.
- Call
pptx_writewithpath,script, optionalassets_dir, and optionaldata. - Verify the result with
pptx_read; for visual QA, convert the PPTX to images if the environment has LibreOffice and Poppler.
Template Workflow
- Use
pptx_template_analyzewhen the user provides a.pptxtemplate or wants to preserve existing layouts, charts, images, tables, or SmartArt. - Build a
template_fill_pptx_plan.v1plan from the returned slide IDs and object IDs, then callpptx_template_fill. - For SmartArt, use
smartarts[*].smartart_idandsmartarts[*].nodes[*].node_idinsmartart_edits. This edits existing node text only; it does not create, delete, or relayout SmartArt nodes.