Skip to content
Development
Command

/scaffold-wp-theme

Generate an empty, valid WordPress block theme scaffold from scratch — no source HTML required.

From plugin
wp-block-theme-converter
4511 skills1 agent11 commands1 hook
Install
> /plugin marketplace add siddik-web/wp-block-theme-converter
> /plugin install wp-block-theme-converter@siddik-web

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/scaffold-wp-theme

Context preview

What this command does when you run it.

Generate an empty, valid WordPress block theme scaffold from scratch — no source HTML required.

Command definition

scaffold-wp-theme.md
description: Generate an empty, valid WordPress block theme scaffold from scratch — no source HTML required.

/scaffold-wp-theme

**Purpose:** Generate an empty, valid WordPress Block Theme scaffold with no source HTML to convert. Useful for starting a new theme from scratch.

Trigger

User types `/scaffold-wp-theme` followed by basic theme info.

Workflow

Step 1: Gather Minimum Inputs

Ask the user these questions in your response (one batch):

1. **Theme name** — free text 2. **Style preset** — single select: "Minimal blog", "Editorial magazine", "Portfolio", "Business landing", "WooCommerce store" 3. **Build system** — single select: "Vite 6 (recommended)", "wp-scripts", "None (vanilla)"

If WooCommerce is selected, also ask: 4. **WC features needed** — multi-select: "Single product page", "Product archive", "Cart/Checkout", "My Account", "All of the above"

Step 2: Apply Style Preset

Each preset maps to a different default `theme.json` and starter patterns:

| Preset | Default Colors | Default Fonts | Starter Patterns | |--------|---------------|---------------|------------------| | Minimal blog | Black/white/gray | Inter + Lora | hero-blog, post-grid, newsletter | | Editorial magazine | Cream/black/red accent | Fraunces + Inter Tight | hero-editorial, featured-grid, author-bio | | Portfolio | Dark theme, neon accent | Space Grotesk + JetBrains Mono | hero-portfolio, project-grid, contact | | Business landing | Blue/white | Plus Jakarta Sans | hero-saas, features, pricing, testimonials, cta, footer | | WooCommerce store | Black/white/gold | Inter + Cormorant | hero-product, product-grid, bundle, reviews, trust-badges |

Step 3: Generate Files

Output the same file structure as `/convert-to-wp-theme`, but with placeholder content rather than converted source. Read `references/file-structure.md`.

Use templates from `templates/` directory:

  • `templates/style.css.tpl` for the theme header
  • `templates/theme.json.tpl` for the theme.json
  • `templates/functions.php.tpl` for functions.php
  • `templates/template-skeleton.html.tpl` for empty templates
  • `templates/pattern-header.php.tpl` for pattern files
  • `templates/package.json.tpl` for package.json
  • `templates/vite.config.js.tpl` for Vite config

Generate at minimum:

  • `style.css`
  • `theme.json` (with preset colors/fonts)
  • `functions.php`
  • `inc/theme-setup.php`, `inc/enqueue.php`, `inc/block-patterns.php`
  • `templates/index.html`, `front-page.html`, `single.html`, `page.html`, `archive.html`, `404.html`
  • `parts/header.html`, `footer.html`
  • 3-5 starter patterns based on preset
  • `assets/css/style.css`, `editor.css`
  • `assets/js/main.js`
  • `package.json`, `vite.config.js` (if Vite chosen)
  • `readme.txt`, `.gitignore`

Step 4: Closing Output

## Scaffold Complete

Your `{{theme-slug}}` theme scaffold is ready.

## Next Steps

1. **Customize:** Edit `theme.json` to match your brand colors and fonts
2. **Add content:** Use Site Editor to populate templates and parts
3. **Add patterns:** Run `/wp-pattern` to convert HTML sections into patterns
4. **Build:** `npm install && npm run build`
5. **Activate:** Upload to WordPress and activate

## Files Generated

{{count}} files across {{n}} directories.

Example Invocation

User: /scaffold-wp-theme

Make me an editorial magazine theme called "The Northaven Review"

→ Claude asks 2-3 quick questions → generates complete scaffold with editorial preset.

Read more
Ships withwp-block-theme-converter

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 License: MIT

Get the whole plugin
Stats
45
Stars
14
Forks
Maintained
Maintenance
Go Template
Language
MIT
License
3mo ago
Last commit
5mo ago
Created

Repo: siddik-web/wp-block-theme-converter

Other commands on wp-block-theme-converter.