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.
Use this skill when you need to automatically generate a PowerPoint presentation from structured HTML slides.
Avoid it if you require advanced animations, custom transitions, or pixel‑perfect control over the design.
Security analysis
CautionThe 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.
- •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.
Examples
Convert the HTML slides in the 'slides' folder to a PowerPoint presentation named 'presentation.pptx'.Generate thumbnail images for my 'presentation.pptx' file with 4 columns and outline placeholders.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:
- Explicit user request required: Only run when the user explicitly requests PPTX conversion ("convert to PPTX", "make a PowerPoint", etc.).
- HTML slides reviewed: All HTML slides must have been reviewed and approved by the user in
viewer.html. - 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
-
Prepare HTML slides
- Verify HTML files exist in selected
--slides-dir(default:slides/) - Validate each file is 720pt x 405pt (16:9) specification
- Verify HTML files exist in selected
-
Run html2pptx.js
slides-grab convert --slides-dir <path> --output presentation.pptx- Script-level alternative:
node .claude/skills/pptx-skill/scripts/html2pptx.js -
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
- Color codes: No
#prefix in PptxGenJS - Fonts: Web-safe fonts only
- Text: Only p, h1-h6, ul, ol tags are converted
- Gradients: Replace CSS gradients with images
- 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 filesThis 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.mdFrom 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 installationopenskills 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 syncManual 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.
PDF Reader
Productivity
Read and extract text from PDF files, including documents, reports, contracts, and spreadsheets. Works with local files, URLs, and WhatsApp attachments. Use whenever PDF content is needed, even if not explicitly requested.
Discord Messaging Workflows
Productivity
Use the message tool to send, edit, and moderate Discord messages with interactive components.
Interactive Verdict Preview
Productivity
Generate an interactive HTML preview of keep/drop verdicts for maintainer review, then process the pasted feedback JSON.