wordpress-theme-to-emdash
它能做什么
这项技能把 WordPress 主题的外观和页面布局重新制作为基于 Astro 和 EmDash 的现代网站。适合在迁移到 EmDash 的同时希望保持原有外观的设计师和开发者。
适用场景
- ✓当你想把 WordPress 主题的设计迁移到 EmDash 网站的时候。
- ✓当你有新网站应当匹配的在线演示或截图的时候。
- ✓当主题的页面模板需要转换为 Astro 布局的时候。
技能链接
https://github.com/emdash-cms/emdash/blob/main/skills/wordpress-theme-to-emdash/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我把我的 WordPress 主题外观重建为 EmDash 网站,并在桌面和手机上与演示保持一致?”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会审查主题的文件、演示页面或截图,并把其模板映射为 Astro 布局和组件。然后它会在浏览器中,以桌面和手机尺寸,将结果与参考版本进行对比。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
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 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:
- theme source and
theme.json, stylesheets, templates, andfunctions.php; - a live demo at representative desktop and mobile viewports;
- screenshots or design files supplied by the user;
- 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 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
- Design extraction
- Template conversion
- Dynamic EmDash features
- Schema and seed data
- Rendered verification
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.
常见问题
演示中的图片也会被复制吗?
只有在其许可允许的情况下才会。否则会使用许可清晰、尺寸相近的替代图片。
它会复制演示中的每个功能吗?
不会。它只包含你要求的页面和交互。
它会处理 WordPress 插件的功能吗?
不会。插件行为由单独的迁移方法处理。
详情
作者的原始描述
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.
repo: emdash-cms/emdash
热度
- GitHub 星标
- 14k
- 排名
- #11251
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
adversarial-reviewer
14k帮你的智能体在代码变更中寻找隐藏的缺陷和不安全的假设;当你要求时,它会超越普通的审查。
agent-browser
14k让你的智能体在真实浏览器中测试网页,检查用户看到的内容,验证操作,并截图作为证据。
building-emdash-site
14k帮你的智能体在 Astro 上构建 EmDash CMS 项目的网站部分,涵盖内容、结构、菜单、分类法和部署。
creating-plugins
14k帮你的智能体为 EmDash CMS 构建插件,包括安全的钩子、路由、存储和管理界面。