pptx

Generate .pptx slide decks with pptxgenjs from structured program logic.

2|Updated Apr 25, 2026
One-click install
npx skills add https://github.com/Jansen611/Agent-Skills --skill pptx-jansen611
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pptx
Source: https://github.com/Jansen611/Agent-Skills/tree/main/skills/pptx
Command: npx skills add https://github.com/Jansen611/Agent-Skills --skill pptx-jansen611

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pptxgenjs, react, react-dom, sharp, react-icons, markitdown, Pillow.

What problem does it solve?

It removes the friction of manually building slide decks by letting you generate professional .pptx presentations programmatically from structured content.

Core Features & Use Cases

  • PowerPoint generation with pptxgenjs: Create slide layouts (16:9, 16:10, 4:3, wide) and render titles, text blocks, charts, tables, shapes, images, backgrounds, and rich text.
  • Non-interactive environment compatibility: Works in environments where global npm packages exist but NODE_PATH is not set by requiring NODE_PATH for every node invocation.
  • Presentation quality guardrails: Provides design guidance for palettes, typography, spacing, and common pitfalls to avoid corrupted slides and unreadable layouts.

Quick Start

Run your PowerPoint generator script with NODE_PATH set to the global npm root so pptxgenjs can be required successfully (for example, execute a script named generate_ppt.js using NODE_PATH=$(npm root -g) node generate_ppt.js).

Frequently Asked Questions about pptx

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

FAQPage Schema
How do I generate PowerPoint slides from JavaScript programmatically?

To generate PowerPoint files programmatically, use pptxgenjs to render structured content into .pptx files. This method builds slide decks with titles, text blocks, charts, tables, shapes, and images directly from code.

How do I run pptxgenjs in a non-interactive shell environment?

To run pptxgenjs in a non-interactive shell, set the NODE_PATH environment variable to your global npm root before executing your script. This ensures the package can be successfully required and executed.

Can I create pitch decks and presentations with charts using code?

Yes, you can create pitch decks and presentation files with charts using pptxgenjs. It supports rendering various slide layouts, rich text, tables, and data visualizations directly from structured program logic.

What design elements should I manage to avoid corrupted PowerPoint slides?

To avoid corrupted slides and unreadable layouts, manage your design system elements like color palettes, typography, and spacing carefully. Following presentation guardrails ensures your generated .pptx files remain valid and professional.

Does this approach require installing pptxgenjs globally?

If pptxgenjs is missing, it will be installed globally to ensure the environment has the required dependency. The generator outputs a valid PowerPoint file via the pres.writeFile() method after execution.