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.
| Command | What 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 | Publish HTML to a public URL (Cloudflare default) |
| python3 | Publish HTML to a public URL with Vercel |
If no file is specified, use the most recently modified .html file in the current directory.
Run the bundled script:
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:
python3 <skill-path>/scripts/screenshot.py <file.html> [output.png] [--width 1440] [--scale 2]
--scale 2 produces a 2× retina-quality image
Run the bundled helper:
python3 <skill-path>/scripts/share-html.py <file.html|folder>
python3 <skill-path>/scripts/share-html.py --provider vercel <file.html|folder>
index.html
wrangler login before first local use
npx vercel login before first local use
| Package | Purpose | Install |
|---------|---------|---------|
| playwright | Headless browser screenshots | pip install playwright |
| python-pptx | Assemble screenshots into PPTX | pip install python-pptx |
| Node.js + Wrangler / Vercel CLI | Optional live URL publishing | wrangler 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
⚠ warnings
Designed to work with output from:
.slide elements
共 2 个版本