Export any HTML file to PPTX or PNG using a headless browser, or publish it to a public URL. PPTX and PNG export need no Node.js; the optional share helper uses Cloudflare Pages by default and Vercel as a fallback. In hosted cloud sandboxes, automatic sharing is disabled and the helper prints manual-share guidance instead of starting a deploy flow.
CommandWhat it does/kai-html-export [file.html]Export HTML presentation to PPTX (auto-detects slides)/kai-html-export --pptx [file.html]Explicit PPTX export/kai-html-export --png [file.html]Full-page screenshot to PNG/kai-html-export --png --scale 2 [file.html]2× resolution screenshot`python3 /scripts/share-html.py [file.htmlfolder]``python3 /scripts/share-html.py --provider vercel [file.htmlfolder]`
If no file is specified, use the most recently modified .html file in the current directory.
Run the bundled script:
bash
python3 <skill-path>/scripts/export-pptx.py <file.html> [output.pptx] [--mode image|native] [--width 1440] [--height 900]
--mode image (default):
--mode native (new):
Supported in native mode:
Not supported in native mode (fall back to image):
Run the bundled script:
bash
python3 <skill-path>/scripts/screenshot.py <file.html> [output.png] [--width 1440] [--scale 2]
--scale 2 produces a 2× retina-quality imageRun the bundled helper:
bash
python3 <skill-path>/scripts/share-html.py <file.html|folder>
python3 <skill-path>/scripts/share-html.py --provider vercel <file.html|folder>
index.htmlwrangler login before first local usenpx vercel login before first local usePackagePurposeInstallplaywrightHeadless browser screenshotspip install playwright``python-pptxAssemble screenshots into PPTXpip install python-pptxNode.js + Wrangler / Vercel CLIOptional live URL publishingwrangler login or npx vercel login
No browser download needed if Chrome, Edge, or Brave is already installed. URL publishing is optional and separate from export.
After every native-mode export, assume something looks wrong until proven otherwise:
{name}-preview.png with thumbnails of slide 1, ~1/3, ~2/3, and last. Open it immediately: open {name}-preview.png⚠ warningsDesigned to work with output from:
.slide elements