pptx

Convert HTML slide content into PPTX decks using pptxgenjs and Playwright.

1|Updated Dec 22, 2025
One-click install
npx skills add https://github.com/HanLi0705/lead_agent --skill pptx-hanli0705
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pptx
Source: https://github.com/HanLi0705/lead_agent/tree/main/Mini-Agent-main/mini_agent/skills/document-skills/pptx
Command: npx skills add https://github.com/HanLi0705/lead_agent --skill pptx-hanli0705

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pptxgenjs, playwright, sharp, and includes scripts (resource) components.

What problem does it solve?

This skill converts HTML slide designs into ready-to-export PowerPoint presentations, enabling rapid deck creation from web content.

Core Features & Use Cases

  • HTML to PPTX conversion: translate HTML structure (text, images, placeholders) into slides compatible with PPTXGenJS.
  • Layout-aware generation: preserve basic layouts, text formatting, and image placements across multiple slides.
  • Use Case: Turn a design spec or marketing landing page into a slide deck automatically for a product kickoff.

Quick Start

Run the HTML-to-PPTX workflow by invoking the conversion script on an HTML slide, then save the result as a PPTX file. Example: node scripts/html2pptx.js slides/intro.html my-presentation.pptx

Frequently Asked Questions about pptx

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

FAQPage Schema
How do I convert HTML to PowerPoint slides automatically?

You can convert HTML to PowerPoint slides by running a conversion script that parses HTML elements like text and images, then generates a PPTX file using PptxGenJS, Playwright, and sharp for rendering and asset processing.

Does HTML to PPTX conversion preserve text formatting and image placements?

HTML to PPTX conversion preserves basic layouts, text formatting, and image placements across multiple slides by enforcing dimension checks and layout validation during the generation process.

What do I need to generate a PPTX deck from HTML content?

To generate a PPTX deck from HTML content, you need Node.js installed with the pptxgenjs, Playwright, and sharp dependencies to handle presentation generation, HTML rendering, and image asset processing.

Can I turn a marketing landing page into a slide deck for a presentation?

You can turn a marketing landing page into a slide deck by running the HTML-to-PPTX conversion workflow, which translates HTML sources into ready-to-export PPTX slides for product kickoffs or design presentations.

What's the best way to automate slide design from web content?

The best way to automate slide design from web content is converting HTML structure directly into PPTX format with PptxGenJS, translating text, images, and placeholders into layout-aware slides ready for export.

Why does my HTML to PPTX conversion require Playwright and sharp?

HTML to PPTX conversion requires Playwright for accurate HTML rendering and sharp for image asset processing, ensuring visual elements and dimensions are validated correctly before generating the final PPTX file.