Chuyển đến nội dung
Skillpedia
API và máy chủ (backend)14k · #11250

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.md

Sao 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

Hãy dùng skill này để giúp tôi: https://github.com/emdash-cms/emdash/blob/main/skills/wordpress-plugin-to-emdash/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

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

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự