pptx-generator

Generate, edit, and read PowerPoint presentations using PptxGenJS and XML workflows.

1|Updated Mar 25, 2026
One-click install
npx skills add https://github.com/qfwc258/trae-skills --skill pptx-generator-qfwc258
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pptx-generator
Source: https://github.com/qfwc258/trae-skills/tree/main/pptx-generator
Command: npx skills add https://github.com/qfwc258/trae-skills --skill pptx-generator-qfwc258

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pptxgenjs, markitdown, react-icons, react, react-dom, sharp, and includes references (resource) components.

What problem does it solve? Creating professional PowerPoint presentations programmatically is error-prone and time-consuming, especially when you need consistent design systems, template-based editing, or bulk content extraction from existing decks. ## Core Features & Use Cases - Create from Scratch: Build complete presentations with PptxGenJS using a structured workflow covering cover, table of contents, section divider, content, and summary slide types, backed by 18 color palettes and 4 style recipes. - Template-Based Editing: Edit existing PPTX files through XML manipulation, including slide reordering, duplication, deletion, and placeholder replacement. - Content Extraction: Extract text from any PPTX file using markitdown for analysis and QA verification. - Use Case: A legal team needs a case analysis report deck. The skill routes to a dedicated legal-case guide with a business blue color scheme, generating cover, case info, compensation tables, evidence lists, and legal analysis slides automatically. ## Quick Start Ask the AI to create a 10-slide presentation about quarterly sales results using a corporate blue color palette and compile it into a PPTX file.

Frequently Asked Questions about pptx-generator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a PowerPoint presentation with PptxGenJS?

Create a new pptxgen instance, set the layout to LAYOUT_16x9, add slides with text, shapes, charts, and images, then call writeFile with the output filename. Each slide can be a separate JS module exporting a synchronous createSlide function compiled by a central script.

How do I extract text from a PPTX file?

Run python -m markitdown presentation.pptx after installing markitdown with the pptx extra. This extracts all slide text into Markdown, which is useful for content review, QA checks, and detecting leftover placeholder text.

How do I edit an existing PowerPoint template programmatically?

Copy the template, extract text with markitdown to map placeholders, unpack the PPTX into XML with Python's zipfile, modify slide XML files directly, then repack. Update Content_Types.xml and presentation.xml when adding or removing slides.

Why does my PptxGenJS file get corrupted?

Corruption usually comes from using # prefixes in hex colors, encoding opacity in 8-character hex strings, reusing option objects across calls, or using async createSlide functions. Use 6-character hex without # and the opacity property instead.

Does PptxGenJS support charts and tables in slides?

Yes, PptxGenJS supports BAR, LINE, PIE, DOUGHNUT, SCATTER, BUBBLE, and RADAR charts via addChart, plus tables via addTable with merged cells, custom borders, and per-cell styling options.

Can I use custom fonts and Chinese text in generated presentations?

Yes, set fontFace to Microsoft YaHei for Chinese text and Arial, Georgia, or Calibri for English. System fonts are recommended for cross-platform compatibility since fonts are referenced by name, not embedded.