html2wp — convert HTML to a WordPress theme

HTML to WordPress — compared pixel by pixel against the original, and still editable.
A Claude Code and Codex plugin that converts HTML to WordPress: a static site, or
anything that builds to one (Lovable, Bolt, v0, Claude artifacts, Next.js
export, hand-written pages), becomes a standalone WordPress block theme. Pages, blog, forms, menus, SEO
and redirects work with no plugin required. The markup stays the design's
own — no page builder, no rebuild.
Two outputs, chosen when a conversion starts: the HTML theme (the
default: the source markup kept 1:1, click-to-edit with Visual Edit Lite) or a
native Gutenberg block theme whose pages, header and footer are core
blocks, edited in the block editor. Visual Edit Lite is linked for both.
Beta. This converts real sites and is used on real work, but the
gates catch most fidelity drift, not all of it. The last stage of every
conversion is your own page-by-page review, and the skill walks you
through it. Do not promise a client a result you have not looked at.
Full documentation: html2wp.dev/docs
How it works
Your machine does the browser work — prerendering, screenshot and
structural comparison, and a throwaway WordPress in Docker for the final
checks. The html2wp service generates the theme: your built site is
uploaded to it, because that is what the conversion is performed on, and
the theme comes back. (Exactly which files travel is listed in SKILL.md
under What goes up; stage 1 keeps credential-shaped files such as .env
out of that payload and names every one it dropped.) What comes back is
yours: readable PHP, CSS and JS, no lock-in, and a theme that calls nothing
at runtime — the delivered site talks to no server of ours, ever.
Every stage ends in a gate, and a failed gate stops the pipeline. The
conversion is compared against the original at three viewport widths, and the
result is installed into a real WordPress and driven before it is handed over.
What the skill reports back
This section is about the verdicts, which travel separately from the
upload above and long after it. Everything it says is scoped to that payload.
The gates run on your machine, against a WordPress the service never sees, so
without you it would never learn whether a conversion was actually correct —
only that it did not crash. So the last step sends the gate results back, and
this is required: the next conversion is refused until the previous one
has reported.
What that means in practice is worth being precise about, because "required
telemetry" deserves the detail:
- What goes: gate names, pass/fail, page counts, the worst fidelity
percentage, and the page keys that failed — the short names you chose
yourself, like
about or pricing.
- What does not: no URL, no domain, no markup, no copy, no screenshots, no
file paths, no licence key, no site name. The payload is a whitelist, not a
filter, so a field nobody anticipated cannot leak through it.
- See for yourself:
send-verdicts.sh <workspace> --dry-run prints the
exact payload and sends nothing — it is one readable shell script.
No other telemetry exists — this is the only thing the skill reports about a
conversion, and the theme you receive reports nothing at all. The conversion
upload described above is not telemetry and is not covered by this list: it is
the site itself, sent to be converted.
Install
The same plugin is published twice, because the two hosts read different
manifests. Take the repository for the tool you use — they carry identical
scripts and the same version number, and the wrong one simply will not be
found.
| Repository |
|---|
| Codex | iOSDevSK/html2wp-codex-plugin |
| Claude Code | iOSDevSK/html2wp-cc-plugin |
Codex
codex plugin marketplace add iOSDevSK/html2wp-codex-plugin
codex plugin add html2wp@html2wp
Then ask Codex, in the directory you want converted:
Convert this project into a verified WordPress block theme.
Codex finds the bundled html2wp skill through .agents/plugins/marketplace.json,
which is why this is the -codex repository: the Claude one is laid out for
Claude Code and carries no .agents/ manifest for Codex to read. No Claude
namespace and no Claude environment variable is involved.
To update — the snapshot is refreshed and the plugin re-installed, both
steps, because upgrade alone only refreshes the marketplace, it does not
reinstall:
codex plugin marketplace upgrade
codex plugin add html2wp@html2wp
(The subcommand is upgrade, not update.) Check what you are running with: