Skip to main content
skill CX Codex

wordpress-theme-to-emdash — Claude Code skill: port a WordPress theme

Ports a WordPress theme's design and template behavior to an Astro site backed by EmDash. Useful for theme migrations and matching the original layout.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add emdash-cms/skills --skill wordpress-theme-to-emdash -a claude-code
Open on GitHub

What wordpress-theme-to-emdash does

The skill reads the theme source, theme.json, stylesheets, templates and functions.php, then rebuilds the layouts and interactions you actually need as an Astro site on EmDash. PHP templates turn into Astro routes, layouts and components. Custom post types and taxonomies become EmDash collections and fields, Customizer values become site settings, menu locations become named menus.

Work runs in phases: discovery and reference capture, design extraction, template conversion, dynamic EmDash features, schema and seed data, rendered verification. A phase file is read only when that phase applies. For current schema, query and caching patterns the skill loads building-emdash-site, and when a live reference site exists it suggests comparing rendered pages with the agent-browser CLI.

Dynamic EmDash routes have to stay server-rendered, and EmDash media fields go through the Image component. Check the license on demo content separately from the theme code — they can differ, so reuse an asset only when the license or the user's rights allow it, otherwise swap in a clearly licensed substitute of similar dimensions. A port should not be labeled GPL-2.0-or-later just because the source is a WordPress theme.

What it helps with

  • move a WordPress theme's layout to Astro without rewriting every template by hand
  • map PHP templates onto Astro routes and components
  • turn custom post types and taxonomies into EmDash collections
  • compare the rendered port against a live demo at desktop and mobile viewports
  • sort out theme code licensing separately from demo image licensing

Example prompts for the agent

  • Port the WordPress theme in this folder to Astro with EmDash, keep the homepage and blog layout
  • Compare our port against the live demo with agent-browser at desktop and mobile widths
  • Convert this theme's custom post types and taxonomies into EmDash collections

How to install wordpress-theme-to-emdash

1Skills CLI (Vercel)

npx skills add emdash-cms/skills --skill wordpress-theme-to-emdash -a claude-code

2Manually: put the files in place

~/.claude/skills/wordpress-theme-to-emdash/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/wordpress-theme-to-emdash/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about wordpress-theme-to-emdash

How do I install wordpress-theme-to-emdash in Claude?

Run npx skills add emdash-cms/skills --skill wordpress-theme-to-emdash -a claude-code. The skill lands at ~/.claude/skills/wordpress-theme-to-emdash/SKILL.md.

What does wordpress-theme-to-emdash do?

It recreates a WordPress theme's layouts and interactions as an Astro site backed by EmDash: converting PHP templates, moving post types, menus and Customizer settings across.

Does it handle WordPress plugin behavior?

No. It targets theme design and template behavior. Plugin behavior that does not affect the site theme needs a separate migration.

Source text

SKILL.md · MIT
---
name: wordpress-theme-to-emdash
description: Port a WordPress theme's design and template behavior to an EmDash-powered Astro site. Use for theme migrations, design matching, PHP-template conversion, and CMS wiring. Do not use for WordPress plugin behavior that does not affect the site theme.
---

# Port a WordPress theme to EmDash

Recreate the theme's relevant layouts and interactions as an Astro site backed by EmDash. Preserve the user's requested visual fidelity and feature scope; do not assume every WordPress template or demo feature belongs in the port.

Load [building-emdash-site](../building-emdash-site/SKILL.md) for current EmDash schema, query, rendering, caching, and seed patterns. When a live reference site is available, use the `agent-browser` CLI for rendered comparison; run `agent-browser skills get core --full` for its command reference.

## Choose the evidence

Use the best available sources in this order:

1. theme source and `theme.json`, stylesheets, templates, and `functions.php`;
2. a live demo at representative desktop and mobile viewports;
3. screenshots or design files supplied by the user;
4. explicit design decisions where the source is ambiguous.

Do not infer that demo content or images share the theme code's license. Reuse an asset only when its license or the user's rights permit it; otherwise use a clearly licensed substitute with similar dimensions and visual weight.

## Plan the port

Inventory only the page types, components, responsive states, and interactions needed for the requested site. Map WordPress responsibilities before implementing:

- PHP templates become Astro routes, layouts, and components.
- Custom post types, metadata, and taxonomies become EmDash collections, fields, and taxonomies.
- Theme Customizer values become site settings or explicit project configuration.
- Menu locations become named EmDash menus queried by templates.
- Sidebars and widgets become widget areas or ordinary Astro components.
- Shortcodes and plugin-owned behavior may require a separate plugin migration.

Read [WordPress theme concept mapping](references/concept-mapping.md) when translating template hierarchy, `functions.php` registrations, template tags, hooks, widgets, or reusable blocks.

Dynamic EmDash content routes must remain server-rendered. Use the EmDash `Image` component for EmDash media fields; ordinary theme assets can use Astro's asset handling.

## Work in scoped phases

Read a phase file only when that phase applies:

- [Discovery and reference capture](phases/1-discovery.md)
- [Design extraction](phases/2-design.md)
- [Template conversion](phases/3-templates.md)
- [Dynamic EmDash features](phases/4-dynamic.md)
- [Schema and seed data](phases/5-seed.md)
- [Rendered verification](phases/6-verify.md)

When creating a standalone theme project, start from the repository's current site template or the user's existing project. Confirm the destination before writing and do not replace an existing site structure without explicit direction.

## Verify the result

Build the site and exercise each in-scope page and interaction. Compare matched viewports against the reference, including responsive navigation, content with long and missing values, RTL when admin or theme behavior depends on direction, and relevant empty or error states.

Capture before-and-after or reference-and-result screenshots when visual fidelity is part of acceptance. Report deliberate deviations, missing source evidence, unsupported WordPress behavior, and asset substitutions.

## Licensing and attribution

Inspect the source theme's actual license and notices. Preserve required copyright and attribution, include the applicable license text for reused code, and identify third-party assets separately. Do not label a port GPL-2.0-or-later merely because the source is a WordPress theme.

© emdash-cms · MIT · emdash-cms/skills

Similar skills

Everything for Frontend and UI →

From the same set5

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor