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に貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
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を1行ずつ翻訳しますか?
いいえ。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
コメント
- …
このリポジトリの他のスキル
adversarial-reviewer
14kエージェントが、コードの変更に隠れたバグや安全でない前提を探せるよう支援します。依頼されたときは、通常の査読を超えた深い検証を行います。
agent-browser
14kエージェントが、実際のブラウザでWebページを検証し、ユーザーに見える内容や操作の結果を確認して、証拠としてスクリーンショットを取れるよう支援します。
building-emdash-site
14kエージェントが、AstroのEmDash CMSプロジェクトのサイト側を構築できるよう支援します。コンテンツ、スキーマ、メニュー、分類、デプロイを扱います。
creating-plugins
14kエージェントが、安全なフック、ルート、ストレージ、管理画面を備えたEmDash CMS用のプラグインを作れるよう支援します。
似ているスキル
api-connector-builder
280kエージェントが既存のパターンに従って、新しいAPI連携を構築します。新しい方式を作らずに、もう一つ連携を追加したいときに使います。
api-design
280kエージェントがベストプラクティスに沿ってREST APIを設計できるようにします。APIの通信方法、エラーの表示方法、データの整理方法を決めるのに役立ちます。
backend-patterns
280kエージェントのサーバーサイドのアーキテクチャパターンとデータベースの最適化を支援します。サーバー上で動くコードを作成またはレビューするときに役立ちます。