Xpersona
K

Kai Html Export

CLAWHUB · Unverified

Export any HTML file to PPTX or PNG, or publish HTML to a public share URL. Use when the user wants to convert an HTML presentation to PowerPoint, screenshot...

62
Rank
84
Safety
1.3k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.3K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17e36cy6y9drqxrb49xdqh05d83hqde:kai-html-export
  1. Install using `clawhub skill install s17e36cy6y9drqxrb49xdqh05d83hqde:kai-html-export` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/kaisersong/kai-html-export before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-kaisersong-kai-html-export/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

149,186 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: kai-html-export
description: >-
  Export any HTML file to PPTX or PNG, or publish HTML to a public share URL. Use when the user wants to convert an
  HTML presentation to PowerPoint, screenshot a web page, export an HTML
  report as an image, or share HTML online. Triggers: /kai-html-export, --pptx, --png,
  "export to pptx", "screenshot html", "convert html to powerpoint",
  "导出为ppt", "导出ppt", "生成ppt", "转成ppt", "导出幻灯片",
  "html转ppt", "保存为ppt", "可编辑的ppt", "native模式", "导出为可编辑",
  "share html", "deploy html", "share slides", "发布 html".
version: 1.2.0
metadata:
  openclaw:
    emoji: "📤"
    os:
      - darwin
      - linux
      - windows
    requires:
      bins:
        - python3
    install:
      - id: python-pptx
        kind: uv
        package: python-pptx
        label: "python-pptx (PPTX assembly)"
      - id: playwright
        kind: uv
        package: playwright
        label: "Playwright (headless browser for screenshots)"
      - id: beautifulsoup4
        kind: uv
        package: beautifulsoup4
        label: "BeautifulSoup4 (HTML parsing for native export)"
      - id: lxml
        kind: uv
        package: lxml
        label: "lxml (HTML parser backend)"
---

# kai-html-export

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.

## Commands

| 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 <skill-path>/scripts/share-html.py [file.html|folder]` | Publish HTML to a public URL (Cloudflare default) |
| `python3 <skill-path>/scripts/share-html.py --provider vercel [file.html|folder]` | Publish HTML to a public URL with Vercel |

If no file is specified, use the most recently modified `.html` file in the current directory.

## Export to PPTX

Run the bundled script:

```bash
python3 <skill-path>/scripts/export-pptx.py <file.html> [output.pptx] [--mode image|native] [--width 1440] [--height 900]
```

### Export Modes

**`--mode image`** (default):
- Pixel-perfect screenshots of each slide
- Visual fidelity: ⭐⭐⭐⭐⭐
- Editability: ❌ None (text is rasterized)
- Best for: archiving, sharing final presentations

**`--mode native`** (new):
- Editable text, shapes, and tables
- Visual fidelity: ⭐⭐⭐ (simplified gradients, no shadows)
- Editability: ✅ Full text editing
- Best for: collaborative editing, content reuse

Supported in native mode:
- Text (

README.md

# kai-html-export

English | [简体中文](README.zh-CN.md)

> Export any HTML file to PPTX or PNG, or publish it to a public URL — works with kai-slide-creator, kai-report-creator, or any self-contained HTML.

A Claude Code skill that converts HTML files into portable formats using a headless browser. PPTX/PNG export needs no Node.js and uses your existing system Chrome; the optional URL-sharing helper uses Cloudflare Pages by default and keeps Vercel as a fallback.

**v1.2.0** — Added a unified `share-html.py` entrypoint, made Cloudflare Pages the default share target, kept Vercel as a fallback, and disabled automatic sharing in hosted cloud sandboxes with manual-share guidance. **v1.1.7** — Two native mode image fixes: (1) images wrapped in transparent-background animation divs (e.g. `kd-reveal`, fade-in wrappers) were silently skipped by the decorative-blob filter — fixed by checking for child raster elements before skipping; (2) `object-fit: contain` and `fill` images were falling back to the Playwright screenshot path (which failed silently) — fixed by handling them directly in `_download_img_direct` without cropping. Both issues caused content images to disappear from native PPTX exports when slides used CSS animation wrappers around `<img>` elements. **v1.1.6** — Four improvements borrowed from the Anthropic PPTX skill: post-export preview grid; structural PPTX validation; sandbox-safe browser launch; QA process documented.

---

## Install

### Claude Code

```bash
git clone https://github.com/kaisersong/kai-html-export ~/.claude/skills/kai-html-export
pip install playwright python-pptx beautifulsoup4 lxml
```

### OpenClaw / ClawHub

```bash
clawhub install kai-html-export
```

> ClawHub page: https://clawhub.ai/skills/kai-html-export

Dependencies are installed automatically by OpenClaw on first use.

---

## Usage

```
/kai-html-export [file.html]                    # PPTX (image mode, default)
/kai-html-export --pptx [file.html]             # Explicit PPTX export
/kai-html-export --pptx --mode native [file]    # Editable PPTX (native mode)
/kai-html-export --png [file.html]              # Full-page screenshot to PNG
/kai-html-export --png --scale 2                # 2× retina-quality PNG
python scripts/share-html.py [file.html|folder]     # Optional: Share HTML to URL (Cloudflare default)
python scripts/share-html.py --provider vercel [file.html|folder]
```

If no file is specified, the most recently modified `.html` in the current directory is used.

---

## Export Modes

### Image Mode (default)

Captures each slide as a pixel-perfect screenshot and assembles them into a PowerPoint file. Text is rasterized — not editable, but visually identical to the browser.

```bash
/kai-html-export presentation.html
# → presentation.pptx  (16:9, 1440×900)
```

| | Image Mode |
|--|--|
| Visual fidelity | ⭐⭐⭐⭐⭐ pixel-perfect |
| Text editable | ❌ rasterized |
| Best for | sharing, archiving 

_meta.json

{
  "ownerId": "kn7bjv9d2ccsjqk1m4edthgtgx82fem8",
  "slug": "kai-html-export",
  "version": "1.2.0",
  "publishedAt": 1775272697725
}

docs/superpowers/plans/2026-04-04-share-html-cloudflare.md

# HTML Sharing Implementation Plan

Date: 2026-04-04

## Steps

1. Add regression tests for the new share router behavior.
2. Add regression tests for Cloudflare CLI command construction and URL parsing.
3. Implement a shared environment guard for hosted sandbox detection with explicit env overrides.
4. Implement `scripts/deploy-cloudflare.py` for Cloudflare Pages static deploys.
5. Implement `scripts/share-html.py` to route to Cloudflare by default and Vercel on request.
6. Update `SKILL.md`, `README.md`, and `README.zh-CN.md` to document:
   - Cloudflare as default
   - Vercel as fallback
   - hosted sandbox manual-share guidance
7. Run focused tests and fix regressions until green.

## Verification

- `uv run --with pytest pytest tests/test_share_deploy.py -q`
- `python -m py_compile scripts/deploy-cloudflare.py scripts/deploy-vercel.py scripts/share-html.py`

## Risk Notes

- `wrangler` via `npx` can fail on Windows when the optional `workerd` package is missing; the helper should recover by retrying with the missing package name.
- `wrangler whoami` may print an unauthenticated message with exit code `0`; authentication must be checked from output content, not only return code.

docs/superpowers/specs/2026-04-04-share-html-cloudflare.md

# HTML Sharing Spec

Date: 2026-04-04

## Goal

Move HTML sharing into `kai-html-export` with a lightweight flow that works locally and stays safe in hosted sandboxes.

## Requirements

- Add a unified entrypoint: `scripts/share-html.py`
- Default provider is Cloudflare Pages
- Keep Vercel as an optional fallback provider
- Automatic sharing is disabled in cloud sandbox / hosted multi-tenant environments
- When automatic sharing is disabled, return manual guidance instead of starting login or deploy flows
- Keep repository dependencies unchanged; any deploy CLI remains optional and runtime-only

## Provider Scope

### Cloudflare Pages

- First version targets static `*.pages.dev` hosting only
- Support a single HTML file or a folder containing `index.html`
- Auto-stage common relative assets when the input is a single HTML file
- Reuse a stable Pages project name derived from the input path unless the user overrides it

### Vercel

- Reuse the existing deploy helper
- Keep public URL behavior by clearing `ssoProtection`

## Environment Rules

- Local machine: automatic sharing allowed
- Hosted sandbox: automatic sharing blocked
- Explicit env overrides must exist so the host can force allow/deny behavior

## Non-Goals

- No persistent multi-tenant auth flows
- No account key storage inside the skill
- No custom domain management
- No automatic sharing in hosted cloud sandboxes

Sponsored

Ads related to Kai Html Export and adjacent AI workflows.