WordPress Block Theme Converter Skill
A Claude Code plugin (and standalone skill) for converting any HTML/CSS/JavaScript project into a production-ready WordPress Block Theme (Full Site Editing).
Author: Md Siddiqur Rahman
Version: 3.0.0
License: MIT
See it in action
A real run, not a mock-up: one slash command turns a static landing page into a block theme, the bundled doctor checks it (5/5 passing), and the result runs in WordPress.

Watch the full-quality video (MP4) · Source page · Generated theme · How this demo was made
| Before: static HTML, CSS and JS | After: the generated theme in WordPress |
|---|
 |  |
What This Skill Does
Converts static HTML/CSS/JavaScript projects into complete, production-ready WordPress block themes that are:
- ✅ Compatible with WordPress 6.5+
- ✅ Full Site Editing (FSE) ready
- ✅ Accessible (WCAG 2.1 AA)
- ✅ Performance-optimized (Core Web Vitals)
- ✅ Translation-ready (i18n)
- ✅ WooCommerce-compatible (optional)
- ✅ WordPress.org Theme Directory submission-ready
- ✅ CI/CD pipeline ready (GitHub Actions)
- ✅ E2E tested (Playwright)
Custom Slash Commands
| Command | Purpose |
|---|
/convert-to-wp-theme | Full conversion of HTML/CSS/JS project to complete block theme |
/scaffold-wp-theme | Create empty block theme scaffold (no source needed) |
/wp-pattern | Convert single HTML section into a registered block pattern |
/wp-theme-json | Generate theme.json from CSS custom properties / design tokens |
/wp-template | Convert single HTML page into FSE template |
/wp-block | Scaffold a custom block (block.json, edit.js, save.js/render.php, CSS) |
/wp-migrate | Migrate existing WP content (Classic Editor, ACF, widgets, CPTs, shortcodes) to block theme |
/wp-plugin-theme | Declare plugin dependencies and generate plugin-specific CSS / compatibility code |
/wp-variation | Generate a style variation (styles/*.json) — dark mode, color palette swap, font swap |
/wp-classic-to-fse | Convert an existing WordPress classic theme (PHP templates) to FSE block theme |
/wp-debug | Diagnose and fix FSE/block-theme failures — block validation errors, theme.json issues, patterns not showing, DB template overrides, PHP warnings, and more |
Installation
Option 1: Claude Code plugin (recommended)
This repository is also a Claude Code plugin marketplace. Install it
directly from GitHub:
# Run these inside Claude Code:
/plugin marketplace add siddik-web/wp-block-theme-converter
/plugin install wp-block-theme-converter@siddik-web
Installing the plugin registers everything at once:
- All 11 slash commands (
/convert-to-wp-theme, /wp-debug, …)
- The
wp-block-theme-converter skill (auto-triggers on WordPress requests)
- The
wp-theme-reviewer agent for auditing generated themes
- A non-blocking
theme.json validation hook that runs after edits
Manage or disable it any time with /plugin.
Build the standalone .skill (Options 2–4)
Options 2–4 install the skill without the plugin system. Cloning the repo into a skills folder is not enough: the Markdown refers to bundled files as ${CLAUDE_PLUGIN_ROOT}/…, which only Claude Code's plugin loader fills in. Build the standalone package, which rewrites those paths to plain relative ones:
bash scripts/build-skill.sh
# → wp-block-theme-converter-v3.0.0.skill and wp-block-theme-converter-latest.skill
Option 2: Claude Code skill (manual)
-
Build the package as above
-
Unzip it into your Claude Code skills directory:
unzip wp-block-theme-converter-latest.skill -d ~/.claude/skills/
-
Restart Claude Code or run claude reload
-
Verify: type any of the slash commands listed above
Option 3: Claude.ai (Project Skills)
- Build the package as above
- Open a Claude.ai Project
- Project settings → Skills → Upload Skill
- Upload
wp-block-theme-converter-latest.skill
- The skill will be available in all conversations within that project
Option 4: Manual (Cowork / Other Environments)
Unzip the built .skill so the wp-block-theme-converter/ folder sits in your skills directory. Path varies by environment:
- Cowork:
~/skills/
- Custom: Configure via
CLAUDE_SKILLS_DIR environment variable
Usage
Basic Workflow