К основному содержанию
скилл CX Codex

wordpress-theme-to-emdash — скилл для Claude Code: перенос темы

Переносит дизайн и поведение шаблонов темы WordPress на сайт Astro с бэкендом EmDash. Пригодится при миграции темы и сопоставлении вёрстки.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add emdash-cms/skills --skill wordpress-theme-to-emdash -a claude-code
Открыть на GitHub

Что делает wordpress-theme-to-emdash

Скилл разбирает исходники темы, theme.json, стили, шаблоны и functions.php, а затем воссоздаёт нужные макеты и интерактив как сайт на Astro с бэкендом EmDash. PHP-шаблоны становятся маршрутами, лейаутами и компонентами Astro, произвольные типы записей и таксономии — коллекциями и полями EmDash, значения Customizer — настройками сайта, меню и виджеты — именованными меню и обычными компонентами.

Работа идёт по фазам: разведка и сбор референсов, извлечение дизайна, конвертация шаблонов, динамические возможности EmDash, схема и сид-данные, проверка рендера. Файл фазы читается только тогда, когда она применима. Для актуальных схем, запросов и кэширования скилл подгружает building-emdash-site, а при наличии живого сайта-образца советует сравнивать отрендеренные страницы через CLI agent-browser.

Динамические маршруты EmDash должны оставаться серверными, а для медиаполей используется компонент Image. Лицензию демо-контента и картинок скилл проверять велит отдельно: код темы и её демо-материалы могут быть под разными лицензиями, поэтому чужой ассет берётся только при разрешении, иначе — явно лицензированный аналог похожих размеров. Порт не помечается как GPL-2.0-or-later только потому, что исходник — тема WordPress.

Какие задачи решает

  • перенести вёрстку темы WordPress на Astro без ручного переписывания каждого шаблона
  • сопоставить PHP-шаблоны с маршрутами и компонентами Astro
  • перевести произвольные типы записей и таксономии в коллекции EmDash
  • сверить отрендеренный результат с живым демо на десктопе и мобильном
  • разобраться с лицензиями на код темы и демо-картинки по отдельности

Примеры запросов агенту

  • Перенеси тему WordPress из этой папки на Astro с EmDash, сохрани вёрстку главной и блога
  • Сравни наш порт с живым демо через agent-browser на десктопе и мобильном
  • Переведи custom post types и таксономии этой темы в коллекции EmDash

Как установить wordpress-theme-to-emdash

1Через Skills CLI (Vercel)

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

2Вручную: положить файлы

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

Папка скилла целиком; для одного проекта — .claude/skills/wordpress-theme-to-emdash/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Из того же набора5

Похожие

wordpress-router WordPress Скилл определяет тип кодовой базы WordPress и направляет агента по нужным веткам разработки. Пригодится на старте задач с темами, плагинами или ядром. CX Codex +1 5 600установок wordpress-pro https://github.com/Jeffallan Скилл помогает разрабатывать темы и плагины WordPress, блоки Gutenberg и магазины WooCommerce. Нужен для задач с REST API, хуками, безопасностью и производительностью. CX Codex +1 9 700установок wordpress Mindrally Скилл wordpress задаёт агенту правила разработки под WordPress и WooCommerce на PHP. Он держит код в рамках стандартов WordPress, напоминает про хуки, nonce и подготовленные запросы. CX Codex +1 894установок wordpress-performance-best-practices bartekmis Скилл для Claude и других ИИ-редакторов: 34 правила производительности WordPress, разбитые по приоритету. Пригодится при написании и ревью PHP-кода плагинов и тем. CX Codex +1 708установок wordpress-security-validation bobmatnyc Скилл для безопасной разработки плагинов и тем WordPress: санитизация ввода, проверка логики и экранирование вывода. Пригодится, когда обрабатываете формы, AJAX или выводите чужие данные. CX Codex +1 581установок wordpress-advanced-architecture bobmatnyc Скилл по продвинутой разработке под WordPress: свои REST-маршруты, команды WP-CLI, кэширование транзиентами и объектным кэшем. CX Codex +1 441установок

Рядом в теме «Фронтенд и UI»

Всё по теме «Фронтенд и UI» →

Вопросы о wordpress-theme-to-emdash

Как установить wordpress-theme-to-emdash в Claude?

Выполните npx skills add emdash-cms/skills --skill wordpress-theme-to-emdash -a claude-code. Скилл окажется в ~/.claude/skills/wordpress-theme-to-emdash/SKILL.md.

Что делает wordpress-theme-to-emdash?

Воссоздаёт макеты и интерактив темы WordPress как сайт на Astro с бэкендом EmDash: конвертирует PHP-шаблоны, переносит типы записей, меню и настройки Customizer.

Можно ли переносить поведение плагинов WordPress этим скиллом?

Нет, он рассчитан на дизайн и поведение шаблонов темы. Поведение плагинов, не влияющее на тему, требует отдельной миграции.

Исходный текст

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

Смотрите также

Спонсоры проекта

Компании, которые помогают держать аналитику открытой