Agent skill

WP Block Theme Converter Skill: HTML to Block Theme

The WP block theme converter skill lets your AI coding agent turn an HTML, CSS and JavaScript project into a WordPress block theme with theme.json, templates and patterns.

Install
/plugin marketplace add siddik-web/wp-block-theme-converter
/plugin install wp-block-theme-converter@siddik-web
View on GitHub

Stars, license and last push from GitHub. Install count as reported by the open skills directory.

What is the WP block theme converter skill?

The WP block theme converter skill is a SKILL.md in siddik-web/wp-block-theme-converter, also packaged as a plugin with 11 slash commands. It converts HTML, CSS and JavaScript into a WordPress block theme for Full Site Editing through a 10 phase methodology, with theme.json schema v3.

It converts any HTML, CSS and JavaScript project into a production ready WordPress block theme for Full Site Editing. It ships as a plugin and as a standalone skill that auto triggers on WordPress requests.

The output targets WordPress 6.5 or newer, theme.json schema v3, block patterns, translation readiness and WCAG 2.1 AA accessibility. WooCommerce compatibility is optional and is not added unless you ask for it.

Slash commands

  • /convert-to-wp-theme converts a full HTML, CSS and JS project to a complete block theme.
  • /scaffold-wp-theme creates an empty block theme scaffold with no source needed.
  • /wp-pattern converts a single HTML section into a registered block pattern.
  • /wp-theme-json generates theme.json from CSS custom properties or design tokens.
  • /wp-template converts a single HTML page into an FSE template.
  • /wp-block scaffolds a custom block with block.json, edit.js, save.js or render.php, and CSS.
  • /wp-migrate migrates existing WordPress content to a block theme.
  • /wp-plugin-theme declares plugin dependencies and generates plugin specific CSS.
  • /wp-variation generates a style variation such as dark mode, a palette swap or a font swap.
  • /wp-classic-to-fse converts a classic PHP theme to a block theme.
  • /wp-debug diagnoses and fixes block theme failures.

The 10 phase methodology

Every conversion follows ten phases: audit and extract, theme.json, templates and parts, block patterns, block styles and variations, JavaScript integration, functions.php, accessibility and performance, i18n, and README and docs.

Large projects split delivery across 3 turns when the source has 10 or more HTML pages, WooCommerce or multiple style variations. Turn 1 is the foundation, turn 2 is patterns and styles, and turn 3 is JavaScript, assets and docs.

Verification and quality rules

Step 5 runs node scripts/doctor.mjs <theme-dir> and loops until it exits 0. It runs four checks: theme.json validation, block markup lint, pattern registration and i18n coverage. No npm install is required.

  • No inline style attributes, no <style> or <script> tags in templates, and no hardcoded colors or spacing in CSS.
  • theme.json is the single source of truth for design tokens.
  • Strings are translation ready, and CSS uses logical properties for RTL.
  • Interactive patterns use the Interactivity API, with per block CSS loaded through wp_enqueue_block_style().

Behavioral principles

Four principles govern generation: think before coding, simplicity first, surgical changes and goal driven execution. It states assumptions and shows a conversion plan with success criteria before it generates files.

Who the WP block theme converter skill is for

Best for

  • Converting a static HTML, CSS and JavaScript landing page or portfolio into a block theme.
  • Generating theme.json from CSS custom properties or design tokens.
  • Turning a single HTML section into a registered block pattern.
  • Converting a classic PHP theme to a block theme with /wp-classic-to-fse.
  • Moving off Elementor, Divi, WPBakery or Beaver Builder with /wp-migrate.

Not for

  • Running JavaScript against the full Figma API through three tools and a plugin bridge in Figma Desktop, which the figma-pilot MCP covers.
  • Producing mockups, prototypes, wireframes and slide decks as plain HTML, which the baoyu-design skill covers.
  • Teaching a three tier token hierarchy, CSS custom property theming and component architecture, which the design-system-patterns skill covers.