html-artifact-builderlisted
Install: claude install-skill python012/html-artifact-builder
# HTML Artifacts Builder
Build a **single, self-contained HTML file** that far outclasses Markdown in
expressiveness. No server, no sharing required — just open the file.
Bundling uses **Vite + vite-plugin-singlefile**. Do not switch back to Parcel:
Parcel 2.16 cannot resolve `@radix-ui/primitive`'s nested `development` /
`production` export conditions, and every shadcn/ui component fails to build.
The full history of that decision, and the other ways this skill diverges from
Anthropic's `web-artifacts-builder`, is in `DECISIONS.md`.
## Stack
React 18 + TypeScript + Vite + Tailwind CSS 3.4.1 + shadcn/ui (43 components) + lucide-react
## Platform
The scripts are **bash**. Run them with `bash scripts/<name>.sh …` — never
paste them into PowerShell or `cmd`, where `bash` may not resolve.
| Host | How to run |
|---|---|
| macOS / Linux | Native shell |
| Windows | **Git for Windows → Git Bash**, or WSL. Not PowerShell, not `cmd` |
| Python | Resolved automatically: `python3` → `python` → `py` (Python 3 only) |
Never hardcode `python3` in a new script: on Windows a python.org install only
provides `python.exe` / `py.exe`, and the Microsoft Store alias leaves a
`python3.exe` stub that exists but fails. Probe with
`"$cmd" -c 'import sys; sys.exit(0 if sys.version_info[0] == 3 else 1)'`.
## Quick Start — the main path (React)
Compose the page in React, then bundle it to one file. Use the Markdown renderer
further down only when the content already exists as a `.md`.
### S