Token导航 LogoToken导航

Agent Skill · 前端设计

wordpress-plugin-to-emdash(WordPress plugin TO emdash 命令行)

wordpress-plugin-to-emdash 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

wordpress-plugin-to-emdash 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描已通过,按安装量在前端设计类的 10,216 个 Skill 里排第 8,200。

总安装 306周安装 13GitHub Stars 10,065下载 107核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:wordpress-plugin-to-emdash(WordPress plugin TO emdash 命令行)
来源仓库:https://github.com/emdash-cms/emdash
仓库路径:skills/wordpress-plugin-to-emdash
安装命令:
npx skills add https://github.com/emdash-cms/emdash --skill wordpress-plugin-to-emdash
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/emdash-cms/emdash --skill wordpress-plugin-to-emdash

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

WordPress plugin TO emdash 命令行将普通连字符转换为 en/em dash 符号。适用于排版校对、出版物导出和 PDF 生成等需要精确标点的场景。支持批量替换和正则表达式匹配,保留原有 HTML 结构不变。转换结果需经人工复核,避免误改数字范围或 URL 地址。

建议集成到 CI/CD 流程,作为文本预处理步骤之一。

来源仓库内路径:skills/wordpress-plugin-to-emdash

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/emdash-cms/emdash --skill wordpress-plugin-to-…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

wordpress-plugin-to-emdash 怎么安装?

在终端执行 npx skills add https://github.com/emdash-cms/emdash --skill wordpress-plugin-to-emdash。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

wordpress-plugin-to-emdash 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

wordpress-plugin-to-emdash 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

wordpress-plugin-to-emdash 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

wordpress-plugin-to-emdash 用的人多吗?

公开数据是累计安装 306 次,近一周安装 13 次,下载 107 次,GitHub 10,065 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

wordpress-plugin-to-emdash 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。
  • 来源仓库有 10,065 星,维护活跃度相对可查。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
wordpress-plugin-to-emdash

WordPress plugin TO emdash 命令行 · 本页

30610,065需要联网未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Porting WordPress Plugins to EmDash

This skill maps WordPress concepts to their EmDash equivalents for plugin porting. For general plugin authoring details (plugin structure, definePlugin(), hooks, storage, admin UI, etc.), use the creating-plugins skill.

Migration Approach

  1. Understand the plugin — What does it do, not how
  2. Identify concepts — Content types, admin pages, hooks, shortcodes
  3. Map to EmDash — Use the tables below
  4. Implement in TypeScript — Clean room, not line-by-line port. Use the creating-plugins skill for implementation details.
  5. Test behaviour — Same result, different implementation

Concept Mapping

Content & Data

WordPressEmDashNotes
register_post_type()SchemaRegistry.createCollection()Via Admin API or seed file
register_taxonomy()_emdash_taxonomy_defs tableHierarchical or flat, attached to collections
register_meta() / ACFCollection fields via SchemaRegistryAll become typed schema fields
get_post_meta()entry.data.fieldNameDirect typed access
get_option()getSiteSetting() / ctx.kvSite settings or plugin-namespaced KV
WP_QuerygetEmDashCollection()Runtime queries with filters
get_post($id)getEmDashEntry(collection, slug)Returns entry or null
wp_insert_post()POST /_emdash/api/content/{type}REST API
wp_update_post()PUT /_emdash/api/content/{type}/{id}REST API
wp_delete_post()DELETE /_emdash/api/content/{type}/{id}Soft delete
Custom tablesPlugin storage collectionsctx.storage.collectionName.put/get/query

Site Configuration

WordPressEmDashNotes
get_bloginfo('name')getSiteSetting('title')From options table with site: prefix
get_option('blogdesc')getSiteSetting('tagline')Site settings API
Theme CustomizerSite Settings admin page/_emdash/admin/settings
site_icongetSiteSetting('favicon')Media reference
custom_logogetSiteSetting('logo')Media reference

Navigation Menus

WordPressEmDashNotes
register_nav_menu()Create menu via admin or seed_emdash_menus table
wp_nav_menu()getMenu(name)Returns {items: MenuItem[]}
wp_nav_menu_item_emdash_menu_items tableType: custom, page, post, taxonomy
_menu_item_object_idreference_id + reference_collectionLinks to content entries
Menu locationsQuery by name in templatesNo locations concept — direct query

Taxonomies

WordPressEmDashNotes
register_taxonomy()_emdash_taxonomy_defs tableDefine via admin, seed, or API
get_terms()getTaxonomyTerms(name)Returns tree for hierarchical
get_the_terms()getEntryTerms(collection, id, name)Terms for specific entry
wp_set_post_terms()TaxonomyRepository.setTermsForEntry()Replace terms for entry
Hierarchical taxonomyhierarchical: true in definitionCategories-style
Flat taxonomyhierarchical: falseTags-style

Widgets & Sidebars

WordPressEmDashNotes
register_sidebar()_emdash_widget_areas tableCreate via admin or seed
dynamic_sidebar()getWidgetArea(name)Returns {widgets: Widget[]}
WP_Widget classWidget types: content, menu, componentSimplified — 3 types only
Text widgettype: 'content' + Portable TextRich text widget
Nav Menu widgettype: 'menu' + menuNameReferences a menu
Custom widgetstype: 'component' + componentIdPlugin-registered components

Admin UI

WordPressEmDashNotes
add_menu_page()admin.pages in definePlugin()Plugin config
add_submenu_page()Nested admin pagesParent determines hierarchy
add_settings_section()admin.settingsSchemaAuto-generated settings page
add_meta_box()Field groups in collection schemaUI config in schema
wp_enqueue_script()ESM imports in admin componentsReact (trusted) or Block Kit (sandboxed)
Admin noticesToast notificationsVia admin UI framework

Hooks

WordPressEmDashNotes
add_action('init')plugin:install hookRuns once on first install
add_action('save_post')content:afterSave hookFilter by event.collection
add_action('before_delete_post')content:beforeDelete hookReturn false to prevent
add_action('wp_head')page:metadata / page:fragments hookMetadata is sandbox-safe; scripts need trusted plugin
add_action('rest_api_init')definePlugin({routes})Trusted only
add_filter('the_content')Portable Text componentsCustom block renderers
add_filter('the_title')Template logicHandle in Astro component

Frontend Output

WordPressEmDashNotes
add_shortcode()Portable Text custom blockContent → block. Template → component. Trusted only.
register_block_type()PT block + componentsEntryBlock data → Astro component props. Trusted only.
Template tagsAstro expressionsget_the_title() → {post.data.title}
WidgetsWidget area + componentsQuery with getWidgetArea()

Plugin Storage

WordPressEmDashNotes
get_option('plugin_*')ctx.kv.get(key)Namespaced to plugin automatically
update_option()ctx.kv.set(key, value)Scoped KV storage
delete_option()ctx.kv.delete(key)Delete single key
Custom tablesctx.storage.collectionDocument collections with indexes
TransientsPlugin KVNo TTL yet

Porting-Specific Patterns

These patterns cover WordPress-specific concepts that don't have a direct 1:1 mapping. For general plugin patterns (defining hooks, storage, routes, admin UI), see the creating-plugins skill.

Shortcodes → Portable Text Blocks

WordPress shortcodes ([youtube id="xxx"]) become Portable Text custom block types. The block data replaces shortcode attributes, and an Astro component replaces the shortcode render function. This is a trusted-only feature.

// WordPress
add_shortcode('youtube', function($atts) {
    return '<iframe src="https://youtube.com/embed/' . $atts['id'] . '"></iframe>';
});

// EmDash — block type declaration in definePlugin()
admin: {
	portableTextBlocks: [{
		type: "youtube",
		label: "YouTube Video",
		icon: "video",
		fields: [
			{ type: "text_input", action_id: "id", label: "YouTube URL" },
			{ type: "text_input", action_id: "title", label: "Title" },
		],
	}],
}

// EmDash — Astro component for rendering
// src/astro/YouTube.astro
const { id, title } = Astro.props.node;
const videoId = id?.match(/(?:v=|youtu\.be\/)([^&]+)/)?.[1] ?? id;
// <iframe src={`https://youtube-nocookie.com/embed/${videoId}`} ... />

Options API → Plugin KV

WordPress's get_option/update_option maps to the plugin KV store. The key difference: WordPress options are global, EmDash KV is automatically scoped to the plugin.

// WordPress
$count = get_option("myplugin_post_count", 0);
update_option("myplugin_post_count", $count + 1);
delete_option("myplugin_temp_data");

// EmDash — no prefix needed, automatically scoped
const count = (await ctx.kv.get<number>("post-count")) ?? 0;
await ctx.kv.set("post-count", count + 1);
await ctx.kv.delete("temp-data");

Custom Database Tables → Storage Collections

WordPress plugins that create custom tables with $wpdb->query("CREATE TABLE...") should use EmDash's storage collections instead. No migrations needed — declare the schema in definePlugin() and it's automatically provisioned.

// WordPress
$wpdb->insert($table, ['form_id' => $id, 'data' => json_encode($data), 'created_at' => current_time('mysql')]);
$results = $wpdb->get_results("SELECT * FROM $table WHERE form_id = '$id' ORDER BY created_at DESC LIMIT 50");

// EmDash — declared in definePlugin()
storage: {
	submissions: {
		indexes: ["formId", "createdAt", ["formId", "createdAt"]],
	},
},

// In a hook or route handler
await ctx.storage.submissions!.put(entryId, { formId, data, createdAt: new Date().toISOString() });
const result = await ctx.storage.submissions!.query({
	where: { formId },
	orderBy: { createdAt: "desc" },
	limit: 50,
});

Seeding Data (replaces starter content, theme setup)

WordPress plugins that call wp_insert_term(), register_nav_menu(), or insert default content on activation should use a seed file:

{
	"version": "1",
	"settings": { "title": "My Site", "tagline": "Welcome" },
	"taxonomies": [
		{
			"name": "category",
			"label": "Categories",
			"hierarchical": true,
			"collections": ["posts"],
			"terms": [
				{ "slug": "news", "label": "News" },
				{ "slug": "tutorials", "label": "Tutorials" }
			]
		}
	],
	"menus": [
		{
			"name": "primary",
			"label": "Primary Navigation",
			"items": [
				{ "type": "custom", "label": "Home", "url": "/" },
				{ "type": "page", "ref": "about", "collection": "pages" }
			]
		}
	],
	"redirects": [
		{ "source": "/?p=123", "destination": "/about" },
		{ "source": "/old-contact", "destination": "/contact", "type": 301 }
	]
}
npx emdash seed .emdash/seed.json

Use redirects for legacy WordPress URLs that still receive traffic after migration.

Querying Content (replaces WP_Query)

// WordPress
$query = new WP_Query(['post_type' => 'post', 'category_name' => 'tech', 'posts_per_page' => 10]);

// EmDash — in Astro component frontmatter
import { getEmDashCollection, getEntryTerms } from "emdash";
const { entries } = await getEmDashCollection("posts", {
	where: { category: "technology" },
	limit: 10,
});

Menus (replaces wp_nav_menu)

// WordPress
wp_nav_menu(['theme_location' => 'primary']);

// EmDash — in Astro component
import { getMenu } from "emdash";
const nav = await getMenu("primary");
// nav.items[].label, nav.items[].url, nav.items[].children

Widget Areas (replaces dynamic_sidebar)

// WordPress
dynamic_sidebar("sidebar-1");

// EmDash — in Astro component
import { getWidgetArea } from "emdash";
const sidebar = await getWidgetArea("sidebar");
// sidebar.widgets[].type: "content" | "menu" | "component"

Red Flags (Need Human Decision)

Flag these for review — they may need architectural decisions:

  1. Deep WP integration — Hooks into WP core features not in EmDash
  2. Theme dependencies — Assumes specific theme structure
  3. Multisite features — Not supported
  4. Complex WP_Query — Meta queries may need custom implementation
  5. Direct SQL — Schema differs, use Kysely or plugin storage
  6. Session/transient abuse — Needs proper caching layer
  7. User capability checks — Review role mapping (future)
  8. ob_start() buffering — PHP pattern, rethink for streaming
  9. Cron jobs — wp_schedule_event() has no direct equivalent; needs platform cron

Output Format

When porting a plugin, provide:

  1. Analysis — What the WP plugin does (concepts, not code)
  2. Concept mapping — Which WP concepts map to which EmDash features
  3. Plugin code — src/descriptor.ts and src/index.ts (use creating-plugins skill for structure)
  4. Seed data — If plugin needs default taxonomies/menus/widgets
  5. Astro components — For frontend output
  6. Flags — Anything needing human decision

平台分布

Codex

36.4%
按下载量换算39

Claude

27.56%
按下载量换算29

Cursor

18.61%
按下载量换算20

Gemini CLI

10.05%
按下载量换算11

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills