HTML to PowerPoint (PPTX) Conversion

VerifiedCaution

Converts HTML slides into PowerPoint presentation files. Supports generating thumbnails and editing existing PPTX files. Use when creating or modifying PowerPoint presentations from HTML content.

Sby Skills Guide Bot
ProductivityIntermediate
6/2/2026
Claude Code
#pptx#presentation#slides#html-conversion#powerpoint

Recommended for

Automated summary

Converts HTML slides to PowerPoint (PPTX) files, and allows editing existing presentations or generating thumbnails.

Strengths

  • Direct HTML-to-PPTX conversion with 16:9 layout preservation.
  • Supports charts, shapes, and images within slides.
  • Thumbnail generation for quick visual preview.
  • Validation and OOXML manipulation tools for advanced users.

Limitations

  • Requires explicit user request and manual slide review before conversion.
  • Color codes must be provided without '#' to avoid file corruption.
  • Does not handle complex animations or non‑standard layouts.
When to use it

Use this skill when you need to automatically generate a PowerPoint presentation from structured HTML slides.

When not to use it

Avoid it if you require advanced animations, custom transitions, or pixel‑perfect control over the design.

Security analysis

Caution
Quality score90/100

The skill runs Node.js and Python scripts to convert HTML to PPTX, which is a legitimate use case but involves powerful tools that could be exploited if the input HTML is malicious. No exfiltration or destruction commands are present, but caution is warranted.

Findings
  • •Skill executes external scripts (html2pptx.js, thumbnail.py, pack.py, validate.py) that could process user-provided HTML, potentially leading to code execution or SSRF if the HTML contains malicious content.
  • •Uses Playwright browser rendering which may expose system resources.
How this analysis is made

Examples

Basic HTML to PPTX conversion
Convert the HTML slides in the 'slides' folder to a PowerPoint presentation named 'presentation.pptx'.
Thumbnail generation
Generate thumbnail images for my 'presentation.pptx' file with 4 columns and outline placeholders.
Edit existing PPTX
Unpack the existing 'presentation.pptx' into a directory, add a new slide with a bar chart showing sales data, then repack it.

name: pptx-skill description: Convert HTML slides to PowerPoint (PPTX) files. Use when PPTX generation, editing, or thumbnail creation is needed.

PPTX Skill - PowerPoint Conversion

Converts HTML slides into PowerPoint presentation files.

Feature Overview

1. New Presentation (HTML -> PPTX)

Convert HTML slide files to PowerPoint

2. Edit Existing Presentation

Modify contents of a PPTX file

3. Thumbnail Generation

Generate preview images of a presentation

Prerequisites (Stage 3)

This skill is Stage 3. It executes only when ALL of the following conditions are met:

  1. Explicit user request required: Only run when the user explicitly requests PPTX conversion ("convert to PPTX", "make a PowerPoint", etc.).
  2. HTML slides reviewed: All HTML slides must have been reviewed and approved by the user in viewer.html.
  3. No automatic execution: Do not automatically start PPTX conversion just because slide generation is complete.

If prerequisites are not met, guide the user to review slides in <slides-dir>/viewer.html first (default: slides/viewer.html).


Core Workflow

HTML -> PPTX Conversion

  1. Prepare HTML slides

    • Verify HTML files exist in selected --slides-dir (default: slides/)
    • Validate each file is 720pt x 405pt (16:9) specification
  2. Run html2pptx.js

    slides-grab convert --slides-dir <path> --output presentation.pptx
    
    • Script-level alternative:
    node .claude/skills/pptx-skill/scripts/html2pptx.js
    
  3. Verify results

    • Check generated PPTX file
    • Visual verification via thumbnail

Script Usage

html2pptx.js

Convert HTML files to PPTX

import { html2pptx } from './.claude/skills/pptx-skill/scripts/html2pptx.js';
import PptxGenJS from 'pptxgenjs';

const pres = new PptxGenJS();
pres.layout = 'LAYOUT_WIDE'; // 16:9

// Convert each slide
await html2pptx('<slides-dir>/slide-01.html', pres);
await html2pptx('<slides-dir>/slide-02.html', pres);

// Save
await pres.writeFile({ fileName: 'presentation.pptx' });

thumbnail.py

Generate presentation thumbnail grid

python .claude/skills/pptx-skill/scripts/thumbnail.py presentation.pptx output-thumbnail

Options:

  • --cols N: Number of columns (default 5, range 3-6)
  • --outline-placeholders: Show placeholder regions

pack.py / unpack.py

PPTX file packaging/unpackaging

# Unpack
python .claude/skills/pptx-skill/ooxml/scripts/unpack.py presentation.pptx output_dir

# Pack
python .claude/skills/pptx-skill/ooxml/scripts/pack.py input_dir presentation.pptx

validate.py

PPTX structure validation

python .claude/skills/pptx-skill/ooxml/scripts/validate.py unpacked_dir --original presentation.pptx

Reference Documents

  • html2pptx.md - HTML to PPTX conversion detailed guide
  • ooxml.md - Office Open XML technical reference

PptxGenJS Key Rules

Color Codes

// Correct - without #
{ color: 'FF0000' }

// Wrong - causes file corruption
{ color: '#FF0000' }

Adding Slides

const slide = pres.addSlide();

// Add text
slide.addText('Title', {
  x: 0.5,
  y: 0.5,
  w: 9,
  h: 1,
  fontSize: 36,
  color: '1a1a2e',
  bold: true
});

// Add image
slide.addImage({
  path: 'image.png',
  x: 1,
  y: 2,
  w: 4,
  h: 3
});

// Add shape
slide.addShape(pres.ShapeType.rect, {
  x: 0.5,
  y: 1,
  w: 3,
  h: 2,
  fill: { color: '1e3a5f' }
});

Adding Charts

// Bar chart
slide.addChart(pres.ChartType.bar, [
  {
    name: 'Series 1',
    labels: ['A', 'B', 'C'],
    values: [10, 20, 30]
  }
], {
  x: 1,
  y: 2,
  w: 8,
  h: 4
});

// Pie chart
slide.addChart(pres.ChartType.pie, [...], {...});

// Line chart
slide.addChart(pres.ChartType.line, [...], {...});

Full Conversion Process

+-------------------+
|   HTML Slides     |
| <slides-dir>/*.html |
+---------+---------+
          |
          v
+-------------------+
|  html2pptx.js     |
|  (Playwright +    |
|   PptxGenJS)      |
+---------+---------+
          |
          v
+-------------------+
|   PPTX File       |
| presentation.pptx |
+---------+---------+
          |
          v
+-------------------+
|  thumbnail.py     |
|  (Preview)        |
+-------------------+

Dependencies

Node.js

  • pptxgenjs: PowerPoint generation
  • playwright: Browser rendering
  • sharp: Image processing

Python

  • markitdown: Markdown conversion
  • defusedxml: XML parsing
  • pillow: Image processing

System

  • LibreOffice: PDF/image conversion (soffice)
  • Poppler: PDF to image (pdftoppm)

Important Notes

  1. Color codes: No # prefix in PptxGenJS
  2. Fonts: Web-safe fonts only
  3. Text: Only p, h1-h6, ul, ol tags are converted
  4. Gradients: Replace CSS gradients with images
  5. Validation: Always verify with thumbnails after conversion

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/html-to-powerpoint-pptx-conversion-mmio70l3/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/html-to-powerpoint-pptx-conversion-mmio70l3' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/html-to-powerpoint-pptx-conversion-mmio70l3/download' --output '.skill-downloads/html-to-powerpoint-pptx-conversion-mmio70l3/SKILL.md.part' && mv '.skill-downloads/html-to-powerpoint-pptx-conversion-mmio70l3/SKILL.md.part' '.skill-downloads/html-to-powerpoint-pptx-conversion-mmio70l3/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

Original excerpt: Dependencies

Node.js

  • pptxgenjs: PowerPoint generation
  • playwright: Browser rendering
  • sharp: Image processing

Python

  • markitdown: Markdown conversion
  • defusedxml: XML parsing
  • pillow: Image processing

System

  • LibreOffice: PDF/image conversion (soffice)
  • Poppler: PDF to image (pdftoppm)

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/html-to-powerpoint-pptx-conversion-mmio70l3/SKILL.md' && test -s '.skill-downloads/html-to-powerpoint-pptx-conversion-mmio70l3/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/pptx-skill' && cp -R '.skill-downloads/html-to-powerpoint-pptx-conversion-mmio70l3' '.claude/skills/pptx-skill'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/html-to-powerpoint-pptx-conversion-mmio70l3'

openskills read 'html-to-powerpoint-pptx-conversion-mmio70l3'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/html-to-powerpoint-pptx-conversion-mmio70l3/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills