wordpress-plugin-to-emdash
Skill này làm gì
Skill này giúp chuyển hành vi, loại nội dung và dữ liệu đã lưu của một plugin WordPress sang hệ thống quản lý nội dung EmDash. Skill dành cho chủ trang và lập trình viên đang chuyển từ WordPress sang EmDash.
Khi nào nên dùng
- ✓Khi bạn chuyển trang từ WordPress sang EmDash và cần mang các tính năng của plugin sang theo.
- ✓Khi bạn cần quyết định một tính năng nên nằm trong schema của trang, trong mã nguồn hay trong plugin.
- ✓Khi một plugin WordPress lưu dữ liệu cần được giữ lại trong quá trình chuyển.
Liên kết skill
https://github.com/emdash-cms/emdash/blob/main/skills/wordpress-plugin-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ể giúp tôi chuyển plugin sự kiện WordPress của mình, gồm loại bài đăng tùy chỉnh và biểu mẫu đặt chỗ, sang EmDash không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent kiểm tra các tính năng, dữ liệu, hook và màn hình quản trị của plugin, sau đó giao từng trách nhiệm cho đúng vị trí trong EmDash. Agent ghi chú các nhu cầu về dữ liệu, quyền và migration trước khi viết bất kỳ mã nào.
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 plugin to EmDash
Preserve the plugin's user-visible behavior and data model without translating PHP line by line. WordPress and EmDash divide responsibilities differently, so first decide whether each feature belongs in site schema, Astro code, a sandboxed plugin, or a trusted native plugin.
Load creating-plugins before implementing plugin code. Load building-emdash-site when the port changes collections, seeds, queries, or frontend templates. Those skills define the current APIs; this skill covers migration decisions.
Understand the source
Inspect the plugin source, installation behavior, database changes, hooks, REST endpoints, scheduled work, admin screens, shortcodes or blocks, frontend output, permissions, and external services. Identify behavior that users rely on separately from WordPress-specific implementation.
Record:
- required content and configuration data;
- actions that mutate or publish data;
- authorization and trust boundaries;
- background or retry behavior;
- frontend and administrator interactions;
- import, migration, and rollback needs;
- license obligations for copied assets or code.
If the source, expected behavior, or target EmDash environment is missing, report the gap instead of inventing an equivalent.
Assign each responsibility
| WordPress responsibility | EmDash destination |
|---|---|
| Custom post type, taxonomy, or metadata | Collection, taxonomy, and fields created through the site schema or seed |
| Site-wide presentation setting | Site setting read by Astro templates |
| Plugin-owned user settings | ctx.settings; declare credentials as encrypted secret fields |
| Plugin-owned cursors, caches, or internal state | Plugin-scoped ctx.kv |
| Plugin-owned queryable records | Declared ctx.storage.<collection> storage |
| Content discovery, translation, or publication | Capability-gated ctx.content and ctx.schema; policy hooks and actions have separate authority |
| Runtime taxonomy or redirect management | ctx.taxonomies or ctx.redirects with narrow read/write capability |
| Comment administration | ctx.comments; reads expose personal data and moderation uses expected status |
| WordPress REST endpoint | Declared plugin route with explicit methods, inputs, headers, and response mode |
| Scheduled event | cron hook and ctx.cron scheduling |
| Admin page or form | Block Kit for sandboxed plugins; React only for a trusted native plugin |
| Post editor metabox or saved-entry action | admin.editorPanels or admin.editorActions on private routes |
| User or author lookup | ctx.users with users:read |
| Outbound HTTP request | ctx.http.fetch() with network:request and an allowedHosts entry |
| Media operation | Separate metadata, byte-read, metadata-write, and upload/delete authorities |
WP_Query or template tag |
EmDash content API in Astro site code |
| Shortcode or editor block | Existing Portable Text content where possible; a custom Portable Text block requires a trusted native plugin |
| Raw head markup or sc |
Câu hỏi thường gặp
Skill có dịch PHP từng dòng một không?
Không. Skill tập trung giữ nguyên hành vi và dữ liệu mà người dùng nhìn thấy, vì WordPress và EmDash phân chia công việc khác nhau.
Nếu giấy phép của plugin hạn chế việc sao chép thì sao?
Skill có bước kiểm tra nghĩa vụ giấy phép đối với mã hoặc tài nguyên được sao chép.
Skill có bao gồm cả theme giao diện không?
Không. Việc chuyển theme giao diện là một tác vụ riêng, còn skill này dành cho chức năng plugin.
Chi tiết
Mô tả gốc của tác giả
Analyze and port WordPress plugin behavior, custom post types, shortcodes, admin workflows, and stored data to current EmDash extension points. Use for WordPress-plugin migrations or when deciding which behavior belongs in an EmDash plugin, site schema, seed, or Astro code. Do not use for visual theme ports without plugin functionality.
repo: emdash-cms/emdash
Độ phổ biến
- Sao GitHub
- 14k
- Vị trí xếp hạng
- #11250
- 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ự
api-connector-builder
280kGiúp agent của bạn xây dựng kết nối API mới theo đúng mẫu đã có, dùng khi bạn cần thêm một tích hợp mà không tạo cách làm mới.
api-design
280kGiúp agent của bạn thiết kế REST API theo các thực hành tốt nhất, hữu ích để định nghĩa cách API giao tiếp, hiển thị lỗi và tổ chức dữ liệu.
backend-patterns
280kGiúp agent của bạn với các mẫu kiến trúc phía máy chủ và tối ưu cơ sở dữ liệu, hữu ích khi xây dựng hoặc rà soát code chạy trên máy chủ.