wordpress-theme-to-emdash
Skill này làm gì
Skill này tái tạo giao diện và bố cục trang của một theme WordPress thành website hiện đại xây trên Astro và EmDash. Skill dành cho nhà thiết kế và lập trình viên chuyển trang WordPress sang EmDash nhưng vẫn giữ nguyên diện mạo.
Khi nào nên dùng
- ✓Khi bạn muốn chuyển thiết kế của theme WordPress sang một trang EmDash.
- ✓Khi bạn có bản demo trực tiếp hoặc ảnh chụp màn hình mà trang mới cần khớp theo.
- ✓Khi các mẫu trang của theme cần được chuyển thành bố cục Astro.
Liên kết skill
https://github.com/emdash-cms/emdash/blob/main/skills/wordpress-theme-to-emdash/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Bạn có thể dựng lại giao diện theme WordPress của tôi thành một trang EmDash, khớp với bản demo trên máy tính và điện thoại không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent xem xét các tệp của theme, trang demo hoặc ảnh chụp màn hình, rồi ánh xạ các mẫu trang sang bố cục và thành phần Astro. Sau đó agent so sánh kết quả với bản tham chiếu trên trình duyệt ở kích thước máy tính và điện thoại.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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.
Câu hỏi thường gặp
Hình ảnh demo có được sao chép không?
Chỉ khi giấy phép cho phép. Nếu không, agent sẽ dùng một hình thay thế có giấy phép rõ ràng và kích thước tương tự.
Skill có sao chép mọi tính năng của demo không?
Không. Skill chỉ bao gồm các trang và tương tác mà người dùng yêu cầu.
Skill có xử lý tính năng của plugin WordPress không?
Không. Hành vi của plugin được xử lý theo một cách tiếp cận migration riêng.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 14k
- Vị trí xếp hạng
- #11251
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
adversarial-reviewer
14kGiúp agent của bạn tìm lỗi ẩn và các giả định không an toàn trong một thay đổi code, vượt qua một đánh giá thông thường khi bạn yêu cầu.
agent-browser
14kCho phép agent của bạn kiểm thử trang web trong trình duyệt thật, kiểm tra người dùng thấy gì, xác minh hành động và chụp ảnh màn hình làm bằng chứng.
building-emdash-site
14kGiúp agent của bạn xây dựng phần website của một dự án EmDash CMS trên Astro, gồm nội dung, schema, menu, taxonomy và triển khai.
creating-plugins
14kGiúp agent của bạn tạo plugin cho hệ thống CMS EmDash, với hook, route, lưu trữ và giao diện quản trị an toàn.
Skill tương tự
angular-developer
280kGiúp agent của bạn viết code Angular và tư vấn cấu trúc dự án, hữu ích khi bắt đầu dự án mới hoặc cải thiện hiệu suất.
frontend-a11y
280kGiúp agent của bạn làm cho giao diện web dễ tiếp cận với mọi người. Đảm bảo website và ứng dụng hoạt động tốt với trình đọc màn hình và điều hướng bằng bàn phím.
frontend-patterns
280kGiúp agent của bạn áp dụng các mẫu hiện đại trong phát triển frontend. Tối ưu hiệu năng, quản lý trạng thái và tuân theo thực hành tốt nhất với React và Next.js.