跳到正文
Skillpedia
API 与服务器(后端)14k · #11250

wordpress-plugin-to-emdash

它能做什么

这项技能帮助把 WordPress 插件的行为、内容类型和存储的数据迁移到 EmDash 内容管理系统。适合从 WordPress 迁移到 EmDash 的网站所有者和开发者。

适用场景

  • ✓当你要把网站从 WordPress 迁移到 EmDash,并且插件的功能需要一起迁移的时候。
  • ✓当你需要判断某项功能应放在网站结构、代码还是插件中的时候。
  • ✓当一个 WordPress 插件保存了迁移过程中必须保留的数据的时候。

技能链接

https://github.com/emdash-cms/emdash/blob/main/skills/wordpress-plugin-to-emdash/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/emdash-cms/emdash/blob/main/skills/wordpress-plugin-to-emdash/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请帮我把我的 WordPress 活动插件(包括其自定义文章类型和预订表单)迁移到 EmDash?”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会检查插件的功能、数据、钩子和管理页面,然后把每项职责分配到 EmDash 中正确的位置。在编写任何代码之前,它会先记录数据、权限和迁移方面的需求。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

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
常见问题

它会逐行翻译 PHP 代码吗?

不会。它侧重于保留用户可见的行为和数据,因为 WordPress 和 EmDash 对工作的划分方式不同。

如果插件的许可证限制复制怎么办?

这项技能包含对复制代码或资源的许可义务的检查。

它也涵盖视觉主题吗?

不涵盖。视觉主题的移植是另一项任务,这项技能只针对插件功能。

详情

作者的原始描述

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

热度

GitHub 星标
14k
排名
#11250
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能